OpenNSL API Guide and Reference Manual
Data Fields
opennsl_pkt_s Struct Reference

Initialize a OPENNSL packet structure. More...

#include <pkt.h>

Data Fields

opennsl_pkt_blk_t _pkt_data
 For single block packets (internal).
 
uint8 _vtag [4]
 VLAN tag if not in packet (network byte order).
 
uint8 blk_count
 Number of blocks in data array.
 
opennsl_pkt_cb_f call_back
 Callback function.
 
uint8 cos
 The local COS queue to use.
 
uint16 dest_port
 Destination port used in header/tag.
 
uint32 flags
 OPENNSL_PKT_F_xxx flags.
 
opennsl_pkt_blk_tpkt_data
 Pointer to array of data blocks.
 
uint16 pkt_len
 Packet length according to flags.
 
uint8 reserved1
 
uint16 reserved10
 
uint8 reserved11
 
opennsl_gport_t reserved12
 
opennsl_gport_t reserved13
 
opennsl_multicast_t reserved14
 
uint32 reserved15
 
opennsl_reserved_enum_t reserved16
 
uint32 reserved17
 
uint32 reserved18
 
uint32 reserved19
 
uint8 reserved2
 
uint32 reserved20
 
opennsl_if_t reserved21
 
opennsl_pbmp_t reserved22
 
opennsl_port_t reserved23
 
uint8 reserved24
 
uint32 reserved25
 
uint8 reserved26
 
uint8 reserved27
 
uint32 reserved28
 
opennsl_if_t reserved29
 
uint8 reserved3
 
opennsl_vlan_action_t reserved30
 
opennsl_vlan_action_t reserved31
 
uint32 reserved32
 
uint32 reserved33
 
uint32 reserved34
 
void * reserved35
 
void * reserved36
 
void * reserved37
 
int8 reserved38
 
opennsl_pkt_treserved39
 
opennsl_vlan_t reserved4
 
void * reserved40
 
int8 reserved41
 
opennsl_pkt_treserved42
 
void * reserved43
 
void * reserved44
 
uint8 reserved45 [16]
 
uint8 reserved46 [12]
 
uint8 reserved47 [4]
 
uint8 reserved48 [16]
 
uint8 reserved49
 
uint8 reserved5
 
uint8 reserved50 [10]
 
int reserved51
 
int reserved52
 
uint32 reserved53
 
opennsl_pbmp_t reserved54
 
opennsl_pbmp_t reserved55
 
uint32 reserved56
 
uint8 reserved57
 
uint8 reserved58
 
uint16 reserved59
 
uint8 reserved6
 
uint32 reserved60
 
void * reserved61
 
uint16 reserved62
 
uint16 reserved63
 
opennsl_reserved_enum_t reserved64
 
opennsl_reserved_enum_t reserved65
 
opennsl_reserved_enum_t reserved66
 
uint8 reserved67
 
opennsl_reserved_enum_t reserved68
 
opennsl_gport_t reserved69
 
opennsl_color_t reserved7
 
opennsl_gport_t reserved70
 
uint32 reserved71
 
opennsl_gport_t reserved72
 
uint32 reserved73
 
uint32 reserved74
 
uint8 reserved75
 
opennsl_reserved_enum_t reserved76
 
opennsl_pkt_oam_counter_t reserved77 [OPENNSL_PKT_OAM_COUNTER_MAX]
 
uint32 reserved78
 
uint8 reserved79 [20]
 
opennsl_trunk_t reserved8
 
uint8 reserved80
 
uint8 reserved81 [4]
 
void * reserved82
 
uint8 reserved83
 
uint8 reserved84
 
uint8 reserved85
 
uint8 reserved86
 
uint16 reserved87
 
uint16 reserved88
 
uint16 reserved89
 
uint16 reserved9
 
uint8 reserved90
 
uint16 reserved91
 
uint32 rx_matched
 Field processor matched rule.
 
uint8 rx_port
 Local rx port; not in HG hdr.
 
uint32 rx_reason
 Opcode from packet.
 
opennsl_rx_reasons_t rx_reasons
 Set of packet "reasons".
 
uint8 rx_untagged
 The packet was untagged on ingress.
 
int snoop_cmnd
 Snoop command.
 
int16 src_port
 Source port used in header/tag.
 
