From: hackbard Date: Wed, 25 Sep 2002 19:21:52 +0000 (+0000) Subject: added debug symbols to figure out about frame ctl X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=18f1fabbcdc82a6873a28f9f4ac71119aeb78e56;p=my-code%2Fhdw-sniff.git added debug symbols to figure out about frame ctl --- diff --git a/hdw-sniff.c b/hdw-sniff.c index 13c56ab..0afd857 100644 --- 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<frame_ctl & 1<frame_ctl), ntohs(w_hdr->duration_id)); /* skip ieee802.11 header */