ref: 8b7293c48083dfe98d1346aacd6af17f4e6883f9
parent: d51beda322f23d85f3dea93f84182008266d3bc7
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon May 14 15:18:13 EDT 2018
devip: don't set mtu of interface to zero when not specified (thanks joe9) change 9f74a951ae6a introduced a bug that set the mtu of a new interface to 0 when not specified in the add ctl.
--- a/sys/src/9/ip/ipifc.c
+++ b/sys/src/9/ip/ipifc.c
@@ -507,7 +507,7 @@
return up->errstr;
}
- if(mtu >= ifc->m->mintu && mtu <= ifc->m->maxtu)
+ if(mtu > 0 && mtu >= ifc->m->mintu && mtu <= ifc->m->maxtu)
ifc->maxtu = mtu;
/* ignore if this is already a local address for this ifc */
--
⑨