From d03d2b409e310feaa36a97133806e387ffdaf96d Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Sat, 17 Mar 2018 12:20:52 +0000 Subject: [PATCH] net: add ARP hardware type defintions These are required for DHCPv6 to identify the type of a link-layer address (for DUID creation). --- sys/include/net/arp.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 sys/include/net/arp.h diff --git a/sys/include/net/arp.h b/sys/include/net/arp.h new file mode 100644 index 0000000000..8d164ba323 --- /dev/null +++ b/sys/include/net/arp.h @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2018 Freie Universität Berlin + * + * This file is subject to the terms and conditions of the GNU Lesser + * General Public License v2.1. See the file LICENSE in the top level + * directory for more details. + */ + +/** + * @defgroup net_arp Address resolution protocol (ARP) + * @ingroup net_ipv4 + * @brief ARP definitions + * @{ + * + * @file + * @brief ARP definitions + * + * @author Martine Lenders + */ +#ifndef NET_ARP_H +#define NET_ARP_H + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @name Hardware types + * @anchor net_arp_hwtype + * @see [IANA ARP parameters] + * (https://www.iana.org/assignments/arp-parameters/arp-parameters.xhtml#table-arp-parameters-2) + * @{ + */ +#define ARP_HWTYPE_ETHERNET (1U) /**< Ethernet */ +#define ARP_HWTYPE_EUI64 (27U) /**< EUI-64 */ +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif /* NET_ARP_H */ +/** @} */