forked from RIOT-OS/RIOT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathethertype.h
66 lines (58 loc) · 1.84 KB
/
ethertype.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* 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_ethertype Ether types
* @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 NET_ETHERTYPE_H
#define NET_ETHERTYPE_H
#ifdef __cplusplus
extern "C" {
#endif
/* expand at will ;-) */
#define ETHERTYPE_RESERVED (0x0000) /**< Reserved */
#define ETHERTYPE_IPV4 (0x0800) /**< Internet protocol version 4 */
#define ETHERTYPE_ARP (0x0806) /**< Address resolution protocol */
#define ETHERTYPE_CCNX (0x0801) /**< Parc CCNX */
#define ETHERTYPE_NDN (0x8624) /**< NDN Protocol (http://named-data.net/) */
#define ETHERTYPE_IPV6 (0x86dd) /**< Internet protocol version 6 */
#define ETHERTYPE_6LOENC (0xa0ed) /**< 6LoWPAN encapsulation */
/**
* @defgroup net_ethertype_custom_config Custom ethertype
* @ingroup config
* @brief Custom ethertype definition
* @warning Do not use a IANA assigned number
* @see https://www.iana.org/assignments/ieee-802-numbers/ieee-802-numbers.xhtml
*
* @{
*/
#ifndef ETHERTYPE_CUSTOM
#define ETHERTYPE_CUSTOM (0x0101) /**< Custom ethertype */
#endif
/**
* @}
*/
#define ETHERTYPE_UNKNOWN (0xffff) /**< Reserved (no protocol specified) */
#ifdef __cplusplus
}
#endif
#endif /* NET_ETHERTYPE_H */
/**
* @}
*/