in.h File Reference

Go to the source code of this file.

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
}


Define Documentation

#define IN_BADCLASS  )     ((((in_addr_t)(a)) & 0xf0000000) == 0xf0000000)
 

#define IN_CLASSA  )     ((((in_addr_t)(a)) & 0x80000000) == 0)
 

#define IN_CLASSA_HOST   (0xffffffff & ~IN_CLASSA_NET)
 

#define IN_CLASSA_MAX   128
 

#define IN_CLASSA_NET   0xff000000
 

#define IN_CLASSA_NSHIFT   24
 

#define IN_CLASSB  )     ((((in_addr_t)(a)) & 0xc0000000) == 0x80000000)
 

#define IN_CLASSB_HOST   (0xffffffff & ~IN_CLASSB_NET)
 

#define IN_CLASSB_MAX   65536
 

#define IN_CLASSB_NET   0xffff0000
 

#define IN_CLASSB_NSHIFT   16
 

#define IN_CLASSC  )     ((((in_addr_t)(a)) & 0xe0000000) == 0xc0000000)
 

#define IN_CLASSC_HOST   (0xffffffff & ~IN_CLASSC_NET)
 

#define IN_CLASSC_NET   0xffffff00
 

#define IN_CLASSC_NSHIFT   8
 

#define IN_CLASSD  )     ((((in_addr_t)(a)) & 0xf0000000) == 0xe0000000)
 

#define IN_EXPERIMENTAL  )     ((((in_addr_t)(a)) & 0xe0000000) == 0xe0000000)
 

#define IN_LOOPBACKNET   127
 

#define IN_MULTICAST  )     IN_CLASSD(a)
 

#define INADDR_ALLHOSTS_GROUP   ((in_addr_t) 0xe0000001)
 

#define INADDR_ALLRTRS_GROUP   ((in_addr_t) 0xe0000002)
 

#define INADDR_ANY   ((in_addr_t) 0x00000000)
 

#define INADDR_BROADCAST   ((in_addr_t) 0xffffffff)
 

#define INADDR_LOOPBACK   ((in_addr_t) 0x7f000001)
 

#define INADDR_MAX_LOCAL_GROUP   ((in_addr_t) 0xe00000ff)
 

#define INADDR_NONE   ((in_addr_t) 0xffffffff)
 

#define INADDR_UNSPEC_GROUP   ((in_addr_t) 0xe0000000)
 

#define INET_ADDRSTRLEN   16
 

#define IP_ADDR_SIZE   4
 

#define IPPROTO_AH   51
 

#define IPPROTO_DSTOPTS   60
 

#define IPPROTO_EGP   8
 

#define IPPROTO_ENCAP   98
 

#define IPPROTO_EON   80
 

#define IPPROTO_ESP   50
 

#define IPPROTO_FRAGMENT   44
 

#define IPPROTO_GGP   3
 

#define IPPROTO_GRE   47
 

#define IPPROTO_HOPOPTS   0
 

#define IPPROTO_ICMP   1
 

#define IPPROTO_ICMPV6   58
 

#define IPPROTO_IDP   22
 

#define IPPROTO_IGMP   2
 

#define IPPROTO_IP   0
 

#define IPPROTO_IPCOMP   108
 

#define IPPROTO_IPIP   4
 

#define IPPROTO_IPV4   4
 

#define IPPROTO_IPV6   41
 

#define IPPROTO_IPV6_ICMP   58
 

#define IPPROTO_MAX   256
 

#define IPPROTO_MOBILE   55
 

#define IPPROTO_NONE   59
 

#define IPPROTO_PIM   103
 

#define IPPROTO_PUP   12
 

#define IPPROTO_RAW   255
 

#define IPPROTO_ROUTING   43
 

#define IPPROTO_RSVP   46
 

#define IPPROTO_TCP   6
 

#define IPPROTO_TP   29
 

#define IPPROTO_UDP   17
 

#define IPPROTO_VRRP   112
 


Enumeration Type Documentation

anonymous enum
 

Enumerator:
IPPORT_ECHO 
IPPORT_DISCARD 
IPPORT_SYSTAT 
IPPORT_DAYTIME 
IPPORT_NETSTAT 
IPPORT_FTP 
IPPORT_TELNET 
IPPORT_SMTP 
IPPORT_TIMESERVER 
IPPORT_NAMESERVER 
IPPORT_WHOIS 
IPPORT_MTP 
IPPORT_TFTP 
IPPORT_RJE 
IPPORT_FINGER 
IPPORT_TTYLINK 
IPPORT_SUPDUP 
IPPORT_EXECSERVER 
IPPORT_LOGINSERVER 
IPPORT_CMDSERVER 
IPPORT_EFSSERVER 
IPPORT_BIFFUDP 
IPPORT_WHOSERVER 
IPPORT_ROUTESERVER 
IPPORT_RESERVED 
IPPORT_USERRESERVED 


Generated on Wed May 24 23:06:03 2006 for LSE/OS by  doxygen 1.4.6