|
Data Structures |
struct | in_addr |
struct | sockaddr_in |
Defines |
#define | IPPROTO_IP 0 |
#define | IPPROTO_HOPOPTS 0 |
#define | IPPROTO_ICMP 1 |
#define | IPPROTO_IGMP 2 |
#define | IPPROTO_GGP 3 |
#define | IPPROTO_IPV4 4 |
#define | IPPROTO_IPIP 4 |
#define | IPPROTO_TCP 6 |
#define | IPPROTO_EGP 8 |
#define | IPPROTO_PUP 12 |
#define | IPPROTO_UDP 17 |
#define | IPPROTO_IDP 22 |
#define | IPPROTO_TP 29 |
#define | IPPROTO_IPV6 41 |
#define | IPPROTO_ROUTING 43 |
#define | IPPROTO_FRAGMENT 44 |
#define | IPPROTO_RSVP 46 |
#define | IPPROTO_GRE 47 |
#define | IPPROTO_ESP 50 |
#define | IPPROTO_AH 51 |
#define | IPPROTO_MOBILE 55 |
#define | IPPROTO_IPV6_ICMP 58 |
#define | IPPROTO_ICMPV6 58 |
#define | IPPROTO_NONE 59 |
#define | IPPROTO_DSTOPTS 60 |
#define | IPPROTO_EON 80 |
#define | IPPROTO_ENCAP 98 |
#define | IPPROTO_PIM 103 |
#define | IPPROTO_IPCOMP 108 |
#define | IPPROTO_VRRP 112 |
#define | IPPROTO_RAW 255 |
#define | IPPROTO_MAX 256 |
#define | INET_ADDRSTRLEN 16 |
#define | IP_ADDR_SIZE 4 |
#define | IN_CLASSA(a) ((((in_addr_t)(a)) & 0x80000000) == 0) |
#define | IN_CLASSA_NET 0xff000000 |
#define | IN_CLASSA_NSHIFT 24 |
#define | IN_CLASSA_HOST (0xffffffff & ~IN_CLASSA_NET) |
#define | IN_CLASSA_MAX 128 |
#define | IN_CLASSB(a) ((((in_addr_t)(a)) & 0xc0000000) == 0x80000000) |
#define | IN_CLASSB_NET 0xffff0000 |
#define | IN_CLASSB_NSHIFT 16 |
#define | IN_CLASSB_HOST (0xffffffff & ~IN_CLASSB_NET) |
#define | IN_CLASSB_MAX 65536 |
#define | IN_CLASSC(a) ((((in_addr_t)(a)) & 0xe0000000) == 0xc0000000) |
#define | IN_CLASSC_NET 0xffffff00 |
#define | IN_CLASSC_NSHIFT 8 |
#define | IN_CLASSC_HOST (0xffffffff & ~IN_CLASSC_NET) |
#define | IN_CLASSD(a) ((((in_addr_t)(a)) & 0xf0000000) == 0xe0000000) |
#define | IN_MULTICAST(a) IN_CLASSD(a) |
#define | IN_EXPERIMENTAL(a) ((((in_addr_t)(a)) & 0xe0000000) == 0xe0000000) |
#define | IN_BADCLASS(a) ((((in_addr_t)(a)) & 0xf0000000) == 0xf0000000) |
#define | INADDR_ANY ((in_addr_t) 0x00000000) |
#define | INADDR_BROADCAST ((in_addr_t) 0xffffffff) |
#define | INADDR_NONE ((in_addr_t) 0xffffffff) |
#define | IN_LOOPBACKNET 127 |
#define | INADDR_LOOPBACK ((in_addr_t) 0x7f000001) |
#define | INADDR_UNSPEC_GROUP ((in_addr_t) 0xe0000000) |
#define | INADDR_ALLHOSTS_GROUP ((in_addr_t) 0xe0000001) |
#define | INADDR_ALLRTRS_GROUP ((in_addr_t) 0xe0000002) |
#define | INADDR_MAX_LOCAL_GROUP ((in_addr_t) 0xe00000ff) |
Enumerations |
enum | {
IPPORT_ECHO = 7,
IPPORT_DISCARD = 9,
IPPORT_SYSTAT = 11,
IPPORT_DAYTIME = 13,
IPPORT_NETSTAT = 15,
IPPORT_FTP = 21,
IPPORT_TELNET = 23,
IPPORT_SMTP = 25,
IPPORT_TIMESERVER = 37,
IPPORT_NAMESERVER = 42,
IPPORT_WHOIS = 43,
IPPORT_MTP = 57,
IPPORT_TFTP = 69,
IPPORT_RJE = 77,
IPPORT_FINGER = 79,
IPPORT_TTYLINK = 87,
IPPORT_SUPDUP = 95,
IPPORT_EXECSERVER = 512,
IPPORT_LOGINSERVER = 513,
IPPORT_CMDSERVER = 514,
IPPORT_EFSSERVER = 520,
IPPORT_BIFFUDP = 512,
IPPORT_WHOSERVER = 513,
IPPORT_ROUTESERVER = 520,
IPPORT_RESERVED = 1024,
IPPORT_USERRESERVED = 5000
} |