11 #include <gpxe/retry.h>
16 #define IP_MASK_VER 0xf0
17 #define IP_MASK_HLEN 0x0f
18 #define IP_MASK_OFFSET 0x1fff
19 #define IP_MASK_DONOTFRAG 0x4000
20 #define IP_MASK_MOREFRAGS 0x2000
23 /* IP header defaults */
27 #define IP_FRAG_PKB_SIZE 1500
28 #define IP_FRAG_TIMEOUT 50
30 /* IP4 pseudo header */
31 struct ipv4_pseudo_header {
39 /* Fragment reassembly buffer */
41 /* Identification number */
43 /* Source network address */
45 /* Destination network address */
47 /* Reassembled packet buffer */
48 struct pk_buff *frag_pkb;
49 /* Reassembly timer */
50 struct retry_timer frag_timer;
51 /* List of fragment reassembly buffers */
52 struct list_head list;
58 struct tcpip_protocol;
60 extern struct net_protocol ipv4_protocol;
62 extern int add_ipv4_address ( struct net_device *netdev,
63 struct in_addr address, struct in_addr netmask,
64 struct in_addr gateway );
65 extern void del_ipv4_address ( struct net_device *netdev );
67 extern int ipv4_uip_tx ( struct pk_buff *pkb );
68 extern int ipv4_tx ( struct pk_buff *pkb, struct tcpip_protocol *tcpip,
69 struct in_addr *dest );
71 #endif /* _GPXE_IP_H */