--- embedaddon/mpd/src/bund.c 2012/02/21 23:32:47 1.1 +++ embedaddon/mpd/src/bund.c 2016/11/01 09:56:12 1.1.1.3 @@ -891,7 +891,7 @@ BundUpdateParams(Bund b) } else if (!b->peer_mrru) { /* If no multilink, use 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 */ mtu = MIN(b->peer_mrru, MP_MAX_MRRU); @@ -1135,6 +1135,7 @@ BundCreate(Context ctx, int ac, char *av[], void *arg) /* Setup netgraph stuff */ if (BundNgInit(b) < 0) { gBundles[b->id] = NULL; + IfaceDestroy(b); Freee(b); Error("Bundle netgraph initialization failed"); } @@ -1317,6 +1318,12 @@ BundStat(Context ctx, int ac, char *av[], void *arg) /* Show configuration */ Printf("Configuration:\r\n"); +#ifdef SIOCSIFDESCR + Printf("\tDesc. template : %s\r\n", + sb->iface.conf.ifdescr ? sb->iface.conf.ifdescr : ""); + Printf("\tDescription : %s\r\n", + sb->iface.ifdescr ? sb->iface.ifdescr : ""); +#endif Printf("\tRetry timeout : %d seconds\r\n", sb->conf.retry_timeout); Printf("\tBW-manage:\r\n"); Printf("\t Period : %d seconds\r\n", sb->conf.bm_S);