mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 14:03:55 +01:00
Merge pull request #2397 from authmillenon/nettype/feat/initial
nettype: intial import
This commit is contained in:
commit
e5e1d0dd6d
74
sys/include/net/ng_nettype.h
Normal file
74
sys/include/net/ng_nettype.h
Normal file
@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ingroup net
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Protocol type definitions
|
||||
*
|
||||
* @author Martine Lenders <mlenders@inf.fu-berlin.de>
|
||||
*/
|
||||
#ifndef NG_NETTYPE_H_
|
||||
#define NG_NETTYPE_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Definition of protocol types in the network stack.
|
||||
*
|
||||
* @note Expand at will.
|
||||
*/
|
||||
typedef enum {
|
||||
NG_NETTYPE_UNDEF = 0, /**< Protocol is undefined */
|
||||
|
||||
#ifdef MODULE_NG_SIXLOWPAN
|
||||
NG_NETTYPE_SIXLOWPAN, /**< Protocol is 6LoWPAN */
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @{
|
||||
* @name Network layer
|
||||
*/
|
||||
#ifdef MODULE_NG_IPV6
|
||||
NG_NETTYPE_IPV6, /**< Protocol is IPv6 */
|
||||
#endif
|
||||
#ifdef MODULE_NG_ICMPV6
|
||||
NG_NETTYPE_ICMPV6, /**< Protocol is ICMPv6 */
|
||||
#endif
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @{
|
||||
* @name Transport layer
|
||||
*
|
||||
*/
|
||||
#ifdef MODULE_NG_TCP
|
||||
NG_NETTYPE_TCP, /**< Protocol is TCP */
|
||||
#endif
|
||||
#ifdef MODULE_NG_UDP
|
||||
NG_NETTYPE_UDP, /**< Protocol is UDP */
|
||||
#endif
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
NG_NETTYPE_NUMOF, /**< maximum number of available protocols */
|
||||
} ng_nettype_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* NG_NETTYPE_H_ */
|
||||
/** @} */
|
||||
Loading…
x
Reference in New Issue
Block a user