eapol packets from 802.11 capture are not written properly to pcap file

181 views
Skip to first unread message

Joseph Beshay

unread,
Jan 15, 2015, 7:44:10 PM1/15/15
to lib...@googlegroups.com
Hi,

First of all, thanks for such a well-written library!

I am trying to use the library to capture a number of eapol authentication packets on an 802.11 network and save them to a pcap file.

I have set the filter in the sniffer to: ether proto 0x888e and I use a packet writer with DataLinkType<RadioTap> to write all the packets that end up in the callback function. Unfortunately, the pcap doesn't have valid eapol packets. It has the right number of packets but they are interpreted as FC (Fiber Channel?) packets rather than eapol.

The same filter works fine in tcpdump. I am guessing the packet writer is adding unnecessary headers that are messing up the pcap file. Any ideas where the problem could be?

Thanks,
Joseph

Matias Fontanini

unread,
Jan 15, 2015, 8:01:12 PM1/15/15
to lib...@googlegroups.com
Could you attach a tcpdump capture from that interface using that filter and the code you're using in the callback function?

Thanks!

Matias Fontanini

unread,
Jan 17, 2015, 12:50:58 PM1/17/15
to lib...@googlegroups.com
This is fixed, a flag was not being set when serializing EAPOL over LLC+SNAP. Thanks for the bug report!

Joseph D. Beshay

unread,
Jan 17, 2015, 12:56:00 PM1/17/15
to Matias Fontanini, lib...@googlegroups.com
Excellent. I will pull the updates later today and try it out.

Thank you!

--
You received this message because you are subscribed to a topic in the Google Groups "libtins" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/libtins/9VcokvSFoww/unsubscribe.
To unsubscribe from this group and all its topics, send an email to libtins+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages