mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-23 23:40:54 +00:00
link_gre6: Print the tunnel's tclass setting
Print the value analogous to flowlabel. While being at it, also break the overlong lines to not exceed 80 characters boundary. Signed-off-by: Phil Sutter <phil@nwl.cc>
This commit is contained in:
parent
e7fefb3214
commit
50f81afd4d
@ -462,7 +462,14 @@ static void gre_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
|
||||
if (flags & IP6_TNL_F_USE_ORIG_FLOWLABEL)
|
||||
fprintf(f, "flowlabel inherit ");
|
||||
else
|
||||
fprintf(f, "flowlabel 0x%05x ", ntohl(flowinfo & IP6_FLOWINFO_FLOWLABEL));
|
||||
fprintf(f, "flowlabel 0x%05x ",
|
||||
ntohl(flowinfo & IP6_FLOWINFO_FLOWLABEL));
|
||||
|
||||
if (flags & IP6_TNL_F_USE_ORIG_TCLASS)
|
||||
fprintf(f, "tclass inherit ");
|
||||
else
|
||||
fprintf(f, "tclass 0x%02x ",
|
||||
ntohl(flowinfo & IP6_FLOWINFO_TCLASS) >> 20);
|
||||
|
||||
if (flags & IP6_TNL_F_RCV_DSCP_COPY)
|
||||
fprintf(f, "dscp inherit ");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user