1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00
Commit Graph

293 Commits

Author SHA1 Message Date
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
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
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
4ca21bdad7 Fixed some issues when parsing DNS answers. MX records are now serialized correctly. 2013-08-04 14:27:03 -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
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
8c1d71c7b7 Both of WPA2Decrypter::add_supplicant_data overloads work. 2013-06-01 10:48:22 -03:00
Matias Fontanini
5db196a630 Fixed tests dependency file. 2013-05-31 22:33:50 -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
b052aa1d88 Added HWAddress<>::is_broadcast. 2013-05-29 11:14:36 -03:00
Matias Fontanini
bf604339f0 Removed the PDU* parameter in several PDU's constructors. 2013-04-23 20:03:08 -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
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
69968cbc5c Removed deprecated methods/types. 2013-04-21 19:52:39 -03:00
Matias Fontanini
97f049580b Link layer PDUs no longer contain a NetworkInterface. 2013-04-21 18:50:08 -03:00
Matias Fontanini
077b54bbed Added STP root_id and bridge_id setters/getters. 2013-04-21 13:22:15 -03:00
Matias Fontanini
2ea952d6ab Added PDU::rfind_pdu. 2013-04-19 22:27:48 -03:00
Matias Fontanini
91bdcca577 Dot11 now uses option_not_found. Sniffer catches malformed_packet rather than std::runtime_error while sniffing. 2013-04-19 14:06:59 -03:00
Matias Fontanini
38ccb4413b STP is now serialized correctly. LLC behaves correctly when it contains an STP is its inner pdu. 2013-04-16 01:05:06 -03:00
Matias F
9631734805 Added STP class. 2013-04-15 14:01:44 -03:00
Matias Fontanini
30d6a4f2e0 UDP checksum is now calculated always inside write_serialization. 2013-04-12 13:42:11 -03:00
Matias Fontanini
ae1e1c2ce2 Modified some protocols' internal type names. 2013-04-09 15:40:58 -03:00
Matias Fontanini
20054e6c73 Several classes now use PDUOption::length_field instead of data_size. 2013-04-08 11:58:12 -03:00
Matias Fontanini
f7f5a9bc9a Added PPPoE. 2013-04-07 20:57:43 -03:00
Matias Fontanini
f2a5f73337 Implemented matches_response on several PDUs. Added some test cases. 2013-04-02 21:05:53 -03:00
Matias Fontanini
3989566608 Renamed IEEE802_3 to Dot3. 2013-03-25 15:35:30 -03:00
Matias Fontanini
82ef41dd92 IP now fills automatically the sender address when no link layer PDU is present. Made some protocols work when using PacketSender::send_recv. 2013-03-25 14:08:59 -03:00
Matias Fontanini
d7dd1e131f Added an overload of add_option that takes an rvalue-ref in IP, TCP, DHCP, ICMPv6 and Dot11. 2013-03-24 00:08:53 -03:00
Matias Fontanini
247273e086 Added constructor from buffer test for Dot11BlockAckRequest. 2013-03-18 13:32:34 -03:00
Matias Fontanini
0f27b04a92 Fixed lots of warnings in test cases, due to narrowing conversions. 2013-03-18 11:32:34 -03:00
Matias Fontanini
a8edc2af74 Added serialization test for Dot1Q. 2013-03-18 10:17:43 -03:00
Matias Fontanini
f5ecaa3faa Added Dot1Q class. 2013-03-17 23:27:34 -03:00
Matias Fontanini
b5f9f5095e Added Utils::resolve_domain and resolve_domain6. 2013-03-15 15:43:42 -03:00
Matias Fontanini
02a53da361 Fixed bug triggered when parsing RadioTap in BE architectures. 2013-03-15 15:13:00 -03:00
Matias Fontanini
0945e0b29e Added DHCPv6 client/server id options' getters/setters. 2013-01-28 16:23:47 -03:00
Matias Fontanini
5b2e117347 Implemented every DHCPv6 option getter/setter, except for those involving DUIDs. 2013-01-22 23:24:10 -03:00
Matias Fontanini
044d0a5a31 Added DHCPv6 initial support. 2013-01-16 20:15:04 -03:00
Matias Fontanini
9d0e84f1fa Added SLL tests. 2013-01-16 16:24:44 -03:00
Matias Fontanini
02265061cc Added SLL pseudo protocol header. 2013-01-16 00:05:28 -03:00