|
ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
|
True if ip is empty (PROTOCORE_IP_NONE) or the all-zero unspecified address (0.0.0.0 / ::).
More...
#include <ip.h>
Public Attributes | |
| const char * | text |
| the textual address a parse reads | |
| const protocore_ip * | ip |
| the address a call reads | |
| const protocore_ip * | b |
| the second address a compare or a prefix test reads | |
| protocore_ip * | out |
| where a parse lands its result | |
| char * | buf |
| where a format writes | |
| size_t | cap |
| how much room that has | |
| uint8_t | prefix_len |
| the prefix length a match tests to | |
True if ip is empty (PROTOCORE_IP_NONE) or the all-zero unspecified address (0.0.0.0 / ::).
CIDR containment: is addr inside the net / prefix_len block?
The two must be the same family. prefix_len is 0..32 for v4, 0..128 for v6; the top prefix_len bits of the address bytes must match net (a prefix of 0 matches everything). This is the standard v4/v6 allowlist match.
addr is covered; false on a family mismatch or an out-of-range prefix.The address, or pair of addresses, one call acts on.
| const protocore_ip* IpArgs::ip |
| const protocore_ip* IpArgs::b |
| protocore_ip* IpArgs::out |