Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs
in.h File Reference
#include <machine/endian.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  in_addr
struct  sockaddr_in
struct  ip_opts
struct  ip_mreq

Defines

#define IPPROTO_IP   0 /* dummy for IP */
#define IPPROTO_ICMP   1 /* control message protocol */
#define IPPROTO_IGMP   2 /* group mgmt protocol */
#define IPPROTO_GGP   3 /* gateway^2 (deprecated) */
#define IPPROTO_TCP   6 /* tcp */
#define IPPROTO_EGP   8 /* exterior gateway protocol */
#define IPPROTO_PUP   12 /* pup */
#define IPPROTO_UDP   17 /* user datagram protocol */
#define IPPROTO_IDP   22 /* xns idp */
#define IPPROTO_TP   29 /* tp-4 w/ class negotiation */
#define IPPROTO_EON   80 /* ISO cnlp */
#define IPPROTO_ENCAP   98 /* encapsulation header */
#define IPPROTO_RAW   255 /* raw IP packet */
#define IPPROTO_MAX   256
#define IPPORT_RESERVED   1024
#define IPPORT_USERRESERVED   5000
#define IN_CLASSA(i)   (((long)(i) & 0x80000000) == 0)
#define IN_CLASSA_NET   0xff000000
#define IN_CLASSA_NSHIFT   24
#define IN_CLASSA_HOST   0x00ffffff
#define IN_CLASSA_MAX   128
#define IN_CLASSB(i)   (((long)(i) & 0xc0000000) == 0x80000000)
#define IN_CLASSB_NET   0xffff0000
#define IN_CLASSB_NSHIFT   16
#define IN_CLASSB_HOST   0x0000ffff
#define IN_CLASSB_MAX   65536
#define IN_CLASSC(i)   (((long)(i) & 0xe0000000) == 0xc0000000)
#define IN_CLASSC_NET   0xffffff00
#define IN_CLASSC_NSHIFT   8
#define IN_CLASSC_HOST   0x000000ff
#define IN_CLASSD(i)   (((long)(i) & 0xf0000000) == 0xe0000000)
#define IN_CLASSD_NET   0xf0000000 /* These ones aren't really */
#define IN_CLASSD_NSHIFT   28 /* net and host fields, but */
#define IN_CLASSD_HOST   0x0fffffff /* routing needn't know. */
#define IN_MULTICAST(i)   IN_CLASSD(i)
#define IN_EXPERIMENTAL(i)   (((long)(i) & 0xf0000000) == 0xf0000000)
#define IN_BADCLASS(i)   (((long)(i) & 0xf0000000) == 0xf0000000)
#define INADDR_ANY   (u_long)0x00000000
#define INADDR_BROADCAST   (u_long)0xffffffff /* must be masked */
#define INADDR_NONE   0xffffffff /* -1 return */
#define INADDR_UNSPEC_GROUP   (u_long)0xe0000000 /* 224.0.0.0 */
#define INADDR_ALLHOSTS_GROUP   (u_long)0xe0000001 /* 224.0.0.1 */
#define INADDR_MAX_LOCAL_GROUP   (u_long)0xe00000ff /* 224.0.0.255 */
#define IN_LOOPBACKNET   127 /* official! */
#define _SA_FAMILY_T_DEFINED
#define IP_OPTIONS   0x01
#define IP_TOS   0x02
#define IP_TTL   0x03
#define IP_REUSEADDR   0x04
#define IP_DONTROUTE   0x10
#define IP_BROADCAST   0x20
#define IP_HDRINCL   0x1002
#define IP_RCVOPTS   0x1005
#define IP_RCVDSTADDR   0x1007
#define IP_MULTICAST_IF   0x1010 /* set/get IP multicast interface */
#define IP_MULTICAST_TTL   0x1011 /* set/get IP multicast timetolive */
#define IP_MULTICAST_LOOP   0x1012 /* set/get IP multicast loopback */
#define IP_ADD_MEMBERSHIP   0x1013 /* add an IP group membership */
#define IP_DROP_MEMBERSHIP   0x1014 /* drop an IP group membership */
#define IP_BROADCAST_IF   0x1015 /* Set interface for broadcasts */
#define IP_RCVIFADDR   0x1016 /* Set interface for broadcasts */
#define IP_DEFAULT_MULTICAST_TTL   1 /* normally limit m'casts to 1 hop */
#define IP_DEFAULT_MULTICAST_LOOP   1 /* normally hear sends if a member */
#define IP_MAX_MEMBERSHIPS   20 /* per socket; must fit in one mbuf */
#define IPPROTO_MAXID   (IPPROTO_IDP + 1) /* don't list to IPPROTO_MAX */
#define CTL_IPPROTO_NAMES
#define IPCTL_FORWARDING   1 /* act as router */
#define IPCTL_SENDREDIRECTS   2 /* may send redirects when forwarding */
#define IPCTL_DEFTTL   3 /* default TTL */
#define IPCTL_MAXID   5
#define IPCTL_NAMES

