Yang Bin
64da67ca56
Update tcp.h ( #516 )
...
Fix a spelling error
2023-09-19 07:04:43 -07:00
Matias Fontanini
3943700830
Bump version to 4.6
2023-08-20 09:47:49 -07:00
Matias Fontanini
142b6f62cb
Add CHANGES for v4.5
v4.5
2023-08-20 09:47:12 -07:00
James R T
dfd2701ee4
Add vxlan.h to CMakeLists.txt ( #508 )
2023-06-08 12:39:15 -07:00
James R T
850bb9b642
Add VXLAN support ( #501 )
...
This patch adds a new PDU class to support VXLAN. Several VXLAN-related
tests have also been added.
Signed-off-by: James Raphael Tiovalen <jamestiotio@gmail.com >
2023-05-03 18:21:59 -07:00
Ed Catmur
b7e61f4c76
Qualify calls to std::move (clang 15) ( #488 )
...
Co-authored-by: Ed Catmur <edward.catmur@mavensecurities.com >
2023-04-30 10:13:56 -07:00
Ed Catmur
e2a14d8898
Remove use of deprecated std::iterator ( #481 )
...
Co-authored-by: Ed Catmur <edward.catmur@mavensecurities.com >
2023-04-30 10:11:57 -07:00
Tobias Specht
ba0c820852
Add FileSniffer constructor with FILE pointer as pcap source ( #499 )
2023-04-30 09:44:49 -07:00
James R T
df509e7e36
Ignore IPv6 packets with payload after one with no Next Header ( #500 )
...
IPv6 data packets with payload or padded bytes received after one with
no Next Header were not being parsed correctly, resulting in NULL PDU.
This commit fixes the IPv6 parser to be compliant with RFC 2460 Section
4.7 by adding a check in the IPv6 constructor to ignore the subsequent
packets if an IPv6 packet contains no Next Header.
Signed-off-by: James Raphael Tiovalen <jamestiotio@gmail.com >
2023-04-20 21:22:01 -07:00
Ed Catmur
fa87e1b6f6
Add missing include ( #497 )
...
`<algorithm>` is needed for std::fill (error in clang-16)
2023-01-31 10:02:50 -08:00
Vasiliy Glazov
812be7966d
Fix build with GCC13 ( #496 )
...
Due to changes in GCC13 need fix include.
2023-01-24 08:29:36 -08:00
Bill Willcox
f89cc9f076
Validate high order two bits of first dns label octet ( #494 )
2023-01-03 09:10:41 -08:00
Matias Fontanini
638bf9b34b
Trigger actions on pull requests ( #495 )
2023-01-03 09:04:03 -08:00
mbcdev
eb997f5438
fix incorrect IP address range calculation when using /0 prefix ( #484 ) ( #486 )
...
According to the C/C++ Standard, for shift operations, the behavior is undefined if the right operand is equal to the width of the promoted left operand.
On a 64-bit Windows machine, this causes IP addresses 0.0.0.0 and 255.255.255.255 to have the same internal representation, leading to various issues when using a /0 prefix.
2022-08-30 08:27:42 -07:00
Scott K Logan
18cbab4fc7
Use CMAKE_INSTALL_LIBDIR in CONF_CMAKE_INSTALL_DIR ( #472 )
...
On some platforms (like RedHat ones), CMAKE_INSTALL_LIBDIR is set to
`lib64` instead of `lib`. The CMake files should also be installed to
`lib64`, but because CONF_CMAKE_INSTALL_DIR is set unconditionally to
use `lib`, the proper path can't be configured.
This change makes CONF_CMAKE_INSTALL_DIR use the configured
CMAKE_INSTALL_LIBDIR value, which defaults to `lib`.
2022-05-14 11:09:58 -07:00
Scott K Logan
7cd2b2c396
Fall back to system GTest if available ( #473 )
...
Using a submodule to download and build GTest is a great approach for
most circumstances, but some may prefer to use the system-provided GTest
if it is available.
This change adds a fallback to using the system's GTest if the submodule
is absent.
2022-05-14 11:07:39 -07:00
Lattice 0
2601493752
android workaround ( #471 )
2022-04-24 08:44:52 -07:00
Bill Willcox
7204fbd688
dns: parser reads into garbage on misreported packet size ( #468 )
...
Co-authored-by: Bill Willcox <billwcorp@gmail.com >
2022-02-26 14:29:22 -08:00
Bill Willcox
c302e659d7
dns: bad label size interpreted as decompression pointer ( #466 )
...
Co-authored-by: Bill Willcox <billwcorp@gmail.com >
2022-02-20 15:18:00 -08:00
Matias Fontanini
54e4e4b0f4
Add github actions for ubuntu ( #467 )
2022-02-19 17:01:37 -08:00
Matias Fontanini
6a17e59032
Bump version to 4.5
2022-02-17 06:55:48 -08:00
Matias Fontanini
e3aedc56ed
Update CHANGES.md for v4.4
v4.4
2022-02-17 06:55:02 -08:00
Matias Fontanini
3b006c15db
Merge pull request #458 from demiquartz/fix-macro-name-conflict
...
Fix conflict between variable and macro name
2022-01-30 09:04:08 -08:00
Takaaki Sato
177d0b4621
Fix conflict between variable and macro name
2021-10-31 12:03:24 +09:00
Matias Fontanini
24ac038c30
Merge pull request #448 from FlukeCorp/link-local-uses-interface
...
IPv6 use interface when sending to link-local dest
2021-07-22 19:23:51 -07:00
Prosper Van
a619e4ff98
IPv6 use interface when sending to link-local dest
2021-07-22 11:18:48 -07:00
Matias Fontanini
14bb185d7a
Merge pull request #444 from gaya-cohen/decompression-bug-fix
...
Fix DNS decompression bug and add descriptive exceptions
2021-06-09 08:30:50 -07:00
Gaya Cohen
137b56d5a7
fix exception inheritance and change exception names in DNS code
2021-06-09 15:57:04 +03:00
Gaya Cohen
ed2b3c12d5
Make new exceptions inherit from malformed_packet and change exception names
2021-06-09 11:46:07 +03:00
Gaya Cohen
1650b60234
change counter variable type and add exception description comment
2021-05-24 17:04:11 +03:00
Gaya Cohen
c20c82bcb5
Fix pointer loop bug and add descriptive exceptions
2021-05-24 15:12:23 +03:00
Matias Fontanini
5858132261
Merge pull request #439 from adriancostin6/dns-comment-fix
...
Fix getter being labeled as setter in dns header file comments
2021-05-14 08:59:54 -07:00
Adrian Costin
16f5795243
Fix getter being labeled as setter in dns header file comments
2021-04-24 01:04:24 +03:00
Matias Fontanini
e90e377b73
Merge pull request #437 from ceerRep/master
...
Fix wrong address endian
2021-03-28 09:08:30 -07:00
ceerrep
222611b377
Fix wrong address endian
...
Host endian has been implicitly converted to big endian in "IPv4Address::operator uint32_t()"
2021-03-24 18:41:59 +08:00
Matias Fontanini
b447c664e1
Merge pull request #433 from visuve/master
...
Close socket when setsockopt fails
2021-03-06 11:34:51 -08:00
visuve
468159e6d2
Close socket when setsockopt fails
...
- Prevent resource leak
2021-03-04 23:55:29 +02:00
Matias Fontanini
cd40b232e7
Merge pull request #427 from nhutchinson-te/bsd-routing-table
...
Fix infinite loop when querying BSD routing table
2021-01-04 18:44:06 -08:00
Nick Hutchinson
1166094a2f
Fix infinite loop when querying BSD routing table
...
Fix `query_route_table()` returning a buffer padded with extra '\0'
bytes because it ignored the buffer size returned by `sysctl()`.
This caused `route_entries()` / `route6_entries()` to fall into an
infinite loop, forever trying to parse a 0-length routing entry.
2021-01-04 12:02:03 +00:00
Matias Fontanini
b3d874d6a8
Merge pull request #426 from theDogOfPavlov/master
...
Added RFC8335 Extended echo types to headers
2020-12-29 08:52:34 -08:00
Martin O'Neal
553b1fb255
Added RFC8335 Extended Echo types
2020-12-29 08:36:30 +00:00
Martin O'Neal
94939dd0fa
Added RFC8355 ICMP Extended Echo support
...
Added RFC8355 ICMP Extended Echo request/reply to Flags (no other changes made)
2020-12-29 08:32:29 +00:00
Matias Fontanini
0774a8dcad
Bump version to 4.4 in CMakeLists.txt
2020-09-17 22:20:32 -07:00
Matias Fontanini
f46dee9f19
Add changelog for version 4.3
v4.3
2020-09-17 22:20:10 -07:00
Matias Fontanini
5b082a82b2
Merge pull request #420 from mfontanini/control-ta-fix
...
Assign a PDUType for Dot11ControlTA
2020-09-10 08:44:05 -07:00
Matias Fontanini
07012648fb
Assign a PDUType for Dot11ControlTA
2020-09-10 07:34:54 -07:00
Matias Fontanini
ce409dbc7e
Merge pull request #374 from almikhayl/373-esp
...
Fix malformed packet exception on esp header
2020-02-01 11:04:00 -08:00
Matias Fontanini
16e77146ab
Merge pull request #382 from laudrup/fix-install-without-libpcap
...
Don't include non-existing headers when installed without libpcap
2020-02-01 11:01:16 -08:00
Matias Fontanini
a87c4a64f5
Merge pull request #383 from laudrup/silence-msvc2017-warnings
...
Fix compiler warnings from MSVC 2017
2020-02-01 10:59:38 -08:00
Kasper Laudrup
9e61286a59
Fix compiler warnings from MSVC 2017
...
The MS C++ compiler doesn't seem to understand that a small constant
like 0, although strictly being an integer, will fit perfectly fine
into an 8 bit type so add some safe casts to silence that warning.
2019-12-20 14:37:38 +01:00