ip.h File Reference

IP protocol. More...

#include <stdint.h>
#include <gpxe/in.h>
#include <gpxe/list.h>
#include <gpxe/retry.h>

Go to the source code of this file.

Data Structures

struct  iphdr
 An IPv4 packet header. More...
struct  ipv4_pseudo_header
 An IPv4 pseudo header. More...
struct  ipv4_miniroute
 An IPv4 address/routing table entry. More...
struct  frag_buffer

Defines

#define IP_VER   0x40U
#define IP_MASK_VER   0xf0U
#define IP_MASK_HLEN   0x0fU
#define IP_MASK_OFFSET   0x1fffU
#define IP_MASK_DONOTFRAG   0x4000U
#define IP_MASK_MOREFRAGS   0x2000U
#define IP_PSHLEN   12
#define IP_TOS   0
#define IP_TTL   64
#define IP_FRAG_IOB_SIZE   1500
#define IP_FRAG_TIMEOUT   50

Functions

 FILE_LICENCE (GPL2_OR_LATER)

Variables

struct iphdr packed
 An IPv4 packet header.
struct list_head ipv4_miniroutes
 List of IPv4 miniroutes.
struct net_protocol ipv4_protocol


Detailed Description

IP protocol.

Definition in file ip.h.


Define Documentation

#define IP_VER   0x40U

Definition at line 23 of file ip.h.

Referenced by gdbudp_send(), ipv4_rx(), and ipv4_tx().

#define IP_MASK_VER   0xf0U

Definition at line 24 of file ip.h.

Referenced by ipv4_rx().

#define IP_MASK_HLEN   0x0fU

Definition at line 25 of file ip.h.

Referenced by ipv4_pshdr_chksum(), and ipv4_rx().

#define IP_MASK_OFFSET   0x1fffU

Definition at line 26 of file ip.h.

Referenced by ipv4_reassemble(), and ipv4_rx().

#define IP_MASK_DONOTFRAG   0x4000U

Definition at line 27 of file ip.h.

#define IP_MASK_MOREFRAGS   0x2000U

Definition at line 28 of file ip.h.

Referenced by ipv4_reassemble(), and ipv4_rx().

#define IP_PSHLEN   12

Definition at line 29 of file ip.h.

#define IP_TOS   0

Definition at line 32 of file ip.h.

Referenced by gdbudp_send(), and ipv4_tx().

#define IP_TTL   64

Definition at line 33 of file ip.h.

Referenced by gdbudp_send(), and ipv4_tx().

#define IP_FRAG_IOB_SIZE   1500

Definition at line 35 of file ip.h.

Referenced by ipv4_reassemble().

#define IP_FRAG_TIMEOUT   50

Definition at line 36 of file ip.h.

Referenced by ipv4_reassemble().


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER   ) 


Variable Documentation

struct iphdr packed

An IPv4 packet header.

List of IPv4 miniroutes.

Definition at line 32 of file ipv4.c.

Referenced by route().

Definition at line 29 of file ipv4.c.

Referenced by ipv4_ll_addr(), ipv4_tx(), pxenv_undi_isr(), and pxenv_undi_transmit().


Generated on Tue Apr 6 20:01:51 2010 for gPXE by  doxygen 1.5.7.1