You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* get/set VLAN-> port assignments _/
extern int get_vlan_ports(int vlan, struct swconfig_context *ctx, int *count, struct switch_port *_ports );
extern int set_vlan_ports(int vlan, struct swconfig_context _ctx, int count, struct switch_port *_ports);
/*** Switch Port Functions ***/
/* enable/diable switch port */
extern int port_enable(int id, struct swconfig_context *ctx);
extern int port_disable(int id, struct swconfig_context *ctx);
/* set/get switch port untagged */
extern int port_set_untag(int id, struct swconfig_context *ctx, int untag);
extern int port_get_untag(int id, struct swconfig_context *ctx, int *untag);
/* set/get switch port primary vlan id */
extern int port_set_pvid(int id, sw_ctx *ctx, int vlan);
extern int port_get_pvid(int id, sw_ctx *ctx, int *vlan);
/* set/get switch port doubletagging */
extern int port_set_doubletag(int id, struct swconfig_context *ctx);
extern int port_get_doubletag(int id, struct swconfig_context *ctx);
/* set/get switch port HW group: 1 = lan, 0 = wan */
extern int port_set_hwgroup(int id, struct swconfig_context *ctx, int lan);
extern int port_get_hwgroup(int id, struct swconfig_context *ctx, int lan);
/* get switch port link information */
extern int port_get_link(int id, struct swconfig_context *ctx, char *info);
/* get switch port receive good packet count /
extern int port_get_recv_good(int id, struct swconfig_context *ctx, int *count);
/ get switch port receive bad packet count */
extern int port_get_recv_bad(int id, struct swconfig_context *ctx, int *count);
The text was updated successfully, but these errors were encountered:
/* activate changes in HW switch */
extern int switch_apply(struct swconfig_context *ctx);
/* reset hw switch */
extern int switch_reset(struct swconfig_context *ctx);
/* enable switch VLAN mode /
extern int switch_enable_vlans(struct swconfig_context *ctx);
/ disable switch VLAN mode */
extern int switch_disable_vlans(struct swconfig_context *ctx);
/*** VLAN Switch Functions ***/
/* get/set VLAN-> port assignments _/
extern int get_vlan_ports(int vlan, struct swconfig_context *ctx, int *count, struct switch_port *_ports );
extern int set_vlan_ports(int vlan, struct swconfig_context _ctx, int count, struct switch_port *_ports);
/*** Switch Port Functions ***/
/* enable/diable switch port */
extern int port_enable(int id, struct swconfig_context *ctx);
extern int port_disable(int id, struct swconfig_context *ctx);
/* set/get switch port untagged */
extern int port_set_untag(int id, struct swconfig_context *ctx, int untag);
extern int port_get_untag(int id, struct swconfig_context *ctx, int *untag);
/* set/get switch port primary vlan id */
extern int port_set_pvid(int id, sw_ctx *ctx, int vlan);
extern int port_get_pvid(int id, sw_ctx *ctx, int *vlan);
/* set/get switch port doubletagging */
extern int port_set_doubletag(int id, struct swconfig_context *ctx);
extern int port_get_doubletag(int id, struct swconfig_context *ctx);
/* set/get switch port HW group: 1 = lan, 0 = wan */
extern int port_set_hwgroup(int id, struct swconfig_context *ctx, int lan);
extern int port_get_hwgroup(int id, struct swconfig_context *ctx, int lan);
/* get switch port link information */
extern int port_get_link(int id, struct swconfig_context *ctx, char *info);
/* get switch port receive good packet count /
extern int port_get_recv_good(int id, struct swconfig_context *ctx, int *count);
/ get switch port receive bad packet count */
extern int port_get_recv_bad(int id, struct swconfig_context *ctx, int *count);
The text was updated successfully, but these errors were encountered: