ongrep

A cleaned up fork of ngrep for OpenBSD
git clone git://git.sgregoratto.me/ongrep
Log | Files | Refs | README | LICENSE

commit 2927b5dd48b7ee82c8a03bf4e9018faae9795914
parent a9d12de798f60e0c13821531283b7a549c1af2c1
Author: Jordan Ritter <jpr5@darkridge.com>
Date:   Wed, 18 Oct 2006 04:00:37 +0000

very minor radiotap DLT detection optimization

Diffstat:
Mngrep.c | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/ngrep.c b/ngrep.c @@ -567,16 +567,14 @@ int main(int argc, char **argv) { break; #endif -#if HAVE_DLT_IEEE802_11 - case DLT_IEEE802_11: - link_offset = IEEE80211HDR_SIZE; - break; -#endif - #if HAVE_DLT_IEEE802_11_RADIO case DLT_IEEE802_11_RADIO: - link_offset = IEEE80211HDR_SIZE; radiotap_present = 1; +#endif + +#if HAVE_DLT_IEEE802_11 + case DLT_IEEE802_11: + link_offset = IEEE80211HDR_SIZE; break; #endif