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

48 Commits

Author SHA1 Message Date
Kyle Fazzari
a71a3d29ff Fix -Wextra compiler warnings. (#184)
* Fix -Wextra compiler warnings.

Fix #183.

Signed-off-by: Kyle Fazzari <github@status.e4ward.com>

* Comment out unused parameters.

This is done everywhere possible instead of using Internals::unused().
Note that this involved moving some implementations into the
corresponding .cpp file.

Signed-off-by: Kyle Fazzari <github@status.e4ward.com>

* Fix warnings in tests as well.

Signed-off-by: Kyle Fazzari <github@status.e4ward.com>

* Leave IPv4Reassembler alone, it's growing.

Signed-off-by: Kyle Fazzari <github@status.e4ward.com>
2017-01-25 13:26:11 -08:00
Matias Fontanini
17da10d76e Add extract_metadata to main PDU classes 2016-02-20 22:19:12 -08:00
Matias Fontanini
fb4e5086fd Update copyright notice 2016-01-31 20:03:49 -08:00
Matias Fontanini
d84f10cf08 Code cleanup and use same syntax on the entire project
Initial code cleanup

More code cleanup

Cleanup more code

Cleanup Dot11 code

Fix OSX build issue

Cleanup examples

Fix ref and pointer declaration syntax

Fix braces
2016-01-09 10:01:58 -08:00
Matias Fontanini
02e2b278de Add OutputMemoryStream and port most classes to use it 2015-12-26 06:30:00 -08:00
Matias Fontanini
13c05fbdb1 Add input memory stream class and port some PDUs to use it 2015-12-24 15:21:07 -08:00
Matias Fontanini
6dec68128d Add remove_option member to IP, TCP, Dot11, ICMPv6, DHCP and DHCPv6 2015-08-17 15:19:03 -07:00
Matias Fontanini
c42cd0114f Fix compilation warnings on Windows x64. 2015-05-17 17:30:54 -07:00
Christian Hammerl
52b0ee7ceb fix armv5 alignment issues 2014-07-31 15:49:52 +00:00
Matias Fontanini
2dff95700f Updated copyright notice. 2014-07-13 11:04:29 -03:00
Matias Fontanini
10421fe945 Added DHCP::hostname. 2014-04-01 10:22:05 -03:00
Matias Fontanini
e2656739f1 Ported DHCP and Dot11. Almost ported DHCPv6 completely. 2013-12-23 23:02:58 -03:00
Matias Fontanini
6dd949611d Modified some header documentation. 2013-10-07 23:31:22 -03:00
Matias Fontanini
5064a9255b Fixed BSD notice. Updated AUTHORS file. 2013-04-23 20:33:00 -03:00
Matias Fontanini
0f2bc45059 Moved definitions inside TINS_IS_CXX11 into header files. 2013-04-23 13:04:57 -03:00
Matias Fontanini
66ff604580 assert() is only called when TINS_DEBUG is defined. 2013-04-22 18:45:56 -03:00
Matias Fontanini
3fd1b3d37d Added malformed_packet exception. Every class except Dot11* use it. 2013-04-18 00:12:20 -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
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
1c22dab2dc libtins now uses a BSD license. 2012-10-07 20:33:45 -03:00
Matias Fontanini
e945ced307 Modified some file names. 2012-09-10 10:31:00 -03:00
Matias Fontanini
c49fbe9929 Added a generic PDUOption class. TCP, IP, DHCP and Dot11* now use this class to store their options. 2012-09-10 00:11:54 -03:00
Matias Fontanini
3cb6603151 Improved compile time using forward declarations and removing useless includes. 2012-09-05 11:59:46 -03:00
Matias Fontanini
832a79a1e1 Moved endianness change functions to endianness.h. 2012-09-03 23:58:43 -03:00
Matias Fontanini
e1a84be0cb Documented and fixed some bugs in IPv4Address. 2012-08-27 11:57:14 -03:00
Matias Fontanini
da8c77c77e RAII'd some code. Everything(hopefully) uses IPv4Address now. 2012-08-27 00:16:56 -03:00
Matias Fontanini
1b08d1af71 Added some serialization tests to every PDU. 2012-08-26 12:50:30 -03:00
Matias Fontanini
80198909eb Fixed endianess issues in several classes. Everything is working on big endian architectures so far. 2012-08-21 00:03:55 -03:00
Matias Fontanini
27f6eeccd4 Fixed some bugs in Dot11 and DNS. Most of the code uses host_to_be and be_to_host. 2012-08-16 00:34:18 -03:00
Matias Fontanini
892bc0ecd3 Started fixing endianess issues. 2012-08-15 12:04:13 -03:00
Matias Fontanini
55be59ee15 Done some minor fixes. 2012-08-09 23:39:32 -03:00
Matias Fontanini
c4a92d2b96 Fixed some bugs, added some tests. 2012-08-02 21:21:10 -03:00
Matias Fontanini
08f8521ae7 Added IPv4Address class. 2012-05-03 12:03:26 -03:00
Matias Fontanini
594eabd282 Added option helper functions on DHCP. 2012-03-23 11:25:28 -03:00
Matias Fontanini
0b6b4e9921 Fixed endianness in some DHCP options. 2012-03-23 00:59:35 -03:00
Matias Fontanini
fd09f11ad5 Added renewal option add/search on DHCP. 2012-03-17 23:49:44 -03:00
Matias Fontanini
e2c643f698 Fixed bugs in EthernetII, BootP and DHCP. 2011-09-19 01:00:24 -03:00
Matias Fontanini
753378cb38 Fixed some leak or uninitialized memory usage bugs. 2011-09-10 20:05:41 -03:00
Matias Fontanini
3178c217b3 Added copy constructor and copy assignment operator to all PDUs. 2011-09-03 18:58:57 -03:00
Matias Fontanini
7ccae0c994 Fixed exception syntax error.. 2011-08-24 00:00:24 -03:00
Matias Fontanini
7aa6172d8a Fixed bug triggered by sending DHCP with no options. 2011-08-22 13:08:18 -03:00
Matias Fontanini
2513488b92 TCP now stores options when instantiated from a buffer. 2011-08-19 11:40:13 -03:00
Matias Fontanini
3e2168f6fc Added DHCP and BootP constructors from uint8_t buffer. Normalized IP destination and source address getters/setters. 2011-08-19 10:13:35 -03:00
Matias Fontanini
18750fe18a Added Sniffer class. Added a constructor to eery PDU subclass which creates an instance of the PDU from a byte array. 2011-08-18 20:36:55 -03:00
Matias Fontanini
9efee446f0 Added more DHCP options. 2011-08-18 11:04:22 -03:00
Matias Fontanini
24e314283f Added some helper functions to set options to DHCP PDU. Added LGPL notice to dhcp.cpp 2011-08-17 16:20:02 -03:00
Matias Fontanini
c49806603b Added DHCP class. It's now working yet. 2011-08-17 12:16:48 -03:00