Blame view

RIOT/sys/include/net/iana/portrange.h 1.07 KB
a752c7ab   elopes   add first test an...
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
  /*
   * 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_portrange  IANA Port Ranges
   * @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 NET_IANA_PORTRANGE_H
  #define NET_IANA_PORTRANGE_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 /* NET_IANA_PORTRANGE_H */
  /** @} */