mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #6268 from smlng/pr/add_iana_header
network: add initial iana header file
This commit is contained in:
commit
b61ae80da1
47
sys/include/net/iana.h
Normal file
47
sys/include/net/iana.h
Normal file
@ -0,0 +1,47 @@
|
||||
/*
|
||||
* Copyright (C) 2016 HAW Hamburg
|
||||
*
|
||||
* 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_iana IANA Port Numbers
|
||||
* @ingroup net
|
||||
* @brief Service Name and Transport Protocol Port Number Registry
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Service Name and Transport Protocol Port Number Registry
|
||||
*
|
||||
* @author smlng <s@mlng.net>,
|
||||
*/
|
||||
#ifndef IANA_H_
|
||||
#define IANA_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @name Port Number Ranges
|
||||
* @see <a href="https://tools.ietf.org/html/rfc6335#section-6">
|
||||
* RFC 6335, section 6
|
||||
* </a>
|
||||
* @{
|
||||
*/
|
||||
#define IANA_SYSTEM_PORTRANGE_MIN (0U)
|
||||
#define IANA_SYSTEM_PORTRANGE_MAX (1023U)
|
||||
#define IANA_USER_PORTRANGE_MIN (1024U)
|
||||
#define IANA_USER_PORTRANGE_MAX (49151U)
|
||||
#define IANA_DYNAMIC_PORTRANGE_MIN (49152U)
|
||||
#define IANA_DYNAMIC_PORTRANGE_MAX (65535U)
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* IANA_H_ */
|
||||
/** @} */
|
Loading…
Reference in New Issue
Block a user