]> hackdaworld.org Git - my-code/hdw-sniff.git/commitdiff
added debug symbols to figure out about frame ctl
authorhackbard <hackbard>
Wed, 25 Sep 2002 19:21:52 +0000 (19:21 +0000)
committerhackbard <hackbard>
Wed, 25 Sep 2002 19:21:52 +0000 (19:21 +0000)
hdw-sniff.c

index 13c56ab7fdd6b91dbffc8752b6302d0a79fcf285..0afd857e01ba9c386c89b556836823a377f703c9 100644 (file)
@@ -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;
                (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 */
        printf("frame_control: %x duration_id: %x\n",ntohs(w_hdr->frame_ctl),
                                                ntohs(w_hdr->duration_id));
        /* skip ieee802.11 header */