Back to index

glibc  2.9
Classes | Defines | Variables
ip.h File Reference
#include <features.h>
#include <sys/types.h>
#include <netinet/in.h>

Go to the source code of this file.

Classes

struct  timestamp
struct  iphdr

Defines

#define IPVERSION   4 /* IP version number */
#define IP_MAXPACKET   65535 /* maximum packet size */
#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_LOWCOST   0x02
#define IPTOS_MINCOST   IPTOS_LOWCOST
#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_DEBMEAS   0x40
#define IPOPT_MEASUREMENT   IPOPT_DEBMEAS
#define IPOPT_RESERVED2   0x60
#define IPOPT_EOL   0 /* end of option list */
#define IPOPT_END   IPOPT_EOL
#define IPOPT_NOP   1 /* no operation */
#define IPOPT_NOOP   IPOPT_NOP
#define IPOPT_RR   7 /* record packet route */
#define IPOPT_TS   68 /* timestamp */
#define IPOPT_TIMESTAMP   IPOPT_TS
#define IPOPT_SECURITY   130 /* provide s,c,h,tcc */
#define IPOPT_SEC   IPOPT_SECURITY
#define IPOPT_LSRR   131 /* loose source route */
#define IPOPT_SATID   136 /* satnet id */
#define IPOPT_SID   IPOPT_SATID
#define IPOPT_SSRR   137 /* strict source route */
#define IPOPT_RA   148 /* router alert */
#define IPOPT_OPTVAL   0 /* option ID */
#define IPOPT_OLEN   1 /* option length */
#define IPOPT_OFFSET   2 /* offset within option */
#define IPOPT_MINOFF   4 /* min value of above */
#define MAX_IPOPTLEN   40
#define IPOPT_TS_TSONLY   0 /* timestamps only */
#define IPOPT_TS_TSANDADDR   1 /* timestamps and addresses */
#define IPOPT_TS_PRESPEC   3 /* specified modules only */
#define IPOPT_SECUR_UNCLASS   0x0000
#define IPOPT_SECUR_CONFID   0xf135
#define IPOPT_SECUR_EFTO   0x789a
#define IPOPT_SECUR_MMMM   0xbc4d
#define IPOPT_SECUR_RESTR   0xaf13
#define IPOPT_SECUR_SECRET   0xd788
#define IPOPT_SECUR_TOPSECRET   0x6bc5
#define MAXTTL   255 /* maximum time to live (seconds) */
#define IPDEFTTL   64 /* default ttl, from RFC 1340 */
#define IPFRAGTTL   60 /* time to live for frags, slowhz */
#define IPTTLDEC   1 /* subtracted when forwarding */
#define IP_MSS   576 /* default maximum segment size */

Variables

__BEGIN_DECLS struct timestamp __attribute__

Class Documentation

struct timestamp

Definition at line 29 of file ip.h.

Class Members
u_int32_t data
unsigned int flags:4
u_int8_t len
unsigned int overflow:4
u_int8_t ptr
struct iphdr

Definition at line 45 of file ip.h.

Class Members
u_int16_t check
u_int32_t daddr
u_int16_t frag_off
u_int16_t id
unsigned int ihl:4
u_int8_t protocol
u_int32_t saddr
u_int8_t tos
u_int16_t tot_len
u_int8_t ttl
unsigned int version:4

Define Documentation

#define IP_MAXPACKET   65535 /* maximum packet size */

Definition at line 153 of file ip.h.

#define IP_MSS   576 /* default maximum segment size */

Definition at line 245 of file ip.h.

#define IPDEFTTL   64 /* default ttl, from RFC 1340 */

Definition at line 241 of file ip.h.

#define IPFRAGTTL   60 /* time to live for frags, slowhz */

Definition at line 242 of file ip.h.

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

Definition at line 188 of file ip.h.

#define IPOPT_CLASS_MASK   0x60

Definition at line 184 of file ip.h.

#define IPOPT_CONTROL   0x00

Definition at line 191 of file ip.h.

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

Definition at line 187 of file ip.h.

#define IPOPT_COPY   0x80

Definition at line 183 of file ip.h.

#define IPOPT_DEBMEAS   0x40

Definition at line 193 of file ip.h.

#define IPOPT_END   IPOPT_EOL

Definition at line 198 of file ip.h.

#define IPOPT_EOL   0 /* end of option list */

Definition at line 197 of file ip.h.

#define IPOPT_LSRR   131 /* loose source route */

Definition at line 207 of file ip.h.

Definition at line 194 of file ip.h.

#define IPOPT_MINOFF   4 /* min value of above */

Definition at line 219 of file ip.h.

#define IPOPT_NOOP   IPOPT_NOP

Definition at line 200 of file ip.h.

#define IPOPT_NOP   1 /* no operation */

Definition at line 199 of file ip.h.

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

Definition at line 189 of file ip.h.

#define IPOPT_NUMBER_MASK   0x1f

Definition at line 185 of file ip.h.

#define IPOPT_OFFSET   2 /* offset within option */

Definition at line 218 of file ip.h.

#define IPOPT_OLEN   1 /* option length */

Definition at line 217 of file ip.h.

#define IPOPT_OPTVAL   0 /* option ID */

Definition at line 216 of file ip.h.

#define IPOPT_RA   148 /* router alert */

Definition at line 211 of file ip.h.

#define IPOPT_RESERVED1   0x20

Definition at line 192 of file ip.h.

#define IPOPT_RESERVED2   0x60

Definition at line 195 of file ip.h.

#define IPOPT_RR   7 /* record packet route */

Definition at line 202 of file ip.h.

#define IPOPT_SATID   136 /* satnet id */

Definition at line 208 of file ip.h.

#define IPOPT_SEC   IPOPT_SECURITY

Definition at line 206 of file ip.h.

#define IPOPT_SECUR_CONFID   0xf135

Definition at line 230 of file ip.h.

#define IPOPT_SECUR_EFTO   0x789a

Definition at line 231 of file ip.h.

#define IPOPT_SECUR_MMMM   0xbc4d

Definition at line 232 of file ip.h.

#define IPOPT_SECUR_RESTR   0xaf13

Definition at line 233 of file ip.h.

#define IPOPT_SECUR_SECRET   0xd788

Definition at line 234 of file ip.h.

#define IPOPT_SECUR_TOPSECRET   0x6bc5

Definition at line 235 of file ip.h.

#define IPOPT_SECUR_UNCLASS   0x0000

Definition at line 229 of file ip.h.

#define IPOPT_SECURITY   130 /* provide s,c,h,tcc */

Definition at line 205 of file ip.h.

#define IPOPT_SID   IPOPT_SATID

Definition at line 209 of file ip.h.

#define IPOPT_SSRR   137 /* strict source route */

Definition at line 210 of file ip.h.

#define IPOPT_TIMESTAMP   IPOPT_TS

Definition at line 204 of file ip.h.

#define IPOPT_TS   68 /* timestamp */

Definition at line 203 of file ip.h.

#define IPOPT_TS_PRESPEC   3 /* specified modules only */

Definition at line 226 of file ip.h.

#define IPOPT_TS_TSANDADDR   1 /* timestamps and addresses */

Definition at line 225 of file ip.h.

#define IPOPT_TS_TSONLY   0 /* timestamps only */

Definition at line 224 of file ip.h.

#define IPTOS_LOWCOST   0x02

Definition at line 163 of file ip.h.

#define IPTOS_LOWDELAY   0x10

Definition at line 160 of file ip.h.

Definition at line 164 of file ip.h.

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

Definition at line 170 of file ip.h.

#define IPTOS_PREC_CRITIC_ECP   0xa0

Definition at line 173 of file ip.h.

#define IPTOS_PREC_FLASH   0x60

Definition at line 175 of file ip.h.

#define IPTOS_PREC_FLASHOVERRIDE   0x80

Definition at line 174 of file ip.h.

#define IPTOS_PREC_IMMEDIATE   0x40

Definition at line 176 of file ip.h.

#define IPTOS_PREC_INTERNETCONTROL   0xc0

Definition at line 172 of file ip.h.

#define IPTOS_PREC_MASK   0xe0

Definition at line 169 of file ip.h.

#define IPTOS_PREC_NETCONTROL   0xe0

Definition at line 171 of file ip.h.

#define IPTOS_PREC_PRIORITY   0x20

Definition at line 177 of file ip.h.

#define IPTOS_PREC_ROUTINE   0x00

Definition at line 178 of file ip.h.

#define IPTOS_RELIABILITY   0x04

Definition at line 162 of file ip.h.

#define IPTOS_THROUGHPUT   0x08

Definition at line 161 of file ip.h.

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

Definition at line 159 of file ip.h.

#define IPTOS_TOS_MASK   0x1E

Definition at line 158 of file ip.h.

#define IPTTLDEC   1 /* subtracted when forwarding */

Definition at line 243 of file ip.h.

#define IPVERSION   4 /* IP version number */

Definition at line 152 of file ip.h.

#define MAX_IPOPTLEN   40

Definition at line 221 of file ip.h.

#define MAXTTL   255 /* maximum time to live (seconds) */

Definition at line 240 of file ip.h.


Variable Documentation