summaryrefslogtreecommitdiff
path: root/protocol.h
diff options
context:
space:
mode:
authorHåkon Nessjøen <haakon.nessjoen@gmail.com>2011-11-12 04:53:12 +0100
committerHåkon Nessjøen <haakon.nessjoen@gmail.com>2011-11-12 04:53:12 +0100
commit94ac14d2765051a8992c3a822547bc09260492df (patch)
tree53774d06d9c482c1b56fd7539ae48c7ac81f8775 /protocol.h
parent904d05c3d9dec35bad0413f933ea690868a09f4f (diff)
downloadMAC-Telnet-94ac14d2765051a8992c3a822547bc09260492df.tar.gz
MAC-Telnet-94ac14d2765051a8992c3a822547bc09260492df.zip
Rewrote the interface handling. Added full support for kFreeBSD, have not tested with FreeBSD.
Diffstat (limited to 'protocol.h')
-rw-r--r--protocol.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/protocol.h b/protocol.h
index a450b2b..11c9aca 100644
--- a/protocol.h
+++ b/protocol.h
@@ -33,6 +33,13 @@
#define MT_MNDP_TIMEOUT 5
#define MT_MNDP_LONGTIMEOUT 120
+#ifndef ETH_ALEN
+#define ETH_ALEN 6
+#endif
+#ifndef IPV4_ALEN
+#define IPV4_ALEN 4
+#endif
+
/* Packet type */
enum mt_ptype {
MT_PTYPE_SESSIONSTART,