17
IPPROTO_FRAGMENT = 44;
34
Pin_port_t = ^in_port_t;
46
IPPORT_TIMESERVER = 37;
47
IPPORT_NAMESERVER = 42;
55
IPPORT_EXECSERVER = 512;
56
IPPORT_LOGINSERVER = 513;
57
IPPORT_CMDSERVER = 514;
58
IPPORT_EFSSERVER = 520;
60
IPPORT_WHOSERVER = 513;
61
IPPORT_ROUTESERVER = 520;
62
IPPORT_RESERVED = 1024;
63
IPPORT_USERRESERVED = 5000;
67
Pin_addr_t = ^in_addr_t;
78
IN_CLASSA_NET = $ff000000;
79
IN_CLASSA_NSHIFT = 24;
80
IN_CLASSA_HOST = $ffffffff and ( not (IN_CLASSA_NET));
84
IN_CLASSB_NET = $ffff0000;
85
IN_CLASSB_NSHIFT = 16;
86
IN_CLASSB_HOST = $ffffffff and ( not (IN_CLASSB_NET));
87
IN_CLASSB_MAX = 65536;
91
IN_CLASSC_NET = $ffffff00;
93
IN_CLASSC_HOST = $ffffffff and ( not (IN_CLASSC_NET));
95
Function IN_CLASSA(a: in_addr_t): Boolean;
96
Function IN_CLASSB(a: in_addr_t): Boolean;
97
Function IN_CLASSC(a: in_addr_t): Boolean;
98
Function IN_CLASSD(a: in_addr_t): Boolean;
99
Function IN_MULTICAST(a: in_addr_t): Boolean;
100
Function IN_EXPERIMENTAL(a: in_addr_t): Boolean;
101
Function IN_BADCLASS(a: in_addr_t): Boolean;
105
IN_LOOPBACKNET = 127;
106
INADDR_LOOPBACK = in_addr_t($7f000001);
107
INADDR_UNSPEC_GROUP = in_addr_t($e0000000);
108
INADDR_ALLHOSTS_GROUP = in_addr_t($e0000001);
109
INADDR_ALLRTRS_GROUP = in_addr_t($0000002);
110
INADDR_MAX_LOCAL_GROUP = in_addr_t($e00000ff);
113
Pin6_addr = ^in6_addr;
118
0 : ( u6_addr8 : array[0..15] of uint8_t );
119
1 : ( u6_addr16 : array[0..7] of uint16_t );
120
2 : ( u6_addr32 : array[0..3] of uint32_t );
123
0: (s6_addr: packed array [0..16-1] of __uint8_t);
124
1: (s6_addr16: packed array [0..8-1] of uint16_t);
125
2: (s6_addr32: packed array [0..4-1] of uint32_t);
131
IN6ADDR_ANY_INIT : in6_addr = ( in6_u : (U6_addr8 : (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 )) );
132
IN6ADDR_LOOPBACK_INIT : in6_addr = ( in6_u : (U6_addr8 : ( 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 )));
135
INET_ADDRSTRLEN = 16;
136
INET6_ADDRSTRLEN = 46;
139
Psockaddr_in6 = ^sockaddr_in6;
140
sockaddr_in6 = record
141
sin6_family: sa_family_t;
142
sin6_port : in_port_t;
143
sin6_flowinfo : uint32_t;
144
sin6_addr : in6_addr;
145
sin6_scope_id : uint32_t;
148
Pipv6_mreq = ^ipv6_mreq;
150
ipv6mr_multiaddr : in6_addr;
151
ipv6mr_interface : dword;
155
in6_pktinfo = {packed} record
156
ipi6_addr: in6_addr; { src/dst IPv6 address }
157
ipi6_ifindex: Cardinal; { send/recv interface index }
160
Function IN6_IS_ADDR_UNSPECIFIED(const a: in6_addr): Boolean;
161
Function IN6_IS_ADDR_LOOPBACK(const a: in6_addr): Boolean;
162
Function IN6_IS_ADDR_MULTICAST(const a: in6_addr): Boolean;
163
Function IN6_IS_ADDR_LINKLOCAL(const a: in6_addr): Boolean;
164
Function IN6_IS_ADDR_SITELOCAL(const a: in6_addr): Boolean;
165
Function IN6_IS_ADDR_V4MAPPED(const a: in6_addr): Boolean;
166
Function IN6_IS_ADDR_V4COMPAT(const a: in6_addr): Boolean;
167
Function IN6_ARE_ADDR_EQUAL(const a, b: in6_addr): Boolean;
168
Function IN6_IS_ADDR_MC_NODELOCAL(const a: in6_addr): Boolean;
169
Function IN6_IS_ADDR_MC_LINKLOCAL(const a: in6_addr): Boolean;
170
Function IN6_IS_ADDR_MC_SITELOCAL(const a: in6_addr): Boolean;
171
Function IN6_IS_ADDR_MC_ORGLOCAL(const a: in6_addr): Boolean;
172
Function IN6_IS_ADDR_MC_GLOBAL(const a: in6_addr): Boolean;
174
function ntohl(__netlong:uint32_t):uint32_t;cdecl;external clib name 'ntohl';
175
function ntohs(__netshort:uint16_t):uint16_t;cdecl;external clib name 'ntohs';
176
function htonl(__hostlong:uint32_t):uint32_t;cdecl;external clib name 'htonl';
177
function htons(__hostshort:uint16_t):uint16_t;cdecl;external clib name 'htons';
179
function bindresvport6(__sockfd:longint; __sock_in:Psockaddr_in6):longint;cdecl;external clib name 'bindresvport6';
180
function bindresvport(__sockfd:longint; __sock_in:Psockaddr_in):longint;cdecl;external clib name 'bindresvport';