Matias Fontanini
fe38bba477
Move is_dot3 into details/pdu_helpers.h
2017-04-30 16:46:28 -07:00
Matias Fontanini
c06787ca22
Update license date to 2017
2017-04-29 09:56:26 -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
2e013847d9
Use proper IPv6 flag when opening l3 socket
...
Fixes #166
2016-10-21 07:34:20 -07:00
Matias Fontanini
d7fed87ebb
Use recvfrom on BSD/OSX when capturing layer 3 packets
...
Fixes #147
2016-05-03 19:35:24 -07:00
Matias Fontanini
97e24131c6
Fix issues pointed out by scan.coverity
2016-03-07 20:29:12 -08:00
Matias Fontanini
e5282f8a3c
Fix compilation warnings
2016-02-21 18:50:47 -08:00
Matias Fontanini
f3448f1797
Use timercmp/sub and std::chrono to subtract timevals
2016-02-20 10:51:35 -08:00
Matias Fontanini
64b84fa91d
Prefix HAVE_ config.h macros with TINS_
2016-02-20 09:10:48 -08:00
Matias Fontanini
602ead5de5
Fix invalid private method name on PacketSender
2016-02-04 20:27:51 -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
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
c108f6e4e6
Fix compilation warnings on Windows.
2015-04-25 18:44:38 -07:00
Matias Fontanini
147c1a4315
Don't allow receiving l2 packets on windows.
2015-04-18 18:56:16 -07:00
Matias Fontanini
2fa4c2ade3
Soften more precompiler conditionals on PacketSender.
2015-04-18 18:26:49 -07:00
Matias Fontanini
1a9cd63397
Remove more WIN32 guards.
2015-04-18 18:15:00 -07:00
Matias Fontanini
e2f96123a3
Remove some WIN32-guarded code.
2015-04-18 18:08:22 -07:00
Matias Fontanini
96fc1a3749
Use pcap_sendpacket to send packets if this mode is enabled.
2015-04-18 17:46:14 -07:00
Matias Fontanini
d55a03ca0c
Added L3 packet receive exception on BSD.
2014-10-25 17:42:46 -05:00
Matias Fontanini
2dff95700f
Updated copyright notice.
2014-07-13 11:04:29 -03:00
Matias Fontanini
559c963d63
Fixed compilation errors on Windows.
2014-05-06 00:13:05 -03:00
Jean Joskin
6fb8cbfc86
PacketSender::send matched PDU against most specific type, hence the PDU::DOT11 case would never be chosen.
2014-02-27 13:34:14 +01:00
Matias F
4c4a5f6c03
Fixed bug when calling BIOCIMMEDIATE on *BSD.
2014-02-10 12:33:48 -03:00
Matias Fontanini
fbef2e765d
Fixed bug on PacketSender::send_recv which didn't work under OSX and FreeBSD.
2014-02-06 15:10:23 -03:00
Matias Fontanini
0e54579200
Layer 3 packets sent using PacketSender::send_recv for which the answer is a different PDU type(such as ICMP destination unreachable), are detected by PacketSender and matched like usual.
2013-12-14 18:10:33 -03:00
Matias Fontanini
1cec0f106d
Fixed bug in PacketSender when using send_recv and a layer 2 PDU. The interface in which the packet was sent was not the default_interface set when the sender was constructed.
2013-12-14 12:49:50 -03:00
Matias Fontanini
9962381fc7
Added the --disable-dot11 configure switch.
2013-11-09 14:41:08 -03:00
Matias Fontanini
01b2a9c7b2
Modified some examples fixed some doxygen documentation.
2013-10-06 23:00:20 -03:00
Matias Fontanini
ec8374be60
Split dot11.h and dot11.cpp into several files.
2013-05-31 22:16:56 -03:00
Matias Fontanini
5064a9255b
Fixed BSD notice. Updated AUTHORS file.
2013-04-23 20:33:00 -03:00
Matias Fontanini
0f2bc45059
Moved definitions inside TINS_IS_CXX11 into header files.
2013-04-23 13:04:57 -03:00
Matias Fontanini
8afbe14c82
PacketSender is not copyable and movable.
2013-04-23 11:05:44 -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
9e20c0241f
Added a default interface to PacketSender.
2013-04-21 19:40:17 -03:00
Matias Fontanini
97f049580b
Link layer PDUs no longer contain a NetworkInterface.
2013-04-21 18:50:08 -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
16a99ef35b
Added an overload of PacketSender::send that takes a NetworkInterface.
2013-03-20 23:24:43 -03:00
Matias Fontanini
7a86012292
IPv6::send now works on linux. BSD does not support sending IPv6 as the lowest layer.
2012-12-10 20:31:32 -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
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
7cbd32361a
Modified some PacketSender and BaseSniffer functions to take references instead of pointers.
2012-09-11 08:51:25 -03:00