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
6b7bc76603
Forward NetworkInterface argument when calling PacketSender::send_l2
2016-05-08 20:46:11 -07:00
Matias Fontanini
64b84fa91d
Prefix HAVE_ config.h macros with TINS_
2016-02-20 09:10:48 -08:00
Matias Fontanini
4b0976571e
Fix invalid FCS serialization offset on RadioTap
2016-02-02 22:43:28 -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
0a2fdfcd42
Fix compilation errors on android.
2015-06-07 15:25:57 -07:00
Matias Fontanini
c42cd0114f
Fix compilation warnings on Windows x64.
2015-05-17 17:30:54 -07:00
Matias Fontanini
a607ab380c
Replace WIN32 macro with _WIN32.
2015-05-02 16:25:59 -07:00
Matias Fontanini
62260ab93b
Fix more compilation warnings on Windows.
2015-04-25 18:54:43 -07:00
Matias Fontanini
c108f6e4e6
Fix compilation warnings on Windows.
2015-04-25 18:44:38 -07:00
Matias Fontanini
fa4a074e2f
Add missing RadioTap fields.
2015-03-04 21:27:47 -08:00
Ulf Wetzker
93a46366a0
Fixed type for _dbm_signal and _dbm_noise
2015-02-09 14:30:34 +01:00
Ulf Wetzker
d640eebb99
Add Exception for fields that are not present in RadioTap frames.
2015-02-09 13:23:03 +01:00
Matias Fontanini
3a38d36a60
Fixed invalid parsing of RadioTap ext flag field.
2014-11-06 21:44:59 -08: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
0acf388277
Removed 'no newline at end of file' warnings.
2014-02-10 18:21:46 -03:00
Matias Fontanini
9962381fc7
Added the --disable-dot11 configure switch.
2013-11-09 14:41:08 -03:00
Matias Fontanini
a507355e27
Added tins_cast as a replacement for dynamic_cast when using it on PDU classes.
2013-10-18 09:28:43 -03:00
Matias Fontanini
c4e6a7c0d6
Fixed some compilation errors/warnings and bugs when using Big Endian architectures.
2013-09-24 00:34:14 -03:00
Matias Fontanini
2414edd1e7
Fixed a bug in PPI and Dot1Q triggered when constructing from buffer/serializing. Done some documentation fixes.
2013-09-22 19:37:02 -03:00
Matias Fontanini
de0ec914cc
Fixed bug in RadioTap. The flags field was being used even if it was not present.
2013-09-04 16:34:24 -03:00
Matias Fontanini
ec8374be60
Split dot11.h and dot11.cpp into several files.
2013-05-31 22:16:56 -03:00
Matias Fontanini
ddf47365c1
RadioTap now calculates its size always while serializing. Added 2 missing RadioTap fields as well.
2013-05-30 18:14:11 -03:00
Piotr Haber
28c8d393d6
do not parse Dot11 frame if FCS is wrong
...
Signed-off-by: Matias Fontanini <matias.fontanini@gmail.com >
2013-05-23 17:54:17 -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
fdfb8b0dea
Fixed compilation issues triggered in GNU/kFreeBSD.
2013-04-22 23:48:53 -03:00
Matias Fontanini
66ff604580
assert() is only called when TINS_DEBUG is defined.
2013-04-22 18:45:56 -03:00
Matias Fontanini
7da8de6ea7
Added another test case for RadioTap's constructor from buffer.
2013-04-22 12:53:01 -03:00
Matias Fontanini
d1b64ec48e
PDU::matches_response is now const.
2013-04-21 20:03:47 -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
804ea411fc
Fixed bug in RadioTap when using FCS at the end.
2013-04-16 13:45:30 -03:00
Piotr Haber
9bcfd07896
fix radiotap header parsing
...
Signed-off-by: Matias Fontanini <matias.fontanini@gmail.com >
2013-04-16 13:37:31 -03:00
Matias Fontanini
dfc0498b70
DNS, RadioTap and Dot1Q work when using PacketSender::send_recv.
2013-03-26 14:54:24 -03:00
Matias Fontanini
02a53da361
Fixed bug triggered when parsing RadioTap in BE architectures.
2013-03-15 15:13:00 -03:00
Matias Fontanini
f86f727810
Added RadioTap::iface.
2013-02-06 14:10:21 -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
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
de82dc2322
Link layer protocols can now be sent on BSD.
2012-11-28 16:50:47 -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
abaa2bf926
PacketSender now throws on error. Fixed the documentation on several header files.
2012-10-19 12:01:34 -03:00
Matias Fontanini
b7ea989530
Added several tests for EAPOL. Now both RadioTap and EAPOL work on big endian architectures.
2012-10-18 23:22:42 -03:00
Matias Fontanini
f4d37f5a51
Fixed some parsing bugs in RadioTap.
2012-10-17 23:33:05 -03:00
Matias Fontanini
53efc67f6f
Added some unit tests for RadioTap.
2012-10-17 18:44:46 -03:00