Matias Fontanini
9cbac6b044
BaseSniffer::next_packet now uses pcap_dispatch.
2013-09-23 22:55:18 -03:00
Matias Fontanini
2414edd1e7
Fixed a bug in PPI and Dot1Q triggered when constructing from buffer/serializing. Done some documentation fixes.
2013-09-22 19:37:02 -03:00
Matias Fontanini
74ef177e25
Added address_range.cpp.
2013-09-21 01:21:15 -03:00
Matias Fontanini
1b4efc1520
Rolled the BaseSniffer changes since that was OK.
2013-09-20 12:37:21 -03:00
Matias Fontanini
96ecd054ab
Fixed issue with bpf_programs on BaseSniffer. Done some documentation changes.
2013-09-20 11:07:09 -03:00
Matias Fontanini
d7d2dec5cb
Done some optimizations on TCP's constructor from buffer.
2013-09-15 16:01:00 -03:00
Matias Fontanini
20f3911e12
BaseSniffer::sniff_loop now uses begin() and end() to process packets, making it around 8% faster. Also added BaseSniffer::link_type to retrieve the pcap handle link type.
2013-09-15 12:16:54 -03:00
Matias Fontanini
d393c1fbfc
Moved calls to pcap_loop and pcap_breakloop to sniffer.cpp.
2013-09-08 19:20:52 -03:00
Matias Fontanini
e21e34e194
Added IPv4Address, IPv6Address and HWAddress<> 'is_multicast' member function.
2013-09-08 17:23:08 -03:00
Matias Fontanini
a01fff411e
Added missing PPI files.
2013-09-05 09:09:56 -03:00
Matias Fontanini
7d4222fb17
Added PPI PDU.
2013-09-05 00:49:11 -03:00
Matias Fontanini
de0ec914cc
Fixed bug in RadioTap. The flags field was being used even if it was not present.
2013-09-04 16:34:24 -03:00
Matias Fontanini
15f2896811
Added is_private and is_loopback methods to IPv4 and IPv6 addresses.
2013-09-04 12:57:36 -03:00
Matias Fontanini
5f2c923c48
Added PDUAllocator class, which makes extending PDUs easier.
2013-08-29 23:31:10 -03:00
Matias Fontanini
4ca21bdad7
Fixed some issues when parsing DNS answers. MX records are now serialized correctly.
2013-08-04 14:27:03 -03:00
Matias Fontanini
2cc0ceb1aa
Fixed bug triggered in DNS when parsing some unknown record types.
2013-07-25 10:47:09 -03:00
Matias Fontanini
7063e60af9
Merge branch 'master' of ssh://git.code.sf.net/p/libtins/code
2013-07-24 23:32:55 -03:00
Matias Fontanini
21b80a7370
BaseSniffer is now iterable.
2013-07-24 23:32:33 -03:00
Matias Fontanini
fb8fb92ee6
BaseSniffer::next_packet now loops until either a valid packet is found or pcap_next fails.
2013-07-24 22:27:53 -03:00
Santiago Alessandri
2a5b64526f
Replaced tabs for spaces in the previous commit
2013-07-14 13:13:38 -03:00
Santiago Alessandri
02d3a14083
Fixed issue related with EthernetII protocol.
...
The Ethernet II protocol forces a minimum length of 60 bytes. It is necessary to add a trailer for padding of null-bytes when the inner_pdu's size does not meet the requirement.
Also EthernetII packets received were being incorrectly parsed due to the existance of this padding.
The issue has been solved and several tests were added. All tests successfully pass.
2013-07-12 20:06:55 -03:00
Matias Fontanini
3b349471ea
Added AddressRange class template.
2013-07-06 17:48:26 -03:00
Matias Fontanini
f385e4e975
Added a const overload of TCP::get_flag. Added TCP::flags.
2013-06-17 21:25:30 -03:00
Matias Fontanini
acff8f1e1f
The --disable-wpa2 switch now works as expected.
2013-06-15 10:00:50 -03:00
Matias Fontanini
996e0f139e
Fixed bug on Dot11QoSData.
2013-06-04 15:49:49 -03:00
Matias Fontanini
c2353314fa
WEPDecrypter now returns true iff the packet was decrypted successfully.
2013-06-04 15:49:33 -03:00
Matias Fontanini
5d315c5b6d
Fixed a CCMP padding bug.
2013-06-02 16:14:21 -03:00
Matias Fontanini
87ac5acdd8
WPA2Decrypter now decrypts both CCMP and TKIP encrypted traffic.
2013-06-01 21:29:06 -03:00
Matias Fontanini
8c1d71c7b7
Both of WPA2Decrypter::add_supplicant_data overloads work.
2013-06-01 10:48:22 -03:00
Matias Fontanini
ec8374be60
Split dot11.h and dot11.cpp into several files.
2013-05-31 22:16:56 -03:00
Matias Fontanini
eeb62add59
Added WPA2Decrypter tests.
2013-05-31 14:11:12 -03:00
Matias Fontanini
908fcb56e8
Added WPA2Decrypter class.
2013-05-30 23:36:14 -03:00
Matias Fontanini
ddf47365c1
RadioTap now calculates its size always while serializing. Added 2 missing RadioTap fields as well.
2013-05-30 18:14:11 -03:00
Matias Fontanini
cacf75995d
Added automake foreign option.
2013-05-28 15:19:00 -03:00
Matias Fontanini
8147a2bfb7
Added RSNHandshakeCapturer class.
2013-05-25 18:00:20 -03:00
Piotr Haber
28c8d393d6
do not parse Dot11 frame if FCS is wrong
...
Signed-off-by: Matias Fontanini <matias.fontanini@gmail.com >
2013-05-23 17:54:17 -03:00
Piotr Haber
14b1a4988b
take wildcard SSID into account
...
Specification states (Ch 8.4.2.2 of IEEE Std 802.11-2007)
that in Probe Reqest frames SSID IE of length 0 signifies
"wildcard" SSID.
Return "BROADCAST" from Dot11ManagementFrame::ssid()
in such case.
Signed-off-by: Matias Fontanini <matias.fontanini@gmail.com >
2013-05-01 14:06:02 -03:00
Matias Fontanini
cf19c8758d
UDP now calculates the checksum when the transport layer protocol is IPv6.
2013-04-23 23:00:43 -03:00
Matias Fontanini
5197e7f5f1
Sniffer now differentiates between EthernetII and Dot3 when sniffing.
2013-04-23 22:55:32 -03:00
Matias Fontanini
5064a9255b
Fixed BSD notice. Updated AUTHORS file.
2013-04-23 20:33:00 -03:00
Matias Fontanini
bf604339f0
Removed the PDU* parameter in several PDU's constructors.
2013-04-23 20:03:08 -03:00
Matias Fontanini
7e85058ef1
Added another overload of Utils::resolv_hwaddr.
2013-04-23 15:19:48 -03:00
Matias Fontanini
0f2bc45059
Moved definitions inside TINS_IS_CXX11 into header files.
2013-04-23 13:04:57 -03:00
Matias Fontanini
8afbe14c82
PacketSender is not copyable and movable.
2013-04-23 11:05:44 -03:00
Matias Fontanini
fdfb8b0dea
Fixed compilation issues triggered in GNU/kFreeBSD.
2013-04-22 23:48:53 -03:00
Matias Fontanini
9be4f0ca37
Removed IP, UDP and IP checksum setters. Added some checksum tests.
2013-04-22 20:06:35 -03:00
Matias Fontanini
66ff604580
assert() is only called when TINS_DEBUG is defined.
2013-04-22 18:45:56 -03:00
Matias Fontanini
ed39eb36f5
Dot11BlockAck and Dot11BlockAckRequests' frag_seq, start_sequence and bar_control now use small_uint rather than uintX_t.
2013-04-22 12:54:27 -03:00
Matias Fontanini
7da8de6ea7
Added another test case for RadioTap's constructor from buffer.
2013-04-22 12:53:01 -03:00
Matias Fontanini
d1b64ec48e
PDU::matches_response is now const.
2013-04-21 20:03:47 -03:00