summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/interface.h
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2018-07-06 06:43:19 +0000
committerdlg <dlg@openbsd.org>2018-07-06 06:43:19 +0000
commitccc4aa3fcdcb7eb52835d852f31c5df8d4650d4c (patch)
treef62afbcd4dc4b25ba40a04dbb33a84aec0bfdb42 /usr.sbin/tcpdump/interface.h
parentAdd "mpls" as a type to use with -T (diff)
downloadwireguard-openbsd-ccc4aa3fcdcb7eb52835d852f31c5df8d4650d4c.tar.xz
wireguard-openbsd-ccc4aa3fcdcb7eb52835d852f31c5df8d4650d4c.zip
add "tftp" as a type to use with -T
This forces UDP packets to be parsed as tftp messages, which is useful to see the DATA and ACK packets. They're usually on high ports which don't get matched by udp_print, which by default only handled tftp packets on port 69.
Diffstat (limited to 'usr.sbin/tcpdump/interface.h')
-rw-r--r--usr.sbin/tcpdump/interface.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/interface.h b/usr.sbin/tcpdump/interface.h
index 3ff78122bff..8cd27507a63 100644
--- a/usr.sbin/tcpdump/interface.h
+++ b/usr.sbin/tcpdump/interface.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: interface.h,v 1.76 2018/07/06 06:35:46 dlg Exp $ */
+/* $OpenBSD: interface.h,v 1.77 2018/07/06 06:43:19 dlg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -20,7 +20,7 @@
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * @(#) $Id: interface.h,v 1.76 2018/07/06 06:35:46 dlg Exp $ (LBL)
+ * @(#) $Id: interface.h,v 1.77 2018/07/06 06:43:19 dlg Exp $ (LBL)
*/
#ifndef tcpdump_interface_h
@@ -62,6 +62,7 @@ extern char *device; /* as specified by -i */
#define PT_TCP 8 /* TCP */
#define PT_GRE 9 /* Generic Routing Encapsulation (over UDP) */
#define PT_MPLS 10 /* MPLS (over UDP) */
+#define PT_TFTP 11 /* Trivial File Transfer Protocol */
#ifndef min
#define min(a,b) ((a)>(b)?(b):(a))