|
Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
|
Macros | |
| #define | NPF_IFACE_MATCH(_name, _iface) |
| Statically define an "interface match" packet filter condition. | |
| #define | NPF_IFACE_UNMATCH(_name, _iface) |
| Statically define an "interface unmatch" packet filter condition. | |
| #define | NPF_ORIG_IFACE_MATCH(_name, _iface) |
| Statically define an "orig interface match" packet filter condition. | |
| #define | NPF_ORIG_IFACE_UNMATCH(_name, _iface) |
| Statically define an "orig interface unmatch" packet filter condition. | |
| #define | NPF_SIZE_MIN(_name, _size) |
| Statically define a "data minimum size" packet filter condition. | |
| #define | NPF_SIZE_MAX(_name, _size) |
| Statically define a "data maximum size" packet filter condition. | |
| #define | NPF_SIZE_BOUNDS(_name, _min_size, _max_size) |
| Statically define a "data bounded size" packet filter condition. | |
| #define | NPF_LOCAL_IN_MATCH(_name, _handler, _user_data) |
| Statically define a "local_in match" packet filter condition. | |
Typedefs | |
| typedef bool | npf_local_in_fn_t(struct net_pkt *pkt, void *user_data) |
| Function that is called to get the verdict what should happen to the network packet. | |
| #define NPF_IFACE_MATCH | ( | _name, | |
| _iface ) |
#include <zephyr/net/net_pkt_filter.h>
Statically define an "interface match" packet filter condition.
| _name | Name of the condition |
| _iface | Interface to match |
| #define NPF_IFACE_UNMATCH | ( | _name, | |
| _iface ) |
#include <zephyr/net/net_pkt_filter.h>
Statically define an "interface unmatch" packet filter condition.
| _name | Name of the condition |
| _iface | Interface to exclude |
| #define NPF_LOCAL_IN_MATCH | ( | _name, | |
| _handler, | |||
| _user_data ) |
#include <zephyr/net/net_pkt_filter.h>
Statically define a "local_in match" packet filter condition.
This condition is only available if CONFIG_NET_PKT_FILTER_LOCAL_IN_HOOK is enabled.
| _name | Name of the condition |
| _handler | Function to call for the local_in hook |
| _user_data | Optional user data pointer passed to the handler |
| #define NPF_ORIG_IFACE_MATCH | ( | _name, | |
| _iface ) |
#include <zephyr/net/net_pkt_filter.h>
Statically define an "orig interface match" packet filter condition.
| _name | Name of the condition |
| _iface | Interface to match |
| #define NPF_ORIG_IFACE_UNMATCH | ( | _name, | |
| _iface ) |
#include <zephyr/net/net_pkt_filter.h>
Statically define an "orig interface unmatch" packet filter condition.
| _name | Name of the condition |
| _iface | Interface to exclude |
| #define NPF_SIZE_BOUNDS | ( | _name, | |
| _min_size, | |||
| _max_size ) |
#include <zephyr/net/net_pkt_filter.h>
Statically define a "data bounded size" packet filter condition.
| _name | Name of the condition |
| _min_size | Lower bound of the packet's data size |
| _max_size | Higher bound of the packet's data size |
| #define NPF_SIZE_MAX | ( | _name, | |
| _size ) |
#include <zephyr/net/net_pkt_filter.h>
Statically define a "data maximum size" packet filter condition.
| _name | Name of the condition |
| _size | Higher bound of the packet's data size |
| #define NPF_SIZE_MIN | ( | _name, | |
| _size ) |
#include <zephyr/net/net_pkt_filter.h>
Statically define a "data minimum size" packet filter condition.
| _name | Name of the condition |
| _size | Lower bound of the packet's data size |
#include <zephyr/net/net_pkt_filter.h>
Function that is called to get the verdict what should happen to the network packet.
| pkt | Pointer to the network packet to be evaluated |
| user_data | A valid pointer to user data or NULL |