summaryrefslogtreecommitdiff
path: root/tcp.h
diff options
context:
space:
mode:
authorDenis Ovsienko <denis@ovsienko.info>2017-10-07 18:41:42 +0100
committerDenis Ovsienko <denis@ovsienko.info>2017-10-07 18:51:28 +0100
commit185b7ce04b182d2d7e490f23a3f0c7b9ea5916e4 (patch)
tree1f9f1083384003786e339a1892938abe5a60bed5 /tcp.h
parent62f2725b5745a2bfcd4223e2ca12566556b73d22 (diff)
downloadtcpdump-185b7ce04b182d2d7e490f23a3f0c7b9ea5916e4.tar.gz
WHOIS is a plain text protocol, why not decode it.
With txtproto_print() this has become trivial. Add a test.
Diffstat (limited to 'tcp.h')
-rw-r--r--tcp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tcp.h b/tcp.h
index 912b5e82..d9ffd0df 100644
--- a/tcp.h
+++ b/tcp.h
@@ -104,6 +104,9 @@ struct tcphdr {
#ifndef SMTP_PORT
#define SMTP_PORT 25
#endif
+#ifndef WHOIS_PORT
+#define WHOIS_PORT 43
+#endif
#ifndef NAMESERVER_PORT
#define NAMESERVER_PORT 53
#endif