diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-03-02 16:04:35 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-03-02 20:53:23 +0100 |
commit | 9736efeb962a7e9b4e2e4929b04a0e88a1f690a7 (patch) | |
tree | 3f4490942a42ecb9b22dd1e8b9691addaa010a64 /tcpdump.c | |
parent | fc84133d47585731ffc2455390b40d8306818434 (diff) | |
download | tcpdump-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |