socket_codes.h File Reference

Socket codes and definitions. More...

#include <sys/types.h>
Include dependency graph for socket_codes.h:
This graph shows which files directly or indirectly include this file:

Defines

Address families definitions



#define AF_UNSPEC   0
 Unspecified address family.
#define AF_UNIXL   1
 Unix domain sockets address family.
#define AF_LOCAL   1
 POSIX name for AF_UNIX address family.
#define AF_INET   2
 Internet IP Protocol address family.
#define AF_AX25   3
 Amateur Radio AX.25 address family.
#define AF_IPX   4
 Novell IPX address family.
#define AF_APPLETALK   5
 AppleTalk DDP address family.
#define AF_NETROM   6
 Amateur Radio NET/ROM address family.
#define AF_BRIDGE   7
 Multiprotocol bridge address family.
#define AF_ATMPVC   8
 ATM PVCs address family.
#define AF_X25   9
 Reserved for X.25 project address family.
#define AF_INET6   10
 IP version 6 address family.
#define AF_ROSE   11
 Amateur Radio X.25 PLP address family.
#define AF_DECnet   12
 Reserved for DECnet project address family.
#define AF_NETBEUI   13
 Reserved for 802.2LLC project address family.
#define AF_SECURITY   14
 Security callback pseudo AF address family.
#define AF_KEY   15
 PF_KEY key management API address family.
#define AF_NETLINK   16
 Alias to emulate 4.4BSD address family.
#define AF_PACKET   17
 Packet family address family.
#define AF_ASH   18
 Ash address family.
#define AF_ECONET   19
 Acorn Econet address family.
#define AF_ATMSVC   20
 ATM SVCs address family.
#define AF_SNA   22
 Linux SNA Project (nutters!) address family.
#define AF_IRDA   23
 IRDA sockets address family.
#define AF_PPPOX   24
 PPPoX sockets address family.
#define AF_WANPIPE   25
 Wanpipe API Sockets address family.
#define AF_LLC   26
 Linux LLC address family.
#define AF_CAN   29
 Controller Area Network address family.
#define AF_TIPC   30
 TIPC sockets address family.
#define AF_BLUETOOTH   31
 Bluetooth sockets address family.
#define AF_IUCV   32
 IUCV sockets address family.
#define AF_RXRPC   33
 RxRPC sockets address family.
#define AF_MAX   34
 Maximum address family.
Protocol families definitions

Same as address families.



#define PF_UNSPEC   AF_UNSPEC
 Unspecified protocol family.
#define PF_UNIXL   AF_UNIXL
 Unix domain sockets protocol family.
#define PF_LOCAL   AF_LOCAL
 POSIX name for AF_UNIX protocol family.
#define PF_INET   AF_INET
 Internet IP Protocol protocol family.
#define PF_AX25   AF_AX25
 Amateur Radio AX.25 protocol family.
#define PF_IPX   AF_IPX
 Novell IPX protocol family.
#define PF_APPLETALK   AF_APPLETALK
 AppleTalk DDP protocol family.
#define PF_NETROM   AF_NETROM
 Amateur Radio NET/ROM protocol family.
#define PF_BRIDGE   AF_BRIDGE
 Multiprotocol bridge protocol family.
#define PF_ATMPVC   AF_ATMPVC
 ATM PVCs protocol family.
#define PF_X25   AF_X25
 Reserved for X.25 project protocol family.
#define PF_INET6   AF_INET6
 IP version 6 protocol family.
#define PF_ROSE   AF_ROSE
 Amateur Radio X.25 PLP protocol family.
#define PF_DECnet   AF_DECnet
 Reserved for DECnet project protocol family.
#define PF_NETBEUI   AF_NETBEUI
 Reserved for 802.2LLC project protocol family.
#define PF_SECURITY   AF_SECURITY
 Security callback pseudo AF protocol family.
#define PF_KEY   AF_KEY
 PF_KEY key management API protocol family.
#define PF_NETLINK   AF_NETLINK
 Alias to emulate 4.4BSD protocol family.
#define PF_PACKET   AF_PACKET
 Packet family protocol family.
#define PF_ASH   AF_ASH
 Ash protocol family.
#define PF_ECONET   AF_ECONET
 Acorn Econet protocol family.
#define PF_ATMSVC   AF_ATMSVC
 ATM SVCs protocol family.
#define PF_SNA   AF_SNA
 Linux SNA Project (nutters!) protocol family.
#define PF_IRDA   AF_IRDA
 IRDA sockets protocol family.
#define PF_PPPOX   AF_PPPOX
 PPPoX sockets protocol family.
#define PF_WANPIPE   AF_WANPIPE
 Wanpipe API Sockets protocol family.
#define PF_LLC   AF_LLC
 Linux LLC protocol family.
#define PF_CAN   AF_CAN
 Controller Area Network protocol family.
#define PF_TIPC   AF_TIPC
 TIPC sockets protocol family.
#define PF_BLUETOOTH   AF_BLUETOOTH
 Bluetooth sockets protocol family.
#define PF_IUCV   AF_IUCV
 IUCV sockets protocol family.
#define PF_RXRPC   AF_RXRPC
 RxRPC sockets protocol family.
#define PF_MAX   AF_MAX
 Maximum protocol family.
Socket option levels definitions

Thanks to BSD these must match IPPROTO_xxx



#define SOL_IP   0
 IP socket option level.
#define SOL_ICMP   1
 ICMP socket option level.
#define SOL_TCP   6
 TCP socket option level.
#define SOL_UDP   17
 UDP socket option level.
#define SOL_IPV6   41
 IPV socket option level.
#define SOL_ICMPV6   58
 ICMPV socket option level.
#define SOL_SCTP   132
 SCTP socket option level.
#define SOL_UDPLITE   136
 UDP-Lite (RFC 3828) socket option level.
#define SOL_RAW   255
 RAW socket option level.
#define SOL_IPX   256
 IPX socket option level.
#define SOL_AX25   257
 AX socket option level.
#define SOL_ATALK   258
 ATALK socket option level.
#define SOL_NETROM   259
 NETROM socket option level.
#define SOL_ROSE   260
 ROSE socket option level.
#define SOL_DECNET   261
 DECNET socket option level.
#define SOL_X25   262
 X25 socket option level.
#define SOL_PACKET   263
 PACKET socket option level.
#define SOL_ATM   264
 ATM layer (cell level) socket option level.
#define SOL_AAL   265
 ATM Adaption Layer (packet level) socket option level.
#define SOL_IRDA   266
 IRDA socket option level.
#define SOL_NETBEUI   267
 NETBEUI socket option level.
#define SOL_LLC   268
 LLC socket option level.
#define SOL_DCCP   269
 DCCP socket option level.
#define SOL_NETLINK   270
 NETLINK socket option level.
#define SOL_TIPC   271
 TIPC socket option level.
#define SOL_RXRPC   272
 RXRPC socket option level.
#define SOL_PPPOL2TP   273
 PPPOL socket option level.
#define SOL_BLUETOOTH   274
 BLUETOOTH socket option level.

Typedefs

typedef enum sock_type sock_type_t
 Socket types.
typedef int32_t socklen_t
 Type definition of the socket length.

Enumerations

enum  sock_type { SOCK_STREAM = 1, SOCK_DGRAM = 2, SOCK_RAW = 3 }
 

Socket types.

More...

Detailed Description

Socket codes and definitions.

This is a part of the network application library.


Generated on Thu Mar 11 20:46:04 2010 for Networking and TCP/IP stack for HelenOS system by  doxygen 1.6.1