summaryrefslogtreecommitdiffstats
path: root/src/include/ip.h
diff options
context:
space:
mode:
authorMichael Brown2005-05-01 12:40:12 +0200
committerMichael Brown2005-05-01 12:40:12 +0200
commit89f4fe4a8a85ffe2707f010dfe5daa6389ff3017 (patch)
treee42242977a07705e1153e57d418851623cd2efee /src/include/ip.h
parentAlways request DNS server. DHCP handling will be generalised in future. (diff)
downloadipxe-89f4fe4a8a85ffe2707f010dfe5daa6389ff3017.tar.gz
ipxe-89f4fe4a8a85ffe2707f010dfe5daa6389ff3017.tar.xz
ipxe-89f4fe4a8a85ffe2707f010dfe5daa6389ff3017.zip
Do not include etherboot.h
Diffstat (limited to 'src/include/ip.h')
-rw-r--r--src/include/ip.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/include/ip.h b/src/include/ip.h
index 0f8fad6a..85c299ba 100644
--- a/src/include/ip.h
+++ b/src/include/ip.h
@@ -1,6 +1,10 @@
#ifndef _IP_H
#define _IP_H
+#include "stddef.h"
+#include "stdint.h"
+#include "in.h"
+
struct iphdr {
uint8_t verhdrlen;
uint8_t service;
@@ -10,8 +14,8 @@ struct iphdr {
uint8_t ttl;
uint8_t protocol;
uint16_t chksum;
- in_addr src;
- in_addr dest;
+ struct in_addr src;
+ struct in_addr dest;
} PACKED;
#endif /* _IP_H */