Zephyr API Documentation 4.0.0-rc2
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_IP_SRC_ADDR_ALLOWLIST(_name, _ip_addr_array, _ip_addr_num, _af) |
Statically define a "ip address allowlist" packet filter condition. | |
#define | NPF_IP_SRC_ADDR_BLOCKLIST(_name, _ip_addr_array, _ip_addr_num, _af) |
Statically define a "ip address blocklist" packet filter condition. | |
#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_IP_SRC_ADDR_ALLOWLIST | ( | _name, | |
_ip_addr_array, | |||
_ip_addr_num, | |||
_af ) |
#include <zephyr/net/net_pkt_filter.h>
Statically define a "ip address allowlist" packet filter condition.
This tests if the packet source ip address matches any of the ip addresses contained in the provided set.
#define NPF_IP_SRC_ADDR_BLOCKLIST | ( | _name, | |
_ip_addr_array, | |||
_ip_addr_num, | |||
_af ) |
#include <zephyr/net/net_pkt_filter.h>
Statically define a "ip address blocklist" packet filter condition.
This tests if the packet source ip address matches any of the ip addresses contained in the provided set.
#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 |