mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-27 03:44:44 +08:00
a2f7934dd0
Introduce new option -c[ompressvlans] to request vlan ranges from kernel (pls suggest better option names if this does not look ok) $bridge vlan show port vlan ids dummy0 1 PVID Egress Untagged dummy1 1 PVID Egress Untagged 2 3 4 5 6 7 9 10 12 br0 1 PVID Egress Untagged $bridge help Usage: bridge [ OPTIONS ] OBJECT { COMMAND | help } where OBJECT := { link | fdb | mdb | vlan | monitor } OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -o[neline] | -t[imestamp] | -n[etns] name | -c[ompressvlans] } $bridge -c vlan show port vlan ids dummy0 1 PVID Egress Untagged dummy1 1 PVID Egress Untagged 2-7 9-10 12 br0 1 PVID Egress Untagged Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
21 lines
656 B
C
21 lines
656 B
C
extern int print_linkinfo(const struct sockaddr_nl *who,
|
|
struct nlmsghdr *n,
|
|
void *arg);
|
|
extern int print_fdb(const struct sockaddr_nl *who,
|
|
struct nlmsghdr *n, void *arg);
|
|
extern int print_mdb(const struct sockaddr_nl *who,
|
|
struct nlmsghdr *n, void *arg);
|
|
|
|
extern int do_fdb(int argc, char **argv);
|
|
extern int do_mdb(int argc, char **argv);
|
|
extern int do_monitor(int argc, char **argv);
|
|
extern int do_vlan(int argc, char **argv);
|
|
extern int do_link(int argc, char **argv);
|
|
|
|
extern int preferred_family;
|
|
extern int show_stats;
|
|
extern int show_details;
|
|
extern int timestamp;
|
|
extern int compress_vlans;
|
|
extern struct rtnl_handle rth;
|