summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump/print-802_11.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/tcpdump/print-802_11.c')
-rw-r--r--usr.sbin/tcpdump/print-802_11.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/print-802_11.c b/usr.sbin/tcpdump/print-802_11.c
index 1fe6452231c..901538c50d8 100644
--- a/usr.sbin/tcpdump/print-802_11.c
+++ b/usr.sbin/tcpdump/print-802_11.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-802_11.c,v 1.6 2005/12/18 17:52:46 reyk Exp $ */
+/* $OpenBSD: print-802_11.c,v 1.7 2006/06/23 21:53:01 reyk Exp $ */
/*
* Copyright (c) 2005 Reyk Floeter <reyk@openbsd.org>
@@ -640,6 +640,18 @@ ieee802_11_radio_if_print(u_char *user, const struct pcap_pkthdr *h,
t += 4;
}
+ if (RADIOTAP(RSSI)) {
+ u_int8_t rssi, max_rssi;
+ TCHECK(*t);
+ rssi = *(u_int8_t*)t;
+ t += 1;
+ TCHECK(*t);
+ max_rssi = *(u_int8_t*)t;
+ t += 1;
+
+ printf(", rssi %u/%u", rssi, max_rssi);
+ }
+
#undef RADIOTAP
putchar('>');