From: ARUNKUMAR KAYAMBU -X (akayambu - XORIANT CORPORATION at Cisco) Date: Mon, 18 Mar 2024 19:52:08 +0000 (+0000) Subject: Pull request #4249: flow: UT fix X-Git-Tag: 3.1.83.0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1aacbd264d2f8785b521d4c079009a46e4a1a59e;p=thirdparty%2Fsnort3.git Pull request #4249: flow: UT fix Merge in SNORT/snort3 from ~AKAYAMBU/snort3:flow_ut_fix to master Squashed commit of the following: commit 4d9d08eb2afd642f5122ed568286b3df8111368e Author: Arunkumar Kayambu Date: Mon Mar 18 14:34:45 2024 -0400 flow: UT fix --- diff --git a/src/flow/test/flow_cache_test.cc b/src/flow/test/flow_cache_test.cc index ebdc93020..bd4bc0afe 100644 --- a/src/flow/test/flow_cache_test.cc +++ b/src/flow/test/flow_cache_test.cc @@ -75,7 +75,6 @@ SfIpRet SfIp::set(void const*) { return SFIP_SUCCESS; } SfIpRet SfIp::pton(const int, const char* ) { return SFIP_SUCCESS; } const char* SfIp::ntop(char* buf, int) const { buf[0] = 0; return buf; } -unsigned snort::get_instance_id() { return 0; } unsigned ThreadConfig::get_instance_max() { return 0; } bool ControlConn::respond(const char*, ...) { return true; } class TcpStreamTracker; @@ -91,7 +90,7 @@ void Flow::free_flow_data() { } void Flow::set_client_initiate(Packet*) { } void Flow::set_direction(Packet*) { } void Flow::set_mpls_layer_per_dir(Packet*) { } -void packet_gettimeofday(struct timeval* tv) { tv = {}; } +void packet_gettimeofday(struct timeval* ) { } time_t packet_time() { return 0; }