Main Page | Class List | File List | Class Members | File Members

ip.h File Reference

#include <asm/byteorder.h>

Go to the source code of this file.

Classes

struct  ip_options
struct  iphdr

Defines

#define IPTOS_TOS_MASK   0x1E
#define IPTOS_TOS(tos)   ((tos)&IPTOS_TOS_MASK)
#define IPTOS_LOWDELAY   0x10
#define IPTOS_THROUGHPUT   0x08
#define IPTOS_RELIABILITY   0x04
#define IPTOS_MINCOST   0x02
#define IPTOS_PREC_MASK   0xE0
#define IPTOS_PREC(tos)   ((tos)&IPTOS_PREC_MASK)
#define IPTOS_PREC_NETCONTROL   0xe0
#define IPTOS_PREC_INTERNETCONTROL   0xc0
#define IPTOS_PREC_CRITIC_ECP   0xa0
#define IPTOS_PREC_FLASHOVERRIDE   0x80
#define IPTOS_PREC_FLASH   0x60
#define IPTOS_PREC_IMMEDIATE   0x40
#define IPTOS_PREC_PRIORITY   0x20
#define IPTOS_PREC_ROUTINE   0x00
#define IPOPT_COPY   0x80
#define IPOPT_CLASS_MASK   0x60
#define IPOPT_NUMBER_MASK   0x1f
#define IPOPT_COPIED(o)   ((o)&IPOPT_COPY)
#define IPOPT_CLASS(o)   ((o)&IPOPT_CLASS_MASK)
#define IPOPT_NUMBER(o)   ((o)&IPOPT_NUMBER_MASK)
#define IPOPT_CONTROL   0x00
#define IPOPT_RESERVED1   0x20
#define IPOPT_MEASUREMENT   0x40
#define IPOPT_RESERVED2   0x60
#define IPOPT_END   (0 |IPOPT_CONTROL)
#define IPOPT_NOOP   (1 |IPOPT_CONTROL)
#define IPOPT_SEC   (2 |IPOPT_CONTROL|IPOPT_COPY)
#define IPOPT_LSRR   (3 |IPOPT_CONTROL|IPOPT_COPY)
#define IPOPT_TIMESTAMP   (4 |IPOPT_MEASUREMENT)
#define IPOPT_RR   (7 |IPOPT_CONTROL)
#define IPOPT_SID   (8 |IPOPT_CONTROL|IPOPT_COPY)
#define IPOPT_SSRR   (9 |IPOPT_CONTROL|IPOPT_COPY)
#define IPOPT_RA   (20|IPOPT_CONTROL|IPOPT_COPY)
#define IPVERSION   4
#define MAXTTL   255
#define IPDEFTTL   64
#define IPOPT_OPTVAL   0
#define IPOPT_OLEN   1
#define IPOPT_OFFSET   2
#define IPOPT_MINOFF   4
#define MAX_IPOPTLEN   40
#define IPOPT_NOP   IPOPT_NOOP
#define IPOPT_EOL   IPOPT_END
#define IPOPT_TS   IPOPT_TIMESTAMP
#define IPOPT_TS_TSONLY   0
#define IPOPT_TS_TSANDADDR   1
#define IPOPT_TS_PRESPEC   3
#define optlength(opt)   (sizeof(struct ip_options) + opt->optlen)


Define Documentation

#define IPDEFTTL   64
 

Definition at line 68 of file linux/ip.h.

#define IPOPT_CLASS  )     ((o)&IPOPT_CLASS_MASK)
 

Definition at line 48 of file linux/ip.h.

#define IPOPT_CLASS_MASK   0x60
 

Definition at line 44 of file linux/ip.h.

#define IPOPT_CONTROL   0x00
 

Definition at line 51 of file linux/ip.h.

#define IPOPT_COPIED  )     ((o)&IPOPT_COPY)
 

Definition at line 47 of file linux/ip.h.

Referenced by ip_options_fragment().

#define IPOPT_COPY   0x80
 

Definition at line 43 of file linux/ip.h.

#define IPOPT_END   (0 |IPOPT_CONTROL)
 

Definition at line 56 of file linux/ip.h.

Referenced by ip_options_compile(), ip_options_echo(), ip_options_fragment(), and ip_options_get().

#define IPOPT_EOL   IPOPT_END
 

Definition at line 84 of file linux/ip.h.

#define IPOPT_LSRR   (3 |IPOPT_CONTROL|IPOPT_COPY)
 

Definition at line 59 of file linux/ip.h.

Referenced by ip_options_compile().

#define IPOPT_MEASUREMENT   0x40
 

Definition at line 53 of file linux/ip.h.

#define IPOPT_MINOFF   4
 

Definition at line 81 of file linux/ip.h.

#define IPOPT_NOOP   (1 |IPOPT_CONTROL)
 

Definition at line 57 of file linux/ip.h.

Referenced by ip_options_compile(), and ip_options_fragment().

#define IPOPT_NOP   IPOPT_NOOP
 

Definition at line 83 of file linux/ip.h.

Referenced by ip_options_build().

#define IPOPT_NUMBER  )     ((o)&IPOPT_NUMBER_MASK)
 