Typedefs

typedef uint16_t in_port_t
typedef uint32_t in_addr_t
typedef uint16_t sa_family_t

Class Documentation

struct in_addr

Definition at line 73 of file macsocket.h.

Class Members
unsigned long s_addr
in_addr_t s_addr
struct sockaddr_in

Definition at line 77 of file macsocket.h.

Class Members
unsigned char sin_family
sa_family_t sin_family
unsigned char sin_len
unsigned short sin_port
in_port_t sin_port
char sin_zero
unsigned char sin_zero
struct ip_opts

Definition at line 153 of file in.h.

Class Members
char ip_opts
struct ip_mreq

Definition at line 233 of file macsocket.h.


Define Documentation

Definition at line 132 of file in.h.

Value:
{ \
       { "ip", CTLTYPE_NODE }, \
       { "icmp", CTLTYPE_NODE }, \
       { "igmp", CTLTYPE_NODE }, \
       { "ggp", CTLTYPE_NODE }, \
       { 0, 0 }, \
       { 0, 0 }, \
       { "tcp", CTLTYPE_NODE }, \
       { 0, 0 }, \
       { "egp", CTLTYPE_NODE }, \
       { 0, 0 }, \
       { 0, 0 }, \
       { 0, 0 }, \
       { "pup", CTLTYPE_NODE }, \
       { 0, 0 }, \
       { 0, 0 }, \
       { 0, 0 }, \
       { 0, 0 }, \
       { "udp", CTLTYPE_NODE }, \
       { 0, 0 }, \
       { 0, 0 }, \
       { 0, 0 }, \
       { 0, 0 }, \
       { "idp", CTLTYPE_NODE }, \
}

Definition at line 202 of file in.h.

#define IN_BADCLASS (   i)    (((long)(i) & 0xf0000000) == 0xf0000000)

Definition at line 118 of file in.h.

#define IN_CLASSA (   i)    (((long)(i) & 0x80000000) == 0)

Definition at line 94 of file in.h.

#define IN_CLASSA_HOST   0x00ffffff

Definition at line 97 of file in.h.

#define IN_CLASSA_MAX   128

Definition at line 98 of file in.h.

#define IN_CLASSA_NET   0xff000000

Definition at line 95 of file in.h.

Definition at line 96 of file in.h.

#define IN_CLASSB (   i)    (((long)(i) & 0xc0000000) == 0x80000000)

Definition at line 100 of file in.h.

#define IN_CLASSB_HOST   0x0000ffff

Definition at line 103 of file in.h.

#define IN_CLASSB_MAX   65536

Definition at line 104 of file in.h.

#define IN_CLASSB_NET   0xffff0000

Definition at line 101 of file in.h.

Definition at line 102 of file in.h.

#define IN_CLASSC (   i)    (((long)(i) & 0xe0000000) == 0xc0000000)

Definition at line 106 of file in.h.

#define IN_CLASSC_HOST   0x000000ff

Definition at line 109 of file in.h.

#define IN_CLASSC_NET   0xffffff00

Definition at line 107 of file in.h.

Definition at line 108 of file in.h.

#define IN_CLASSD (   i)    (((long)(i) & 0xf0000000) == 0xe0000000)

Definition at line 111 of file in.h.

#define IN_CLASSD_HOST   0x0fffffff /* routing needn't know. */

Definition at line 114 of file in.h.

#define IN_CLASSD_NET   0xf0000000 /* These ones aren't really */

Definition at line 112 of file in.h.

#define IN_CLASSD_NSHIFT   28 /* net and host fields, but */

Definition at line 113 of file in.h.

#define IN_EXPERIMENTAL (   i)    (((long)(i) & 0xf0000000) == 0xf0000000)

Definition at line 117 of file in.h.

#define IN_LOOPBACKNET   127 /* official! */

Definition at line 128 of file in.h.

#define IN_MULTICAST (   i)    IN_CLASSD(i)

Definition at line 115 of file in.h.

#define INADDR_ALLHOSTS_GROUP   (u_long)0xe0000001 /* 224.0.0.1 */

Definition at line 125 of file in.h.

#define INADDR_ANY   (u_long)0x00000000

Definition at line 120 of file in.h.

#define INADDR_BROADCAST   (u_long)0xffffffff /* must be masked */

Definition at line 121 of file in.h.

#define INADDR_MAX_LOCAL_GROUP   (u_long)0xe00000ff /* 224.0.0.255 */

