1
0
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:
Benjamin Valentin 2025-05-07 14:44:50 +02:00
parent 63c2a81128
commit 23c956e508

View File

@ -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.
*/