Wind River Support Network

HomeDefectsLIN7-6541
Fixed

LIN7-6541 : CLONE - IPv4: Router TTL value is applied globally in resource layer (Linux)

Created: Jul 25, 2016    Updated: Sep 8, 2018
Resolved Date: Aug 8, 2016
Found In Version: 7.0
Fix Version: 7.0.0.19
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Kernel

Description

Per namespace is what we want to be able to configure, it’s modelled that way in our product. 
The ttl attribute is located under the Router MO (ManagedElement=1,Transport=X,Router=X). 
When we create a new Router MO it will trigger creation of a new namespace in Linux and 
in the new namespace we want to somehow be able to set ttl, for instance /proc/sys/net/ipv4/ip_default_ttl. 

1.	root@du1:~# ip netns add x 
2.	root@du1:~# ip netns exec x bash 
3.	root@du1:~# cat /proc/sys/net/ipv4/ip_default_ttl 
cat: /proc/sys/net/ipv4/ip_default_ttl: No such file or directory 

BR Fredric 


1.1	Trouble summary and/or commercial effect 
----------------------------------------------------------------------- 
Router TTL value is applied globally in resource layer (Linux). This has the effect that it will not be possible to have different TTL values on different virtual routers. 

The setting for TTL is done by writing to file #define SYSCTL_IPV4_TTL_KEY "/proc/sys/net/ipv4/ip_default_ttl" without changing namespace. This will apply for all routers created because this settings file is globally for all new namespaces created. 
This settings file can't be located after creating namespace so RCS or Windriver maybe have to patch Kernel. 

See function handle_set_ttl(...) in dpm_ifm.c  

Other Downloads


Live chat
Online