Matias Fontanini
4eb4dfe5fa
Remove parent parameter from write_serialization
...
This is no longer needed as each PDU knows its parent PDU already
2017-06-05 20:44:03 -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
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
9750f46c6d
Port all PDUs to use InputMemoryStream on constructors from buffer
2015-12-25 06:30:27 -08:00
Matias Fontanini
a607ab380c
Replace WIN32 macro with _WIN32.
2015-05-02 16:25:59 -07:00
Matias Fontanini
1ba203d742
Fixed compilation errors on FreeBSD.
2014-09-19 08:50:35 -03:00
Matias Fontanini
8a44b29d92
Protocols now always set the next layer protocol flag.
2014-08-07 20:42:17 -03: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
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
02265061cc
Added SLL pseudo protocol header.
2013-01-16 00:05:28 -03:00
Matias Fontanini
6d1e96866e
libtins now compiles on windows. A couple of features were disabled and need to be fixed though.
2012-12-02 00:45:10 -03:00
Matias Fontanini
73577c744a
Every test now pass on big endian architectures. Ported about half of the library to windows as well.
2012-10-08 21:14:57 -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
e83acc92cc
No code uses net_to_host_* now.
2012-08-16 23:45:50 -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
1f2967c8fb
Fixed some bugs.
2011-09-18 11:42:21 -03:00
Matias Fontanini
abe73f185f
Added constants header.
2011-09-12 12:01:17 -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
e4dae4c024
Added RSN constructor from buffer. It's working.
2011-08-30 19:40:39 -03:00
Matias Fontanini
4d4defeed4
Added EAPOL class. Implemented RC4EAPOL. It's working.
2011-08-28 14:53:01 -03:00
Matias Fontanini
479d6c4acd
IEEE802_11 data packets now can be created from raw buffers. Not tested yet.
2011-08-25 22:22:57 -03:00
Matias Fontanini
3f239b8022
Added SNAP. Couldn't test it yet.
2011-08-21 16:29:10 -03:00