Definition at line 49 of file linux/ip.h.

#define IPOPT_NUMBER_MASK   0x1f
 

Definition at line 45 of file linux/ip.h.

#define IPOPT_OFFSET   2
 

Definition at line 80 of file linux/ip.h.

#define IPOPT_OLEN   1
 

Definition at line 79 of file linux/ip.h.

#define IPOPT_OPTVAL   0
 

Definition at line 78 of file linux/ip.h.

#define IPOPT_RA   (20|IPOPT_CONTROL|IPOPT_COPY)
 

Definition at line 64 of file linux/ip.h.

Referenced by ip_options_compile().

#define IPOPT_RESERVED1   0x20
 

Definition at line 52 of file linux/ip.h.

#define IPOPT_RESERVED2   0x60
 

Definition at line 54 of file linux/ip.h.

#define IPOPT_RR   (7 |IPOPT_CONTROL)
 

Definition at line 61 of file linux/ip.h.

Referenced by ip_options_compile().

#define IPOPT_SEC   (2 |IPOPT_CONTROL|IPOPT_COPY)
 

Definition at line 58 of file linux/ip.h.

Referenced by ip_options_compile().

#define IPOPT_SID   (8 |IPOPT_CONTROL|IPOPT_COPY)
 

Definition at line 62 of file linux/ip.h.

Referenced by ip_options_compile().

#define IPOPT_SSRR   (9 |IPOPT_CONTROL|IPOPT_COPY)
 

Definition at line 63 of file linux/ip.h.

Referenced by ip_options_compile().

#define IPOPT_TIMESTAMP   (4 |IPOPT_MEASUREMENT)
 

Definition at line 60 of file linux/ip.h.

Referenced by ip_options_compile().

#define IPOPT_TS   IPOPT_TIMESTAMP
 

Definition at line 85 of file linux/ip.h.

#define IPOPT_TS_PRESPEC   3
 

Definition at line 89 of file linux/ip.h.

Referenced by ip_options_compile(), ip_options_echo(), and ip_options_undo().

#define IPOPT_TS_TSANDADDR   1
 

Definition at line 88 of file linux/ip.h.

Referenced by ip_options_compile().

#define IPOPT_TS_TSONLY   0
 

Definition at line 87 of file linux/ip.h.

Referenced by ip_options_compile().

#define IPTOS_LOWDELAY   0x10
 

Definition at line 25 of file linux/ip.h.

Referenced by checkentry().

#define IPTOS_MINCOST   0x02
 

Definition at line 28 of file linux/ip.h.

Referenced by checkentry().

#define IPTOS_PREC tos   )     ((tos)&IPTOS_PREC_MASK)
 

Definition at line 31 of file linux/ip.h.

Referenced by ip_setsockopt().

#define IPTOS_PREC_CRITIC_ECP   0xa0
 

Definition at line 34 of file linux/ip.h.

Referenced by ip_setsockopt().

#define IPTOS_PREC_FLASH   0x60
 

Definition at line 36 of file linux/ip.h.

#define IPTOS_PREC_FLASHOVERRIDE   0x80
 

Definition at line 35 of file linux/ip.h.

#define IPTOS_PREC_IMMEDIATE   0x40
 

Definition at line 37 of file linux/ip.h.

#define IPTOS_PREC_INTERNETCONTROL   0xc0
 

Definition at line 33 of file linux/ip.h.

Referenced by icmp_send(), and send_unreach().

#define IPTOS_PREC_MASK   0xE0
 

Definition at line 30 of file linux/ip.h.

Referenced by dump_packet(), and target().

#define IPTOS_PREC_NETCONTROL   0xe0
 

Definition at line 32 of file linux/ip.h.

#define IPTOS_PREC_PRIORITY   0x20
 

Definition at line 38 of file linux/ip.h.

#define IPTOS_PREC_ROUTINE   0x00
 

Definition at line 39 of file linux/ip.h.

#define IPTOS_RELIABILITY   0x04
 

Definition at line 27 of file linux/ip.h.

Referenced by checkentry().

#define IPTOS_THROUGHPUT   0x08
 

Definition at line 26 of file linux/ip.h.

Referenced by checkentry().

#define IPTOS_TOS tos   )     ((tos)&IPTOS_TOS_MASK)
 

Definition at line 24 of file linux/ip.h.

Referenced by rt_tos2priority().

#define IPTOS_TOS_MASK   0x1E
 

Definition at line 23 of file linux/ip.h.

Referenced by dump_packet(), icmp_send(), inet_rtm_newrule(), send_unreach(), and target().

#define IPVERSION   4
 

Definition at line 66 of file linux/ip.h.

#define MAX_IPOPTLEN   40
 

Definition at line 82 of file linux/ip.h.

#define MAXTTL   255
 

Definition at line 67 of file linux/ip.h.

Referenced by icmp_init(), send_reset(), send_unreach(), and tcp_v4_init().

#define optlength opt   )     (sizeof(struct ip_options) + opt->optlen)
 

Definition at line 113 of file linux/ip.h.

Referenced by tcp_v4_save_options().


Generated on Wed Dec 1 21:25:35 2004 for Linux 2.4.23 Networking by doxygen 1.3.8