mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-15 01:23:49 +01:00
sys/net/ipv4: add IPV4_ADDR_LOOPBACK definition
This commit is contained in:
parent
63c2a81128
commit
23c956e508
@ -47,6 +47,11 @@ extern "C" {
|
||||
*/
|
||||
#define IPV4_ADDR_INIT(a, b, c, d) { .u8 = {a, b, c, d} }
|
||||
|
||||
/**
|
||||
* @brief Static initializer for the loopback IPv4 address (127.0.0.1)
|
||||
*/
|
||||
#define IPV4_ADDR_LOOPBACK IPV4_ADDR_INIT(127, 0, 0, 1)
|
||||
|
||||
/**
|
||||
* @brief Data type to represent an IPv4 address.
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user