projects
/
my-code
/
hdw-sniff.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9ad5fae
)
-
author
hackbard
<hackbard>
Thu, 14 Nov 2002 00:12:33 +0000
(
00:12
+0000)
committer
hackbard
<hackbard>
Thu, 14 Nov 2002 00:12:33 +0000
(
00:12
+0000)
hdw-sniff.c
patch
|
blob
|
history
diff --git
a/hdw-sniff.c
b/hdw-sniff.c
index
1814857
..
6ba9c82
100644
(file)
--- a/
hdw-sniff.c
+++ b/
hdw-sniff.c
@@
-169,27
+169,27
@@
void pcap_process(u_char *info,const struct pcap_pkthdr *pcap_header,
/* frame type */
if((w_hdr->frame_ctl & IEEE802_11_STYPE_BEACON)>0)
strcpy(tmp_buf,"beacon");
/* frame type */
if((w_hdr->frame_ctl & IEEE802_11_STYPE_BEACON)>0)
strcpy(tmp_buf,"beacon");
- if((w_hdr->frame_ctl & IEEE802_11_STYPE_ATIM)>0)
+
else
if((w_hdr->frame_ctl & IEEE802_11_STYPE_ATIM)>0)
strcpy(tmp_buf,"announcement traffic indication message");
strcpy(tmp_buf,"announcement traffic indication message");
- if((w_hdr->frame_ctl & IEEE802_11_STYPE_DISASSOC)>0)
+
else
if((w_hdr->frame_ctl & IEEE802_11_STYPE_DISASSOC)>0)
strcpy(tmp_buf,"disassociation");
strcpy(tmp_buf,"disassociation");
- if((w_hdr->frame_ctl & IEEE802_11_STYPE_AUTH)>0)
+
else
if((w_hdr->frame_ctl & IEEE802_11_STYPE_AUTH)>0)
strcpy(tmp_buf,"authentification");
strcpy(tmp_buf,"authentification");
- if((w_hdr->frame_ctl & IEEE802_11_STYPE_DEAUTH)>0)
+
else
if((w_hdr->frame_ctl & IEEE802_11_STYPE_DEAUTH)>0)
strcpy(tmp_buf,"deauthentification");
strcpy(tmp_buf,"deauthentification");
- if((w_hdr->frame_ctl & IEEE802_11_STYPE_ASSOC_REQ)>0)
+
else
if((w_hdr->frame_ctl & IEEE802_11_STYPE_ASSOC_REQ)>0)
strcpy(tmp_buf,"association request");
strcpy(tmp_buf,"association request");
- if((w_hdr->frame_ctl & IEEE802_11_STYPE_ASSOC_RESP)>0)
+
else
if((w_hdr->frame_ctl & IEEE802_11_STYPE_ASSOC_RESP)>0)
strcpy(tmp_buf,"association response");
strcpy(tmp_buf,"association response");
- if((w_hdr->frame_ctl & IEEE802_11_STYPE_REASSOC_REQ)>0)
+
else
if((w_hdr->frame_ctl & IEEE802_11_STYPE_REASSOC_REQ)>0)
strcpy(tmp_buf,"reassociation request");
strcpy(tmp_buf,"reassociation request");
- if((w_hdr->frame_ctl & IEEE802_11_STYPE_REASSOC_RESP)>0)
+
else
if((w_hdr->frame_ctl & IEEE802_11_STYPE_REASSOC_RESP)>0)
strcpy(tmp_buf,"reassociation response");
strcpy(tmp_buf,"reassociation response");
- if((w_hdr->frame_ctl & IEEE802_11_STYPE_PROBE_REQ)>0)
+
else
if((w_hdr->frame_ctl & IEEE802_11_STYPE_PROBE_REQ)>0)
strcpy(tmp_buf,"probe request");
strcpy(tmp_buf,"probe request");
- if((w_hdr->frame_ctl & IEEE802_11_STYPE_PROBE_RESP)>0)
+
else
if((w_hdr->frame_ctl & IEEE802_11_STYPE_PROBE_RESP)>0)
strcpy(tmp_buf,"probe response");
strcpy(tmp_buf,"probe response");
- else strcpy(tmp_buf,"unknown");
+ else strcpy(tmp_buf,"unknown
yet!
");
/* print out frame type */
printf("=> %s\n",tmp_buf);
/* print out frame type */
printf("=> %s\n",tmp_buf);