summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump/interface.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2005-03-07 16:13:39 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2005-03-07 16:13:39 +0000
commit7c827187f2c6eb5177fe7b0de5b1b642f0eb5275 (patch)
treeecb171ef4a1cfc84f704ee8bf68a3af749cf1e53 /usr.sbin/tcpdump/interface.h
parentd061cdbee42eb1da2c081d154b23a77670baf7e3 (diff)
add a printer for 802.11 and for additional radiotap headers,
use -y IEEE802_11 or IEEE802_11_RADIO if supported by the driver. ok canacar@
Diffstat (limited to 'usr.sbin/tcpdump/interface.h')
-rw-r--r--usr.sbin/tcpdump/interface.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/interface.h b/usr.sbin/tcpdump/interface.h
index 7d0ca560229..cf87a9441aa 100644
--- a/usr.sbin/tcpdump/interface.h
+++ b/usr.sbin/tcpdump/interface.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: interface.h,v 1.47 2004/09/16 11:29:51 markus Exp $ */
+/* $OpenBSD: interface.h,v 1.48 2005/03/07 16:13:38 reyk 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.
*
- * @(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/interface.h,v 1.47 2004/09/16 11:29:51 markus Exp $ (LBL)
+ * @(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/interface.h,v 1.48 2005/03/07 16:13:38 reyk Exp $ (LBL)
*/
#ifndef tcpdump_interface_h
@@ -79,6 +79,7 @@ extern int packettype; /* as specified by -T */
#define DEFAULT_SNAPLEN 96
#endif /* INET6 */
#define SACK_SNAPLEN 94
+#define RADIOTAP_SNAPLEN (DEFAULT_SNAPLEN + 64)
#ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321
@@ -159,6 +160,7 @@ extern const char *tok2str(const struct tok *, const char *, int);
extern char *dnaddr_string(u_short);
extern void safeputs(const char *);
extern void safeputchar(int);
+extern void printb(char *, unsigned short, char *);
extern void wrapup(int);
@@ -211,6 +213,10 @@ extern void ppp_ether_if_print(u_char *, const struct pcap_pkthdr *,
const u_char *);
extern void gre_print(const u_char *, u_int);
extern void icmp_print(const u_char *, const u_char *);
+extern void ieee802_11_if_print(u_char *, const struct pcap_pkthdr *,
+ const u_char *);
+extern void ieee802_11_radio_if_print(u_char *, const struct pcap_pkthdr *,
+ const u_char *);
extern void igrp_print(const u_char *, u_int, const u_char *);
extern void ip_print(const u_char *, u_int);
extern void ipx_print(const u_char *, u_int);