From 04dcd12c91eba56dc931f0648c5ec9abd65f23f7 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 9 Apr 2013 14:19:13 +0000 Subject: add portmap support to userland Signed-off-by: John Crispin SVN-Revision: 36284 --- package/network/config/swconfig/src/swlib.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'package/network/config/swconfig/src/swlib.h') diff --git a/package/network/config/swconfig/src/swlib.h b/package/network/config/swconfig/src/swlib.h index 02fa456..016f74b 100644 --- a/package/network/config/swconfig/src/swlib.h +++ b/package/network/config/swconfig/src/swlib.h @@ -109,6 +109,7 @@ enum swlib_port_flags { struct switch_dev; struct switch_attr; struct switch_port; +struct switch_port_map; struct switch_val; struct uci_package; @@ -123,6 +124,7 @@ struct switch_dev { struct switch_attr *ops; struct switch_attr *port_ops; struct switch_attr *vlan_ops; + struct switch_portmap *maps; struct switch_dev *next; void *priv; }; @@ -154,12 +156,23 @@ struct switch_port { unsigned int flags; }; +struct switch_portmap { + unsigned int virt; + const char *segment; +}; + /** * swlib_list: list all switches */ void swlib_list(void); /** + * swlib_print_portmap: get portmap + * @dev: switch device struct + */ +void swlib_print_portmap(struct switch_dev *dev, char *segment); + +/** * swlib_connect: connect to the switch through netlink * @name: name of the ethernet interface, * -- cgit v1.1