projects
/
my-code
/
hdw-sniff.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fc
[my-code/hdw-sniff.git]
/
hdw-sniff.c
diff --git
a/hdw-sniff.c
b/hdw-sniff.c
index
bd7c54d
..
98f6c6e
100644
(file)
--- a/
hdw-sniff.c
+++ b/
hdw-sniff.c
@@
-159,8
+159,9
@@
void pcap_process(u_char *info,const struct pcap_pkthdr *pcap_header,
printf("fc: ");
for(i=0;i<16;i++)
printf("%s%d%s",(i==0?"|":""),
printf("fc: ");
for(i=0;i<16;i++)
printf("%s%d%s",(i==0?"|":""),
- ((
ntohs
(w_hdr->frame_ctl) & (1<<i))>0?1:0),
+ (((w_hdr->frame_ctl) & (1<<i))>0?1:0),
(i==15?"|\n":"|"));
(i==15?"|\n":"|"));
+ printf("fc: | v | t | s-t |t|f|m|r|p|m|w|o|\n");
printf("ion_id: %x\n",ntohs(w_hdr->duration_id));
printf("version check ... %s\n",
printf("ion_id: %x\n",ntohs(w_hdr->duration_id));
printf("version check ... %s\n",