OpenNSL API Guide and Reference Manual
Data Fields
opennsl_mirror_destination_s Struct Reference

Mirror destination Structure. More...

#include <mirrorX.h>

Data Fields

uint8 df
 Set the do not fragment bit of IP header in mirror encapsulation.
 
opennsl_ip6_t dst6_addr
 Tunnel destination ip address (IPv6).
 
opennsl_ip_t dst_addr
 Tunnel destination ip address (IPv4).
 
opennsl_mac_t dst_mac
 L2 destination mac address.
 
uint16 egress_packet_copy_size
 If non zero and the packet is copied from the egress, the packet will be truncated to the first packet_copy_size .
 
opennsl_if_t encap_id
 Encapsulation index.
 
uint16 etag_dst_vid
 Extended (destination) port vlan id.
 
uint16 etag_src_vid
 Extended (source) port vlan id.
 
uint32 flags
 See OPENNSL_MIRROR_DEST_xxx flag definitions.
 
uint32 flow_label
 IPv6 header flow label field.
 
opennsl_gport_t gport
 Mirror destination.
 
uint16 gre_protocol
 L3 GRE header protocol.
 
uint8 int_pri
 Internal Priority.
 
opennsl_gport_t mirror_dest_id
 Unique mirror destination and encapsulation identifier.
 
uint16 niv_dst_vif
 Destination Virtual Interface of NIV tag.
 
uint32 niv_flags
 NIV flags OPENNSL_MIRROR_NIV_XXX.
 
uint16 niv_src_vif
 Source Virtual Interface of NIV tag.
 
uint16 packet_copy_size
 If non zero, the copied packet will be truncated to the first packet_copy_size .
 
uint8 pkt_prio
 L2 header PCP.
 
opennsl_policer_t policer_id
 policer_id
 
uint8 recycle_context
 recycle context of egress originating packets
 
int reserved1
 
uint32 reserved10
 
uint32 reserved11
 
int reserved12 [OPENNSL_MIRROR_EXT_STAT_ID_COUNT]
 
uint32 reserved13
 
uint32 reserved14
 
uint32 reserved15
 
opennsl_mirror_pkt_erspan_encap_t reserved16
 
uint16 reserved2
 
uint32 reserved3
 
uint32 reserved4
 
uint32 reserved5
 
uint32 reserved6
 
opennsl_reserved_enum_t reserved7
 
uint8 reserved8
 
uint16 reserved9
 
opennsl_ip6_t src6_addr
 Tunnel source ip address (IPv6).
 
opennsl_ip_t src_addr
 Tunnel source ip address (IPv4).
 
opennsl_mac_t src_mac
 L2 source mac address.
 
int stat_id
 stat_id
 
uint8 tos
 Traffic Class/Tos byte.
 
uint16 tpid
 L2 header outer TPID.
 
opennsl_trill_name_t trill_dst_name
 TRILL destination bridge nickname.
 
int trill_hopcount
 TRILL hop count.
 
opennsl_trill_name_t trill_src_name
 TRILL source bridge nickname.
 
uint8 ttl
 Hop limit.
 
opennsl_if_t tunnel_id
 IP tunnel for encapsulation.
 
uint16 udp_dst_port
 UDP destination port.
 
uint16 udp_src_port
 UDP source port.
 
uint8 version
 IP header version.
 
opennsl_vlan_t vlan_id
 Vlan id.
 

Detailed Description

Mirror destination Structure.

Contains information required for manipulating mirror destinations.

Definition at line 134 of file mirrorX.h.

Field Documentation

uint8 opennsl_mirror_destination_s::df

Set the do not fragment bit of IP header in mirror encapsulation.

Definition at line 191 of file mirrorX.h.

opennsl_ip6_t opennsl_mirror_destination_s::dst6_addr

Tunnel destination ip address (IPv6).

Definition at line 146 of file mirrorX.h.

opennsl_ip_t opennsl_mirror_destination_s::dst_addr

Tunnel destination ip address (IPv4).

Definition at line 144 of file mirrorX.h.

opennsl_mac_t opennsl_mirror_destination_s::dst_mac

L2 destination mac address.

Definition at line 149 of file mirrorX.h.

uint16 opennsl_mirror_destination_s::egress_packet_copy_size

If non zero and the packet is copied from the egress, the packet will be truncated to the first packet_copy_size .

Current supported values for DNX are 0, 256.

Definition at line 185 of file mirrorX.h.

opennsl_if_t opennsl_mirror_destination_s::encap_id

Encapsulation index.

Definition at line 163 of file mirrorX.h.

uint16 opennsl_mirror_destination_s::etag_dst_vid

Extended (destination) port vlan id.

Definition at line 174 of file mirrorX.h.

uint16 opennsl_mirror_destination_s::etag_src_vid

Extended (source) port vlan id.

Definition at line 173 of file mirrorX.h.

uint32 opennsl_mirror_destination_s::flags

See OPENNSL_MIRROR_DEST_xxx flag definitions.

Definition at line 137 of file mirrorX.h.

uint32 opennsl_mirror_destination_s::flow_label

IPv6 header flow label field.

Definition at line 147 of file mirrorX.h.

opennsl_gport_t opennsl_mirror_destination_s::gport

Mirror destination.

Definition at line 139 of file mirrorX.h.

uint16 opennsl_mirror_destination_s::gre_protocol

L3 GRE header protocol.

Definition at line 159 of file mirrorX.h.

