version 1.1.1.1, 2012/02/21 23:32:47
|
version 1.1.1.4, 2019/10/22 13:49:55
|
Line 328 BundJoin(Link l)
|
Line 328 BundJoin(Link l)
|
|
|
/* Configure this link */ |
/* Configure this link */ |
b->pppConfig.links[l->bundleIndex].enableLink = 1; |
b->pppConfig.links[l->bundleIndex].enableLink = 1; |
b->pppConfig.links[l->bundleIndex].mru = lcp->peer_mru; | b->pppConfig.links[l->bundleIndex].mru = b->iface.mtu_override ? |
| b->iface.mtu_override : lcp->peer_mru; |
b->pppConfig.links[l->bundleIndex].enableACFComp = lcp->peer_acfcomp; |
b->pppConfig.links[l->bundleIndex].enableACFComp = lcp->peer_acfcomp; |
b->pppConfig.links[l->bundleIndex].enableProtoComp = lcp->peer_protocomp; |
b->pppConfig.links[l->bundleIndex].enableProtoComp = lcp->peer_protocomp; |
b->pppConfig.links[l->bundleIndex].bandwidth = |
b->pppConfig.links[l->bundleIndex].bandwidth = |
Line 891 BundUpdateParams(Bund b)
|
Line 892 BundUpdateParams(Bund b)
|
|
|
} else if (!b->peer_mrru) { /* If no multilink, use peer MRU */ |
} else if (!b->peer_mrru) { /* If no multilink, use peer MRU */ |
mtu = MIN(b->links[the_link]->lcp.peer_mru, |
mtu = MIN(b->links[the_link]->lcp.peer_mru, |
b->links[the_link]->type->mtu); | PhysGetMtu(b->links[the_link], 0)); |
|
|
} else { /* Multilink, use peer MRRU */ |
} else { /* Multilink, use peer MRRU */ |
mtu = MIN(b->peer_mrru, MP_MAX_MRRU); |
mtu = MIN(b->peer_mrru, MP_MAX_MRRU); |
Line 1135 BundCreate(Context ctx, int ac, char *av[], void *arg)
|
Line 1136 BundCreate(Context ctx, int ac, char *av[], void *arg)
|
/* Setup netgraph stuff */ |
/* Setup netgraph stuff */ |
if (BundNgInit(b) < 0) { |
if (BundNgInit(b) < 0) { |
gBundles[b->id] = NULL; |
gBundles[b->id] = NULL; |
|
IfaceDestroy(b); |
Freee(b); |
Freee(b); |
Error("Bundle netgraph initialization failed"); |
Error("Bundle netgraph initialization failed"); |
} |
} |
Line 1317 BundStat(Context ctx, int ac, char *av[], void *arg)
|
Line 1319 BundStat(Context ctx, int ac, char *av[], void *arg)
|
|
|
/* Show configuration */ |
/* Show configuration */ |
Printf("Configuration:\r\n"); |
Printf("Configuration:\r\n"); |
|
#ifdef SIOCSIFDESCR |
|
Printf("\tDesc. template : %s\r\n", |
|
sb->iface.conf.ifdescr ? sb->iface.conf.ifdescr : "<none>"); |
|
Printf("\tDescription : %s\r\n", |
|
sb->iface.ifdescr ? sb->iface.ifdescr : "<none>"); |
|
#endif |
Printf("\tRetry timeout : %d seconds\r\n", sb->conf.retry_timeout); |
Printf("\tRetry timeout : %d seconds\r\n", sb->conf.retry_timeout); |
Printf("\tBW-manage:\r\n"); |
Printf("\tBW-manage:\r\n"); |
Printf("\t Period : %d seconds\r\n", sb->conf.bm_S); |
Printf("\t Period : %d seconds\r\n", sb->conf.bm_S); |
Line 1387 BundUpdateStats(Bund b)
|
Line 1395 BundUpdateStats(Bund b)
|
b->stats.runts += abs(stats.runts - b->oldStats.runts); |
b->stats.runts += abs(stats.runts - b->oldStats.runts); |
b->stats.dupFragments += abs(stats.dupFragments - b->oldStats.dupFragments); |
b->stats.dupFragments += abs(stats.dupFragments - b->oldStats.dupFragments); |
b->stats.dropFragments += abs(stats.dropFragments - b->oldStats.dropFragments); |
b->stats.dropFragments += abs(stats.dropFragments - b->oldStats.dropFragments); |
|
b->oldStats = stats; |
} |
} |
|
|
b->oldStats = stats; |
|
#else |
#else |
NgFuncGetStats64(b, l, &b->stats); |
NgFuncGetStats64(b, l, &b->stats); |
#endif |
#endif |