Merge in SNORT/snort3 from ~VKHARVI/snort3:proto_51_fix to master
Squashed commit of the following:
commit
bff3344649af8f6eb2e8e48679aa802df7d92e5c
Author: VISHAL RATNAKAR KHARVI -X (vkharvi - XORIANT CORPORATION at Cisco) <vkharvi@cisco.com>
Date: Wed Nov 1 18:43:15 2023 +0530
codecs: Fix bad checksum when auth(51) protocol header is present between IP and TCP layer.
ph.hdr.sip = ip4h->get_src();
ph.hdr.dip = ip4h->get_dst();
ph.hdr.zero = 0;
- ph.hdr.protocol = ip4h->proto();
+ ph.hdr.protocol = IpProtocol::TCP;
ph.hdr.len = htons((uint16_t) raw.len);
return (checksum::tcp_cksum((const uint16_t*) raw.data, raw.len, ph) == 0);
ph.hdr.sip = ip4h->get_src();
ph.hdr.dip = ip4h->get_dst();
ph.hdr.zero = 0;
- ph.hdr.protocol = ip4h->proto();
+ ph.hdr.protocol = IpProtocol::UDP;
ph.hdr.len = htons((uint16_t) raw.len);
return (checksum::udp_cksum((const uint16_t*) raw.data, raw.len, ph) == 0);