]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #3685: geneve: If daq has the capability, do not bypass geneve tunnel
authorSteve Chew (stechew) <stechew@cisco.com>
Mon, 5 Dec 2022 17:41:23 +0000 (17:41 +0000)
committerSteve Chew (stechew) <stechew@cisco.com>
Mon, 5 Dec 2022 17:41:23 +0000 (17:41 +0000)
Merge in SNORT/snort3 from ~RAMANKS/snort3:geneve to master

Squashed commit of the following:

commit 169354f17567c641331058dfde01b03934790486
Author: Raman Krishnan <ramanks@cisco.com>
Date:   Tue Nov 29 16:07:44 2022 -0800

    geneve: If daq has the capability, do not bypass geneve tunnel

cmake/FindDAQ.cmake
src/packet_io/sfdaq_instance.cc

index bf5f66fed3c2ab0d41bd042be6b0a6d1bfa6df3b..3959f97a408b6a94235401eb11e575fb3682a8af 100644 (file)
@@ -16,7 +16,7 @@ This module defines:
 #]=======================================================================]
 
 find_package(PkgConfig)
-pkg_check_modules(PC_DAQ libdaq>=3.0.7)
+pkg_check_modules(PC_DAQ libdaq>=3.0.10)
 
 # Use DAQ_INCLUDE_DIR_HINT and DAQ_LIBRARIES_DIR_HINT from configure_cmake.sh as primary hints
 # and then package config information after that.
index 49531c6cd67666895397ed47b028f106d0787fbc..4e9a0125272b84cd345d7fb69a60b2a9757a397e 100644 (file)
@@ -236,6 +236,8 @@ void SFDAQInstance::get_tunnel_capabilities()
             daq_tunnel_mask |= TUNNEL_6IN6;
         if (caps & DAQ_CAPA_DECODE_MPLS)
             daq_tunnel_mask |= TUNNEL_MPLS;
+        if (caps & DAQ_CAPA_DECODE_GENEVE)
+            daq_tunnel_mask |= TUNNEL_GENEVE;
     }
 }