summaryrefslogtreecommitdiff
path: root/udp.h
diff options
context:
space:
mode:
authorDenis Ovsienko <denis@ovsienko.info>2015-07-13 10:12:03 +0100
committerDenis Ovsienko <denis@ovsienko.info>2015-07-13 10:15:32 +0100
commit3ba4165c4b7cc369c9b7809a8f106cad0926c02c (patch)
treeab9bbaaf092470e4c7318e4ce06783b8e2de3f78 /udp.h
parentd093ac980c11bda22e63e0f901dc1d18457e5400 (diff)
downloadtcpdump-3ba4165c4b7cc369c9b7809a8f106cad0926c02c.tar.gz
refine use of nameser.h
Move the port number #define's to the TCP and UDP files such that they don't require nameser.h anymore. Update the TCP printer to disregard the multicast DNS port as it is UDP-only.
Diffstat (limited to 'udp.h')
-rw-r--r--udp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/udp.h b/udp.h
index 743ddfaf..1bdc923b 100644
--- a/udp.h
+++ b/udp.h
@@ -44,6 +44,7 @@ struct udphdr {
uint16_t uh_sum; /* udp checksum */
};
+#define NAMESERVER_PORT 53
#define BOOTPS_PORT 67 /* RFC951 */
#define BOOTPC_PORT 68 /* RFC951 */
#define TFTP_PORT 69 /*XXX*/
@@ -86,6 +87,7 @@ struct udphdr {
#define BFD_CONTROL_PORT 3784 /* draft-katz-ward-bfd-v4v6-1hop-00.txt */
#define BFD_ECHO_PORT 3785 /* draft-katz-ward-bfd-v4v6-1hop-00.txt */
#define WB_PORT 4567
+#define MULTICASTDNS_PORT 5353 /* RFC 6762 */
#define SFLOW_PORT 6343 /* http://www.sflow.org/developers/specifications.php */
#define LWAPP_DATA_PORT 12222 /* RFC 5412 */
#define LWAPP_CONTROL_PORT 12223 /* RFC 5412 */