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
(from parent 1:
11b73fc
)
added debug symbols to figure out about frame ctl
author
hackbard
<hackbard>
Wed, 25 Sep 2002 19:21:52 +0000
(19:21 +0000)
committer
hackbard
<hackbard>
Wed, 25 Sep 2002 19:21:52 +0000
(19:21 +0000)
hdw-sniff.c
patch
|
blob
|
history
diff --git
a/hdw-sniff.c
b/hdw-sniff.c
index
13c56ab
..
0afd857
100644
(file)
--- a/
hdw-sniff.c
+++ b/
hdw-sniff.c
@@
-106,6
+106,13
@@
void pcap_process(u_char *info,const struct pcap_pkthdr *pcap_header,
(strncmp(my_info_struct->dev,"wlan",4)==0)) {
printf("ieee802.11 header:\n");
w_hdr=(struct ieee802_11_hdr *)package;
+
+ printf("debug:\n");
+ for(i=0;i<16;i++) {
+ printf("%x -> ",1<<i);
+ printf("%x\n",(w_hdr->frame_ctl & 1<<i));
+ }
+
printf("frame_control: %x duration_id: %x\n",ntohs(w_hdr->frame_ctl),
ntohs(w_hdr->duration_id));
/* skip ieee802.11 header */