mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-27 02:26:55 +08:00
Add #define for minimum IPv6 MTU length
This commit is contained in:
committed by
Simon Goldschmidt
parent
379d55044e
commit
ba3b04e7fe
@@ -881,7 +881,7 @@ lowpan6_if_init(struct netif *netif)
|
||||
MIB2_INIT_NETIF(netif, snmp_ifType_other, 0);
|
||||
|
||||
/* maximum transfer unit */
|
||||
netif->mtu = 1280;
|
||||
netif->mtu = IP6_MIN_MTU_LENGTH;
|
||||
|
||||
/* broadcast capability */
|
||||
netif->flags = NETIF_FLAG_BROADCAST /* | NETIF_FLAG_LOWPAN6 */;
|
||||
|
||||
@@ -417,7 +417,7 @@ rfc7668_if_init(struct netif *netif)
|
||||
MIB2_INIT_NETIF(netif, snmp_ifType_other, 0);
|
||||
|
||||
/* maximum transfer unit, set according to RFC7668 ch2.4 */
|
||||
netif->mtu = 1280;
|
||||
netif->mtu = IP6_MIN_MTU_LENGTH;
|
||||
|
||||
/* no flags set (no broadcast, ethernet,...)*/
|
||||
netif->flags = 0;
|
||||
|
||||
Reference in New Issue
Block a user