Hello together,
I have a problem. I want to sniff a network traffic (but without a 
malicious inted, just to check how many packets were retransmited (retry 
flag))

Okay, the problem now is that I have to change into the monitor-mode, to 
get a DLT_IEEE802_11-frame packet.
With iwconfig wl0 mode monitor I envoked the monitor-mode on my Linksys 
with a WRT-linux. And it seems to work, because I checked it again with 
iwconfig. Important I use the 2.4 legacy-driver comming with OpenWRT!

In my program I have a if-brach:
if (pcap_datalink(handle) != DLT_IEEE802_11)
    {
        perror("is not an WLAN\n");
        exit(EXIT_FAILURE);
    }
    but here it fails. Other if I used the same if-brach with 
DLT_EN10MB, here it passes.
And I have another clue, that the device is not in monitor-mode. If I 
check for MAC-addresses I just get some trash, however not valued 
MAC-adresses.
Capturing wlan-packages is only possible while the device is in 
monitor-mode. But I read here: 
http://wiki.wireshark.org/CaptureSetup/WLAN that changing into 
monitor-mode is not everywhere possible.

Are there anything I have to notice if I change into monitor-mode or if 
I want to sniff for WLAN-packages?

Thank you very much

Gruss Christian

_______________________________________________
Bcm43xx-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev

Reply via email to