Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers iana.h Source File

iana.h

Go to the documentation of this file.
00001 /**
00002  * @file
00003  * IANA assigned numbers (RFC 1700 and successors)
00004  *
00005  * @defgroup iana IANA assigned numbers
00006  * @ingroup infrastructure
00007  */
00008 
00009 /*
00010  * Copyright (c) 2017 Dirk Ziegelmeier.
00011  * All rights reserved.
00012  *
00013  * Redistribution and use in source and binary forms, with or without modification,
00014  * are permitted provided that the following conditions are met:
00015  *
00016  * 1. Redistributions of source code must retain the above copyright notice,
00017  *    this list of conditions and the following disclaimer.
00018  * 2. Redistributions in binary form must reproduce the above copyright notice,
00019  *    this list of conditions and the following disclaimer in the documentation
00020  *    and/or other materials provided with the distribution.
00021  * 3. The name of the author may not be used to endorse or promote products
00022  *    derived from this software without specific prior written permission.
00023  *
00024  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
00025  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00026  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
00027  * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00028  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
00029  * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00030  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00031  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
00032  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
00033  * OF SUCH DAMAGE.
00034  *
00035  * This file is part of the lwIP TCP/IP stack.
00036  *
00037  * Author: Dirk Ziegelmeier <dziegel@gmx.de>
00038  *
00039  */
00040 
00041 #ifndef LWIP_HDR_PROT_IANA_H
00042 #define LWIP_HDR_PROT_IANA_H
00043 
00044 #ifdef __cplusplus
00045 extern "C" {
00046 #endif
00047 
00048 /**
00049  * @ingroup iana
00050  * Hardware types
00051  */
00052 enum lwip_iana_hwtype {
00053   /** Ethernet */
00054   LWIP_IANA_HWTYPE_ETHERNET = 1
00055 };
00056 
00057 /**
00058  * @ingroup iana
00059  * Port numbers
00060  * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt
00061  */
00062 enum lwip_iana_port_number {
00063   /** SMTP */
00064   LWIP_IANA_PORT_SMTP        = 25,
00065   /** DHCP server */
00066   LWIP_IANA_PORT_DHCP_SERVER = 67,
00067   /** DHCP client */
00068   LWIP_IANA_PORT_DHCP_CLIENT = 68,
00069   /** TFTP */
00070   LWIP_IANA_PORT_TFTP        = 69,
00071   /** HTTP */
00072   LWIP_IANA_PORT_HTTP        = 80,
00073   /** SNTP */
00074   LWIP_IANA_PORT_SNTP        = 123,
00075   /** NETBIOS */
00076   LWIP_IANA_PORT_NETBIOS     = 137,
00077   /** SNMP */
00078   LWIP_IANA_PORT_SNMP        = 161,
00079   /** SNMP traps */
00080   LWIP_IANA_PORT_SNMP_TRAP   = 162,
00081   /** HTTPS */
00082   LWIP_IANA_PORT_HTTPS       = 443,
00083   /** SMTPS */
00084   LWIP_IANA_PORT_SMTPS       = 465,
00085   /** MQTT */
00086   LWIP_IANA_PORT_MQTT        = 1883,
00087   /** MDNS */
00088   LWIP_IANA_PORT_MDNS        = 5353,
00089   /** Secure MQTT */
00090   LWIP_IANA_PORT_SECURE_MQTT = 8883
00091 };
00092 
00093 #ifdef __cplusplus
00094 }
00095 #endif
00096 
00097 #endif /* LWIP_HDR_PROT_IANA_H */