From: Ido Schimmel Date: Thu, 3 Aug 2017 06:13:55 +0000 (+0300) Subject: iproute: Display offload indication per-nexthop X-Git-Tag: v4.15.0~207^2~66 X-Git-Url: https://git.proxmox.com/?p=mirror_iproute2.git;a=commitdiff_plain;h=4b3409d8631490a3cedc336239c700add78042ec iproute: Display offload indication per-nexthop Since kernel commit 475abbf1ef67 ("ipv4: fib: Set offload indication according to nexthop flags") offload indication is reported on a per-nexthop basis. Adjust iproute2 to display it. Signed-off-by: Ido Schimmel Reviewed-by: Jiri Pirko Acked-by: David Ahern --- diff --git a/ip/iproute.c b/ip/iproute.c index cb695ad4..39af38cf 100644 --- a/ip/iproute.c +++ b/ip/iproute.c @@ -696,6 +696,8 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) fprintf(fp, "onlink "); if (nh->rtnh_flags & RTNH_F_PERVASIVE) fprintf(fp, "pervasive "); + if (nh->rtnh_flags & RTNH_F_OFFLOAD) + fprintf(fp, "offload "); if (nh->rtnh_flags & RTNH_F_LINKDOWN) fprintf(fp, "linkdown "); len -= NLMSG_ALIGN(nh->rtnh_len);