The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
byteorder.h File Reference

network byte order (big endian) on the little-endian x86. More...

#include "common/stdint.h"

Go to the source code of this file.

Macros

#define NET_IPV4(a, b, c, d)
 an IPv4 address in network byte order from its four parts (a.b.c.d).

Detailed Description

network byte order (big endian) on the little-endian x86.

Macro Definition Documentation

◆ NET_IPV4

#define NET_IPV4 ( a,
b,
c,
d )
Value:
((uint32_t)(a) | ((uint32_t)(b) << 8) | ((uint32_t)(c) << 16) | ((uint32_t)(d) << 24))
unsigned int uint32_t
Definition fb.h:17

an IPv4 address in network byte order from its four parts (a.b.c.d).