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. Signed-off-by: Harout Hedeshian <harouth@codeaurora.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
		
					parent
					
						
							
								46a93af29f
							
						
					
				
			
			
				commit
				
					
						c2943f1453
					
				
			
		
					 5 changed files with 20 additions and 1 deletions
				
			
		|  | @ -169,6 +169,7 @@ enum { | |||
| 	DEVCONF_SUPPRESS_FRAG_NDISC, | ||||
| 	DEVCONF_ACCEPT_RA_FROM_LOCAL, | ||||
| 	DEVCONF_USE_OPTIMISTIC, | ||||
| 	DEVCONF_ACCEPT_RA_MTU, | ||||
| 	DEVCONF_MAX | ||||
| }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Harout Hedeshian
				Harout Hedeshian