mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
sys: net: sock: add uint32_t ipv4 address to address union
This commit is contained in:
parent
1ddacb9bbc
commit
2b1cd628a9
@ -173,6 +173,7 @@ typedef struct {
|
|||||||
uint8_t ipv6[16];
|
uint8_t ipv6[16];
|
||||||
#endif
|
#endif
|
||||||
uint8_t ipv4[4]; /**< IPv4 address mode */
|
uint8_t ipv4[4]; /**< IPv4 address mode */
|
||||||
|
uint32_t ipv4_u32; /**< IPv4 address *in network byte order* */
|
||||||
} addr; /**< address */
|
} addr; /**< address */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -209,6 +210,7 @@ struct _sock_tl_ep {
|
|||||||
uint8_t ipv6[16];
|
uint8_t ipv6[16];
|
||||||
#endif
|
#endif
|
||||||
uint8_t ipv4[4]; /**< IPv4 address mode */
|
uint8_t ipv4[4]; /**< IPv4 address mode */
|
||||||
|
uint32_t ipv4_u32; /**< IPv4 address *in network byte order* */
|
||||||
} addr; /**< address */
|
} addr; /**< address */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user