1 | /**
|
---|
2 | * @file
|
---|
3 | * IANA assigned numbers (RFC 1700 and successors)
|
---|
4 | *
|
---|
5 | * @defgroup iana IANA assigned numbers
|
---|
6 | * @ingroup infrastructure
|
---|
7 | */
|
---|
8 |
|
---|
9 | /*
|
---|
10 | * Copyright (c) 2017 Dirk Ziegelmeier.
|
---|
11 | * All rights reserved.
|
---|
12 | *
|
---|
13 | * Redistribution and use in source and binary forms, with or without modification,
|
---|
14 | * are permitted provided that the following conditions are met:
|
---|
15 | *
|
---|
16 | * 1. Redistributions of source code must retain the above copyright notice,
|
---|
17 | * this list of conditions and the following disclaimer.
|
---|
18 | * 2. Redistributions in binary form must reproduce the above copyright notice,
|
---|
19 | * this list of conditions and the following disclaimer in the documentation
|
---|
20 | * and/or other materials provided with the distribution.
|
---|
21 | * 3. The name of the author may not be used to endorse or promote products
|
---|
22 | * derived from this software without specific prior written permission.
|
---|
23 | *
|
---|
24 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
---|
25 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
---|
26 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
---|
27 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
---|
28 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
---|
29 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
---|
30 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
---|
31 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
---|
32 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
|
---|
33 | * OF SUCH DAMAGE.
|
---|
34 | *
|
---|
35 | * This file is part of the lwIP TCP/IP stack.
|
---|
36 | *
|
---|
37 | * Author: Dirk Ziegelmeier <dziegel@gmx.de>
|
---|
38 | *
|
---|
39 | */
|
---|
40 |
|
---|
41 | #ifndef LWIP_HDR_PROT_IANA_H
|
---|
42 | #define LWIP_HDR_PROT_IANA_H
|
---|
43 |
|
---|
44 | #ifdef __cplusplus
|
---|
45 | extern "C" {
|
---|
46 | #endif
|
---|
47 |
|
---|
48 | /**
|
---|
49 | * @ingroup iana
|
---|
50 | * Hardware types
|
---|
51 | */
|
---|
52 | enum lwip_iana_hwtype {
|
---|
53 | /** Ethernet */
|
---|
54 | LWIP_IANA_HWTYPE_ETHERNET = 1
|
---|
55 | };
|
---|
56 |
|
---|
57 | /**
|
---|
58 | * @ingroup iana
|
---|
59 | * Port numbers
|
---|
60 | * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt
|
---|
61 | */
|
---|
62 | enum lwip_iana_port_number {
|
---|
63 | /** SMTP */
|
---|
64 | LWIP_IANA_PORT_SMTP = 25,
|
---|
65 | /** DHCP server */
|
---|
66 | LWIP_IANA_PORT_DHCP_SERVER = 67,
|
---|
67 | /** DHCP client */
|
---|
68 | LWIP_IANA_PORT_DHCP_CLIENT = 68,
|
---|
69 | /** TFTP */
|
---|
70 | LWIP_IANA_PORT_TFTP = 69,
|
---|
71 | /** HTTP */
|
---|
72 | LWIP_IANA_PORT_HTTP = 80,
|
---|
73 | /** SNTP */
|
---|
74 | LWIP_IANA_PORT_SNTP = 123,
|
---|
75 | /** NETBIOS */
|
---|
76 | LWIP_IANA_PORT_NETBIOS = 137,
|
---|
77 | /** SNMP */
|
---|
78 | LWIP_IANA_PORT_SNMP = 161,
|
---|
79 | /** SNMP traps */
|
---|
80 | LWIP_IANA_PORT_SNMP_TRAP = 162,
|
---|
81 | /** HTTPS */
|
---|
82 | LWIP_IANA_PORT_HTTPS = 443,
|
---|
83 | /** SMTPS */
|
---|
84 | LWIP_IANA_PORT_SMTPS = 465,
|
---|
85 | /** MQTT */
|
---|
86 | LWIP_IANA_PORT_MQTT = 1883,
|
---|
87 | /** MDNS */
|
---|
88 | LWIP_IANA_PORT_MDNS = 5353,
|
---|
89 | /** Secure MQTT */
|
---|
90 | LWIP_IANA_PORT_SECURE_MQTT = 8883
|
---|
91 | };
|
---|
92 |
|
---|
93 | #ifdef __cplusplus
|
---|
94 | }
|
---|
95 | #endif
|
---|
96 |
|
---|
97 | #endif /* LWIP_HDR_PROT_IANA_H */
|
---|