1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 18:55:58 +01:00

34 Commits

Author SHA1 Message Date
Matias Fontanini
a6817528bc Use absolute include paths
Fixes #250
2017-09-21 20:48:57 -07:00
Matias Fontanini
a5766a19c2 Remove useless includes 2017-05-13 10:43:29 -07:00
Matias Fontanini
c06787ca22 Update license date to 2017 2017-04-29 09:56:26 -07:00
Matias Fontanini
15a353c123 Remove parent parameter from write_serialization
This is no longer needed as each PDU knows its parent PDU already
2017-04-29 09:53:33 -07:00
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
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
c42cd0114f Fix compilation warnings on Windows x64. 2015-05-17 17:30:54 -07:00
Matias Fontanini
2dff95700f Updated copyright notice. 2014-07-13 11:04:29 -03:00
Matias Fontanini
5064a9255b Fixed BSD notice. Updated AUTHORS file. 2013-04-23 20:33:00 -03:00
Matias Fontanini
66ff604580 assert() is only called when TINS_DEBUG is defined. 2013-04-22 18:45:56 -03:00
Matias Fontanini
d1b64ec48e PDU::matches_response is now const. 2013-04-21 20:03:47 -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
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
1c22dab2dc libtins now uses a BSD license. 2012-10-07 20:33:45 -03:00
Matias Fontanini
153bcecc35 Removed the useless PDU::flag member. Added a PDU concatenation operator. 2012-10-07 18:51:06 -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
da8c77c77e RAII'd some code. Everything(hopefully) uses IPv4Address now. 2012-08-27 00:16:56 -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
e2223bf406 Fixed some bugs. Added a better dependency system for Makefiles. 2012-08-13 00:29:38 -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
811e194148 Modified classes to use the IPv4Address class. 2012-05-15 11:19:25 -03:00
Santiago Alessandri
9e98e2e454 Started utils test. cChanged IP format 2011-09-22 22:53:09 -03:00
Matias Fontanini
e2c643f698 Fixed bugs in EthernetII, BootP and DHCP. 2011-09-19 01:00:24 -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
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
c49806603b Added DHCP class. It's now working yet. 2011-08-17 12:16:48 -03:00
Matias Fontanini
bdadcbb47d Added BootP class. 2011-08-17 10:10:36 -03:00