From: hackbard Date: Wed, 22 Jun 2005 19:26:40 +0000 (+0000) Subject: fix X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=99dd3ea262fb1f209ff341f51a97a6783150629b;p=my-code%2Fhdw-sniff.git fix --- diff --git a/parse.c b/parse.c index c4a8891..32219bd 100644 --- a/parse.c +++ b/parse.c @@ -198,23 +198,23 @@ void parse_package(unsigned char *ptr,const struct pcap_pkthdr *pcap_header,cons if(new) { strcpy(sc,"flite 'station found by data package'"); system(sc); - } - if(foo) { - sta->wds=1; - strcpy(sc,"flite 'wds package'"); - system(sc); - } - memcpy(sta->snap,data,10); - if((data[0]==0xaa)&(data[1]==0xaa)&(data[2]==0x03)& - (data[3]==0x00)&(data[4]==0x00)&(data[5]==0x00)) { - sta->wep=0; - strcpy(sc,"flite 'not crypted'"); - system(sc); - } - else { - sta->wep=WEP; - strcpy(sc,"flite ' crypted'"); - system(sc); + if(foo) { + sta->wds=1; + strcpy(sc,"flite 'wds package'"); + system(sc); + } + memcpy(sta->snap,data,10); + if((data[0]==0xaa)&(data[1]==0xaa)&(data[2]==0x03)& + (data[3]==0x00)&(data[4]==0x00)&(data[5]==0x00)) { + sta->wep=0; + strcpy(sc,"flite 'not crypted'"); + system(sc); + } + else { + sta->wep=WEP; + strcpy(sc,"flite ' crypted'"); + system(sc); + } } //}