From 185b7ce04b182d2d7e490f23a3f0c7b9ea5916e4 Mon Sep 17 00:00:00 2001 From: Denis Ovsienko Date: Sat, 7 Oct 2017 18:41:42 +0100 Subject: WHOIS is a plain text protocol, why not decode it. With txtproto_print() this has become trivial. Add a test. --- tcp.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tcp.h') 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 -- cgit v1.2.1