1 #define MDB_RTA(r) \ 2 ((struct rtattr *)(((char *)(r)) + RTA_ALIGN(sizeof(struct br_mdb_entry)))) 3 4 #define MDB_RTR_RTA(r) \ 5 ((struct rtattr *)(((char *)(r)) + RTA_ALIGN(sizeof(__u32)))) 6 7 extern void print_vlan_info(FILE *fp, struct rtattr *tb, int ifindex); 8 extern int print_linkinfo(const struct sockaddr_nl *who, 9 struct nlmsghdr *n, 10 void *arg); 11 extern int print_fdb(const struct sockaddr_nl *who, 12 struct nlmsghdr *n, void *arg); 13 extern int print_mdb(const struct sockaddr_nl *who, 14 struct nlmsghdr *n, void *arg); 15 16 extern int do_fdb(int argc, char **argv); 17 extern int do_mdb(int argc, char **argv); 18 extern int do_monitor(int argc, char **argv); 19 extern int do_vlan(int argc, char **argv); 20 extern int do_link(int argc, char **argv); 21 22 extern int preferred_family; 23 extern int show_stats; 24 extern int show_details; 25 extern int timestamp; 26 extern int compress_vlans; 27 extern int json_output; 28 extern struct rtnl_handle rth; 29