20#define INADDR_NONE htonl ( 0xffffffff )
22#define INADDR_BROADCAST htonl ( 0xffffffff )
24#define INADDR_NET_CLASSA htonl ( 0xff000000 )
25#define INADDR_NET_CLASSB htonl ( 0xffff0000 )
26#define INADDR_NET_CLASSC htonl ( 0xffffff00 )
28#define IN_IS_CLASSA( addr ) \
29 ( ( (addr) & htonl ( 0x80000000 ) ) == htonl ( 0x00000000 ) )
30#define IN_IS_CLASSB( addr ) \
31 ( ( (addr) & htonl ( 0xc0000000 ) ) == htonl ( 0x80000000 ) )
32#define IN_IS_CLASSC( addr ) \
33 ( ( (addr) & htonl ( 0xe0000000 ) ) == htonl ( 0xc0000000 ) )
34#define IN_IS_MULTICAST( addr ) \
35 ( ( (addr) & htonl ( 0xf0000000 ) ) == htonl ( 0xe0000000 ) )
37#define IN_IS_SMALL( mask ) ( (mask) & htonl ( 0x00000003 ) )
57#define s6_addr in6_u.u6_addr8
58#define s6_addr16 in6_u.u6_addr16
59#define s6_addr32 in6_u.u6_addr32
62#define IN6_IS_ADDR_UNSPECIFIED( addr ) \
63 ( ( ( ( ( const uint32_t * ) (addr) )[0] ) | \
64 ( ( ( const uint32_t * ) (addr) )[1] ) | \
65 ( ( ( const uint32_t * ) (addr) )[2] ) | \
66 ( ( ( const uint32_t * ) (addr) )[3] ) ) == 0 )
68#define IN6_IS_ADDR_MULTICAST( addr ) \
69 ( *( ( const uint8_t * ) (addr) ) == 0xff )
71#define IN6_IS_ADDR_LINKLOCAL( addr ) \
72 ( ( *( ( const uint16_t * ) (addr) ) & htons ( 0xffc0 ) ) == \
75#define IN6_IS_ADDR_SITELOCAL( addr ) \
76 ( ( *( ( const uint16_t * ) (addr) ) & htons ( 0xffc0 ) ) == \
79#define IN6_IS_ADDR_ULA( addr ) \
80 ( ( *( ( const uint8_t * ) (addr) ) & 0xfe ) == 0xfc )
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
char * inet6_ntoa(const struct in6_addr *in)
Convert IPv6 address to standard notation.
int inet_aton(const char *cp, struct in_addr *inp)
Parse IPv4 address.
int inet6_aton(const char *string, struct in6_addr *in)
Parse IPv6 address.
char * inet_ntoa(struct in_addr in)
Convert IPv4 address to dotted-quad notation.
uint16_t sa_family_t
A socket address family.
union in6_addr::@347247304320251054144374036344124303110102034175 in6_u
uint16_t sin6_flags
Flags (part of struct sockaddr_tcpip)
struct in6_addr sin6_addr
IPv6 address.
uint16_t sin6_port
TCP/IP port (part of struct sockaddr_tcpip)
uint16_t sin6_scope_id
Scope ID (part of struct sockaddr_tcpip)
char pad[sizeof(struct sockaddr) -(sizeof(sa_family_t)+sizeof(uint16_t)+sizeof(uint16_t)+sizeof(uint16_t)+sizeof(struct in6_addr))]
Padding.
sa_family_t sin6_family
Socket address family (part of struct sockaddr)
uint16_t sin_scope_id
Scope ID (part of struct sockaddr_tcpip)
char pad[sizeof(struct sockaddr) -(sizeof(sa_family_t)+sizeof(uint16_t)+sizeof(uint16_t)+sizeof(uint16_t)+sizeof(struct in_addr))]
Padding.
uint16_t sin_port
TCP/IP port (part of struct sockaddr_tcpip)
struct in_addr sin_addr
IPv4 address.
sa_family_t sin_family
Socket address family (part of struct sockaddr)
uint16_t sin_flags
Flags (part of struct sockaddr_tcpip)
Generalized socket address structure.