uint8 opennsl_mirror_destination_s::int_pri

Internal Priority.

Definition at line 172 of file mirrorX.h.

opennsl_gport_t opennsl_mirror_destination_s::mirror_dest_id

Unique mirror destination and encapsulation identifier.

Definition at line 135 of file mirrorX.h.

uint16 opennsl_mirror_destination_s::niv_dst_vif

Destination Virtual Interface of NIV tag.

Definition at line 156 of file mirrorX.h.

uint32 opennsl_mirror_destination_s::niv_flags

NIV flags OPENNSL_MIRROR_NIV_XXX.

Definition at line 158 of file mirrorX.h.

uint16 opennsl_mirror_destination_s::niv_src_vif

Source Virtual Interface of NIV tag.

Definition at line 155 of file mirrorX.h.

uint16 opennsl_mirror_destination_s::packet_copy_size

If non zero, the copied packet will be truncated to the first packet_copy_size .

Current supported values for DNX are 0, 64, 128, 192

Definition at line 181 of file mirrorX.h.

uint8 opennsl_mirror_destination_s::pkt_prio

L2 header PCP.

Definition at line 169 of file mirrorX.h.

opennsl_policer_t opennsl_mirror_destination_s::policer_id

policer_id

Definition at line 160 of file mirrorX.h.

uint8 opennsl_mirror_destination_s::recycle_context

recycle context of egress originating packets

Definition at line 179 of file mirrorX.h.

int opennsl_mirror_destination_s::reserved1

Definition at line 162 of file mirrorX.h.

uint32 opennsl_mirror_destination_s::reserved10

Definition at line 195 of file mirrorX.h.

uint32 opennsl_mirror_destination_s::reserved11

Definition at line 196 of file mirrorX.h.

int opennsl_mirror_destination_s::reserved12[OPENNSL_MIRROR_EXT_STAT_ID_COUNT]

Definition at line 197 of file mirrorX.h.

uint32 opennsl_mirror_destination_s::reserved13

Definition at line 198 of file mirrorX.h.

uint32 opennsl_mirror_destination_s::reserved14

Definition at line 199 of file mirrorX.h.

uint32 opennsl_mirror_destination_s::reserved15

Definition at line 200 of file mirrorX.h.

opennsl_mirror_pkt_erspan_encap_t opennsl_mirror_destination_s::reserved16

Definition at line 201 of file mirrorX.h.

uint16 opennsl_mirror_destination_s::reserved2

Definition at line 168 of file mirrorX.h.

uint32 opennsl_mirror_destination_s::reserved3

Definition at line 170 of file mirrorX.h.

uint32 opennsl_mirror_destination_s::reserved4

Definition at line 171 of file mirrorX.h.

uint32 opennsl_mirror_destination_s::reserved5

Definition at line 177 of file mirrorX.h.

uint32 opennsl_mirror_destination_s::reserved6

Definition at line 178 of file mirrorX.h.

opennsl_reserved_enum_t opennsl_mirror_destination_s::reserved7

Definition at line 190 of file mirrorX.h.

uint8 opennsl_mirror_destination_s::reserved8

Definition at line 193 of file mirrorX.h.

uint16 opennsl_mirror_destination_s::reserved9

Definition at line 194 of file mirrorX.h.

opennsl_ip6_t opennsl_mirror_destination_s::src6_addr

Tunnel source ip address (IPv6).

Definition at line 145 of file mirrorX.h.

opennsl_ip_t opennsl_mirror_destination_s::src_addr

Tunnel source ip address (IPv4).

Definition at line 143 of file mirrorX.h.

opennsl_mac_t opennsl_mirror_destination_s::src_mac

L2 source mac address.

Definition at line 148 of file mirrorX.h.

int opennsl_mirror_destination_s::stat_id

stat_id

Definition at line 161 of file mirrorX.h.

uint8 opennsl_mirror_destination_s::tos

Traffic Class/Tos byte.

Definition at line 141 of file mirrorX.h.

uint16 opennsl_mirror_destination_s::tpid

L2 header outer TPID.

Definition at line 150 of file mirrorX.h.

opennsl_trill_name_t opennsl_mirror_destination_s::trill_dst_name

TRILL destination bridge nickname.

Definition at line 153 of file mirrorX.h.

int opennsl_mirror_destination_s::trill_hopcount

TRILL hop count.

Definition at line 154 of file mirrorX.h.

opennsl_trill_name_t opennsl_mirror_destination_s::trill_src_name

TRILL source bridge nickname.

Definition at line 152 of file mirrorX.h.

uint8 opennsl_mirror_destination_s::ttl

Hop limit.

Definition at line 142 of file mirrorX.h.

opennsl_if_t opennsl_mirror_destination_s::tunnel_id

IP tunnel for encapsulation.

Valid only if OPENNSL_MIRROR_DEST_TUNNEL_IP_GRE is set

Definition at line 164 of file mirrorX.h.

uint16 opennsl_mirror_destination_s::udp_dst_port

UDP destination port.

Definition at line 176 of file mirrorX.h.

uint16 opennsl_mirror_destination_s::udp_src_port

UDP source port.

Definition at line 175 of file mirrorX.h.

uint8 opennsl_mirror_destination_s::version

IP header version.

Definition at line 140 of file mirrorX.h.

opennsl_vlan_t opennsl_mirror_destination_s::vlan_id

Vlan id.

Definition at line 151 of file mirrorX.h.


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