Merge in SNORT/snort3 from ~OSHUMEIK/snort3:trace_ntuple_pdu to master
Squashed commit of the following:
commit
a9d670044b9f086ab2793e13ea1d19ddc48caae4
Author: Oleksii Shumeiko <oshumeik@cisco.com>
Date: Mon Sep 15 11:23:46 2025 +0300
trace: print n-tuple for other packet types with IP layer set
IP layer (and addresses) can be set not only for pure TCP and UDP.
static std::string get_ntuple(bool ntuple, const Packet* p)
{
- if ( !ntuple or !p or !p->has_ip() )
+ if ( !ntuple or !p or !p->ptrs.ip_api.is_valid() )
return "";
SfIpString src_addr;