uint16 tot_len
 Packet length as transmitted or received.
 
opennsl_pbmp_t tx_pbmp
 Target ports.
 
opennsl_pbmp_t tx_upbmp
 Untagged target ports.
 
uint8 unit
 Unit number.
 
opennsl_vlan_t vlan
 802.1q VID or VSI or VPN.
 

Detailed Description

Initialize a OPENNSL packet structure.

Definition at line 91 of file pkt.h.

Field Documentation

opennsl_pkt_blk_t opennsl_pkt_s::_pkt_data

For single block packets (internal).

Definition at line 149 of file pkt.h.

uint8 opennsl_pkt_s::_vtag[4]

VLAN tag if not in packet (network byte order).

Definition at line 159 of file pkt.h.

uint8 opennsl_pkt_s::blk_count

Number of blocks in data array.

Definition at line 93 of file pkt.h.

Referenced by example_pkt_send().

opennsl_pkt_cb_f opennsl_pkt_s::call_back

Callback function.

Definition at line 145 of file pkt.h.

Referenced by example_pkt_send().

uint8 opennsl_pkt_s::cos

The local COS queue to use.

Definition at line 95 of file pkt.h.

Referenced by example_rx_packet_receive(), and example_sflow_handle_rx_event().

uint16 opennsl_pkt_s::dest_port

Destination port used in header/tag.

Definition at line 107 of file pkt.h.

uint32 opennsl_pkt_s::flags

OPENNSL_PKT_F_xxx flags.

Definition at line 146 of file pkt.h.

Referenced by example_sflow_handle_rx_event().

opennsl_pkt_blk_t* opennsl_pkt_s::pkt_data

Pointer to array of data blocks.

Definition at line 92 of file pkt.h.

Referenced by example_rx_packet_receive(), and example_sflow_handle_rx_event().

uint16 opennsl_pkt_s::pkt_len

Packet length according to flags.

Definition at line 120 of file pkt.h.

Referenced by example_rx_packet_receive(), and example_sflow_handle_rx_event().

uint8 opennsl_pkt_s::reserved1

Definition at line 96 of file pkt.h.

uint16 opennsl_pkt_s::reserved10

Definition at line 108 of file pkt.h.

uint8 opennsl_pkt_s::reserved11

Definition at line 109 of file pkt.h.

opennsl_gport_t opennsl_pkt_s::reserved12

Definition at line 110 of file pkt.h.

opennsl_gport_t opennsl_pkt_s::reserved13

Definition at line 111 of file pkt.h.

opennsl_multicast_t opennsl_pkt_s::reserved14

Definition at line 112 of file pkt.h.

uint32 opennsl_pkt_s::reserved15

Definition at line 113 of file pkt.h.

opennsl_reserved_enum_t opennsl_pkt_s::reserved16

Definition at line 114 of file pkt.h.

uint32 opennsl_pkt_s::reserved17

Definition at line 115 of file pkt.h.

uint32 opennsl_pkt_s::reserved18

Definition at line 116 of file pkt.h.

uint32 opennsl_pkt_s::reserved19

Definition at line 117 of file pkt.h.

uint8 opennsl_pkt_s::reserved2

Definition at line 98 of file pkt.h.

uint32 opennsl_pkt_s::reserved20

Definition at line 118 of file pkt.h.

opennsl_if_t opennsl_pkt_s::reserved21

Definition at line 119 of file pkt.h.

opennsl_pbmp_t opennsl_pkt_s::reserved22

Definition at line 125 of file pkt.h.

opennsl_port_t opennsl_pkt_s::reserved23

Definition at line 126 of file pkt.h.

uint8 opennsl_pkt_s::reserved24

Definition at line 127 of file pkt.h.

uint32 opennsl_pkt_s::reserved25

Definition at line 130 of file pkt.h.

uint8 opennsl_pkt_s::reserved26

Definition at line 131 of file pkt.h.

uint8 opennsl_pkt_s::reserved27

Definition at line 133 of file pkt.h.

uint32 opennsl_pkt_s::reserved28

Definition at line 135 of file pkt.h.

opennsl_if_t opennsl_pkt_s::reserved29

Definition at line 137 of file pkt.h.

uint8 opennsl_pkt_s::reserved3

