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

184 Commits

Author SHA1 Message Date
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
Matias Fontanini
a7e0c094fb Implemented several ICMPv6 option getters/setters. 2012-12-08 11:15:41 -03:00
Matias Fontanini
592a15ebe4 Added some ICMPv6 option getters/setters. 2012-12-05 23:33:09 -03:00
Matias Fontanini
75b32c75bc Added concat operator to Packet and an overload that takes a PDU*. 2012-12-05 17:04:39 -03:00
Matias Fontanini
765285c6ee Added several ICMPv6 option getters/setters. 2012-12-04 23:15:38 -03:00
Matias Fontanini
742276c251 libtins compiles and runs under windows. Packets apparently can't be sent yet. 2012-12-02 20:25:05 -03:00
Matias Fontanini
9bdee61e5b Fixed some issues with Endian::change_endian triggered in OSX. 2012-11-29 21:30:13 -03:00
Matias Fontanini
e2426b493e configure script now works on BSD. 2012-11-29 18:00:41 -03:00
Matias Fontanini
93b5b86c5d Added some ICMPv6 option getters/setters. 2012-11-29 14:01:22 -03:00
Matias Fontanini
6696c1b284 Ported almost everything to BSD. Utils::route_entries and sending link layer PDUs still don't work. 2012-11-28 00:11:42 -03:00