~serge-hallyn/ubuntu/oneiric/ipxe/link-kvm

« back to all changes in this revision

Viewing changes to src/include/ipxe/ip.h

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2011-07-31 20:57:02 UTC
  • mfrom: (2.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110731205702-kffmzz6tnmgfw50f
Tags: 1.0.0+git-2.149b50-1
New snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#define IP_TOS          0
32
32
#define IP_TTL          64
33
33
 
34
 
#define IP_FRAG_IOB_SIZE        1500
35
 
#define IP_FRAG_TIMEOUT         50
36
 
 
37
34
/** An IPv4 packet header */
38
35
struct iphdr {
39
36
        uint8_t  verhdrlen;
73
70
        struct in_addr gateway;
74
71
};
75
72
 
76
 
/* Fragment reassembly buffer */
77
 
struct frag_buffer {
78
 
        /* Identification number */
79
 
        uint16_t ident;
80
 
        /* Source network address */
81
 
        struct in_addr src;
82
 
        /* Destination network address */
83
 
        struct in_addr dest;
84
 
        /* Reassembled I/O buffer */
85
 
        struct io_buffer *frag_iob;
86
 
        /* Reassembly timer */
87
 
        struct retry_timer frag_timer;
 
73
/* IPv4 fragment reassembly buffer */
 
74
struct ipv4_fragment {
88
75
        /* List of fragment reassembly buffers */
89
76
        struct list_head list;
 
77
        /** Reassembled packet */
 
78
        struct io_buffer *iobuf;
 
79
        /** Current offset */
 
80
        size_t offset;
 
81
        /** Reassembly timer */
 
82
        struct retry_timer timer;
90
83
};
91
84
 
92
85
extern struct list_head ipv4_miniroutes;