Adlink_vlan_member_add (), Adlink_vlan_member_del (), Adlink_port_default_vlan_set () – ADLINK aTCA-N700 User Manual

Page 17

Advertising
background image

Switch Manager API Programming Guide

17

PARAMETERS

vlan

[IN] The VLAN ID to be destroyed;

RETURN

See the description of status_t in Section 1.

adlink_vlan_member_add ()

adlink_vlan_member_del ()

PROTOTYPE

status_t adlink_vlan_member_add (int vlan, UINT32 port, UINT32 mode);

status_t adlink_vlan_member_del (int vlan, UINT32 port);

DESCRIPTION

These two functions are used to add port into or remove port from a VLAN.

PARAMETERS

vlan

[IN] The VLAN ID in which port member is configured.

port

[IN] Port ID to be added/removed.

mode

[IN] Port is tagged or untagged in the VLAN. Use ‘VLAN_MODE_TAGGED’ or

‘VLAN_MODE_UNTAGGED’

RETURN

See the description of status_t in Section 1.

adlink_port_default_vlan_set ()

PPROTOTYE

status_t adlink_port_default_vlan_set (int vlan, UINT32 port);

DESCRIPTION

This function is used to assign a port’s default VLAN tag for untagged packets.

PARAMETERS

vlan

[IN] The default VLAN ID of a port;

port

[IN] The port ID which will be assigned a default VLAN tag;

RETURN

Advertising