struct switch_dev;
struct switch_attr;
struct switch_port;
+struct switch_port_map;
struct switch_val;
struct uci_package;
struct switch_attr *ops;
struct switch_attr *port_ops;
struct switch_attr *vlan_ops;
+ struct switch_portmap *maps;
struct switch_dev *next;
void *priv;
};
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,