Functions, Adlink_vlan_mac_t, Adlink_vlan_info_get () – ADLINK aTCA-N700 User Manual

Page 15

Advertising
background image

Switch Manager API Programming Guide

15

UINT8

created;

/*whether

it

is

created

on

hardware*/

UINT8

rsv1[2];

/*for

align

purpose*/

UINT32 pbmp;

/*port bitmap in this vlan*/

UINT32 untag_pbmp;

/*port bitmap of untagged ports*/

UINT32 pvid_pbmp;

/*port bitmap take VID as default vlan*/

char name[MAX_VLAN_NAME_SIZE]; /*vlan name. 31 characters at maxmium*/

}adlink_vlan_info_t;

Define the entry format of port based VLAN table.

adlink_vlan_mac_t

typedef struct adlink_vlan_mac_s {

UINT8 valid; /*in using or not. VALID/INVALID*/

UINT8 cos; /*priority value. 0-7*/

UINT8 mac[MAC_SIZE]; /*MAC address*/

UINT16 vid; /*VLAN id. 1-4094*/

UINT8 rsv[2]; /*reserved*/

}adlink_vlan_mac_t;

Define the entry format of MAC based VLAN table.

Functions

adlink_vlan_info_get ()

PROTOTYPE

status_t adlink_vlan_info_get (int vlan, adlink_vlan_info_t *info);

DESCRIPTION

This function is used to get port based VLAN information.

PARAMETERS

vlan

[IN] The VLAN ID to be configed;

info

[OUT]

VLAN

information;

RETURN

See the description of status_t in Section 1.

Advertising