From c93ded2c1256817b9c974c792cd143315b98fff7 Mon Sep 17 00:00:00 2001 From: mjm Date: Sat, 23 Nov 2002 21:42:41 +0000 Subject: implemented sniffer function in daemon.cc --- (limited to 'noncore/net/wellenreiter/daemon/source/sniffer.hh') diff --git a/noncore/net/wellenreiter/daemon/source/sniffer.hh b/noncore/net/wellenreiter/daemon/source/sniffer.hh index d262353..7e1e3be 100644 --- a/noncore/net/wellenreiter/daemon/source/sniffer.hh +++ b/noncore/net/wellenreiter/daemon/source/sniffer.hh @@ -13,10 +13,8 @@ #include #include - #define NONBROADCASTING "non-broadcasting" - /* holds all the interresting data */ struct packetinfo { @@ -36,16 +34,12 @@ struct packetinfo int ssid_len; }; - -/* Prototypes */ -int sniffer(void); -int start_sniffing (char * device); void process_packets(u_char *useless,const struct pcap_pkthdr* pkthdr,const u_char* packet); int decode_80211b_hdr(const u_char *p,struct packetinfo *ppinfo); void etheraddr_string(register const u_char *ep,char * text); int handle_beacon(u_int16_t fc, const u_char *p,struct packetinfo *ppinfo); -static int GetHeaderLength(u_int16_t fc); +int GetHeaderLength(u_int16_t fc); /* * True if "l" bytes of "var" were captured. -- cgit v0.9.0.2