bridge: fdb: print NDA_SRC_VNI if available
Subsystems (2)
PATCH 1/1 bridge: fdb: print NDA_SRC_VNI if available
From: Roopa Prabhu <[email protected]>
Signed-off-by Roopa Prabhu <[email protected]>
--- bridge/fdb.c | 9 +++++++++ 1 file changed, 9 insertions(+)
bridge/fdb.c +9 -0
@@ -204,6 +204,15 @@ int print_fdb(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) rta_getattr_u32(tb[NDA_VNI])); } +if (tb[NDA_SRC_VNI ]) { +if (jw_global) +jsonw_uint_field (jw_global,"src_vni" , +rta_getattr_u32 (tb[NDA_SRC_VNI ])); +else +fprintf (fp,"src_vni %d " , +rta_getattr_u32 (tb[NDA_SRC_VNI ])); + } +if (tb[NDA_IFINDEX ]) {unsigned int ifindex =rta_getattr_u32 (tb[NDA_IFINDEX ]);
Signature · 1 line
2.1.4
Quoted 3 lines · On Thu, 26 Oct 2017 10:12:55 -0700 Roopa Prabhu <[email protected]>…
From: Roopa Prabhu <[email protected]>
Signed-off-by Roopa Prabhu <[email protected]>
In general, this looks ok and I will apply it.
But why is there no ability to set source vni? The kernel accepts it as a parameter to vxlan, but there is no option to set it with ip command when creating vxlan.