OpenNSL API Guide and Reference Manual
Data Fields
opennsl_l2_addr_s Struct Reference

Device-independent L2 address structure. More...

#include <l2.h>

Data Fields

uint32 flags
 OPENNSL_L2_xxx flags.
 
opennsl_multicast_t l2mc_group
 XGS: index in L2MC table.
 
opennsl_mac_t mac
 802.3 MAC address.
 
int modid
 XGS: modid.
 
int port
 Zero-based port number.
 
uint32 reserved1
 
int reserved10
 
int reserved11
 
uint32 reserved12
 
uint32 reserved13
 
opennsl_flow_logical_field_t reserved14 [OPENNSL_FLOW_MAX_NOF_LOGICAL_FIELDS]
 
uint32 reserved15
 
opennsl_pbmp_t reserved16
 
opennsl_tsn_flowset_t reserved17
 
opennsl_tsn_sr_flowset_t reserved18
 
opennsl_policer_t reserved19
 
uint32 reserved2
 
opennsl_tsn_pri_map_t reserved20
 
opennsl_cos_t reserved3
 
opennsl_cos_t reserved4
 
opennsl_if_t reserved5
 
opennsl_pbmp_t reserved6
 
int reserved7
 
int reserved8
 
opennsl_fabric_distribution_t reserved9
 
opennsl_trunk_t tgid
 Trunk group ID.
 
opennsl_vlan_t vid
 VLAN identifier.
 

Detailed Description

Device-independent L2 address structure.

Definition at line 49 of file l2.h.

Field Documentation

uint32 opennsl_l2_addr_s::flags
opennsl_multicast_t opennsl_l2_addr_s::l2mc_group

XGS: index in L2MC table.

For SBX chips it is the Multicast Group index

Definition at line 60 of file l2.h.

Referenced by example_l2_entry_add(), example_setup_mac_forwarding(), and example_vxlan().

opennsl_mac_t opennsl_l2_addr_s::mac

802.3 MAC address.

Definition at line 53 of file l2.h.

Referenced by _opennsl_l2_traverse_cb().

int opennsl_l2_addr_s::modid

XGS: modid.

Definition at line 56 of file l2.h.

int opennsl_l2_addr_s::port
uint32 opennsl_l2_addr_s::reserved1

Definition at line 51 of file l2.h.

int opennsl_l2_addr_s::reserved10

Definition at line 67 of file l2.h.

int opennsl_l2_addr_s::reserved11

Definition at line 68 of file l2.h.

uint32 opennsl_l2_addr_s::reserved12

Definition at line 69 of file l2.h.

uint32 opennsl_l2_addr_s::reserved13

Definition at line 70 of file l2.h.

Definition at line 71 of file l2.h.

uint32 opennsl_l2_addr_s::reserved15

Definition at line 72 of file l2.h.

opennsl_pbmp_t opennsl_l2_addr_s::reserved16

Definition at line 73 of file l2.h.

opennsl_tsn_flowset_t opennsl_l2_addr_s::reserved17

Definition at line 74 of file l2.h.

opennsl_tsn_sr_flowset_t opennsl_l2_addr_s::reserved18

Definition at line 75 of file l2.h.

opennsl_policer_t opennsl_l2_addr_s::reserved19

Definition at line 76 of file l2.h.

uint32 opennsl_l2_addr_s::reserved2

Definition at line 52 of file l2.h.

opennsl_tsn_pri_map_t opennsl_l2_addr_s::reserved20

Definition at line 77 of file l2.h.

opennsl_cos_t opennsl_l2_addr_s::reserved3

Definition at line 58 of file l2.h.

opennsl_cos_t opennsl_l2_addr_s::reserved4

Definition at line 59 of file l2.h.

opennsl_if_t opennsl_l2_addr_s::reserved5

Definition at line 62 of file l2.h.

opennsl_pbmp_t opennsl_l2_addr_s::reserved6

Definition at line 63 of file l2.h.

int opennsl_l2_addr_s::reserved7

Definition at line 64 of file l2.h.

int opennsl_l2_addr_s::reserved8

Definition at line 65 of file l2.h.

opennsl_fabric_distribution_t opennsl_l2_addr_s::reserved9

Definition at line 66 of file l2.h.

opennsl_trunk_t opennsl_l2_addr_s::tgid

Trunk group ID.

Definition at line 57 of file l2.h.

opennsl_vlan_t opennsl_l2_addr_s::vid

VLAN identifier.

Definition at line 54 of file l2.h.

Referenced by _opennsl_l2_traverse_cb(), and example_l2_addr_add().


The documentation for this struct was generated from the following file: