Jens Keim
2a8101eef3
add advertised_size method
2019-01-22 19:32:51 +01:00
Matias Fontanini
a6817528bc
Use absolute include paths
...
Fixes #250
2017-09-21 20:48:57 -07:00
Matias Fontanini
19ae1f366b
Remove useless includes
2017-04-30 17:34:02 -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
Matias Fontanini
1b4d22314d
Add parent PDU member to PDU class
...
Now this is a bidirectional list of PDUs
2017-04-29 09:27:08 -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
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
38239be472
Remove unused cassert header inclusions
2015-12-27 04:38:31 -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
bf604339f0
Removed the PDU* parameter in several PDU's constructors.
2013-04-23 20:03:08 -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
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
3fd1b3d37d
Added malformed_packet exception. Every class except Dot11* use it.
2013-04-18 00:12:20 -03:00
Matias Fontanini
fee938b46d
Added move constructor/assignment operator to PDU.
2013-04-10 18:43:24 -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
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
8be0c4c23c
Marked PDU::clone_packet as deprecated.
2013-03-24 16:08:09 -03:00
Matias Fontanini
16a29fab3e
Fixed memory leak in Packet's copy assignment operator.
2012-11-26 15:03:09 -03:00
Matias Fontanini
abaa2bf926
PacketSender now throws on error. Fixed the documentation on several header files.
2012-10-19 12:01:34 -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
e8151724c4
Removed PDU::clone_packet and renamed PDU::clone_pdu to PDU::clone.
2012-09-11 16:54:14 -03:00
Matias Fontanini
7cbd32361a
Modified some PacketSender and BaseSniffer functions to take references instead of pointers.
2012-09-11 08:51:25 -03:00
Matias Fontanini
9981819b71
Added PacketWriter class.
2012-09-06 14:18:07 -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
fbd6ef397b
Removed Utils::ip_to_int/string. Everything is using IPv4Address now.
2012-08-27 23:54:43 -03:00
Matias Fontanini
1b08d1af71
Added some serialization tests to every PDU.
2012-08-26 12:50:30 -03:00
Matias Fontanini
c5fce38c3a
Refactored several classes.
2012-08-03 13:08:24 -03:00
Matias Fontanini
b17ee6a6cb
Removed copy constructor from several PDUs.
2011-09-08 10:18:15 -03:00
Matias Fontanini
f30f404632
Moved PDU::pseudoheader_checksum and PDU::do_checksum to Utils namespace.
2011-09-07 09:52:58 -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
fdcefd2132
Added PDU::clone_pdu.
2011-09-03 00:13:31 -03:00
Matias Fontanini
48e72fc5d8
Fixed a bug in PDU::size.
2011-08-22 22:46:22 -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
c49806603b
Added DHCP class. It's now working yet.
2011-08-17 12:16:48 -03:00
Matias Fontanini
3feb2fdeae
RawPDU now can copy the payload. Modified PDU::clone_inner_pdu to use this.
2011-08-16 21:11:42 -03:00
Matias Fontanini
e587d18796
Documented many header files. Done some minor code refactoring over PDU::clone_packet.
2011-08-16 20:53:55 -03:00
Santiago Alessandri
b76c9d0525
Working ethernet II PDU. Fixed bugs in IP and added checksum calculation. Added layer2 sending to PacketSender
2011-08-15 18:16:48 -03:00
Matias
398ba31111
UDP PDU is now working.
2011-08-12 21:17:44 -03:00
Matias
2cdf0f6b29
Fixed TCP checksum. Documented pdu.h.
2011-08-12 20:17:21 -03:00
Matias
6288574f85
Added LGPL notice. TCP pdu is working.
2011-08-11 17:27:15 -03:00
Matias
8dc0a5a832
Fixed IP packet.
2011-08-10 23:27:45 -03:00
Matias F
072ac15754
Added PacketSender class.
2011-08-10 15:10:14 -03:00