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:
commit
e4b3331582
@ -172,7 +172,8 @@ 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 */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -208,7 +209,8 @@ 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