From: Ido Schimmel Date: Thu, 18 Apr 2019 06:44:05 +0000 (+0000) Subject: ipneigh: Print neighbour offload indication X-Git-Tag: v5.2.0~45^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=185ba5e2d4cc5e033ce0bdfb45596783a9610ba0;p=thirdparty%2Fiproute2.git ipneigh: Print neighbour offload indication Print the offload indication in case it is set on the neighbour. Signed-off-by: Ido Schimmel Signed-off-by: David Ahern --- diff --git a/ip/ipneigh.c b/ip/ipneigh.c index 88596245a..27986ff7a 100644 --- a/ip/ipneigh.c +++ b/ip/ipneigh.c @@ -384,6 +384,9 @@ int print_neigh(struct nlmsghdr *n, void *arg) if (r->ndm_flags & NTF_EXT_LEARNED) print_null(PRINT_ANY, "extern_learn", " %s ", "extern_learn"); + if (r->ndm_flags & NTF_OFFLOADED) + print_null(PRINT_ANY, "offload", " %s", "offload"); + if (show_stats) { if (tb[NDA_CACHEINFO]) print_cacheinfo(RTA_DATA(tb[NDA_CACHEINFO]));