diff options
| author | 2018-07-06 06:18:03 +0000 | |
|---|---|---|
| committer | 2018-07-06 06:18:03 +0000 | |
| commit | 4bb91c93cd9cf7b48f874e979eeef4594107d955 (patch) | |
| tree | 9208e0715061d364985523b5a7194f294f627e4e /usr.sbin/tcpdump/tcpdump.c | |
| parent | Rework UDP parsing, particularly around IP addresses. (diff) | |
| download | wireguard-openbsd-4bb91c93cd9cf7b48f874e979eeef4594107d955.tar.xz wireguard-openbsd-4bb91c93cd9cf7b48f874e979eeef4594107d955.zip | |
Add "gre" as a type to use with -T
This allows arbitrary UDP packets to be parsed as GRE packets.
Diffstat (limited to 'usr.sbin/tcpdump/tcpdump.c')
| -rw-r--r-- | usr.sbin/tcpdump/tcpdump.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/tcpdump.c b/usr.sbin/tcpdump/tcpdump.c index 4fd60fc152e..54186aba5fb 100644 --- a/usr.sbin/tcpdump/tcpdump.c +++ b/usr.sbin/tcpdump/tcpdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcpdump.c,v 1.83 2018/02/06 03:07:51 dlg Exp $ */ +/* $OpenBSD: tcpdump.c,v 1.84 2018/07/06 06:18:03 dlg Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 @@ -347,6 +347,8 @@ main(int argc, char **argv) packettype = PT_VRRP; else if (strcasecmp(optarg, "tcp") == 0) packettype = PT_TCP; + else if (strcasecmp(optarg, "gre") == 0) + packettype = PT_GRE; else if (strcasecmp(optarg, "sack") == 0) /* * kept for compatibility; DEFAULT_SNAPLEN |
