|
Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
|
Macros | |
| #define | NPF_UDP_SRC_PORT_MATCH(_name, _port) |
| Statically define a "UDP source port match" packet filter condition. | |
| #define | NPF_UDP_DST_PORT_MATCH(_name, _port) |
| Statically define a "UDP destination port match" packet filter condition. | |
These conditions are for the rules of npf_local_in_recv_rules. They rely on what the IP input stores in a packet while it processes the IP headers, so their result is not defined in the other rule lists.
| #define NPF_UDP_DST_PORT_MATCH | ( | _name, | |
| _port ) |
#include <zephyr/net/net_pkt_filter.h>
Statically define a "UDP destination port match" packet filter condition.
This tests if the packet is a UDP datagram with the given destination port.
| _name | Name of the condition |
| _port | Destination port to match |
| #define NPF_UDP_SRC_PORT_MATCH | ( | _name, | |
| _port ) |
#include <zephyr/net/net_pkt_filter.h>
Statically define a "UDP source port match" packet filter condition.
This tests if the packet is a UDP datagram with the given source port.
| _name | Name of the condition |
| _port | Source port to match |