]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/ipmroute.c
netlink route attribute cleanup
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 24 Feb 2017 16:56:38 +0000 (08:56 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 24 Feb 2017 16:56:38 +0000 (08:56 -0800)
commit9f1370c0e5aad7bd7b2abc72445ff3f7f87a6368
tree3fb2f4aef752a1545dc4722707df9b2631c539b1
parente37d706b56bb6cfe6854b96a2ac9eedcebb38bdf
netlink route attribute cleanup

Use the new helper functions rta_getattr_u* instead of direct
cast of RTA_DATA().  Where RTA_DATA() is a structure, then remove
the unnecessary cast since RTA_DATA() is void *

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
15 files changed:
ip/ipaddress.c
ip/iplink_can.c
ip/ipmroute.c
ip/ipprefix.c
ip/iproute.c
ip/iproute_lwtunnel.c
ip/ipxfrm.c
ip/link_iptnl.c
ip/link_vti.c
ip/link_vti6.c
ip/xfrm_monitor.c
ip/xfrm_policy.c
ip/xfrm_state.c
misc/ss.c
tc/f_route.c