[DHCP] Fix up fake-packet creation as used by PXENV_GET_CACHED_INFO
[gpxe.git] / src / include / ip.h
1 #ifndef _IP_H
2 #define _IP_H
3
4 #include "stddef.h"
5 #include "stdint.h"
6 #include <gpxe/in.h>
7
8 struct iphdr {
9         uint8_t  verhdrlen;
10         uint8_t  service;
11         uint16_t len;
12         uint16_t ident;
13         uint16_t frags;
14         uint8_t  ttl;
15         uint8_t  protocol;
16         uint16_t chksum;
17         struct in_addr src;
18         struct in_addr dest;
19 } PACKED;
20
21 extern uint16_t tcpudpchksum(struct iphdr *ip);
22
23 #endif  /* _IP_H */