summaryrefslogtreecommitdiff
path: root/include/net.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h
index 61568f6..c3bfb63 100644
--- a/include/net.h
+++ b/include/net.h
@@ -40,6 +40,11 @@
/* ARP hardware address length */
#define ARP_HLEN 6
+/*
+ * The size of a MAC address in string form, each digit requires two chars
+ * and five separator characters to form '00:00:00:00:00:00'.
+ */
+#define ARP_HLEN_ASCII (ARP_HLEN * 2) + (ARP_HLEN - 1)
/* IPv4 addresses are always 32 bits in size */
struct in_addr {