#include <netinet/in_private.h>
netinet/in_private.h
macroIPPROTO_QUIC
253-254: Experimentation and testing; 255: Reserved (RFC3692)
BSD Private, local use, namespace incursion
#define IPPROTO_QUIC 253
QUIC protocol (Over UDP)
macroIN_SHARED_ADDRESS_SPACE
#define IN_SHARED_ADDRESS_SPACE(i) ((((u_int32_t)(i)) & (u_int32_t)0xffc00000) == (u_int32_t)0x64400000)
macroIN_DS_LITE
#define IN_DS_LITE(i) ((((u_int32_t)(i)) & (u_int32_t)0xfffffff8) == (u_int32_t)0xc0000000)
macroIN_6TO4_RELAY_ANYCAST
#define IN_6TO4_RELAY_ANYCAST(i) ((((u_int32_t)(i)) & (u_int32_t)IN_CLASSC_NET) == (u_int32_t)0xc0586300)
structsockaddr_inifscope
sockaddr_in with scope ID field; this is used internally to keep
track of scoped route entries in the routing table. The fact that
such a value is embedded in the structure is an artifact of the
current implementation which could change in future.
| __uint8_t | sin_len | |||||||||||||
| sa_family_t | sin_family | |||||||||||||
| in_port_t | sin_port | |||||||||||||
| struct in_addr | sin_addr | |||||||||||||
| unnamed union at Kernel/netinet/in_private.h:103:2 | un | To avoid possible conflict with an overlaid sockaddr_inarp having sin_other set to SIN_PROXY, we use the first 4-bytes of sin_zero since sin_srcaddr is one of the unused fields in sockaddr_inarp. | ||||||||||||
| ||||||||||||||
macrosin_scope_id
#define sin_scope_id un._in_index.ifscope
macroIP_NO_IFT_CELLULAR
Options for use with [gs]etsockopt at the IP level.
First word of comment is data type; bool is stored in int.
#define IP_NO_IFT_CELLULAR 6969
for internal use only
macroIP_RECV_LINK_ADDR_TYPE
#define IP_RECV_LINK_ADDR_TYPE 9697
bool: receive the type of the link level address
macroIP_RECV_LINK_ADDR_UNICAST
Values for IP_RECV_LINK_ADDR_TYPE in ancillary message
#define IP_RECV_LINK_ADDR_UNICAST 0
macroIP_RECV_LINK_ADDR_BROADCAST
#define IP_RECV_LINK_ADDR_BROADCAST 1
macroIP_RECV_LINK_ADDR_MULTICAST
#define IP_RECV_LINK_ADDR_MULTICAST 2
unionsockaddr_in_4_6
| struct sockaddr | sa | |
| struct __sockaddr_header | sah | |
| struct sockaddr_in | sin | |
| struct sockaddr_in6 | sin6 |
macroCLAT46_HDR_EXPANSION_OVERHD
#define CLAT46_HDR_EXPANSION_OVERHD (sizeof(struct ip6_hdr) - sizeof(struct ip))