]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/iplink_geneve.c
ip/tunnel: Simplify and unify tos printing
authorSerhey Popovych <serhe.popovych@gmail.com>
Thu, 18 Jan 2018 14:04:30 +0000 (16:04 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 19 Jan 2018 00:34:40 +0000 (16:34 -0800)
commit3caa526c7b2b0a41b04b4c8278374df0e81e2ad0
tree8339fb02633fa1be3608a4d0e090d5e03ac65246
parent375560c4ab61cae567afbb9a64036a009cfeaecc
ip/tunnel: Simplify and unify tos printing

For ip tunnels tos can be 0 when not configured, 1 when
inherited from encapsulated packet and rest specifying
diffserv (rfc2474) or tos (rfc1349) bits. It is stored
in packet tos/diffserv field and returned in tos
netlink attribute to userspace.

Simplify and unify tos printing by using print_0xhex()
and print_string() instead of fprintf() to output values.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/iplink_geneve.c
ip/iplink_vxlan.c
ip/link_gre.c
ip/link_iptnl.c