From 2b1cd628a9d9baf41e65a7eee3c8fbace37853ce Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Sun, 13 Nov 2016 09:43:41 +0100 Subject: [PATCH] sys: net: sock: add uint32_t ipv4 address to address union --- sys/include/net/sock.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/include/net/sock.h b/sys/include/net/sock.h index 70ac5e024c..df15a39e8a 100644 --- a/sys/include/net/sock.h +++ b/sys/include/net/sock.h @@ -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 */ /**