From: hackbard Date: Wed, 13 Nov 2002 21:47:26 +0000 (+0000) Subject: fc work X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3c2f4ca0b3e1477ee21ccd6b023a82512386702;p=my-code%2Fhdw-sniff.git fc work --- diff --git a/hdw-sniff.c b/hdw-sniff.c index 05db8bf..bd7c54d 100644 --- a/hdw-sniff.c +++ b/hdw-sniff.c @@ -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<0?"1":"0"), - (i==15?"|\n":"")); + ((ntohs(w_hdr->frame_ctl) & (1<0?1:0), + (i==15?"|\n":"|")); printf("ion_id: %x\n",ntohs(w_hdr->duration_id)); printf("version check ... %s\n",