OpenNSL API Guide and Reference Manual
Data Fields
opennsl_l2_cache_addr_s Struct Reference

Device-independent L2 cache address structure. More...

#include <l2.h>

Data Fields

opennsl_module_t dest_modid
 Switch destination module ID.
 
opennsl_port_t dest_port
 Switch destination port.
 
opennsl_pbmp_t dest_ports
 Destination ports for Multiport L2 address forwarding.
 
opennsl_trunk_t dest_trunk
 Switch destination trunk ID.
 
opennsl_if_t encap_id
 Encapsulation index.
 
opennsl_ethertype_t ethertype
 Ethertype to match.
 
opennsl_ethertype_t ethertype_mask
 Mask.
 
uint32 flags
 OPENNSL_L2_CACHE_xxx flags.
 
opennsl_multicast_t group
 Flood domain for L2CP.
 
int lookup_class
 Classification class ID.
 
opennsl_mac_t mac
 Destination MAC address to match.
 
opennsl_mac_t mac_mask
 MAC address mask.
 
int prio
 Internal priority, use -1 to not set.
 
opennsl_port_t src_port
 Ingress port to match (network switch).
 
opennsl_port_t src_port_mask
 Ingress port mask (must be 0 if not network switch).
 
uint32 station_flags
 OPENNSL_L2_STATION_xxx flags.
 
uint8 subtype
 Slow protocol subtype to match.
 
opennsl_vlan_t vlan
 VLAN to match.
 
opennsl_vlan_t vlan_mask
 VLAN mask.
 

Detailed Description

Device-independent L2 cache address structure.

Definition at line 85 of file l2.h.

Field Documentation

opennsl_module_t opennsl_l2_cache_addr_s::dest_modid

Switch destination module ID.

Definition at line 96 of file l2.h.

opennsl_port_t opennsl_l2_cache_addr_s::dest_port

Switch destination port.

Definition at line 97 of file l2.h.

opennsl_pbmp_t opennsl_l2_cache_addr_s::dest_ports

Destination ports for Multiport L2 address forwarding.

Definition at line 100 of file l2.h.

opennsl_trunk_t opennsl_l2_cache_addr_s::dest_trunk

Switch destination trunk ID.

Definition at line 98 of file l2.h.

opennsl_if_t opennsl_l2_cache_addr_s::encap_id

Encapsulation index.

Definition at line 104 of file l2.h.

opennsl_ethertype_t opennsl_l2_cache_addr_s::ethertype

Ethertype to match.

Definition at line 106 of file l2.h.

opennsl_ethertype_t opennsl_l2_cache_addr_s::ethertype_mask

Mask.

Definition at line 107 of file l2.h.

uint32 opennsl_l2_cache_addr_s::flags

OPENNSL_L2_CACHE_xxx flags.

Definition at line 86 of file l2.h.

opennsl_multicast_t opennsl_l2_cache_addr_s::group

Flood domain for L2CP.

Definition at line 105 of file l2.h.

int opennsl_l2_cache_addr_s::lookup_class

Classification class ID.

Definition at line 102 of file l2.h.

opennsl_mac_t opennsl_l2_cache_addr_s::mac

Destination MAC address to match.

Definition at line 88 of file l2.h.

opennsl_mac_t opennsl_l2_cache_addr_s::mac_mask

MAC address mask.

Definition at line 89 of file l2.h.

int opennsl_l2_cache_addr_s::prio

Internal priority, use -1 to not set.

Definition at line 99 of file l2.h.

opennsl_port_t opennsl_l2_cache_addr_s::src_port

Ingress port to match (network switch).

Definition at line 92 of file l2.h.

opennsl_port_t opennsl_l2_cache_addr_s::src_port_mask

Ingress port mask (must be 0 if not network switch).

Definition at line 94 of file l2.h.

uint32 opennsl_l2_cache_addr_s::station_flags

OPENNSL_L2_STATION_xxx flags.

Definition at line 87 of file l2.h.

uint8 opennsl_l2_cache_addr_s::subtype

Slow protocol subtype to match.

Definition at line 103 of file l2.h.

opennsl_vlan_t opennsl_l2_cache_addr_s::vlan

VLAN to match.

Definition at line 90 of file l2.h.

opennsl_vlan_t opennsl_l2_cache_addr_s::vlan_mask

VLAN mask.

Definition at line 91 of file l2.h.


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