summaryrefslogtreecommitdiff
path: root/ether.h
diff options
context:
space:
mode:
authorpdw <>2002-10-18 17:29:32 +0000
committerpdw <>2002-10-18 17:29:32 +0000
commit5ef015aea21fcbf741d43f39fb1a85a00b536689 (patch)
treec218d38d938aa8505b126b48122caf2864052f42 /ether.h
parent41f4c93226b3f66f51b91e44d431f54df8003e9e (diff)
downloadiftop-5ef015aea21fcbf741d43f39fb1a85a00b536689.zip
Include lots of header files, rather than relying on O/S specific ones.
Diffstat (limited to 'ether.h')
-rw-r--r--ether.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/ether.h b/ether.h
new file mode 100644
index 0000000..8e23a4f
--- /dev/null
+++ b/ether.h
@@ -0,0 +1,17 @@
+#ifndef __ETHER_H_
+#define __ETHER_H_
+
+#define ETHERTYPE_PUP 0x0200
+#define ETHERTYPE_IP 0x0800
+#define ETHERTYPE_ARP 0x0806
+#define ETHERTYPE_REVARP 0x8035
+
+#define ETHER_ADDR_LEN 6
+
+struct ether_header {
+ u_int8_t ether_dhost[ETHER_ADDR_LEN];
+ u_int8_t ether_shost[ETHER_ADDR_LEN];
+ u_int16_t ether_type;
+};
+
+#endif