Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
ip.h File Reference
#include <linux/types.h>
#include <asm/byteorder.h>

Go to the source code of this file.

Data Structures

struct  iphdr
 
struct  ip_auth_hdr
 
struct  ip_esp_hdr
 
struct  ip_comp_hdr
 
struct  ip_beet_phdr
 

Macros

#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_CIPSO   (6 |IPOPT_CONTROL|IPOPT_COPY)
 
#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 /* timestamps only */
 
#define IPOPT_TS_TSANDADDR   1 /* timestamps and addresses */
 
#define IPOPT_TS_PRESPEC   3 /* specified modules only */
 
#define IPV4_BEET_PHMAXLEN   8
 

Macro Definition Documentation

#define IPDEFTTL   64

Definition at line 68 of file ip.h.

#define IPOPT_CIPSO   (6 |IPOPT_CONTROL|IPOPT_COPY)

Definition at line 60 of file ip.h.

#define IPOPT_CLASS (   o)    ((o)&IPOPT_CLASS_MASK)

Definition at line 47 of file ip.h.

#define IPOPT_CLASS_MASK   0x60

Definition at line 43 of file ip.h.

#define IPOPT_CONTROL   0x00

Definition at line 50 of file ip.h.

#define IPOPT_COPIED (   o)    ((o)&IPOPT_COPY)

Definition at line 46 of file ip.h.

#define IPOPT_COPY   0x80

Definition at line 42 of file ip.h.

#define IPOPT_END   (0 |IPOPT_CONTROL)

Definition at line 55 of file ip.h.

#define IPOPT_EOL   IPOPT_END

Definition at line 76 of file ip.h.

#define IPOPT_LSRR   (3 |IPOPT_CONTROL|IPOPT_COPY)

Definition at line 58 of file ip.h.

#define IPOPT_MEASUREMENT   0x40

Definition at line 52 of file ip.h.

#define IPOPT_MINOFF   4

Definition at line 73 of file ip.h.

#define IPOPT_NOOP   (1 |IPOPT_CONTROL)

Definition at line 56 of file ip.h.

#define IPOPT_NOP   IPOPT_NOOP

Definition at line 75 of file ip.h.

#define IPOPT_NUMBER (   o)    ((o)&IPOPT_NUMBER_MASK)

Definition at line 48 of file ip.h.

#define IPOPT_NUMBER_MASK   0x1f

Definition at line 44 of file ip.h.

#define IPOPT_OFFSET   2

Definition at line 72 of file ip.h.

#define IPOPT_OLEN   1

Definition at line 71 of file ip.h.

#define IPOPT_OPTVAL   0

Definition at line 70 of file ip.h.

#define IPOPT_RA   (20|IPOPT_CONTROL|IPOPT_COPY)

Definition at line 64 of file ip.h.

#define IPOPT_RESERVED1   0x20

Definition at line 51 of file ip.h.

#define IPOPT_RESERVED2   0x60

Definition at line 53 of file ip.h.

#define IPOPT_RR   (7 |IPOPT_CONTROL)

Definition at line 61 of file ip.h.

#define IPOPT_SEC   (2 |IPOPT_CONTROL|IPOPT_COPY)

Definition at line 57 of file ip.h.

#define IPOPT_SID   (8 |IPOPT_CONTROL|IPOPT_COPY)

Definition at line 62 of file ip.h.

#define IPOPT_SSRR   (9 |IPOPT_CONTROL|IPOPT_COPY)

Definition at line 63 of file ip.h.

#define IPOPT_TIMESTAMP   (4 |IPOPT_MEASUREMENT)

Definition at line 59 of file ip.h.

#define IPOPT_TS   IPOPT_TIMESTAMP

Definition at line 77 of file ip.h.

#define IPOPT_TS_PRESPEC   3 /* specified modules only */

Definition at line 81 of file ip.h.

#define IPOPT_TS_TSANDADDR   1 /* timestamps and addresses */

Definition at line 80 of file ip.h.

#define IPOPT_TS_TSONLY   0 /* timestamps only */

Definition at line 79 of file ip.h.

#define IPTOS_LOWDELAY   0x10

Definition at line 24 of file ip.h.

#define IPTOS_MINCOST   0x02

Definition at line 27 of file ip.h.

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

Definition at line 30 of file ip.h.

#define IPTOS_PREC_CRITIC_ECP   0xa0

Definition at line 33 of file ip.h.

#define IPTOS_PREC_FLASH   0x60

Definition at line 35 of file ip.h.

#define IPTOS_PREC_FLASHOVERRIDE   0x80

Definition at line 34 of file ip.h.

#define IPTOS_PREC_IMMEDIATE   0x40

Definition at line 36 of file ip.h.

#define IPTOS_PREC_INTERNETCONTROL   0xc0

Definition at line 32 of file ip.h.

#define IPTOS_PREC_MASK   0xE0

Definition at line 29 of file ip.h.

#define IPTOS_PREC_NETCONTROL   0xe0

Definition at line 31 of file ip.h.

#define IPTOS_PREC_PRIORITY   0x20

Definition at line 37 of file ip.h.

#define IPTOS_PREC_ROUTINE   0x00

Definition at line 38 of file ip.h.

#define IPTOS_RELIABILITY   0x04

Definition at line 26 of file ip.h.

#define IPTOS_THROUGHPUT   0x08

Definition at line 25 of file ip.h.

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

Definition at line 23 of file ip.h.

#define IPTOS_TOS_MASK   0x1E

Definition at line 22 of file ip.h.

#define IPV4_BEET_PHMAXLEN   8

Definition at line 83 of file ip.h.

#define IPVERSION   4

Definition at line 66 of file ip.h.

#define MAX_IPOPTLEN   40

Definition at line 74 of file ip.h.

#define MAXTTL   255

Definition at line 67 of file ip.h.