]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #4249: flow: UT fix
authorARUNKUMAR KAYAMBU -X (akayambu - XORIANT CORPORATION at Cisco) <akayambu@cisco.com>
Mon, 18 Mar 2024 19:52:08 +0000 (19:52 +0000)
committerSteven Baigal (sbaigal) <sbaigal@cisco.com>
Mon, 18 Mar 2024 19:52:08 +0000 (19:52 +0000)
Merge in SNORT/snort3 from ~AKAYAMBU/snort3:flow_ut_fix to master

Squashed commit of the following:

commit 4d9d08eb2afd642f5122ed568286b3df8111368e
Author: Arunkumar Kayambu <akayambu@cisco.com>
Date:   Mon Mar 18 14:34:45 2024 -0400

    flow: UT fix

src/flow/test/flow_cache_test.cc

index ebdc93020210c5e588a96a9be5923b259f1b1c5e..bd4bc0afec4d50b1f7aaf57e513b10cb542eea1c 100644 (file)
@@ -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; }