ip_codes.h File Reference

IP codes and definitions. More...

#include <sys/types.h>

Go to the source code of this file.

IP options definitions

#define IPOPT_CLASS_MASK   0x60
 Class mask.
#define IPOPT_CLASS_SHIFT   5
 Class shift.
#define IPOPT_COPIED(o)   ((o) & IPOPT_COPY)
 Returns a value indicating whether the IP option should be copied.
#define IPOPT_COPY   (1 << IPOPT_COPY_SHIFT)
 Copy flag.
#define IPOPT_COPY_SHIFT   7
 Copy shift.
#define IPOPT_NUMBER_MASK   0x1f
 Number mask.
#define IPOPT_NUMBER_SHIFT   0
 Number shift.
#define IPOPT_TYPE(copy, class, number)
 Returns IP option type.

IP option class definitions

#define IPOPT_CONTROL   (0 << IPOPT_CLASS_SHIFT)
 Control class.

IP option type definitions

#define IPOPT_END   IPOPT_TYPE(0, IPOPT_CONTROL, 0)
 End of list.
#define IPOPT_NOOP   IPOPT_TYPE(0, IPOPT_CONTROL, 1)
 No operation.

Defines

#define IPDEFTTL   64
 Default time to live counter.
#define IPVERSION   4
 Default IPVERSION.

Typedefs

typedef uint8_t ip_protocol_t
 IP transport protocol type definition.
typedef uint8_t ip_tos_t
 IP type of service type definition.
typedef uint8_t ip_ttl_t
 IP time to live counter type definition.


Detailed Description

IP codes and definitions.

Definition in file ip_codes.h.


Generated on Thu Jun 2 07:45:53 2011 for HelenOS/USB by  doxygen 1.4.7