1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

Merge pull request #5945 from miri64/sock/api/ipv4-init-helper

sock: change IPv4 address type to array
This commit is contained in:
Martine Lenders 2016-10-31 12:56:29 +01:00 committed by GitHub
commit e7b17dccfc

View File

@ -172,7 +172,7 @@ typedef struct {
*/
uint8_t ipv6[16];
#endif
uint32_t ipv4; /**< IPv4 address mode */
uint8_t ipv4[4]; /**< IPv4 address mode */
} addr; /**< address */
/**
@ -208,7 +208,7 @@ struct _sock_tl_ep {
*/
uint8_t ipv6[16];
#endif
uint32_t ipv4; /**< IPv4 address mode */
uint8_t ipv4[4]; /**< IPv4 address mode */
} addr; /**< address */
/**
@ -222,7 +222,7 @@ struct _sock_tl_ep {
* over
*/
uint16_t netif;
uint16_t port; /**< transport layer port */
uint16_t port; /**< transport layer port (in host byte order) */
};
#ifdef __cplusplus