OpenNSL API Guide and Reference Manual
Data Fields
opennsl_knet_filter_s Struct Reference

Kernel packet filter structure. More...

#include <knet.h>

Data Fields

uint32 cb_user_data
 Filter user data for knet rx cb.
 
char desc [OPENNSL_KNET_FILTER_DESC_MAX]
 Filter description (optional)
 
int dest_id
 Filter destination ID.
 
int dest_proto
 If non-zero this value overrides the default protocol type when matching packet is passed to network stack.
 
int dest_type
 Filter destination type.
 
uint32 flags
 OPENNSL_KNET_FILTER_F_XXX flags.
 
int id
 Filter ID.
 
int m_fp_rule
 Filter processor rule to match.
 
opennsl_port_t m_ingport
 Local ingress port to match.
 
uint8 m_raw_data [OPENNSL_KNET_FILTER_SIZE_MAX]
 Raw data to match.
 
uint8 m_raw_mask [OPENNSL_KNET_FILTER_SIZE_MAX]
 Raw data mask for match.
 
opennsl_rx_reasons_t m_reason
 Copy-to-CPU reason to match.
 
int m_src_modid
 Source module ID to match.
 
int m_src_modport
 Source module port to match.
 
opennsl_vlan_t m_vlan
 VLAN ID to match.
 
uint32 match_flags
 OPENNSL_KNET_FILTER_M_XXX flags.
 
int mirror_id
 Mirror destination ID.
 
int mirror_proto
 If non-zero this value overrides the default protocol type when matching packet is passed to network stack.
 
int mirror_type
 Mirror destination type.
 
int priority
 Filter priority (0 is highest).
 
int raw_size
 Size of valid raw data and mask.
 
int type
 Filter type (OPENNSL_KNET_FILTER_T_XXX).
 

Detailed Description

Kernel packet filter structure.

Definition at line 79 of file knet.h.

Field Documentation

uint32 opennsl_knet_filter_s::cb_user_data

Filter user data for knet rx cb.

Definition at line 106 of file knet.h.

char opennsl_knet_filter_s::desc[OPENNSL_KNET_FILTER_DESC_MAX]

Filter description (optional)

Definition at line 96 of file knet.h.

int opennsl_knet_filter_s::dest_id

Filter destination ID.

Definition at line 86 of file knet.h.

Referenced by example_linux_interface_create().

int opennsl_knet_filter_s::dest_proto

If non-zero this value overrides the default protocol type when matching packet is passed to network stack.

Definition at line 87 of file knet.h.

int opennsl_knet_filter_s::dest_type

Filter destination type.

Definition at line 85 of file knet.h.

Referenced by example_linux_interface_create().

uint32 opennsl_knet_filter_s::flags

OPENNSL_KNET_FILTER_F_XXX flags.

Definition at line 83 of file knet.h.

Referenced by example_linux_interface_create().

int opennsl_knet_filter_s::id

Filter ID.

Definition at line 80 of file knet.h.

Referenced by example_linux_interface_create().

int opennsl_knet_filter_s::m_fp_rule

Filter processor rule to match.

Definition at line 102 of file knet.h.

opennsl_port_t opennsl_knet_filter_s::m_ingport

Local ingress port to match.

Definition at line 98 of file knet.h.

Referenced by example_linux_interface_create().

uint8 opennsl_knet_filter_s::m_raw_data[OPENNSL_KNET_FILTER_SIZE_MAX]

Raw data to match.

Definition at line 104 of file knet.h.

uint8 opennsl_knet_filter_s::m_raw_mask[OPENNSL_KNET_FILTER_SIZE_MAX]

Raw data mask for match.

Definition at line 105 of file knet.h.

opennsl_rx_reasons_t opennsl_knet_filter_s::m_reason

Copy-to-CPU reason to match.

Definition at line 101 of file knet.h.

int opennsl_knet_filter_s::m_src_modid

Source module ID to match.

Definition at line 100 of file knet.h.

int opennsl_knet_filter_s::m_src_modport

Source module port to match.

Definition at line 99 of file knet.h.

opennsl_vlan_t opennsl_knet_filter_s::m_vlan

VLAN ID to match.

Definition at line 97 of file knet.h.

uint32 opennsl_knet_filter_s::match_flags

OPENNSL_KNET_FILTER_M_XXX flags.

Definition at line 95 of file knet.h.

Referenced by example_linux_interface_create().

int opennsl_knet_filter_s::mirror_id

Mirror destination ID.

Definition at line 91 of file knet.h.

int opennsl_knet_filter_s::mirror_proto

If non-zero this value overrides the default protocol type when matching packet is passed to network stack.

Definition at line 92 of file knet.h.

int opennsl_knet_filter_s::mirror_type

Mirror destination type.

Definition at line 90 of file knet.h.

int opennsl_knet_filter_s::priority

Filter priority (0 is highest).

Definition at line 84 of file knet.h.

Referenced by example_linux_interface_create().

int opennsl_knet_filter_s::raw_size

Size of valid raw data and mask.

Definition at line 103 of file knet.h.

int opennsl_knet_filter_s::type

Filter type (OPENNSL_KNET_FILTER_T_XXX).

Definition at line 81 of file knet.h.

Referenced by example_linux_interface_create().


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