]> hackdaworld.org Git - my-code/hdw-sniff.git/commitdiff
-
authorhackbard <hackbard>
Thu, 14 Nov 2002 00:12:33 +0000 (00:12 +0000)
committerhackbard <hackbard>
Thu, 14 Nov 2002 00:12:33 +0000 (00:12 +0000)
hdw-sniff.c

index 18148572ec9f867e6f51a896761807fe7adcf9a0..6ba9c829bb1b0ce8d539456ae608ffad61328a0a 100644 (file)
@@ -169,27 +169,27 @@ void pcap_process(u_char *info,const struct pcap_pkthdr *pcap_header,
        /* frame type */
        if((w_hdr->frame_ctl & IEEE802_11_STYPE_BEACON)>0)
                strcpy(tmp_buf,"beacon");
-       if((w_hdr->frame_ctl & IEEE802_11_STYPE_ATIM)>0)
+       else if((w_hdr->frame_ctl & IEEE802_11_STYPE_ATIM)>0)
                strcpy(tmp_buf,"announcement traffic indication message");
-       if((w_hdr->frame_ctl & IEEE802_11_STYPE_DISASSOC)>0)
+       else if((w_hdr->frame_ctl & IEEE802_11_STYPE_DISASSOC)>0)
                strcpy(tmp_buf,"disassociation");
-       if((w_hdr->frame_ctl & IEEE802_11_STYPE_AUTH)>0)
+       else if((w_hdr->frame_ctl & IEEE802_11_STYPE_AUTH)>0)
                strcpy(tmp_buf,"authentification");
-       if((w_hdr->frame_ctl & IEEE802_11_STYPE_DEAUTH)>0)
+       else if((w_hdr->frame_ctl & IEEE802_11_STYPE_DEAUTH)>0)
                strcpy(tmp_buf,"deauthentification");
-       if((w_hdr->frame_ctl & IEEE802_11_STYPE_ASSOC_REQ)>0)
+       else if((w_hdr->frame_ctl & IEEE802_11_STYPE_ASSOC_REQ)>0)
                strcpy(tmp_buf,"association request");
-       if((w_hdr->frame_ctl & IEEE802_11_STYPE_ASSOC_RESP)>0)
+       else if((w_hdr->frame_ctl & IEEE802_11_STYPE_ASSOC_RESP)>0)
                strcpy(tmp_buf,"association response");
-       if((w_hdr->frame_ctl & IEEE802_11_STYPE_REASSOC_REQ)>0)
+       else if((w_hdr->frame_ctl & IEEE802_11_STYPE_REASSOC_REQ)>0)
                strcpy(tmp_buf,"reassociation request");
-       if((w_hdr->frame_ctl & IEEE802_11_STYPE_REASSOC_RESP)>0)
+       else if((w_hdr->frame_ctl & IEEE802_11_STYPE_REASSOC_RESP)>0)
                strcpy(tmp_buf,"reassociation response");
-       if((w_hdr->frame_ctl & IEEE802_11_STYPE_PROBE_REQ)>0)
+       else if((w_hdr->frame_ctl & IEEE802_11_STYPE_PROBE_REQ)>0)
                strcpy(tmp_buf,"probe request");
-       if((w_hdr->frame_ctl & IEEE802_11_STYPE_PROBE_RESP)>0)
+       else if((w_hdr->frame_ctl & IEEE802_11_STYPE_PROBE_RESP)>0)
                strcpy(tmp_buf,"probe response");
-       else strcpy(tmp_buf,"unknown");
+       else strcpy(tmp_buf,"unknown yet!");
        /* print out frame type */
        printf("=> %s\n",tmp_buf);