Definition at line 99 of file pkt.h.

opennsl_vlan_action_t opennsl_pkt_s::reserved30

Definition at line 138 of file pkt.h.

opennsl_vlan_action_t opennsl_pkt_s::reserved31

Definition at line 139 of file pkt.h.

uint32 opennsl_pkt_s::reserved32

Definition at line 140 of file pkt.h.

uint32 opennsl_pkt_s::reserved33

Definition at line 141 of file pkt.h.

uint32 opennsl_pkt_s::reserved34

Definition at line 142 of file pkt.h.

void* opennsl_pkt_s::reserved35

Definition at line 143 of file pkt.h.

void* opennsl_pkt_s::reserved36

Definition at line 144 of file pkt.h.

void* opennsl_pkt_s::reserved37

Definition at line 147 of file pkt.h.

int8 opennsl_pkt_s::reserved38

Definition at line 148 of file pkt.h.

opennsl_pkt_t* opennsl_pkt_s::reserved39

Definition at line 150 of file pkt.h.

opennsl_vlan_t opennsl_pkt_s::reserved4

Definition at line 100 of file pkt.h.

void* opennsl_pkt_s::reserved40

Definition at line 151 of file pkt.h.

int8 opennsl_pkt_s::reserved41

Definition at line 152 of file pkt.h.

opennsl_pkt_t* opennsl_pkt_s::reserved42

Definition at line 153 of file pkt.h.

void* opennsl_pkt_s::reserved43

Definition at line 154 of file pkt.h.

void* opennsl_pkt_s::reserved44

Definition at line 155 of file pkt.h.

uint8 opennsl_pkt_s::reserved45[16]

Definition at line 156 of file pkt.h.

uint8 opennsl_pkt_s::reserved46[12]

Definition at line 157 of file pkt.h.

uint8 opennsl_pkt_s::reserved47[4]

Definition at line 158 of file pkt.h.

uint8 opennsl_pkt_s::reserved48[16]

Definition at line 161 of file pkt.h.

uint8 opennsl_pkt_s::reserved49

Definition at line 162 of file pkt.h.

uint8 opennsl_pkt_s::reserved5

Definition at line 101 of file pkt.h.

uint8 opennsl_pkt_s::reserved50[10]

Definition at line 163 of file pkt.h.

int opennsl_pkt_s::reserved51

Definition at line 164 of file pkt.h.

int opennsl_pkt_s::reserved52

Definition at line 165 of file pkt.h.

uint32 opennsl_pkt_s::reserved53

Definition at line 166 of file pkt.h.

opennsl_pbmp_t opennsl_pkt_s::reserved54

Definition at line 167 of file pkt.h.

opennsl_pbmp_t opennsl_pkt_s::reserved55

Definition at line 168 of file pkt.h.

uint32 opennsl_pkt_s::reserved56

Definition at line 169 of file pkt.h.

uint8 opennsl_pkt_s::reserved57

Definition at line 170 of file pkt.h.

uint8 opennsl_pkt_s::reserved58

Definition at line 171 of file pkt.h.

uint16 opennsl_pkt_s::reserved59

Definition at line 172 of file pkt.h.

uint8 opennsl_pkt_s::reserved6

Definition at line 102 of file pkt.h.

uint32 opennsl_pkt_s::reserved60

Definition at line 173 of file pkt.h.

void* opennsl_pkt_s::reserved61

Definition at line 174 of file pkt.h.

uint16 opennsl_pkt_s::reserved62

Definition at line 175 of file pkt.h.

uint16 opennsl_pkt_s::reserved63

Definition at line 176 of file pkt.h.

opennsl_reserved_enum_t opennsl_pkt_s::reserved64

Definition at line 177 of file pkt.h.

opennsl_reserved_enum_t opennsl_pkt_s::reserved65

Definition at line 178 of file pkt.h.

opennsl_reserved_enum_t opennsl_pkt_s::reserved66

Definition at line 179 of file pkt.h.

uint8 opennsl_pkt_s::reserved67

Definition at line 180 of file pkt.h.

opennsl_reserved_enum_t opennsl_pkt_s::reserved68

Definition at line 181 of file pkt.h.

opennsl_gport_t opennsl_pkt_s::reserved69

Definition at line 182 of file pkt.h.

