Matias Fontanini
295ebb679c
Added 1000ms as the default read timeout used when calling pcap_open_live. Added BaseSniffer::set_timeout to modify this parameter.
2013-11-19 20:51:58 -03:00
Matias Fontanini
6355aff3cd
Added IPv4Reassembler class.
2013-11-17 15:32:24 -03:00
Matias Fontanini
23552ea105
Fixed issue with relative include paths in dot11 headers.
2013-11-10 11:55:36 -03:00
Matias Fontanini
9962381fc7
Added the --disable-dot11 configure switch.
2013-11-09 14:41:08 -03:00
Matias Fontanini
5345b29f8c
Added support for IPSec.
2013-11-04 23:05:00 -03:00
Matias Fontanini
6d329424f1
Created an overload of Internals::pdu_from_flag for transport layer PDUs.
2013-11-04 13:46:25 -03:00
Matias Fontanini
dfbbea33d5
Added another overload of Utils::route_entries and fixed a bug in Utils::network_interfaces.
2013-11-02 19:19:55 -03:00
Matias Fontanini
b0868b5d60
Added another Sniffer constructor.
2013-10-21 23:31:07 -03:00
Matias Fontanini
a507355e27
Added tins_cast as a replacement for dynamic_cast when using it on PDU classes.
2013-10-18 09:28:43 -03:00
Matias Fontanini
3337335df2
Fixed compilation error on internals.h.
2013-10-16 14:45:03 -03:00
Matias Fontanini
6dd949611d
Modified some header documentation.
2013-10-07 23:31:22 -03:00
Matias Fontanini
b6a55935b4
Modified some Dot11ManagementFrame documentation.
2013-10-07 14:00:45 -03:00
Matias Fontanini
01b2a9c7b2
Modified some examples fixed some doxygen documentation.
2013-10-06 23:00:20 -03:00
Matias Fontanini
58e2c93e30
Added HWAddress and IPv4Address::is_unicast and a static const member 'broadcast' for both classes.
2013-10-06 22:56:00 -03:00
Matias Fontanini
c4e6a7c0d6
Fixed some compilation errors/warnings and bugs when using Big Endian architectures.
2013-09-24 00:34:14 -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
54d012b92e
Done some fixes on HWAddress. Added HWAddress::operator/ which returns an AddressRange.
2013-09-20 17:37:20 -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
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
f8d71687e1
Modified some classes' documentation.
2013-09-14 19:01:05 -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
15f2896811
Added is_private and is_loopback methods to IPv4 and IPv6 addresses.
2013-09-04 12:57:36 -03:00
Matias Fontanini
b26f353e46
Added helper functions to Dot11Data to retrieve the source, destination and BSSID addresses.
2013-09-03 22:58:07 -03:00
Matias Fontanini
5f2c923c48
Added PDUAllocator class, which makes extending PDUs easier.
2013-08-29 23:31:10 -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
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
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
3b4dc10211
Added HWAddress<>::operator[].
2013-06-01 12:05:53 -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
b052aa1d88
Added HWAddress<>::is_broadcast.
2013-05-29 11:14:36 -03:00
Matias Fontanini
4960077495
RSNHandshakeCapturer is now DefaultConstructible.
2013-05-28 10:15:33 -03:00
Matias Fontanini
8147a2bfb7
Added RSNHandshakeCapturer class.
2013-05-25 18:00:20 -03:00
Matias Fontanini
ec7e718e38
Implemented std::hash for IPv4Address and IPv6Address.
2013-05-21 13:07:14 -03:00
Matias Fontanini
62740e8e64
Implemented std::hash specialization for HWAddress.
2013-05-04 20:09:32 -03:00
Matias Fontanini
5197e7f5f1
Sniffer now differentiates between EthernetII and Dot3 when sniffing.
2013-04-23 22:55:32 -03:00