]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/link_gre6.c
ip6/tunnel: Unify tclass printing
authorSerhey Popovych <serhe.popovych@gmail.com>
Wed, 10 Jan 2018 15:53:11 +0000 (17:53 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 10 Jan 2018 16:06:12 +0000 (08:06 -0800)
commit090524f8995a56ed45734376a9eab6dc7803aa04
treeba496be5db3765e751fc8b6daaef2a885b794a70
parent4dc6665b6becc5666672d63e9ad6bd8a6e227d34
ip6/tunnel: Unify tclass printing

Use @s2 buffer to store string representation of
tclass and get rid of extra SPRINT_BUF(): no
need to preserve @s2 contents for later.

Use print_string(PRINT_ANY, ...) with prepared by
snprintf() string for both PRINT_JSON and PRINT_FP
cases.

While there use __u32 for flowinfo in link_gre6.c
and check for IFLA_GRE_FLOWINFO attribute presense.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/link_gre6.c
ip/link_ip6tnl.c