| 1 |
/* SPDX-License-Identifier: GPL-2.0 */ |
| 2 |
|
| 3 |
#define MDB_RTA(r) \ |
| 4 |
((struct rtattr *)(((char *)(r)) + RTA_ALIGN(sizeof(struct br_mdb_entry)))) |
| 5 |
|
| 6 |
#define MDB_RTR_RTA(r) \ |
| 7 |
((struct rtattr *)(((char *)(r)) + RTA_ALIGN(sizeof(__u32)))) |
| 8 |
|
| 9 |
int print_linkinfo(struct nlmsghdr *n, void *arg); |
| 10 |
int print_mdb_mon(struct nlmsghdr *n, void *arg); |
| 11 |
int print_fdb(struct nlmsghdr *n, void *arg); |
| 12 |
void print_stp_state(__u8 state); |
| 13 |
int parse_stp_state(const char *arg); |
| 14 |
int print_vlan_rtm(struct nlmsghdr *n, void *arg, bool monitor, |
| 15 |
bool global_only); |
| 16 |
int print_vnifilter_rtm(struct nlmsghdr *n, void *arg); |
| 17 |
void br_print_router_port_stats(struct rtattr *pattr); |
| 18 |
void print_headers(FILE *fp, const char *label); |
| 19 |
|
| 20 |
int do_fdb(int argc, char **argv); |
| 21 |
int do_mdb(int argc, char **argv); |
| 22 |
int do_monitor(int argc, char **argv); |
| 23 |
int do_mst(int argc, char **argv); |
| 24 |
int do_vlan(int argc, char **argv); |
| 25 |
int do_link(int argc, char **argv); |
| 26 |
int do_vni(int argc, char **argv); |
| 27 |
|
| 28 |
extern int preferred_family; |
| 29 |
extern int show_stats; |
| 30 |
extern int show_details; |
| 31 |
extern int timestamp; |
| 32 |
extern int compress_vlans; |
| 33 |
extern int json; |
| 34 |
extern struct rtnl_handle rth; |