From 89f4fe4a8a85ffe2707f010dfe5daa6389ff3017 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 1 May 2005 10:40:12 +0000 Subject: [PATCH] Do not include etherboot.h --- src/include/ip.h | 8 ++++++-- src/include/udp.h | 8 +++++--- 2 files changed, 11 insertions(+), 5 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 */ diff --git a/src/include/udp.h b/src/include/udp.h index 9a254b8e..d06c5999 100644 --- a/src/include/udp.h +++ b/src/include/udp.h @@ -1,12 +1,14 @@ #ifndef _UDP_H #define _UDP_H -#include "etherboot.h" +#include "stddef.h" +#include "stdint.h" +#include "in.h" #include "ip.h" struct udp_pseudo_hdr { - in_addr src; - in_addr dest; + struct in_addr src; + struct in_addr dest; uint8_t unused; uint8_t protocol; uint16_t len;