net: ipv6: Add sysctl entry to disable MTU updates from RA
Subsystems (4)
PATCH v3 1/1 net: ipv6: Add sysctl entry to disable MTU updates from RA
The kernel forcefully applies MTU values received in router advertisements provided the new MTU is less than the current. This behavior is undesirable when the user space is managing the MTU. Instead a sysctl flag 'accept_ra_mtu' is introduced such that the user space can control whether or not RA provided MTU updates should be applied. The default behavior is unchanged; user space must explicitly set this flag to 0 for RA MTUs to be ignored.
--- Documentation/networking/ip-sysctl.txt | 7 +++++++ include/linux/ipv6.h | 1 + include/uapi/linux/ipv6.h | 1 + net/ipv6/addrconf.c | 10 ++++++++++ net/ipv6/ndisc.c | 2 +- 5 files changed, 20 insertions(+), 1 deletion(-)
Documentation/networking/ip-sysctl.txt +7 -0
@@ -1287,6 +1287,13 @@ accept_ra_rtr_pref - BOOLEAN Functional default: enabled if accept_ra is enabled. disabled if accept_ra is disabled. +accept_ra_mtu - BOOLEAN + Apply the MTU value specified in RA option 5 (RFC4861). If + disabled, the MTU specified in the RA will be ignored. + + Functional default: enabled if accept_ra is enabled. + disabled if accept_ra is disabled. + accept_redirects - BOOLEAN Accept Redirects.
include/linux/ipv6.h +1 -0
@@ -52,6 +52,7 @@ struct ipv6_devconf {__s32 force_tllao;__s32 ndisc_notify;__s32 suppress_frag_ndisc; +__s32 accept_ra_mtu;void *sysctl; };
include/uapi/linux/ipv6.h +1 -0
@@ -169,6 +169,7 @@ enum {DEVCONF_SUPPRESS_FRAG_NDISC ,DEVCONF_ACCEPT_RA_FROM_LOCAL ,DEVCONF_USE_OPTIMISTIC , +DEVCONF_ACCEPT_RA_MTU , DEVCONF_MAX };
net/ipv6/addrconf.c +10 -0
@@ -201,6 +201,7 @@ static struct ipv6_devconf ipv6_devconf __read_mostly = { .disable_ipv6 = 0, .accept_dad = 1, .suppress_frag_ndisc = 1, + .accept_ra_mtu = 1, };static struct ipv6_devconf ipv6_devconf_dflt__read_mostly = {
@@ -238,6 +239,7 @@ static struct ipv6_devconf ipv6_devconf_dflt __read_mostly = { .disable_ipv6 = 0, .accept_dad = 1, .suppress_frag_ndisc = 1, + .accept_ra_mtu = 1, };/* Check if a valid qdisc is available */
@@ -4380,6 +4382,7 @@ static inline void ipv6_store_devconf(struct ipv6_devconf *cnf, array[DEVCONF_NDISC_NOTIFY ] = cnf->ndisc_notify; array[DEVCONF_SUPPRESS_FRAG_NDISC ] = cnf->suppress_frag_ndisc; array[DEVCONF_ACCEPT_RA_FROM_LOCAL ] = cnf->accept_ra_from_local; + array[DEVCONF_ACCEPT_RA_MTU ] = cnf->accept_ra_mtu; }static inline size_t inet6_ifla6_size (void )
@@ -5259,6 +5262,13 @@ static struct addrconf_sysctl_table .proc_handler = proc_dointvec, }, { + .procname = "accept_ra_mtu", + .data = &ipv6_devconf.accept_ra_mtu, + .maxlen = sizeof(int), + .mode = 0644, + .proc_handler = proc_dointvec, + }, + {/* sentinel */ } },
net/ipv6/ndisc.c +1 -1
@@ -1348,7 +1348,7 @@ skip_routeinfo: } } -if (ndopts.nd_opts_mtu) { +if (ndopts.nd_opts_mtu && in6_dev->cnf.accept_ra_mtu) {__be32 n;u32 mtu;
Signature · 2 lines
Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
David Miller
maintainerFrom: Harout Hedeshian <[email protected]>
Date: Tue, 20 Jan 2015 10:06:05 -0700
Quoted 9 lines
The kernel forcefully applies MTU values received in router advertisements provided the new MTU is less than the current. This behavior is undesirable when the user space is managing the MTU. Instead a sysctl flag '
accept_ra_mtu' is introduced such that the user space can control whether or not RA provided MTU updates should be applied. The default behavior is unchanged; user space must explicitly set this flag to 0 for RA MTUs to be ignored.Signed-off-by Harout Hedeshian <[email protected]>
Under what circumstances would userland ignore a router advertized MTU, and are the RFCs ok with this?
Quoted 11 lines · David Miller
From: Harout Hedeshian <[email protected]>
Date: Tue, 20 Jan 2015 10:06:05 -0700Quoted 8 lines
The kernel forcefully applies MTU values received in router advertisements provided the new MTU is less than the current. This behavior is undesirable when the user space is managing the MTU. Instead a sysctl flag '
accept_ra_mtu' is introduced such that the user space can control whether or not RA provided MTU updates should be applied. The default behavior is unchanged; user space must explicitly set this flag to 0 for RA MTUs to be ignored.
Quoted 8 lines
Quoted 1 line
Signed-off-by Harout Hedeshian <[email protected]>Under what circumstances would userland ignore a router advertized MTU, and are the RFCs ok with this?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi,
I don't know if it make sense but I had the same use case when was working on supporting IPv6 infrastructure for home gateway. One of the provider had requirements to have ability set force IPv6 MTU value via TR parameters and disable update it via RA.
Regards,
Quoted 22 lines · Vadim Kochan
Quoted 6 lines · David Miller
From: Harout Hedeshian <[email protected]>
Date: Tue, 20 Jan 2015 10:06:05 -0700Quoted 3 lines
The kernel forcefully applies MTU values received in router advertisements provided the new MTU is less than the current. This behavior is undesirable when the user space is managing the MTU.
Instead
Quoted 2 lines
Quoted 2 lines
a sysctl flag '
accept_ra_mtu' is introduced such that the user space can control whether or not RA provided MTU updates should be applied.The
Quoted 1 line
Quoted 1 line
default behavior is unchanged; user space must explicitly set this
flag
Quoted 9 lines
Quoted 3 lines
to 0 for RA MTUs to be ignored.
Signed-off-by Harout Hedeshian <[email protected]>Under what circumstances would userland ignore a router advertized MTU, and are the RFCs ok with this?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 6 lines
Hi,
I don't know if it make sense but I had the same use case when was working on supporting IPv6 infrastructure for home gateway. One of the provider had requirements to have ability set force IPv6 MTU value via TR parameters and disable update it via RA.
Hi David,
We are optionally allowing the kernel shift this responsibility to the userland. The idea would be that the kernel would ignore it, not so much the userland. Just like Vadim, we may not want to use the MTU value which comes from the network. Instead, we get an MTU value from the cellular modem via configuration message, and that is the MTU we use.
In any case, none of the RFCs state that the kernel must update the MTU and that the userland cannot. In fact, there is no mention of kernel/user space at all in the RFC for this particular RA message. What if someone wants to listen to these RA messages from userland and update the MTU? Surely, that won't violate the RFC. In such a case, the kernel is unnecessarily forcing policy on the user space.
RFC4861 section 4.6.4 defines the MTU update option (RA option 5) for RA messages. I don't see any language where the receiver "MUST" apply this option. It merely states that the MTU value in the RA is "The recommended MTU for the link." The description goes on to point out why this option can be used by the router, but does not specifically enforce it. The only receive action specifically enforced by the RFC is that "This option MUST be silently ignored for other Neighbor Discovery messages."
The risk of not applying the MTU updates is that packet may get dropped if path MTU discovery is disabled or broken on the network. HOWEVER, anyone explicitly setting accept_ra_mtu to 0 is already taking responsibility for enforcing the correct MTU. Since this patch by default does not change the kernel behavior, I don't see it breaking for users who are unaware of this option.
Thanks,
Harout
--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Quoted 29 lines · Harout Hedeshian
Quoted 22 lines · Vadim Kochan
Quoted 6 lines · David Miller
From: Harout Hedeshian <[email protected]>
Date: Tue, 20 Jan 2015 10:06:05 -0700Quoted 3 lines
The kernel forcefully applies MTU values received in router advertisements provided the new MTU is less than the current. This behavior is undesirable when the user space is managing the MTU.
Instead
Quoted 2 lines
Quoted 2 lines
a sysctl flag '
accept_ra_mtu' is introduced such that the user space can control whether or not RA provided MTU updates should be applied.The
Quoted 1 line
Quoted 1 line
default behavior is unchanged; user space must explicitly set this
flag
Quoted 9 lines
Quoted 3 lines
to 0 for RA MTUs to be ignored.
Signed-off-by Harout Hedeshian <[email protected]>Under what circumstances would userland ignore a router advertized MTU, and are the RFCs ok with this?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlQuoted 6 lines
Hi,
I don't know if it make sense but I had the same use case when was working on supporting IPv6 infrastructure for home gateway. One of the provider had requirements to have ability set force IPv6 MTU value via TR parameters and disable update it via RA.
Quoted 7 lines
Hi David,
We are optionally allowing the kernel shift this responsibility to the userland. The idea would be that the kernel would ignore it, not so much the userland. Just like Vadim, we may not want to use the MTU value which comes from the network. Instead, we get an MTU value from the cellular modem via configuration message, and that is the MTU we use.
Are you talking about an ethernet interface exposed by the modem, or a separate network interface connected to a normal LAN? In the modem case, why would the network-provided RA's MTU be incorrect, but the modem's MTU be correct? If the normal LAN case, why would the modem's MTU be correct for a different network that is broadcasting its own RAs? Just curious...
Dan
Quoted 36 lines
In any case, none of the RFCs state that the kernel must update the MTU and that the userland cannot. In fact, there is no mention of kernel/user space at all in the RFC for this particular RA message. What if someone wants to listen to these RA messages from userland and update the MTU? Surely, that won't violate the RFC. In such a case, the kernel is unnecessarily forcing policy on the user space.
RFC4861 section 4.6.4 defines the MTU update option (RA option 5) for RA messages. I don't see any language where the receiver "MUST" apply this option. It merely states that the MTU value in the RA is "The recommended MTU for the link." The description goes on to point out why this option can be used by the router, but does not specifically enforce it. The only receive action specifically enforced by the RFC is that "This option MUST be silently ignored for other Neighbor Discovery messages."
The risk of not applying the MTU updates is that packet may get dropped if path MTU discovery is disabled or broken on the network. HOWEVER, anyone explicitly setting
accept_ra_mtuto 0 is already taking responsibility for enforcing the correct MTU. Since this patch by default does not change the kernel behavior, I don't see it breaking for users who are unaware of this option.Thanks,
Harout--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 51 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dan Williams
Sent: Monday, January 26, 2015 8:04 AM
To: Harout Hedeshian
Cc: David Miller; [email protected]; Vadim Kochan
Subject: Re: [PATCH v3 net-next] net: ipv6: Add sysctl entry to disable MTU updates from RAQuoted 11 lines · Harout Hedeshian
Quoted 10 lines · Vadim Kochan
Quoted 6 lines · David Miller
From: Harout Hedeshian <[email protected]>
Date: Tue, 20 Jan 2015 10:06:05 -0700Quoted 3 lines
The kernel forcefully applies MTU values received in router advertisements provided the new MTU is less than the current. This behavior is undesirable when the user space is managing the MTU.
Instead
Quoted 2 lines
Quoted 2 lines
a sysctl flag '
accept_ra_mtu' is introduced such that the user space can control whether or not RA provided MTU updates should beapplied.
Quoted 18 lines
Quoted 12 lines
The
Quoted 1 line
Quoted 1 line
default behavior is unchanged; user space must explicitly set this
flag
Quoted 9 lines
Quoted 3 lines
to 0 for RA MTUs to be ignored.
Signed-off-by Harout Hedeshian <[email protected]>Under what circumstances would userland ignore a router advertized MTU, and are the RFCs ok with this?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.htmlQuoted 6 lines
Hi,
I don't know if it make sense but I had the same use case when was working on supporting IPv6 infrastructure for home gateway. One of the provider had requirements to have ability set force IPv6 MTU value via TR parameters and disable update it via RA.
Quoted 7 lines
Hi David,
We are optionally allowing the kernel shift this responsibility to the userland. The idea would be that the kernel would ignore it, not so much the userland. Just like Vadim, we may not want to use the MTU value which comes from the network. Instead, we get an MTU value from the cellular modem via configuration message, and that is the MTU we
use.
Quoted 8 lines
Are you talking about an ethernet interface exposed by the modem, or a separate network interface connected to a normal LAN? In the modem case, why would the network-provided RA's MTU be incorrect, but the modem's MTU be correct? If the normal LAN case, why would the modem's MTU be correct for a different network that is broadcasting its own RAs? Just curious...
Dan
Hi Dan,
This is a really good question. In the case of a normal LAN, we will allow the kernel to handle the MTU values as they have been today (basically, keep the accept_ra_mtu=1). The issue is not really about the correctness of the RA MTU value (we assume this value is correct, otherwise we are in serious trouble).The issue is on the modem interfaces. To the modem, each protocol family is its own interface. This analogy breaks down for us in Linux because v4 and v6 are fundamentally the same net_device interface. From what I can tell, there is no /proc/sys/net/ipv4/conf/<dev>/mtu which means that IPv4 will take the MTU value from dev->mtu (see ipv4_mtu() ). In contrast, IPv6 maintains a separate MTU and will apply the RA MTUs such that they are less than the device's MTU (dev->mtu). For consist
ency, we have been asked to always pick the minimum value of the IPv4 and IPv6 MTU, and that will become the overall interface MTU. If the kernel goes and changes the V6 MTU without us knowing, the userland daemon which maintains the MTU parity will be out of sync. We *could* theoretically let the kernel apply RA MTU updates and we listen for netlink events, but that is unnecessarily complicated as we are already listening in multiple places for these MTU updates. Additionally, we have a problem where the default dev->mtu is 1500 bytes. If we have an IPv6-only network, then it is possible that the network will want to use an MTU > 1500 (esp. multimedia optimized carrier networks). Currently, ndisc.c compares the new MTU value with dev->mtu, if bigger, the RA is ignored. I don't see a goo d alternative to this because there is no way for ndisc.c to know what the device's maximum physical capabilities are (or that we even want to use such a large MTU). Because of that, we have to have an out-of-band mechanism to adjust the interface MTU since we know that the hardware is capable of transmitting packets greater than 1500 bytes. Thus, instead of letting the kernel handle RA MTUs in some special circumstances, it is safer and cleaner to disable RA MTUs on the modem interface altogether and let userland pick the correct MTU.
One way to clean up this mess would be to make some changes in the way the kernel handles MTUs.
1. Make dev->mtu actually be the MTU the device is capable. For example, jumbo frame capable devices would set this to 9000 upon enumeration instead of 1500. This value would not be editable from userland. There would no longer be a need for driver to implement the MTU adjustment ndo.
2. *ALL* protocols must maintain their own MTU values. This would mean a new per-device proc entry for IPv4 at a minimum. The defaults of these values can remain 1500.
If we did this, then the kernel can apply RA MTUs > 1500, and we would get it for free (no changes in IPv6 code). IPv4 would be parity with IPv6 in terms of decoupling MTU from dev->mtu. This means userland can completely not care about the IPv6 MTU, and we can push back on the MTU consistency requirement. Of course, this is a pretty drastic change in interpretation of dev->mtu and would break a lot of userland utilities. Or maybe we leave #1 editable in userland so the utilities and IOCTLs still work, however, userland will now have to additionally adjust IPv4 MTU...
If the kernel community likes this approach, I would be happy to upload some patches which creates a new definition for IPv4 MTU. I think #1 will need more discussion.
If v4 and v6 were truly decoupled, then we could get rid of this minimum selection mess and special case handling for large IPv6 MTUs and this patch could go away.
Thanks,
Harout
Quoted 57 lines · Harout Hedeshian
Quoted 57 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dan Williams
Sent: Monday, January 26, 2015 8:04 AM
To: Harout Hedeshian
Cc: David Miller; [email protected]; Vadim Kochan
Subject: Re: [PATCH v3 net-next] net: ipv6: Add sysctl entry to disable MTU updates from RAQuoted 11 lines · Harout Hedeshian
Quoted 10 lines · Vadim Kochan
Quoted 6 lines · David Miller
From: Harout Hedeshian <[email protected]>
Date: Tue, 20 Jan 2015 10:06:05 -0700Quoted 3 lines
The kernel forcefully applies MTU values received in router advertisements provided the new MTU is less than the current. This behavior is undesirable when the user space is managing the MTU.
Instead
Quoted 2 lines
Quoted 2 lines
a sysctl flag '
accept_ra_mtu' is introduced such that the user space can control whether or not RA provided MTU updates should beapplied.
Quoted 18 lines
Quoted 12 lines
The
Quoted 1 line
Quoted 1 line
default behavior is unchanged; user space must explicitly set this
flag
Quoted 9 lines
Quoted 3 lines
to 0 for RA MTUs to be ignored.
Signed-off-by Harout Hedeshian <[email protected]>Under what circumstances would userland ignore a router advertized MTU, and are the RFCs ok with this?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.htmlQuoted 6 lines
Hi,
I don't know if it make sense but I had the same use case when was working on supporting IPv6 infrastructure for home gateway. One of the provider had requirements to have ability set force IPv6 MTU value via TR parameters and disable update it via RA.
Quoted 7 lines
Hi David,
We are optionally allowing the kernel shift this responsibility to the userland. The idea would be that the kernel would ignore it, not so much the userland. Just like Vadim, we may not want to use the MTU value which comes from the network. Instead, we get an MTU value from the cellular modem via configuration message, and that is the MTU we
use.
Are you talking about an ethernet interface exposed by the modem, or a separate network interface connected to a normal LAN? In the modem case, why would the network-provided RA's MTU be incorrect, but the modem's MTU be correct? If the normal LAN case, why would the modem's MTU be correct for a different network that is broadcasting its own RAs? Just curious...
Quoted 5 lines
Quoted 1 line
Dan
Hi Dan,
This is a really good question. In the case of a normal LAN, we will allow the kernel to handle the MTU values as they have been today (basically, keep the accept_ra_mtu=1). The issue is not really about the correctness of the RA MTU value (we assume this value is correct, otherwise we are in serious trouble).The issue is on the modem interfaces. To the modem, each protocol family is its own interface. This analogy breaks down for us in Linux because v4 and v6 are fundamentally the same
net_deviceinterface. From what I can tell, there is no /proc/sys/net/ipv4/conf/<dev>/mtu which means that IPv4 will take the MTU value fromdev->mtu(seeipv4_mtu()). In contrast, IPv6 maintains a separate MTU and will apply the RA MTUs such that they are less than the device's MTU (dev->mtu). For consi
stency, we have been asked to always pick the minimum value of the IPv4 and IPv6 MTU, and that will become the overall interface MTU. If the kernel goes and changes the V6 MTU without us kn! ow!
Quoted 1 line
ing, the userland daemon which maintains the MTU parity will be out of sync. We *could* theoretically let the kernel apply RA MTU updates and we listen for netlink events, but that is unnecessarily complicated as we are already listening in multiple places for these MTU updates. Additionally, we have a problem where the default
dev->mtuis 1500 bytes. If we have an IPv6-only network, then it is possible that the network will want to use an MTU > 1500 (esp. multimedia optimized carrier networks). Currently,ndisc.ccompares the new MTU value withdev->mtu, if bigger, the RA is ignored. I don't see a good alternative to this because there is no way forndisc.cto know what the device's maximum physical capabilities are (or that we even want to use such a large MTU). Because of that, we ha
ve to have an out-of-band mechanism to adjust the interface MTU since we know that the hardware is capable of transmitting packets greater than 1500 bytes. Thus, instead of letting the kern! el!
I believe the IPv4 MTU is taken from the device MTU, eg 'ip link set dev wwp0s26f7u2i8 mtu XXXX'. I believe that's also where the IPv6 MTU is taken from, unless it's set via /proc.
But thanks for the explanation, it makes sense.
Dan
Quoted 23 lines
handle RA MTUs in some special circumstances, it is safer and!
cleaner to disable RA MTUs on the modem interface altogether and let userland pick the correct MTU.One way to clean up this mess would be to make some changes in the way the kernel handles MTUs.
1. Makedev->mtuactually be the MTU the device is capable. For example, jumbo frame capable devices would set this to 9000 upon enumeration instead of 1500. This value would not be editable from userland. There would no longer be a need for driver to implement the MTU adjustment ndo.
2. *ALL* protocols must maintain their own MTU values. This would mean a new per-device proc entry for IPv4 at a minimum. The defaults of these values can remain 1500.If we did this, then the kernel can apply RA MTUs > 1500, and we would get it for free (no changes in IPv6 code). IPv4 would be parity with IPv6 in terms of decoupling MTU from
dev->mtu. This means userland can completely not care about the IPv6 MTU, and we can push back on the MTU consistency requirement. Of course, this is a pretty drastic change in interpretation ofdev->mtuand would break a lot of userland utilities. Or maybe we leave #1 editable in userland so the utilities and IOCTLs still work, however, userland will now have to additionally adjust IPv4 MTU...If the kernel community likes this approach, I would be happy to upload some patches which creates a new definition for IPv4 MTU. I think #1 will need more discussion.
If v4 and v6 were truly decoupled, then we could get rid of this minimum selection mess and special case handling for large IPv6 MTUs and this patch could go away.
Thanks,
Harout--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 11 lines · David Miller
From: Harout Hedeshian <[email protected]>
Date: Tue, 20 Jan 2015 10:06:05 -0700Quoted 8 lines
The kernel forcefully applies MTU values received in router advertisements provided the new MTU is less than the current. This behavior is undesirable when the user space is managing the MTU. Instead a sysctl flag '
accept_ra_mtu' is introduced such that the user space can control whether or not RA provided MTU updates should be applied. The default behavior is unchanged; user space must explicitly set this flag to 0 for RA MTUs to be ignored.
Quoted 4 lines
Quoted 1 line
Signed-off-by Harout Hedeshian <[email protected]>Under what circumstances would userland ignore a router advertized MTU, and are the RFCs ok with this?
Sometimes those advertised MTUs are used to perform DoS attacks / performance-degrading attacks (force generation of fragments e.g.) on hosts. In larger, maybe non-controlled networks, it would be desirable if one could disable acceptance of the MTU option.
Of course, there are similar issues with other options in RAs, too, but mostly they result in more catastrophic connection failures. ;)
Bye,
Hannes
Quoted 2 lines · David Miller
Under what circumstances would userland ignore a router advertized MTU, and are the RFCs ok with this?
RFC 4861 ( https://tools.ietf.org/html/rfc4861#page-54 ) says:
"If the MTU option is present, hosts SHOULD copy the option's value
into LinkMTU so long as the value is greater than or equal to the minimum link MTU [IPv6] and does not exceed the maximum LinkMTU value specified in the link-type-specific document (e.g., [IPv6-ETHER])."
So the RFC acknowledge that there may exist valid reasons in particular circumstances to ignore the MTU option. As others have stated: This might be necessary for DoS prevention, working around bugs in other equipment, etc.
Bjørn
From: Harout Hedeshian <[email protected]>
Date: Tue, 20 Jan 2015 10:06:05 -0700
Quoted 9 lines
The kernel forcefully applies MTU values received in router advertisements provided the new MTU is less than the current. This behavior is undesirable when the user space is managing the MTU. Instead a sysctl flag '
accept_ra_mtu' is introduced such that the user space can control whether or not RA provided MTU updates should be applied. The default behavior is unchanged; user space must explicitly set this flag to 0 for RA MTUs to be ignored.Signed-off-by Harout Hedeshian <[email protected]>
Applied.