55#define IPPROTO_HOPOPTS 0
67#define IPPROTO_IPV6 41
68#define IPPROTO_ROUTING 43
69#define IPPROTO_FRAGMENT 44
70#define IPPROTO_RSVP 46
74#define IPPROTO_MOBILE 55
75#define IPPROTO_IPV6_ICMP 58
76#define IPPROTO_ICMPV6 58
77#define IPPROTO_NONE 59
78#define IPPROTO_DSTOPTS 60
80#define IPPROTO_ETHERIP 97
81#define IPPROTO_ENCAP 98
82#define IPPROTO_PIM 103
83#define IPPROTO_IPCOMP 108
84#define IPPROTO_VRRP 112
86#define IPPROTO_RAW 255
87#define IPPROTO_MAX 256
90#define IPPROTO_DONE 257
93#define CTL_IPPROTO_IPSEC 258
124#define IPPORT_RESERVED 1024
125#define IPPORT_ANONMIN 49152
126#define IPPORT_ANONMAX 65535
127#define IPPORT_RESERVEDMIN 600
128#define IPPORT_RESERVEDMAX (IPPORT_RESERVED-1)
137#define __IPADDR(x) ((uint32_t)(x))
139#define IN_CLASSA(i) (((uint32_t)(i) & __IPADDR(0x80000000)) == \
140 __IPADDR(0x00000000))
141#define IN_CLASSA_NET __IPADDR(0xff000000)
142#define IN_CLASSA_NSHIFT 24
143#define IN_CLASSA_HOST __IPADDR(0x00ffffff)
144#define IN_CLASSA_MAX 128
146#define IN_CLASSB(i) (((uint32_t)(i) & __IPADDR(0xc0000000)) == \
147 __IPADDR(0x80000000))
148#define IN_CLASSB_NET __IPADDR(0xffff0000)
149#define IN_CLASSB_NSHIFT 16
150#define IN_CLASSB_HOST __IPADDR(0x0000ffff)
151#define IN_CLASSB_MAX 65536
153#define IN_CLASSC(i) (((uint32_t)(i) & __IPADDR(0xe0000000)) == \
154 __IPADDR(0xc0000000))
155#define IN_CLASSC_NET __IPADDR(0xffffff00)
156#define IN_CLASSC_NSHIFT 8
157#define IN_CLASSC_HOST __IPADDR(0x000000ff)
159#define IN_CLASSD(i) (((uint32_t)(i) & __IPADDR(0xf0000000)) == \
160 __IPADDR(0xe0000000))
162#define IN_CLASSD_NET __IPADDR(0xf0000000)
163#define IN_CLASSD_NSHIFT 28
164#define IN_CLASSD_HOST __IPADDR(0x0fffffff)
165#define IN_MULTICAST(i) IN_CLASSD(i)
167#define IN_EXPERIMENTAL(i) (((uint32_t)(i) & __IPADDR(0xf0000000)) == \
168 __IPADDR(0xf0000000))
169#define IN_BADCLASS(i) (((uint32_t)(i) & __IPADDR(0xf0000000)) == \
170 __IPADDR(0xf0000000))
172#define IN_LOCAL_GROUP(i) (((uint32_t)(i) & __IPADDR(0xffffff00)) == \
173 __IPADDR(0xe0000000))
175#define INADDR_ANY __IPADDR(0x00000000)
176#define INADDR_LOOPBACK __IPADDR(0x7f000001)
177#define INADDR_BROADCAST __IPADDR(0xffffffff)
179#define INADDR_UNSPEC_GROUP __IPADDR(0xe0000000)
180#define INADDR_ALLHOSTS_GROUP __IPADDR(0xe0000001)
181#define INADDR_ALLRTRS_GROUP __IPADDR(0xe0000002)
182#define INADDR_MAX_LOCAL_GROUP __IPADDR(0xe00000ff)
184#define IN_LOOPBACKNET 127
197#define INET_ADDRSTRLEN 16
208#if defined(__cplusplus)
224#define IP_RECVRETOPTS 6
225#define IP_RECVDSTADDR 7
227#define IP_MULTICAST_IF 9
228#define IP_MULTICAST_TTL 10
229#define IP_MULTICAST_LOOP 11
230#define IP_ADD_MEMBERSHIP 12
231#define IP_DROP_MEMBERSHIP 13
232#define IP_PORTRANGE 19
234#define IP_ERRORMTU 21
236#define IP_IPSEC_POLICY 22
242#define IP_DEFAULT_MULTICAST_TTL 1
243#define IP_DEFAULT_MULTICAST_LOOP 1
244#define IP_MAX_MEMBERSHIPS 20
258#define IP_PORTRANGE_DEFAULT 0
259#define IP_PORTRANGE_HIGH 1
260#define IP_PORTRANGE_LOW 2
265#define ntohs(x) __builtin_allegrex_wsbh(x)
266#define ntohl(x) __builtin_allegrex_wsbw(x)
267#define htons(x) __builtin_allegrex_wsbh(x)
268#define htonl(x) __builtin_allegrex_wsbw(x)
270#define ntohs(x) __builtin_bswap16(x)
271#define ntohl(x) __builtin_bswap32(x)
272#define htons(x) __builtin_bswap16(x)
273#define htonl(x) __builtin_bswap32(x)
struct sircs_data __packed__
struct sockaddr_in __attribute__
Writes gmon.out dump file and stops profiling Called from atexit() handler; will dump out a gmon....
Definition prof.c:169
uint16_t in_port_t
Definition in.h:49
uint32_t in_addr_t
Definition in.h:48
float x
Definition psptypes.h:0
uint8_t sa_family_t
Definition socket.h:74
in_addr_t s_addr
Definition in.h:134
struct in_addr imr_interface
Definition in.h:251
struct in_addr imr_multiaddr
Definition in.h:250
struct in_addr ip_dst
Definition in.h:207
int8_t sin_zero[8]
Definition in.h:194
struct in_addr sin_addr
Definition in.h:193
uint8_t sin_len
Definition in.h:190
sa_family_t sin_family
Definition in.h:191
in_port_t sin_port
Definition in.h:192