|
OpenNSL API Guide and Reference Manual
|
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). | |
| uint32 opennsl_knet_filter_s::cb_user_data |
| char opennsl_knet_filter_s::desc[OPENNSL_KNET_FILTER_DESC_MAX] |
| 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 |
| 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 |
| int opennsl_knet_filter_s::m_fp_rule |
| 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] |
| uint8 opennsl_knet_filter_s::m_raw_mask[OPENNSL_KNET_FILTER_SIZE_MAX] |
| opennsl_rx_reasons_t opennsl_knet_filter_s::m_reason |
| int opennsl_knet_filter_s::m_src_modid |
| int opennsl_knet_filter_s::m_src_modport |
| opennsl_vlan_t opennsl_knet_filter_s::m_vlan |
| 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_proto |
| int opennsl_knet_filter_s::mirror_type |
| 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 |
| 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().