1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #6114 from kaspar030/sock_uint32_ipv4

sys: net: sock: add uint32_t ipv4 address to address union
This commit is contained in:
Martine Lenders 2016-11-13 13:43:01 +01:00 committed by GitHub
commit e4b3331582

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