]> hackdaworld.org Git - my-code/hdw-sniff.git/commitdiff
fc work
authorhackbard <hackbard>
Wed, 13 Nov 2002 21:47:26 +0000 (21:47 +0000)
committerhackbard <hackbard>
Wed, 13 Nov 2002 21:47:26 +0000 (21:47 +0000)
hdw-sniff.c

index 05db8bfe8c32b177bc2b5531d0bf4180ca0c1476..bd7c54d7f2ea9c942f54a8869078867d53771997 100644 (file)
@@ -159,8 +159,8 @@ 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?"|":""),
-                               ((ntohs(w_hdr->frame_ctl) & (1<<i))>0?"1":"0"),
-                               (i==15?"|\n":""));
+                               ((ntohs(w_hdr->frame_ctl) & (1<<i))>0?1:0),
+                               (i==15?"|\n":"|"));
        
        printf("ion_id: %x\n",ntohs(w_hdr->duration_id));
        printf("version check ... %s\n",