1
0
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:
Kaspar Schleiser 2016-11-13 09:43:41 +01:00
parent 1ddacb9bbc
commit 2b1cd628a9

View File

@ -172,7 +172,8 @@ typedef struct {
*/
uint8_t ipv6[16];
#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 */
/**
@ -208,7 +209,8 @@ struct _sock_tl_ep {
*/
uint8_t ipv6[16];
#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 */
/**