From dab8f9f6c06cd792c3fd58d754b81ff0252d5ac2 Mon Sep 17 00:00:00 2001
From: Martine Lenders <mlenders@inf.fu-berlin.de>
Date: Wed, 11 Mar 2015 18:16:44 +0100
Subject: [PATCH] ng_ethertype: initial import

---
 sys/include/net/ng_ethertype.h | 45 ++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 sys/include/net/ng_ethertype.h

diff --git a/sys/include/net/ng_ethertype.h b/sys/include/net/ng_ethertype.h
new file mode 100644
index 0000000000..7d921df429
--- /dev/null
+++ b/sys/include/net/ng_ethertype.h
@@ -0,0 +1,45 @@
+/*
+ * Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
+ *
+ * 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_ng_ethertype
+ * @ingroup     net
+ * @brief       Ether types
+ * @see         <a href="http://www.iana.org/assignments/ieee-802-numbers/ieee-802-numbers.xhtml#ieee-802-numbers-1">
+ *                  IANA, ETHER TYPES
+ *              </a>
+ * @note        Last Updated: 2015-02-04
+ * @{
+ *
+ * @file
+ * @brief       Ether type definitions
+ *
+ * @author      Martine Lenders <mlenders@inf.fu-berlin.de>
+ */
+
+
+#ifndef NG_ETHERTYPE_H_
+#define NG_ETHERTYPE_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* expand at will ;-) */
+#define NG_ETHERTYPE_IPV4   (0x0800)    /* Internet protocol version 4 */
+#define NG_ETHERTYPE_ARP    (0x0806)    /* Address resolution protocol */
+#define NG_ETHERTYPE_IPV6   (0x86dd)    /* Internet protocol version 6 */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* NG_ETHERTYPE_H_ */
+/**
+ * @}
+ */
-- 
GitLab