summaryrefslogtreecommitdiff
path: root/tcpdump.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-03-02 16:04:35 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-03-02 20:53:23 +0100
commit9736efeb962a7e9b4e2e4929b04a0e88a1f690a7 (patch)
tree3f4490942a42ecb9b22dd1e8b9691addaa010a64 /tcpdump.c
parentfc84133d47585731ffc2455390b40d8306818434 (diff)
downloadtcpdump-9736efeb962a7e9b4e2e4929b04a0e88a1f690a7.tar.gz
Add "domain" as an option for -T
This allows tcpdump to handle DNS running on non-standard ports. Add two test files with DNS over TCP and DNS over UDP, port 8053.
Diffstat (limited to 'tcpdump.c')
-rw-r--r--tcpdump.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcpdump.c b/tcpdump.c
index 30671841..a5148c74 100644
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -1796,6 +1796,8 @@ main(int argc, char **argv)
ndo->ndo_packettype = PT_PTP;
else if (ascii_strcasecmp(optarg, "someip") == 0)
ndo->ndo_packettype = PT_SOMEIP;
+ else if (ascii_strcasecmp(optarg, "domain") == 0)
+ ndo->ndo_packettype = PT_DOMAIN;
else
error("unknown packet type `%s'", optarg);
break;