diff --git a/bridge/fdb.c b/bridge/fdb.c index a71a78f2..e5cebf9b 100644 --- a/bridge/fdb.c +++ b/bridge/fdb.c @@ -261,6 +261,10 @@ int print_fdb(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) jsonw_string(jw_global, "router"); } if (r->ndm_flags & NTF_EXT_LEARNED) { + start_json_fdb_flags_array(&fdb_flags); + jsonw_string(jw_global, "extern_learn"); + } + if (r->ndm_flags & NTF_OFFLOADED) { start_json_fdb_flags_array(&fdb_flags); jsonw_string(jw_global, "offload"); } @@ -280,6 +284,8 @@ int print_fdb(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) if (r->ndm_flags & NTF_ROUTER) fprintf(fp, "router "); if (r->ndm_flags & NTF_EXT_LEARNED) + fprintf(fp, "extern_learn "); + if (r->ndm_flags & NTF_OFFLOADED) fprintf(fp, "offload "); if (tb[NDA_MASTER]) { fprintf(fp, "master %s ", diff --git a/include/linux/neighbour.h b/include/linux/neighbour.h index f3d16dbe..3199d289 100644 --- a/include/linux/neighbour.h +++ b/include/linux/neighbour.h @@ -41,6 +41,7 @@ enum { #define NTF_MASTER 0x04 #define NTF_PROXY 0x08 /* == ATF_PUBL */ #define NTF_EXT_LEARNED 0x10 +#define NTF_OFFLOADED 0x20 #define NTF_ROUTER 0x80 /*