summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/interface.h
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2018-02-03 13:39:48 +0000
committermpi <mpi@openbsd.org>2018-02-03 13:39:48 +0000
commitd00b89925b5d36fa1ddffe5a820c033680c89f41 (patch)
tree5b9ad014b9a465178f4108b2fa522c6516315a48 /usr.sbin/tcpdump/interface.h
parentAdd support for dumping USB transfers via bpf(4) using USBPcap headers. (diff)
downloadwireguard-openbsd-d00b89925b5d36fa1ddffe5a820c033680c89f41.tar.xz
wireguard-openbsd-d00b89925b5d36fa1ddffe5a820c033680c89f41.zip
Simple USBPcap parser for tcpdump(8). Raw dumps can be nicely analysed
in wireshark. ok deraadt@, dlg@
Diffstat (limited to 'usr.sbin/tcpdump/interface.h')
-rw-r--r--usr.sbin/tcpdump/interface.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/interface.h b/usr.sbin/tcpdump/interface.h
index 384f5277ca0..5037695640d 100644
--- a/usr.sbin/tcpdump/interface.h
+++ b/usr.sbin/tcpdump/interface.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: interface.h,v 1.69 2016/11/16 13:47:27 reyk Exp $ */
+/* $OpenBSD: interface.h,v 1.70 2018/02/03 13:39:48 mpi 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.69 2016/11/16 13:47:27 reyk Exp $ (LBL)
+ * @(#) $Id: interface.h,v 1.70 2018/02/03 13:39:48 mpi Exp $ (LBL)
*/
#ifndef tcpdump_interface_h
@@ -276,6 +276,8 @@ extern void slow_print(const u_char *, u_int);
extern void gtp_print(const u_char *, u_int, u_short, u_short);
extern void ofp_print(const u_char *, u_int);
extern void ofp_if_print(u_char *, const struct pcap_pkthdr *, const u_char *);
+extern void usbpcap_if_print(u_char *, const struct pcap_pkthdr *,
+ const u_char *);
#ifdef INET6
extern void ip6_print(const u_char *, u_int);