Add DHCP ports to iana.h

This commit is contained in:
Dirk Ziegelmeier
2017-08-08 11:46:15 +02:00
parent 0eb8d19e82
commit 1c91118f4a
4 changed files with 18 additions and 27 deletions

View File

@@ -44,10 +44,6 @@
extern "C" {
#endif
#define DHCP_CLIENT_PORT 68
#define DHCP_SERVER_PORT 67
/* DHCP message item offsets and length */
#define DHCP_CHADDR_LEN 16U
#define DHCP_SNAME_OFS 44U

View File

@@ -38,15 +38,13 @@
#ifndef LWIP_HDR_PROT_IANA_H
#define LWIP_HDR_PROT_IANA_H
#ifdef __cplusplus
extern "C" {
#endif
/** Hardware types */
/* Hardware types */
#define LWIP_IANA_HWTYPE_ETHERNET 1
/** Port numbers */
/* Port numbers (https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt) */
#define LWIP_IANA_PORT_SMTP 25
#define LWIP_IANA_PORT_DHCP_SERVER 67
#define LWIP_IANA_PORT_DHCP_CLIENT 68
#define LWIP_IANA_PORT_TFTP 69
#define LWIP_IANA_PORT_HTTP 80
#define LWIP_IANA_PORT_SNTP 123
@@ -59,8 +57,4 @@ extern "C" {
#define LWIP_IANA_PORT_MDNS 5353
#define LWIP_IANA_PORT_SEQURE_MQTT 8883
#ifdef __cplusplus
}
#endif
#endif /* LWIP_HDR_PROT_IANA_H */