diff options
Diffstat (limited to 'networking/libiproute/iptunnel.c')
-rw-r--r-- | networking/libiproute/iptunnel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c index b54c3c53f..a65d5e579 100644 --- a/networking/libiproute/iptunnel.c +++ b/networking/libiproute/iptunnel.c | |||
@@ -432,13 +432,12 @@ static void print_tunnel(struct ip_tunnel_parm *p) | |||
432 | else | 432 | else |
433 | printf(" ttl inherit "); | 433 | printf(" ttl inherit "); |
434 | if (p->iph.tos) { | 434 | if (p->iph.tos) { |
435 | SPRINT_BUF(b1); | ||
436 | printf(" tos"); | 435 | printf(" tos"); |
437 | if (p->iph.tos & 1) | 436 | if (p->iph.tos & 1) |
438 | printf(" inherit"); | 437 | printf(" inherit"); |
439 | if (p->iph.tos & ~1) | 438 | if (p->iph.tos & ~1) |
440 | printf("%c%s ", p->iph.tos & 1 ? '/' : ' ', | 439 | printf("%c%s ", p->iph.tos & 1 ? '/' : ' ', |
441 | rtnl_dsfield_n2a(p->iph.tos & ~1, b1)); | 440 | rtnl_dsfield_n2a(p->iph.tos & ~1)); |
442 | } | 441 | } |
443 | if (!(p->iph.frag_off & htons(IP_DF))) | 442 | if (!(p->iph.frag_off & htons(IP_DF))) |
444 | printf(" nopmtudisc"); | 443 | printf(" nopmtudisc"); |