OpenNSL API Guide and Reference Manual
Data Fields
opennsl_switch_pkt_info_s Struct Reference

Switch packet info structure. More...

#include <switch.h>

Data Fields

opennsl_ip_t dip
 Destination host IP address (IPv4).
 
opennsl_ip6_t dip6
 Destination host IP address (IPv6).
 
uint32 dst_l4_port
 Destination L4 port.
 
opennsl_mac_t dst_mac
 Destination MAC address.
 
opennsl_ethertype_t ethertype
 Ethertype.
 
uint32 flags
 OPENNSL_SWITCH_PKT_INFO_xxx flags for packet parameter hashing.
 
opennsl_switch_pkt_hash_info_fwd_reason_t fwd_reason
 Packet forward reason.
 
opennsl_if_t mpintf
 Multipath egress forwarding object.
 
uint8 protocol
 IP protocol.
 
opennsl_ip_t sip
 Source host IP address (IPv4).
 
opennsl_ip6_t sip6
 Source host IP address (IPv6).
 
opennsl_gport_t src_gport
 Source module and port, OPENNSL_GPORT_INVALID to wildcard.
 
uint32 src_l4_port
 Source L4 port.
 
opennsl_mac_t src_mac
 Source MAC address.
 
opennsl_gport_t trunk_gport
 Gport of trunk type on which packet will egress.
 
opennsl_vlan_t vid
 VLAN ID.
 

Detailed Description

Switch packet info structure.

Contains packet fields for calculating aggregate link hash values.

Definition at line 321 of file switch.h.

Field Documentation

opennsl_ip_t opennsl_switch_pkt_info_s::dip

Destination host IP address (IPv4).

Definition at line 331 of file switch.h.

opennsl_ip6_t opennsl_switch_pkt_info_s::dip6

Destination host IP address (IPv6).

Definition at line 333 of file switch.h.

uint32 opennsl_switch_pkt_info_s::dst_l4_port

Destination L4 port.

Definition at line 336 of file switch.h.

opennsl_mac_t opennsl_switch_pkt_info_s::dst_mac

Destination MAC address.

Definition at line 329 of file switch.h.

opennsl_ethertype_t opennsl_switch_pkt_info_s::ethertype

Ethertype.

Definition at line 327 of file switch.h.

uint32 opennsl_switch_pkt_info_s::flags

OPENNSL_SWITCH_PKT_INFO_xxx flags for packet parameter hashing.

Definition at line 322 of file switch.h.

opennsl_switch_pkt_hash_info_fwd_reason_t opennsl_switch_pkt_info_s::fwd_reason

Packet forward reason.

Definition at line 340 of file switch.h.

opennsl_if_t opennsl_switch_pkt_info_s::mpintf

Multipath egress forwarding object.

Definition at line 339 of file switch.h.

uint8 opennsl_switch_pkt_info_s::protocol

IP protocol.

Definition at line 334 of file switch.h.

opennsl_ip_t opennsl_switch_pkt_info_s::sip

Source host IP address (IPv4).

Definition at line 330 of file switch.h.

opennsl_ip6_t opennsl_switch_pkt_info_s::sip6

Source host IP address (IPv6).

Definition at line 332 of file switch.h.

opennsl_gport_t opennsl_switch_pkt_info_s::src_gport

Source module and port, OPENNSL_GPORT_INVALID to wildcard.

Definition at line 324 of file switch.h.

uint32 opennsl_switch_pkt_info_s::src_l4_port

Source L4 port.

Definition at line 335 of file switch.h.

opennsl_mac_t opennsl_switch_pkt_info_s::src_mac

Source MAC address.

Definition at line 328 of file switch.h.

opennsl_gport_t opennsl_switch_pkt_info_s::trunk_gport

Gport of trunk type on which packet will egress.

Definition at line 337 of file switch.h.

opennsl_vlan_t opennsl_switch_pkt_info_s::vid

VLAN ID.

Definition at line 326 of file switch.h.


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