Matias Fontanini
dafb299ea3
Update changelog for version 4.2
2019-03-07 20:15:34 -08:00
Matias Fontanini
659bec56d7
Merge pull request #331 from Kaisrlik/cmake_config_file_location
...
cmake: update location of cmake configuration files for unix subsystems
2019-02-20 18:29:14 -08:00
Jan Kaisrlik
8c1bea6f84
cmake: update location of cmake configuration files for unix subsystems
2019-02-20 12:22:49 +01:00
Matias Fontanini
d8d1dc003b
Merge pull request #330 from danvratil/fix-crosscompilation-check
...
Fix check whether we are crosscompiling
2019-02-07 09:01:47 -08:00
Daniel Vrátil
c2bb52b82f
Fix check whether we are crosscompiling
...
CMake defines CMAKE_CROSSCOMPILING when crosscompiling so
use that instead of the undefined CROSS_COMPILING variable.
2019-02-07 13:20:39 +01:00
Matias Fontanini
1f5456b18b
Merge pull request #324 from pepper-jk/fix_frame_length
...
Fix frame length
2019-01-27 09:20:58 -08:00
Jens Keim
dc702f4fd6
use advertised_size to determine frame length
2019-01-22 19:33:08 +01:00
Jens Keim
2a8101eef3
add advertised_size method
2019-01-22 19:32:51 +01:00
Matias Fontanini
20702ddaff
Merge pull request #326 from solvingj/fix_install_dll_copy_win
...
add runtime destination to install, and provide default
2019-01-22 09:33:40 -08:00
Jerry W
f4e2701705
add runtime destination to install, and provide default consistent with existing lib default
2019-01-19 12:25:57 -05:00
Matias Fontanini
776ae4e83b
Merge pull request #305 from christophert/master
...
Add comprehensive list of 802.11 Element IDs
2019-01-07 18:53:41 -08:00
Matias Fontanini
2158c7a92e
Merge pull request #313 from fflexo/raw_ip
...
add support for libpcap's DLT_RAW link type
2019-01-07 18:49:10 -08:00
Matias Fontanini
b53bad7b29
Merge pull request #322 from DDoSolitary/patch-radiotap-overflow-2
...
Buffer overflow fixes for radiotap.
2019-01-07 18:47:30 -08:00
DDoSolitary
6c92bcdad1
Clarify pointer's validity for documentation of current_option_ptr().
2018-12-25 10:38:44 +08:00
DDoSolitary
b949e56d15
Remove the overflow check in align_buffer().
...
Reasons stated in https://github.com/mfontanini/libtins/pull/320#discussion_r242049560 .
2018-12-24 15:20:30 +08:00
DDoSolitary
18ff3e7b6a
Remove "+ 1" for MAX_RADIOTAP_FIELD.
...
current_flags_ starts from 0.
2018-12-13 17:27:01 +08:00
Matias Fontanini
559b1fb89a
Update changelog for version 4.1
v4.1
2018-12-10 18:11:37 -08:00
Matias Fontanini
1e78ef0752
Bump version to 4.1.0
2018-12-10 18:07:08 -08:00
Saxon Parker
602ada7820
Fix Dot1Q serialization for non-qinq packets ( #319 )
2018-12-01 15:56:16 -08:00
Teodoro Vargas
57ac099703
Fix serialization for QinQ ( #316 )
...
* Add QinQ Frame
* Fix serialization for QinQ
2018-10-09 14:02:01 -07:00
fflexo
eb7628eca4
add support for libpcap's DLT_RAW link type
2018-09-08 15:11:06 +01:00
Ulf Wetzker
c26e4943c2
Added base class access specifier for socket_close_error ( #306 )
2018-08-02 09:17:07 -07:00
Christopher Tran
7e90c8be6a
add comprehensive list of Element IDs per 802.11-2016 9.4.2/T9-77
2018-07-26 13:29:23 -04:00
Stefan Schmidt
3659d89c25
Rewrote hw_address_to_string to not require a stringstream ( #299 )
2018-05-31 13:28:06 -07:00
Matias Fontanini
db992d42e5
Set TINS_HAVE_DOT11 as predefined in Doxyfile
...
Fixes #294
2018-05-18 20:41:40 -07:00
Matias Fontanini
5571a270d4
Make RadioTapParser::skip_to_field check for end of buffer ( #296 )
...
Fixes #295
2018-05-16 12:30:16 -07:00
Matias Fontanini
b18c2cefec
Remove note regarding develop branch
...
This was useful at some point but now it's more of a burden to keep up to date. PRs should use `master` as base directly.
2018-05-09 20:33:40 -07:00
Jim Hague
3f204321ce
Ensure local include directory comes before system. ( #293 )
...
If building (say) libtins 4.0 on a system with 3.4 installed, you need
the libtins include files to come from the repository include, not the
system include directory. The OpenSSL and PCAP includes may be from
the system include, so we need to ensure the libtins include is the
first on the list - which means the last on the before list.
2018-05-09 20:30:58 -07:00
Matias Fontanini
63603b8ac8
Calculate IP option sizes properly
...
Fixes #288
2018-04-08 08:12:52 -07:00
Kasper Laudrup
fa79582b89
Add parsing of well known IPv6 extension headers ( #287 )
...
* Add parsing of well known IPv6 extension headers
Add classes for IPv6 extension headers defined in the IPv6 protocol
specification (RFC 2460) as well as functions for creating them from
the IPv6 class' ext_header type.
The currently known extension headers are Hop-By-Hop Option,
Destination Routing, Routing and Fragment.
* Cleanup after PR #287 comments
Pull in stuff from the std namespace with "using" instead of
qualifying with std::.
Keep starting braces on the same line.
Avoid potential copy when appending to vector.
2018-03-28 21:05:01 -07:00
stubbfel
342e2c77a7
Add missing operators to address classes ( #275 )
...
* * add or-operator and a simlple unit test for hw_address, ip_address, ipv6_address
* add not-operator and a simlple unit test for hw_address, ip_address, ipv6_address
* add greater-then-operator and a simlple unit test for ipv6_address
* add new constructor and a simlple unit test for network_interface, which use a ipv6_address to find the nic
* add override the function gateway_from_ip for ipv6_address parameter (untested)
* change the ipv6_address in NotMaskAdress_Test, so that the expceted addresses are valid for the winsock api
* Delete CMakeLists.txt.user
* * add <=, >, >= operator for HWAddress with tests
* add <=, >, >= operator for IPv4Address with tests
* add <=,>= operator for IPv6Address with tests
* refactoring the & , |, ~ operator of ipv6_address to "regular" operator
2018-03-28 20:44:28 -07:00
Matias Fontanini
7848e28b62
Add version macros in config.h
...
Fixes #286
2018-03-20 18:50:42 -07:00
Matias Fontanini
544aa1b339
Don't assume IPv6 uses ICMPv6 underneath
2018-03-18 12:56:12 -07:00
Matias Fontanini
de4791f0c7
Allow users to specify library install dir
...
Fixes #273
2018-03-17 15:35:04 -07:00
Matias Fontanini
915f506f3a
Use Sleep windows function passing milliseconds as parameter
...
Fixes #271
2018-03-14 18:47:40 -07:00
Matias Fontanini
f29566d6d9
Implement IPv6::recv_response
2018-02-25 10:42:16 -08:00
Matias Fontanini
e4f747164c
Merge remote-tracking branch 'origin/master' into develop
2018-02-21 09:49:44 -08:00
Matias Fontanini
683550b297
Don't use nullptr in non C++11 code
2018-02-21 09:47:09 -08:00
Ed Catmur
971fdf7d1c
Ignore (possibly malformed) options after EOL ( #281 )
2018-02-03 09:33:20 -08:00
Ed Catmur
1038c6f7f3
Don't call &* on PDUIterator
2018-02-03 09:32:43 -08:00
Jeff Ebert
8efc0271f5
Don't include dot11.h in tins.h if it is not configured in the library ( #277 )
2018-02-03 09:31:24 -08:00
Matias Fontanini
9ac5e597e6
Merge branch 'develop'
...
Ugh
2017-12-20 07:05:44 -08:00
Matias Fontanini
f7fc5fae1d
Update CHANGES.md file using v4.0 changes
2017-12-20 07:04:55 -08:00
Matias Fontanini
f44b253a42
Fix memory leak in PDU's move assignment operator
...
Fixes #272
2017-12-14 14:42:46 -03:00
Matias Fontanini
8f85a6e557
Append padding to IPv6 options
...
Relates to #270
2017-12-12 10:33:17 -03:00
Matias Fontanini
8fd25e23a6
Update CHANGES.md file using v4.0 changes
v4.0
2017-12-03 16:04:42 -08:00
Matias Fontanini
a3dd057147
Use first IP fragment as base for reassembly
...
Fixes #225 for good
2017-12-03 13:50:02 -08:00
Matias Fontanini
e16fe46d7a
Fix invalid memory accesses when parsing bogus RadioTap
2017-11-25 17:12:30 -08:00
mavrikiy
39f3b24058
Fix dhcpv6::duid_type constructor from duid_ll ( #266 )
2017-11-06 09:29:57 -08:00
Santiago Alessandri
8e50756afa
Add MPLS experimental field ( #265 )
...
* Add experimental field to MPLS PDU
See RFC-4950 https://tools.ietf.org/html/rfc4950
* Add tests for MPLS' experimental field
2017-11-04 12:08:34 -07:00