Matias Fontanini
799ba2b4b6
Allow disabling pcap packet capture
2017-03-21 19:04:33 -07:00
Matias Fontanini
ad0a1ca97d
Use QoS TID when building AAD for CCMP decryption
...
Fixes #190
2017-03-11 10:43:12 -08: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
94e5ac2109
Check expected size properly on DNS::extract_metadata
...
Thanks @shshzi for finding this one
2017-01-15 09:04:19 -08:00
Matias Fontanini
84cb686928
Use markdown for CHANGES file
2016-12-11 10:11:05 -08:00
Matias Fontanini
da07ad3b13
Remove AUTHORS file
...
This file is very outdated. Check contributions on github to
see the actual contributors.
2016-12-11 10:02:48 -08:00
Matias Fontanini
d5cba00ce0
Use immediate mode on DNS spoof example
2016-11-04 08:00:13 -07:00
Matias Fontanini
ba9d0b34c6
Fix build issue on FreeBSD 11
...
This fixes #174 temporarily, so at least it won't fail to build
2016-11-04 07:55:58 -07:00
Matias Fontanini
f2850cc0b9
Execute original ooo callback first on recovery mode
2016-11-01 07:35:56 -07:00
Matias Fontanini
c69ea0c1fb
Keep original out of order callback on recovery mode
2016-10-30 13:08:17 -07:00
Matias Fontanini
a63387f85e
Add Stream recovery mode
2016-10-30 11:38:50 -07:00
Matias Fontanini
df7e7b391d
Add flag to Stream to know whether it was attached
2016-10-30 10:31:16 -07:00
Matias Fontanini
5d6431d2d9
Allow enabling attachment to partial streams
2016-10-30 10:21:58 -07:00
Matias Fontanini
a61a361eb1
Add check for noexcept when checking C++11 features
2016-10-23 11:34:10 -07:00
Matias Fontanini
9dbad2a26f
Cleanup tests names and CMake script
2016-10-23 10:21:58 -07:00
Patrick Michel
aaba3dd46a
Feature - Skipping ahead in TCP flows. ( #163 )
...
* Skipping forward in TCP streams, from an out-of-order callback.
- Added the ability to skip forward in a flow to a sequence number, with the intention of doing so in an out of order callback.
- Re-ordered Flow packet processing, to allow skipTo in out of order callback on stream start (flow sequence number is 0).
- Fixed missing seq_compare in flow code.
* Renamed skipTo to advance_sequence.
2016-10-23 09:47:56 -07:00
Matias Fontanini
2e013847d9
Use proper IPv6 flag when opening l3 socket
...
Fixes #166
2016-10-21 07:34:20 -07:00
Matias Fontanini
22e569d430
Fix buffer length check issue on Dot11QosData
...
Fixes #167
2016-10-18 07:24:11 -07:00
Matias Fontanini
2847039ffe
Set last next protocol to 0 if no inner_pdu on IPv6
2016-09-29 07:37:46 -07:00
Matias Fontanini
54ce11629c
Set payload type to 0 if no inner_pdu on Dot1Q
2016-09-29 07:37:46 -07:00
Matias Fontanini
8dcfd6aae0
Set protocol to 0 if no inner_pdu on IP
2016-09-29 07:37:46 -07:00
Patrick Michel
838a4a5cb9
Refactored code related to stream/flow initialization. ( #170 )
...
- Removed client_flow().process_packet() in Stream constructor, in favor of processing on SYN in stream follower.
- Moved +1 to seq on SYN/ACK.
2016-09-28 07:30:16 -07:00
Matias Fontanini
e82b72e931
Use relative include for config.h
2016-09-27 22:06:09 -07:00
Matias Fontanini
fdc6ccdf5c
Only enable TCP stream's custom data if boost.any is found
2016-09-27 21:46:38 -07:00
Patrick Michel
52b389afe8
Allow setting custom user data to each TCP stream
2016-09-27 21:33:10 -07:00
Matias Fontanini
552006c876
Set EthernetII payload type to UNKNOWN if no inner_pdu
2016-09-27 07:47:32 -07:00
Matias Fontanini
f0b32edaa9
Use boost include paths/libs on appveyor build
2016-09-26 20:29:14 -07:00
Matias Fontanini
5a901ca155
Merge branch 'develop'
2016-09-26 19:52:12 -07:00
Jim Hague
9593cf4cf6
Correct typo preventing user buffer management for server TCP streams. ( #160 )
2016-08-31 09:13:43 -07:00
Huemac
64725e2ed9
Fix Cppcheck 1.75 warnings ( #159 )
...
- The scope of the variable 'last_index' & 'index' could be reduced.
- Prefer prefix ++/-- operators for non-primitive types.
2016-08-14 12:29:53 -07:00
Vikas Kumar
9260f9374a
Variable Boost_INCLUDE_DIRS incorrectly used in cmake file ( #158 )
...
`s/Boost_INCLUDE_DIRS/${Boost_INCLUDE_DIRS}/ inside `INCLUDE_DIRECTORIES`
2016-08-13 13:41:25 -07:00
Sergey Kovalevich
2ccf50db3e
Allow including libtins using add_subdirectory via CMake
2016-07-20 09:12:48 -07:00
ps790
e843ee7117
Added cmake compiling support for MinGW ( #155 )
...
* Added cmake compiling support for MinGW
These modificaitons allow to build Libtins on Windows with cmake directly by running
cmake ../ -DPCAP_ROOT_DIR="PATH_TO_WpdPack" -DLIBTINS_ENABLE_WPA2=0 -DLIBTINS_BUILD_SHARED=0 -G "MinGW Makefiles"
* Update CMakeLists.txt
2016-06-24 18:00:09 -07:00
Matias Fontanini
a192e814bf
Allow configuring pcap timestamp precision
2016-06-17 09:20:43 -07:00
Matias Fontanini
ccda631708
Fix timestamp integer overflow issue
2016-06-16 17:12:04 -07:00
Jacob Parker
1552e33c67
Add helper function to create StreamIdentifier from const Stream& ( #152 )
2016-06-07 13:19:55 -07:00
Wouter Overmeire
8afc784956
Fix typo in arp.h comment ( #151 )
2016-06-06 10:36:36 -07:00
Rolf Winter
5b00916f83
fixed: superfluous includes, docu ( #148 )
2016-05-26 09:11:48 -07:00
Matias Fontanini
6b7bc76603
Forward NetworkInterface argument when calling PacketSender::send_l2
2016-05-08 20:46:11 -07:00
Matias Fontanini
732c665af5
Fix compilation warning on VC
2016-05-08 10:34:49 -07:00
Matias Fontanini
8cf367d68c
Make Timestamp::current_time work on Windows
2016-05-08 10:26:57 -07:00
Matias Fontanini
d070978a54
Add TINS_API to DataTracker and AckTracker classes
2016-05-08 09:38:52 -07:00
Matias Fontanini
7f30efab38
Fix typo in macros.h
...
[ci skip]
2016-05-05 12:40:11 -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
269ac164ed
Use exception strings on std::runtime_error's constructor
...
Fixes #146
2016-05-03 14:50:28 -07:00
Matias Fontanini
55edf31aa6
Move TCP data tracking into a separate class
2016-05-03 14:50:28 -07:00
Patrick Michel
364782b8af
Don't set Dot1Q's payload type if next proto type is UNKNOWN
2016-04-12 07:56:31 -07:00
Matias Fontanini
d3c576f6de
Properly handle out of order SACKs on AckTracker
2016-04-03 09:39:11 -07:00
Matias Fontanini
8d52d73968
Allow disabling TCPIP classes
2016-04-02 09:35:42 -07:00
Matias Fontanini
48022d3a3f
Rename and undef symbols that conflict with macro names on DNS
...
The undefs are a temporary fix until we get rid of the old,
conflicting, names
Fixes #141
Fixes #58
2016-04-02 09:16:28 -07:00