ppptype.h
1.31 KB
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
/*
* Copyright (C) 2016 José Ignacio Alamos
*
* 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_ppp Point-to-Point Protocol (PPP) Data Link Layer
* @ingroup net
* @brief PPP types
* @note Last Updated: 2016-02-04
* @{
*
* @file
* @brief PPP type definitions
*
* @author José Ignacio Alamos <jialamos@uc.cl>
* @see <a href="http://www.iana.org/assignments/ppp-numbers/ppp-numbers.xhtml#ppp-numbers-2">
* IANA, PPP NUMBERS
* </a>
*/
#ifndef NET_PPPTYPE_H
#define NET_PPPTYPE_H
#ifdef __cplusplus
extern "C" {
#endif
#define PPPTYPE_IPV6 (0x0057) /**< IPv6 packet in PPP*/
#define PPPTYPE_IPV4 (0x0021) /**< IPv4 packet in PPP */
#define PPPTYPE_NCP_IPV6 (0x8057) /**< NCP packet for IPV6*/
#define PPPTYPE_NCP_IPV4 (0x8021) /**< NCP packet for IPv4*/
#define PPPTYPE_LCP (0xC021) /**< LCP packet */
#define PPPTYPE_PAP (0xC023) /**< PAP packet */
#define PPPTYPE_UNKNOWN (0x8001) /**<Unknown packet (Unused protocol number according to IANA) */
#ifdef __cplusplus
}
#endif
#endif /* NET_PPPTYPE_H */
/**
* @}
*/