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
@ -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 */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user