From 0f328b4aa16b0b47f05a85c440ce1d07719e3cac Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 11 Dec 2017 00:17:47 -0800 Subject: More nd_ification of structures. We don't need to use & to get a pointer to an nd_uintN_t/nd_intN_t type, as they're arrays. --- udp.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'udp.h') diff --git a/udp.h b/udp.h index 409cc59e..884541b6 100644 --- a/udp.h +++ b/udp.h @@ -38,10 +38,10 @@ * Per RFC 768, September, 1981. */ struct udphdr { - uint16_t uh_sport; /* source port */ - uint16_t uh_dport; /* destination port */ - uint16_t uh_ulen; /* udp length */ - uint16_t uh_sum; /* udp checksum */ + nd_uint16_t uh_sport; /* source port */ + nd_uint16_t uh_dport; /* destination port */ + nd_uint16_t uh_ulen; /* udp length */ + nd_uint16_t uh_sum; /* udp checksum */ }; #ifndef NAMESERVER_PORT -- cgit v1.2.1 From 1f3edd71d916c79348bcb8cb72866aed12f6ef3c Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Tue, 2 Oct 2018 16:55:57 +0200 Subject: Remove unused UDP ports --- udp.h | 84 ------------------------------------------------------------------- 1 file changed, 84 deletions(-) (limited to 'udp.h') diff --git a/udp.h b/udp.h index 884541b6..7cac1a8f 100644 --- a/udp.h +++ b/udp.h @@ -47,12 +47,6 @@ struct udphdr { #ifndef NAMESERVER_PORT #define NAMESERVER_PORT 53 #endif -#ifndef TACACS_DB_PORT -#define TACACS_DB_PORT 65 /*XXX*/ -#endif -#ifndef ORACLE_SQLNET_PORT -#define ORACLE_SQLNET_PORT 66 /*XXX*/ -#endif #ifndef BOOTPS_PORT #define BOOTPS_PORT 67 /* RFC951 */ #endif @@ -77,42 +71,15 @@ struct udphdr { #ifndef NETBIOS_DGRAM_PORT #define NETBIOS_DGRAM_PORT 138 /* RFC 1001, RFC 1002 */ #endif -#ifndef NETBIOS_SSN_PORT -#define NETBIOS_SSN_PORT 139 /* RFC 1001, RFC 1002 */ -#endif #ifndef SNMP_PORT #define SNMP_PORT 161 /*XXX*/ #endif #ifndef SNMPTRAP_PORT #define SNMPTRAP_PORT 162 /*XXX*/ #endif -#ifndef BGP_PORT -#define BGP_PORT 179 /*XXX*/ -#endif -#ifndef APPLETALK_RTMP_PORT -#define APPLETALK_RTMP_PORT 201 /*XXX*/ -#endif -#ifndef APPLETALK_NB_PORT -#define APPLETALK_NB_PORT 202 /*XXX*/ -#endif #ifndef APPLETALK_ECHO #define APPLETALK_ECHO 204 /*XXX*/ #endif -#ifndef APPLETALK_ZONE_INFO_PORT -#define APPLETALK_ZONE_INFO_PORT 206 /*XXX*/ -#endif -#ifndef LDAP_PORT -#define LDAP_PORT 389 /*XXX*/ -#endif -#ifndef HTTPS_PORT -#define HTTPS_PORT 443 /*XXX*/ -#endif -#ifndef MICROSOFT_DS_PORT -#define MICROSOFT_DS_PORT 445 /*XXX*/ -#endif -#ifndef KERBEROS5_PASSWD_PORT -#define KERBEROS5_PASSWD_PORT 464 /* PER IANA */ -#endif #ifndef CISCO_AUTORP_PORT #define CISCO_AUTORP_PORT 496 /*XXX*/ #endif @@ -131,27 +98,15 @@ struct udphdr { #ifndef TIMED_PORT #define TIMED_PORT 525 /*XXX*/ #endif -#ifndef KERBEROS_LOGIN_PORT -#define KERBEROS_LOGIN_PORT 543 /*XXX*/ -#endif -#ifndef KERBEROS_SHELL_PORT -#define KERBEROS_SHELL_PORT 544 /*XXX*/ -#endif #ifndef DHCP6_SERV_PORT #define DHCP6_SERV_PORT 546 /*XXX*/ #endif #ifndef DHCP6_CLI_PORT #define DHCP6_CLI_PORT 547 /*XXX*/ #endif -#ifndef LDAPS_PORT -#define LDAPS_PORT 636 /*XXX - LDAP over TLS/SSL */ -#endif #ifndef LDP_PORT #define LDP_PORT 646 #endif -#ifndef DHCP_FAILOVER_PORT -#define DHCP_FAILOVER_PORT 647 /*XXX*/ -#endif #ifndef AQDV_PORT #define AODV_PORT 654 /*XXX*/ #endif @@ -161,36 +116,15 @@ struct udphdr { #ifndef LMP_PORT #define LMP_PORT 701 /* rfc4204 */ #endif -#ifndef CISCO_TDP_PORT -#define CISCO_TDP_PORT 711 /*XXX*/ -#endif -#ifndef KERBEROS_ADM_PORT -#define KERBEROS_ADM_PORT 749 /*XXX - Kerberos v5 */ -#endif #ifndef KERBEROS_SEC_PORT #define KERBEROS_SEC_PORT 750 /*XXX - Kerberos v4 */ #endif -#ifndef RSYNC_PORT -#define RSYNC_PORT 873 /*XXX*/ -#endif #ifndef LWRES_PORT #define LWRES_PORT 921 /*XXX*/ #endif -#ifndef OPENSSL_PORT -#define OPENSSL_PORT 1194 /*XXX*/ -#endif -#ifndef LOTUS_NOTES_PORT -#define LOTUS_NOTES_PORT 1352 /*XXX*/ -#endif -#ifndef MS_SQL_SERVER_PORT -#define MS_SQL_SERVER_PORT 1433 /*XXX*/ -#endif #ifndef MS_SQL_SERVER_MONITOR #define MS_SQL_SERVER_MONITOR 1434 /*XXX*/ #endif -#ifndef INGRESLOCK_PORT -#define INGRESLOCK_PORT 1524 /*XXX*/ -#endif #ifndef VQP_PORT #define VQP_PORT 1589 /*XXX*/ #endif @@ -215,30 +149,18 @@ struct udphdr { #ifndef HSRP_PORT #define HSRP_PORT 1985 /*XXX*/ #endif -#ifndef NFS_DAEMON_PORT -#define NFS_DAEMON_PORT 2049 /*XXX*/ -#endif #ifndef ZEPHYR_SRV_PORT #define ZEPHYR_SRV_PORT 2103 /*XXX*/ #endif #ifndef ZEPHYR_CLI_PORT #define ZEPHYR_CLT_PORT 2104 /*XXX*/ #endif -#ifndef MYSQL_PORT -#define MYSQL_PORT 3306 /*XXX*/ -#endif -#ifndef MS_RDP_PORT -#define MS_RDP_PORT 3389 /*XXX*/ -#endif #ifndef VAT_PORT #define VAT_PORT 3456 /*XXX*/ #endif #ifndef MPLS_LSP_PING_PORT #define MPLS_LSP_PING_PORT 3503 /* draft-ietf-mpls-lsp-ping-02.txt */ #endif -#ifndef SUBVERSION_PORT -#define SUBVERSION_PORT 3690 /*XXX*/ -#endif #ifndef BFD_CONTROL_PORT #define BFD_CONTROL_PORT 3784 /* RFC 5881 */ #endif @@ -248,9 +170,6 @@ struct udphdr { #ifndef RADIUS_COA_PORT #define RADIUS_COA_PORT 3799 /* RFC 5176 */ #endif -#ifndef NFS_LOCK_DAEMON_PORT -#define NFS_LOCK_DAEMON_PORT 4045 /*XXX*/ -#endif #ifndef LISP_CONTROL_PORT #define LISP_CONTROL_PORT 4342 /* RFC 6830 */ #endif @@ -266,9 +185,6 @@ struct udphdr { #ifndef VXLAN_GPE_PORT #define VXLAN_GPE_PORT 4790 /* draft-ietf-nvo3-vxlan-gpe-01 */ #endif -#ifndef SIP_DS_PORT -#define SIP_DS_PORT 5059 /*XXX*/ -#endif #ifndef SIP_PORT #define SIP_PORT 5060 #endif -- cgit v1.2.1