mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix signed/unsigned comparison compiler warning
This commit is contained in:
parent
72fa3f16ad
commit
a9771bc0eb
3 changed files with 6 additions and 2 deletions
4
CHANGES
4
CHANGES
|
@ -1,4 +1,8 @@
|
||||||
|
|
||||||
|
2.6-158 | 2019-03-14 16:23:30 -0700
|
||||||
|
|
||||||
|
* Fix signed/unsigned comparison compiler warning (Jon Siwek, Corelight)
|
||||||
|
|
||||||
2.6-157 | 2019-03-14 16:18:13 +0000
|
2.6-157 | 2019-03-14 16:18:13 +0000
|
||||||
|
|
||||||
* GH-250: Add VXLAN decapsulation support (Henrik Lund Kramshoej; Jon Siwek, Corelight)
|
* GH-250: Add VXLAN decapsulation support (Henrik Lund Kramshoej; Jon Siwek, Corelight)
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
2.6-157
|
2.6-158
|
||||||
|
|
|
@ -67,7 +67,7 @@ void UDP_Analyzer::DeliverPacket(int len, const u_char* data, bool is_orig,
|
||||||
constexpr auto eth_len = 14;
|
constexpr auto eth_len = 14;
|
||||||
|
|
||||||
if ( validate_checksum &&
|
if ( validate_checksum &&
|
||||||
len > (sizeof(struct udphdr) + vxlan_len + eth_len) &&
|
len > ((int)sizeof(struct udphdr) + vxlan_len + eth_len) &&
|
||||||
(data[0] & 0x08) == 0x08 )
|
(data[0] & 0x08) == 0x08 )
|
||||||
{
|
{
|
||||||
auto& vxlan_ports = analyzer_mgr->GetVxlanPorts();
|
auto& vxlan_ports = analyzer_mgr->GetVxlanPorts();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue