Browse Source

Do not include etherboot.h

tags/v0.9.3
Michael Brown 20 years ago
parent
commit
89f4fe4a8a
2 changed files with 11 additions and 5 deletions
  1. 6
    2
      src/include/ip.h
  2. 5
    3
      src/include/udp.h

+ 6
- 2
src/include/ip.h View File

@@ -1,6 +1,10 @@
1 1
 #ifndef	_IP_H
2 2
 #define	_IP_H
3 3
 
4
+#include "stddef.h"
5
+#include "stdint.h"
6
+#include "in.h"
7
+
4 8
 struct iphdr {
5 9
 	uint8_t  verhdrlen;
6 10
 	uint8_t  service;
@@ -10,8 +14,8 @@ struct iphdr {
10 14
 	uint8_t  ttl;
11 15
 	uint8_t  protocol;
12 16
 	uint16_t chksum;
13
-	in_addr src;
14
-	in_addr dest;
17
+	struct in_addr src;
18
+	struct in_addr dest;
15 19
 } PACKED;
16 20
 
17 21
 #endif	/* _IP_H */

+ 5
- 3
src/include/udp.h View File

@@ -1,12 +1,14 @@
1 1
 #ifndef	_UDP_H
2 2
 #define	_UDP_H
3 3
 
4
-#include "etherboot.h"
4
+#include "stddef.h"
5
+#include "stdint.h"
6
+#include "in.h"
5 7
 #include "ip.h"
6 8
 
7 9
 struct udp_pseudo_hdr {
8
-	in_addr  src;
9
-	in_addr  dest;
10
+	struct in_addr  src;
11
+	struct in_addr  dest;
10 12
 	uint8_t  unused;
11 13
 	uint8_t  protocol;
12 14
 	uint16_t len;

Loading…
Cancel
Save