iproute2/ip
Hangbin Liu 35b857f9c6 ip/geneve: fix ttl inherit behavior
Currently when we add geneve with "ttl inherit", we only set ttl to 0, which
is actually use whatever default value instead of inherit the inner protocol's
ttl value.

To make a difference with ttl inherit and ttl == 0, we add an attribute
IFLA_GENEVE_TTL_INHERIT in kernel commit 52d0d404d39dd ("geneve: add ttl
inherit support"). Now let's use "ttl inherit" to inherit the inner
protocol's ttl, and use "ttl auto" to means "use whatever default value",
the same behavior with ttl == 0.

v2:
1) remove IFLA_GENEVE_TTL_INHERIT defination in if_link.h as it's already
   updated.
2) Still use addattr8() so we can enable/disable ttl inherit, as Michal
   suggested.

v3: Update man page

Reported-by: Jianlin Shi <jishi@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
2018-10-23 10:53:16 -07:00
..
.gitignore Another .gitignore file. 2006-08-08 12:11:23 -07:00
Makefile ip: add rmnet initial support 2018-06-15 11:15:14 -07:00
ifcfg ifcfg/rtpr: convert to POSIX shell 2018-01-10 08:26:09 -08:00
ila_common.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
ip.c lib: introduce print_nl 2018-09-11 08:29:33 -07:00
ip6tunnel.c utils: Introduce and use nodev() helper routine 2018-03-11 17:58:36 -07:00
ip_common.h iplink: Remove flags argument from iplink_get 2018-10-22 09:45:25 -07:00
ipaddress.c iplink: Remove flags argument from iplink_get 2018-10-22 09:45:25 -07:00
ipaddrlabel.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
ipfou.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
ipila.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
ipl2tp.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
iplink.c iplink: Remove flags argument from iplink_get 2018-10-22 09:45:25 -07:00
iplink_bond.c utils: Introduce and use nodev() helper routine 2018-03-11 17:58:36 -07:00
iplink_bond_slave.c ip: iplink_bond_slave.c: add json output support (info_slave_data) 2017-08-17 18:02:40 -07:00
iplink_bridge.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
iplink_bridge_slave.c bridge: add support for backup port 2018-10-13 19:26:46 -07:00
iplink_can.c iproute: make clang happy 2018-08-30 07:58:09 -07:00
iplink_dummy.c SPDX license identifiers 2017-11-24 12:21:35 -08:00
iplink_geneve.c ip/geneve: fix ttl inherit behavior 2018-10-23 10:53:16 -07:00
iplink_hsr.c ip: iplink_hsr.c: add json output support 2017-08-17 18:02:40 -07:00
iplink_ifb.c SPDX license identifiers 2017-11-24 12:21:35 -08:00
iplink_ipoib.c ip: iplink_ipoib.c: add json output support 2017-08-17 18:02:41 -07:00
iplink_ipvlan.c iplink: add ipvtap support 2018-09-20 17:53:56 -07:00
iplink_macvlan.c ip: link_macvlan.c: add json output support 2017-08-17 18:02:41 -07:00
iplink_netdevsim.c ip: link: add support for netdevsim device type 2018-01-02 20:46:19 -08:00
iplink_nlmon.c SPDX license identifiers 2017-11-24 12:21:35 -08:00
iplink_rmnet.c ip: add rmnet initial support 2018-06-15 11:15:14 -07:00
iplink_team.c SPDX license identifiers 2017-11-24 12:21:35 -08:00
iplink_vcan.c SPDX license identifiers 2017-11-24 12:21:35 -08:00
iplink_vlan.c treewide: Use addattr_nest()/addattr_nest_end() to handle nested attributes 2018-02-02 15:01:09 -08:00
iplink_vrf.c iplink_vrf: Save device index from response for return code 2018-06-01 15:45:09 -04:00
iplink_vxcan.c iplink: Perform most of request buffer setups and checks in iplink_parse() 2018-03-11 17:59:03 -07:00
iplink_vxlan.c vxlan: show correct ttl inherit info 2018-10-04 09:20:45 -07:00
iplink_xdp.c iplink: add support for reporting multiple XDP programs 2018-07-15 13:10:03 -07:00
iplink_xstats.c libnetlink: Rename rtnl_wilddump_stats_req_filter to rtnl_statsdump_req_filter 2018-10-02 18:39:36 -07:00
ipmacsec.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
ipmaddr.c lib: introduce print_nl 2018-09-11 08:29:33 -07:00
ipmonitor.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
ipmroute.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
ipneigh.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
ipnetconf.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
ipnetns.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
ipntable.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
ipprefix.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
iproute.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
iproute_lwtunnel.c Merge branch 'iproute2-master' into iproute2-next 2018-09-20 17:53:27 -07:00
iprule.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
ipseg6.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
iptoken.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
iptunnel.c utils: Introduce and use nodev() helper routine 2018-03-11 17:58:36 -07:00
iptuntap.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
ipvrf.c Drop capabilities if not running ip exec vrf with libcap 2018-03-27 11:48:23 -07:00
ipxfrm.c ip-xfrm: Add support for OUTPUT_MARK 2018-06-18 06:37:00 -07:00
link_gre.c iplink: fix incorrect any address handling for ip tunnels 2018-09-21 11:28:33 -07:00
link_gre6.c iplink: fix incorrect any address handling for ip tunnels 2018-09-21 11:28:33 -07:00
link_ip6tnl.c iplink: fix incorrect any address handling for ip tunnels 2018-09-21 11:28:33 -07:00
link_iptnl.c iplink: fix incorrect any address handling for ip tunnels 2018-09-21 11:28:33 -07:00
link_veth.c iplink: Perform most of request buffer setups and checks in iplink_parse() 2018-03-11 17:59:03 -07:00
link_vti.c iplink: fix incorrect any address handling for ip tunnels 2018-09-21 11:28:33 -07:00
link_vti6.c iplink: fix incorrect any address handling for ip tunnels 2018-09-21 11:28:33 -07:00
routef mark shell scripts +x 2018-01-10 08:23:49 -08:00
routel mark shell scripts +x 2018-01-10 08:23:49 -08:00
rtm_map.c drop unneeded include of syslog.h 2017-11-12 16:22:36 -08:00
rtmon.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
rtpr ifcfg/rtpr: convert to POSIX shell 2018-01-10 08:26:09 -08:00
static-syms.c SPDX license identifiers 2017-11-24 12:21:35 -08:00
tcp_metrics.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
tunnel.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
tunnel.h iptunnel/ip6tunnel: Use netlink to walk through tunnels list 2018-02-07 16:15:42 -08:00
xfrm.h Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
xfrm_monitor.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
xfrm_policy.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
xfrm_state.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00