Matias Fontanini
a5766a19c2
Remove useless includes
2017-05-13 10:43:29 -07:00
Matias Fontanini
b0d66a01d2
Fix more build issues on appveyor
2017-05-08 21:51:27 -07:00
Matias Fontanini
589adba798
Move checksum utils into their own file
2017-04-30 11:59:02 -07:00
Matias Fontanini
6e1d1d3dc4
Move ICMP extension helpers into their own file
2017-04-30 10:53:21 -07:00
Matias Fontanini
a3e863942b
Move type traits into a separate file
2017-04-30 09:36:50 -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
97e24131c6
Fix issues pointed out by scan.coverity
2016-03-07 20:29:12 -08:00
Matias Fontanini
17da10d76e
Add extract_metadata to main PDU classes
2016-02-20 22:19:12 -08:00
Matias Fontanini
745071af65
Use Utils::sum_range straight into ICMP checksum value
2016-02-20 11:02:20 -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
67d31fd62c
Fix overall checksum calculation
2015-12-29 09:57:42 -03:00
Matias Fontanini
afe778d03c
Set ICMP payload length without padding if no extensions are present
2015-12-28 14:18:26 -03:00
Matias Fontanini
38239be472
Remove unused cassert header inclusions
2015-12-27 04:38:31 -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
6d90b0ce32
Add extensions for ICMPv6
2015-12-21 12:33:52 -08:00
Matias Fontanini
530cc56922
Set proper value for length field
2015-12-19 16:46:13 -08:00
Matias Fontanini
0a16d8f462
Add ICMP extensions to ICMP PDU
...
The length field is still not being set
2015-12-17 20:42:57 -08:00
Matias Fontanini
fb43cb738b
Add ICMP extensions to ICMP PDU
2015-12-14 21:18:42 -08:00
Matias Fontanini
a607ab380c
Replace WIN32 macro with _WIN32.
2015-05-02 16:25:59 -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
dd2ed5daa4
Added undef directive to avoid compilation error on windows.
2014-07-01 17:06:39 -03:00
Matias Fontanini
559c963d63
Fixed compilation errors on Windows.
2014-05-06 00:13:05 -03:00
Kyle McDonald
bd55307b47
changed ICMP::check to ICMP::checksum for both the public getter and private setter. closes #10
2014-05-03 17:43:35 -04:00
Matias Fontanini
ccb8ffd1b5
ICMP::gateway is now an IPv4Address.
2013-12-14 14:28:39 -03:00
Matias Fontanini
b83c1a2a96
Added support for ICMP address mask request/reply.
2013-12-14 14:21:04 -03:00
Matias Fontanini
81a947e3b3
Fixed bug on ICMP checksum calculation when using timestamp request/replies.
2013-12-14 13:42:12 -03:00
Matias Fontanini
9b57585b62
Added support for ICMP timestamp request/reply packets. ICMP::matches_response now works with these types of packets as well.
2013-12-13 17:23:17 -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
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
69968cbc5c
Removed deprecated methods/types.
2013-04-21 19:52:39 -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
f2a5f73337
Implemented matches_response on several PDUs. Added some test cases.
2013-04-02 21:05:53 -03:00
Matias Fontanini
8be0c4c23c
Marked PDU::clone_packet as deprecated.
2013-03-24 16:08:09 -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
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
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
832a79a1e1
Moved endianness change functions to endianness.h.
2012-09-03 23:58:43 -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
c5fce38c3a
Refactored several classes.
2012-08-03 13:08:24 -03:00
Matias Fontanini
e6ccdcd75e
Fixed/added copy constructor to IP/TCP/UDP/ARP/EthernetII PDUs.
2012-03-24 01:27:22 -03:00
Matias Fontanini
1f2967c8fb
Fixed some bugs.
2011-09-18 11:42:21 -03:00