IPv4 Network Stack
More...
|
| | Options |
| | Options for v4 of the Internet Protocol
|
| |
IPv4 Network Stack
◆ INADDR_ANY
| #define INADDR_ANY 0x00000000 |
Local IPv4 host address.
This address can be used by many things if you prefer to not specify the local address, and would rather it be detected automatically.
◆ INADDR_BROADCAST
| #define INADDR_BROADCAST 0xFFFFFFFF |
IPv4 broadcast address.
This address is the normal IPv4 broadcast address (255.255.255.255).
◆ INADDR_NONE
| #define INADDR_NONE 0xFFFFFFFF |
IPv4 error address.
This address is non-standard, but is available on many systems. It is used to detect failure from some functions that normally return addresses (such as the inet_addr function).
◆ INET_ADDRSTRLEN
| #define INET_ADDRSTRLEN 16 |
Length of a string form of a maximal IPv4 address.
◆ in_addr_t
32-bit value used to store an IPv4 address.
◆ net_ipv4_address()
| uint32_t __pure net_ipv4_address |
( |
const uint8_t | addr[4] | ) |
|
Create a 32-bit IP address, based on the individual numbers contained within the IP.
- Parameters
-
| addr | Array of IP address octets. |
- Returns
- The address, in host byte order.
◆ net_ipv4_get_stats()
◆ net_ipv4_parse_address()
| void net_ipv4_parse_address |
( |
uint32_t | addr, |
|
|
uint8_t | out[4] ) |
Parse an IP address that is packet into a uint32_t into an array of the individual bytes.
- Parameters
-
| addr | The full address, in host byte order. |
| out | The output buffer. |