diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2018-07-06 06:35:47 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2018-07-06 06:35:47 +0000 |
commit | be3f94127143aab165f4271e2d1fa7ce991dc13d (patch) | |
tree | d43c51a94b8efe70165131123a5b63f05f73b5c9 /usr.sbin/tcpdump/tcpdump.c | |
parent | 3b164819297f12592792aea0a3be763f2f0800da (diff) |
Add "mpls" as a type to use with -T
This allows arbitrary UDP packets to be parsed as MPLS.
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 54186aba5fb..880e3809398 100644 --- a/usr.sbin/tcpdump/tcpdump.c +++ b/usr.sbin/tcpdump/tcpdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcpdump.c,v 1.84 2018/07/06 06:18:03 dlg Exp $ */ +/* $OpenBSD: tcpdump.c,v 1.85 2018/07/06 06:35:46 dlg Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 @@ -349,6 +349,8 @@ main(int argc, char **argv) packettype = PT_TCP; else if (strcasecmp(optarg, "gre") == 0) packettype = PT_GRE; + else if (strcasecmp(optarg, "mpls") == 0) + packettype = PT_MPLS; else if (strcasecmp(optarg, "sack") == 0) /* * kept for compatibility; DEFAULT_SNAPLEN |