opennsl_color_t opennsl_pkt_s::reserved7

Definition at line 103 of file pkt.h.

opennsl_gport_t opennsl_pkt_s::reserved70

Definition at line 183 of file pkt.h.

uint32 opennsl_pkt_s::reserved71

Definition at line 184 of file pkt.h.

opennsl_gport_t opennsl_pkt_s::reserved72

Definition at line 186 of file pkt.h.

uint32 opennsl_pkt_s::reserved73

Definition at line 187 of file pkt.h.

uint32 opennsl_pkt_s::reserved74

Definition at line 188 of file pkt.h.

uint8 opennsl_pkt_s::reserved75

Definition at line 189 of file pkt.h.

opennsl_reserved_enum_t opennsl_pkt_s::reserved76

Definition at line 190 of file pkt.h.

Definition at line 191 of file pkt.h.

uint32 opennsl_pkt_s::reserved78

Definition at line 192 of file pkt.h.

uint8 opennsl_pkt_s::reserved79[20]

Definition at line 193 of file pkt.h.

opennsl_trunk_t opennsl_pkt_s::reserved8

Definition at line 105 of file pkt.h.

uint8 opennsl_pkt_s::reserved80

Definition at line 194 of file pkt.h.

uint8 opennsl_pkt_s::reserved81[4]

Definition at line 195 of file pkt.h.

void* opennsl_pkt_s::reserved82

Definition at line 196 of file pkt.h.

uint8 opennsl_pkt_s::reserved83

Definition at line 197 of file pkt.h.

uint8 opennsl_pkt_s::reserved84

Definition at line 198 of file pkt.h.

uint8 opennsl_pkt_s::reserved85

Definition at line 199 of file pkt.h.

uint8 opennsl_pkt_s::reserved86

Definition at line 200 of file pkt.h.

uint16 opennsl_pkt_s::reserved87

Definition at line 201 of file pkt.h.

uint16 opennsl_pkt_s::reserved88

Definition at line 202 of file pkt.h.

uint16 opennsl_pkt_s::reserved89

Definition at line 203 of file pkt.h.

uint16 opennsl_pkt_s::reserved9

Definition at line 106 of file pkt.h.

uint8 opennsl_pkt_s::reserved90

Definition at line 204 of file pkt.h.

uint16 opennsl_pkt_s::reserved91

Definition at line 205 of file pkt.h.

uint32 opennsl_pkt_s::rx_matched

Field processor matched rule.

Definition at line 136 of file pkt.h.

uint8 opennsl_pkt_s::rx_port

Local rx port; not in HG hdr.

Definition at line 132 of file pkt.h.

Referenced by example_rx_packet_receive(), and example_sflow_handle_rx_event().

uint32 opennsl_pkt_s::rx_reason

Opcode from packet.

Definition at line 128 of file pkt.h.

Referenced by example_sflow_handle_rx_event().

opennsl_rx_reasons_t opennsl_pkt_s::rx_reasons

Set of packet "reasons".

Definition at line 129 of file pkt.h.

uint8 opennsl_pkt_s::rx_untagged

The packet was untagged on ingress.

Definition at line 134 of file pkt.h.

int opennsl_pkt_s::snoop_cmnd

Snoop command.

Definition at line 185 of file pkt.h.

int16 opennsl_pkt_s::src_port

Source port used in header/tag.

Definition at line 104 of file pkt.h.

Referenced by example_rx_packet_receive(), and example_sflow_handle_rx_event().

uint16 opennsl_pkt_s::tot_len

Packet length as transmitted or received.

Definition at line 121 of file pkt.h.

Referenced by example_rx_packet_receive().

opennsl_pbmp_t opennsl_pkt_s::tx_pbmp

Target ports.

Definition at line 123 of file pkt.h.

Referenced by example_pkt_send().

opennsl_pbmp_t opennsl_pkt_s::tx_upbmp

Untagged target ports.

Definition at line 124 of file pkt.h.

uint8 opennsl_pkt_s::unit

Unit number.

Definition at line 94 of file pkt.h.

Referenced by example_pkt_send().

opennsl_vlan_t opennsl_pkt_s::vlan

802.1q VID or VSI or VPN.

Definition at line 97 of file pkt.h.

Referenced by example_sflow_handle_rx_event().


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