summaryrefslogtreecommitdiffstats
path: root/src/include/in.h
diff options
context:
space:
mode:
authorMichael Brown2005-03-08 19:53:11 +0100
committerMichael Brown2005-03-08 19:53:11 +0100
commit3d6123e69ab879c72ff489afc5bf93ef0b7a94ce (patch)
tree9f3277569153a550fa8d81ebd61bd88f266eb8da /src/include/in.h
downloadipxe-3d6123e69ab879c72ff489afc5bf93ef0b7a94ce.tar.gz
ipxe-3d6123e69ab879c72ff489afc5bf93ef0b7a94ce.tar.xz
ipxe-3d6123e69ab879c72ff489afc5bf93ef0b7a94ce.zip
Initial revision
Diffstat (limited to 'src/include/in.h')
-rw-r--r--src/include/in.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/include/in.h b/src/include/in.h
new file mode 100644
index 00000000..7fb207da
--- /dev/null
+++ b/src/include/in.h
@@ -0,0 +1,21 @@
+#ifndef _IN_H
+#define _IN_H
+
+#include <if_ether.h>
+#define IP ETH_P_IP
+#define ARP ETH_P_ARP
+#define RARP ETH_P_RARP
+
+#define IP_ICMP 1
+#define IP_IGMP 2
+#define IP_TCP 6
+#define IP_UDP 17
+
+/* Same after going through htonl */
+#define IP_BROADCAST 0xFFFFFFFF
+
+typedef struct {
+ uint32_t s_addr;
+} in_addr;
+
+#endif /* _IN_H */