ethertype.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for
6  * more details.
7  */
8 
9 #pragma once
10 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 /* expand at will ;-) */
32 #define ETHERTYPE_RESERVED (0x0000)
33 #define ETHERTYPE_IPV4 (0x0800)
34 #define ETHERTYPE_ARP (0x0806)
35 #define ETHERTYPE_CCNX (0x0801)
36 #define ETHERTYPE_NDN (0x8624)
37 #define ETHERTYPE_IPV6 (0x86dd)
38 #define ETHERTYPE_6LOENC (0xa0ed)
49 #ifndef ETHERTYPE_CUSTOM
50 #define ETHERTYPE_CUSTOM (0x0101)
51 #endif
56 #define ETHERTYPE_UNKNOWN (0xffff)
58 #ifdef __cplusplus
59 }
60 #endif
61