in.h File Reference

IPPROTO_IP

Protocols

IPPROTO_ICMP

IPPROTO_IGMP

IPPROTO_GGP

IPPROTO_ENCAP

IPPROTO_TCP

IPPROTO_EGP

IPPROTO_PUP

IPPROTO_UDP

IPPROTO_IDP

IPPROTO_HELLO

IPPROTO_ND

IPPROTO_EON

IPPROTO_RAW

IPPROTO_MAX

IPPORT_ECHO

Port/socket numbers: network standard functions

IPPORT_DISCARD

IPPORT_SYSTAT

IPPORT_DAYTIME

IPPORT_NETSTAT

IPPORT_FTP

IPPORT_TELNET

IPPORT_SMTP

IPPORT_TIMESERVER

IPPORT_NAMESERVER

IPPORT_WHOIS

IPPORT_MTP

IPPORT_TFTP

Port/socket numbers: host specific functions

IPPORT_RJE

IPPORT_FINGER

IPPORT_TTYLINK

IPPORT_SUPDUP

IPPORT_EXECSERVER

UNIX TCP sockets

IPPORT_LOGINSERVER

IPPORT_CMDSERVER

IPPORT_EFSSERVER

IPPORT_BIFFUDP

UNIX UDP sockets

IPPORT_WHOSERVER

IPPORT_ROUTESERVER

IPPORT_RESERVED

Ports < IPPORT_RESERVED are reserved for privileged processes (e.g. root). Ports > IPPORT_USERRESERVED are reserved for servers, not necessarily privileged.

IPPORT_USERRESERVED

IMPLINK_IP

Link numbers

IMPLINK_LOWEXPER

IMPLINK_HIGHEXPER

s_addr

s_host

s_net

s_imp

s_impno

s_lh

IN_CLASSA

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

IN_CLASSA_NET

IN_CLASSA_NSHIFT

IN_CLASSA_HOST

IN_CLASSA_MAX

IN_CLASSB

IN_CLASSB_NET

IN_CLASSB_NSHIFT

IN_CLASSB_HOST

IN_CLASSB_MAX

IN_CLASSC

IN_CLASSC_NET

IN_CLASSC_NSHIFT

IN_CLASSC_HOST

IN_CLASSC_MAX

IN_CLASSD

IN_CLASSD_NET

IN_CLASSD_NSHIFT

IN_CLASSD_HOST

IN_MULTICAST

IN_EXPERIMENTAL

IN_BADCLASS

INADDR_ANY

INADDR_LOOPBACK

INADDR_BROADCAST

INADDR_UNSPEC_GROUP

INADDR_ALLHOSTS_GROUP

INADDR_MAX_LOCAL_GROUP

INADDR_NONE

IN_LOOPBACKNET

IN_SET_LOOPBACK_ADDR

Define a macro to stuff the loopback address into an Internet address 0x0100007F is htonl(INADDR_LOOPBACK) without the overhead of a function call.

SOL_IP

Options for use with [gs]etsockopt at the IP level. NB. The negative option values below are not supported and must not be used in calls to the [gs]etsockopt() API as they will be ignored or cause an error.

IP_OPTIONS

IP_HDRINCL

IP_TOS

IP_TTL

IP_RECVOPTS

IP_RECVRETOPTS

IP_RECVDSTADDR

IP_RETOPTS

IP_MULTICAST_IF

IP_MULTICAST_TTL

IP_MULTICAST_LOOP

IP_ADD_MEMBERSHIP

IP_DROP_MEMBERSHIP

IP_DEFAULT_MULTICAST_TTL

IP_DEFAULT_MULTICAST_LOOP

SOL_TCP

Options for use with [gs]etsockopt at the TCP level.

TCP_SENDWINDOW

TCP_RECVWINDOW

TCP_NODELAY

TCP_KEEPALIVE

htons ( unsigned short )

IMPORT_C unsigned shorthtons(unsigned shorths)

htonl ( unsigned long )

IMPORT_C unsigned longhtonl(unsigned longhl)

ntohl

ntohs