Definition at line 126 of file in.h.

#define INADDR_NONE   0xffffffff /* -1 return */

Definition at line 122 of file in.h.

#define INADDR_UNSPEC_GROUP   (u_long)0xe0000000 /* 224.0.0.0 */

Definition at line 124 of file in.h.

#define IP_ADD_MEMBERSHIP   0x1013 /* add an IP group membership */

Definition at line 174 of file in.h.

#define IP_BROADCAST   0x20

Definition at line 167 of file in.h.

#define IP_BROADCAST_IF   0x1015 /* Set interface for broadcasts */

Definition at line 176 of file in.h.

#define IP_DEFAULT_MULTICAST_LOOP   1 /* normally hear sends if a member */

Definition at line 183 of file in.h.

#define IP_DEFAULT_MULTICAST_TTL   1 /* normally limit m'casts to 1 hop */

Definition at line 182 of file in.h.

#define IP_DONTROUTE   0x10

Definition at line 166 of file in.h.

#define IP_DROP_MEMBERSHIP   0x1014 /* drop an IP group membership */

Definition at line 175 of file in.h.

#define IP_HDRINCL   0x1002

Definition at line 168 of file in.h.

#define IP_MAX_MEMBERSHIPS   20 /* per socket; must fit in one mbuf */

Definition at line 184 of file in.h.

#define IP_MULTICAST_IF   0x1010 /* set/get IP multicast interface */

Definition at line 171 of file in.h.

#define IP_MULTICAST_LOOP   0x1012 /* set/get IP multicast loopback */

Definition at line 173 of file in.h.

#define IP_MULTICAST_TTL   0x1011 /* set/get IP multicast timetolive */

Definition at line 172 of file in.h.

#define IP_OPTIONS   0x01

Definition at line 162 of file in.h.

#define IP_RCVDSTADDR   0x1007

Definition at line 170 of file in.h.

#define IP_RCVIFADDR   0x1016 /* Set interface for broadcasts */

Definition at line 177 of file in.h.

#define IP_RCVOPTS   0x1005

Definition at line 169 of file in.h.

#define IP_REUSEADDR   0x04

Definition at line 165 of file in.h.

#define IP_TOS   0x02

Definition at line 163 of file in.h.

#define IP_TTL   0x03

Definition at line 164 of file in.h.

#define IPCTL_DEFTTL   3 /* default TTL */

Definition at line 233 of file in.h.

#define IPCTL_FORWARDING   1 /* act as router */

Definition at line 231 of file in.h.

Definition at line 237 of file in.h.

Value:
{ \
       { 0, 0 }, \
       { "forwarding", CTLTYPE_INT }, \
       { "redirect", CTLTYPE_INT }, \
       { "ttl", CTLTYPE_INT }, \
       { "mtu", CTLTYPE_INT }, \
}

Definition at line 239 of file in.h.

#define IPCTL_SENDREDIRECTS   2 /* may send redirects when forwarding */

Definition at line 232 of file in.h.

#define IPPORT_RESERVED   1024

Definition at line 75 of file in.h.

Definition at line 76 of file in.h.

#define IPPROTO_EGP   8 /* exterior gateway protocol */

Definition at line 56 of file in.h.

#define IPPROTO_ENCAP   98 /* encapsulation header */

Definition at line 62 of file in.h.

#define IPPROTO_EON   80 /* ISO cnlp */

Definition at line 61 of file in.h.

#define IPPROTO_GGP   3 /* gateway^2 (deprecated) */

Definition at line 54 of file in.h.

#define IPPROTO_ICMP   1 /* control message protocol */

Definition at line 52 of file in.h.

#define IPPROTO_IDP   22 /* xns idp */

Definition at line 59 of file in.h.

#define IPPROTO_IGMP   2 /* group mgmt protocol */

Definition at line 53 of file in.h.

#define IPPROTO_IP   0 /* dummy for IP */

Definition at line 51 of file in.h.

#define IPPROTO_MAX   256

Definition at line 65 of file in.h.

Definition at line 200 of file in.h.

#define IPPROTO_PUP   12 /* pup */

Definition at line 57 of file in.h.

#define IPPROTO_RAW   255 /* raw IP packet */

Definition at line 64 of file in.h.

#define IPPROTO_TCP   6 /* tcp */

Definition at line 55 of file in.h.

#define IPPROTO_TP   29 /* tp-4 w/ class negotiation */

Definition at line 60 of file in.h.

#define IPPROTO_UDP   17 /* user datagram protocol */

Definition at line 58 of file in.h.


Typedef Documentation

Definition at line 80 of file in.h.

Definition at line 79 of file in.h.

Definition at line 133 of file in.h.