warnings cleanup (still gives lots of compilation warnings from unused functions...
[gpxe.git] / src / include / ip.h
blob9da7f56a9e82e15cfa23f777fe8891480f675792
1 #ifndef _IP_H
2 #define _IP_H
4 #include "stddef.h"
5 #include "stdint.h"
6 #include <gpxe/in.h>
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;
21 extern uint16_t tcpudpchksum(struct iphdr *ip);
23 #endif /* _IP_H */