Matias Fontanini
f4635a696e
Fix build issues when disabling Dot11
...
Fixes #258
2017-10-18 06:40:51 -07:00
Alex Collins
04e29858ee
Add RawPDU c'tor for const payload_type&. ( #253 )
...
* Add RawPDU c'tor for const payload_type &.
* Correct indentation.
2017-10-12 20:02:28 -07:00
juno0812
b43d2f74e4
Add getter/setter for more data field in Dot11Base ( #252 )
2017-10-04 07:03:17 -07:00
Matias Fontanini
2aab4cf126
Fix warnings in tests
2017-10-01 20:47:52 -07:00
Matias Fontanini
f2766db829
Add IPv4/6Address::size member function
2017-10-01 20:38:54 -07:00
Matias Fontanini
db0fb7f20d
Don't convert IPv6Address to string when hashing
2017-10-01 20:33:06 -07:00
Matias Fontanini
a6817528bc
Use absolute include paths
...
Fixes #250
2017-09-21 20:48:57 -07:00
Matias Fontanini
171067eb22
Keep first fragment during IPv4 reassembly
...
Fixes #225
2017-09-10 16:39:15 -07:00
Matias Fontanini
ecfed8db44
Add support for XChannel field on RadioTap
2017-06-03 09:17:29 -07:00
Matias Fontanini
fe6e575158
Add missing radiotap parsing fields
2017-06-03 08:55:08 -07:00
Matias Fontanini
d0b4383a0d
Fix some big endian issues
2017-05-31 19:42:22 -07:00
Matias Fontanini
e1571e19a8
Use RadioTapParser/Writer in RadioTap
2017-05-25 07:56:23 -07:00
Matias Fontanini
8c7bf7d779
Add RadioTapWriter class
2017-05-23 20:55:18 -07:00
Matias Fontanini
3f26974563
Allow constructing RadioTapParser from an empty buffer
2017-05-21 13:09:53 -07:00
Matias Fontanini
988f2382c4
Make RadioTapParser work using only the options buffer
2017-05-21 12:56:22 -07:00
Matias Fontanini
b983fe0bb3
Add RadioTapParser class
2017-05-21 10:06:13 -07:00
Matias Fontanini
d8ead95070
Rename IPv6::add_ext_header to IPv6::add_header (deprecate former)
2017-05-14 10:33:04 -07:00
Matias Fontanini
5404e9f004
Fix next header handling on IPv6
...
This was broken by design. Each header held the next header's
type, which made iterating through them very tricky (you'd have
to look at the previous header's next header value to know the
current one while doing so).
Now each header contains its own value and the next header
value is computed during serialization and then reverted back
after that.
2017-05-14 10:25:59 -07:00
Matias Fontanini
cedd127e8f
Use vector instead of lists everywhere
2017-05-13 11:14:11 -07:00
Matias Fontanini
c83cff36d8
Remove useless includes for utils.h on tests
2017-04-30 11:59:10 -07:00
Matias Fontanini
4c54a69e64
Move smart_ptr definition into new file detail/smart_ptr.h
2017-04-30 09:25:03 -07:00
Matias Fontanini
77a31ca6b5
Add PDU iterator class
2017-04-29 11:23:15 -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
Matias Fontanini
1b4d22314d
Add parent PDU member to PDU class
...
Now this is a bidirectional list of PDUs
2017-04-29 09:27:08 -07:00
Matias Fontanini
7f8644cb39
Merge branch 'develop'
2017-03-23 19:31:10 -07:00
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
Matias Fontanini
7607610cf9
Merge branch 'develop'
2017-01-31 21:37:41 -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
Ed Catmur
9051197603
Use actual payload length to construct inner PDU. ( #179 )
...
Fixes #178
2017-01-16 09:36:33 -08: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
9dbad2a26f
Cleanup tests names and CMake script
2016-10-23 10:21:58 -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
552006c876
Set EthernetII payload type to UNKNOWN if no inner_pdu
2016-09-27 07:47:32 -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
Matias Fontanini
3773443fc8
Allow masking IPv4/6 and HW addresses
2016-03-19 15:44:55 -07:00
Matias Fontanini
1f4be63d08
Properly handle MLDv1 on ICMP
2016-03-17 21:49:06 -07:00
Matias Fontanini
4dcef0f15d
Add Utils::route6_entries
2016-03-06 19:18:33 -08:00
Matias Fontanini
c082dfad67
Minor changes on TCPIP::StreamFollower
2016-03-06 13:40:10 -08:00
Matias Fontanini
1681981fe8
Add WPA2Decrypter callback interface
2016-02-28 08:01:04 -08:00
Matias Fontanini
bf70a94921
Build layer 5 as RawPDU if IPv6 has fragment header
2016-02-22 20:37:48 -08:00
Matias Fontanini
e5282f8a3c
Fix compilation warnings
2016-02-21 18:50:47 -08:00
Matias Fontanini
92f0249d2b
Cleanup IPv4Reassembler
2016-02-21 18:20:06 -08:00
Matias Fontanini
9dabb6f570
Fix IP fragment reassemble when packet has flags DF+MF
2016-02-21 09:23:44 -08:00