ipneigh: Print neighbour offload indication
Print the offload indication in case it is set on the neighbour. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David Ahern <dsahern@gmail.com>
This commit is contained in:
parent
188c7fe6ea
commit
185ba5e2d4
|
|
@ -384,6 +384,9 @@ int print_neigh(struct nlmsghdr *n, void *arg)
|
||||||
if (r->ndm_flags & NTF_EXT_LEARNED)
|
if (r->ndm_flags & NTF_EXT_LEARNED)
|
||||||
print_null(PRINT_ANY, "extern_learn", " %s ", "extern_learn");
|
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 (show_stats) {
|
||||||
if (tb[NDA_CACHEINFO])
|
if (tb[NDA_CACHEINFO])
|
||||||
print_cacheinfo(RTA_DATA(tb[NDA_CACHEINFO]));
|
print_cacheinfo(RTA_DATA(tb[NDA_CACHEINFO]));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue