]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
updating cmake to reflect new Makefile additions
authorJosh <jrosenba@cisco.com>
Wed, 13 Aug 2014 18:16:56 +0000 (14:16 -0400)
committerJosh <jrosenba@cisco.com>
Wed, 13 Aug 2014 19:17:10 +0000 (15:17 -0400)
CMakeLists.txt
cmake/configure_options.cmake
cmake/create_options.cmake
src/actions/CMakeLists.txt
src/codecs/codec_api.cc
src/codecs/misc/cd_ip4_embedded_in_icmp.cc
src/codecs/misc/cd_ip6_embedded_in_icmp.cc

index 2421112af8dc4dd1c1e506c967316d83542eba3f..ffe55775ffdb5f01e89c7b5031c57af52b1864db 100644 (file)
@@ -4,7 +4,7 @@ project (snort CXX C)
 
 set (SNORT_VERSION_MAJOR 2)
 set (SNORT_VERSION_MINOR 10)
-set (SNORT_VERSION_BUILD  108)
+set (SNORT_VERSION_BUILD  113)
 set (VERSION "${SNORT_VERSION_MAJOR}.${SNORT_VERSION_MINOR}.${SNORT_VERSION_BUILD}")
 
 # ensure cmake will look in the cmake directory for configuration files
index d786c0a59befad683c04cae3101a103102a926d6..e83e2b653651627606805cd22d7c7a064b288aea 100644 (file)
@@ -14,8 +14,6 @@
 #ENDIF(UNIX)
 
 
-
-
 # convert cmake options into compiler defines
 
 set_project_compiler_defines_if_true (ENABLE_PERFPROFILING "PERF_PROFILING")
@@ -32,9 +30,11 @@ set_project_compiler_defines_if_true (ENABLE_LARGE_PCAP "_FILE_OFFSET_BITS=64")
 
 # convert cmake options into config.h defines
 
+
 set_if_true (STATIC_INSPECTORS STATIC_INSPECTORS)
 set_if_true (STATIC_SEARCH_ENGINES STATIC_SEARCH_ENGINES)
 set_if_true (STATIC_LOGGERS STATIC_LOGGERS)
+set_if_true (STATIC_IPS_ACTIONS STATIC_IPS_ACTIONS)
 set_if_true (STATIC_IPS_OPTIONS STATIC_IPS_OPTIONS)
 set_if_true (STATIC_CODECS STATIC_CODECS)
 set_if_true (BUILD_SIDE_CHANNEL SIDE_CHANNEL)
index ef466229e68498c40377e75832c609f8e2c73eb2..2632304ec833728d392f9d6b9bdff2df31d82e42 100644 (file)
@@ -8,6 +8,7 @@
 option (STATIC_CODECS "include decoders in binary?" ON)
 option (STATIC_INSPECTORS "include inspectors in binary" ON)
 option (STATIC_LOGGERS "include loggers in binary" ON)
+option (STATIC_IPS_ACTIONS "include internal ips actions in binary" ON)
 option (STATIC_IPS_OPTIONS "include ips options in binary" ON)
 option (STATIC_SEARCH_ENGINES "include search engines in binary" ON)
 option (BUILD_CONTROL_SOCKET "Enable the control socket (Linux only)" OFF)
index 1a32828e9d6a8ce8a10687e4f4daa96ef10650f5..e24e1bd9ee762f798459d092b08a7865cb851391 100644 (file)
@@ -20,6 +20,10 @@ if (STATIC_IPS_ACTIONS)
         ${PLUGIN_LIST}
     )
 
+    target_link_libraries(ips_actions
+        packet_io
+    )
+
 else (STATIC_IPS_ACTIONS)
 
     add_library ( ips_actions STATIC
index f0066f0f7827affb8770ca1f4477ff457fba6b60..5813423c9e6967c5c23c8bcb9e3febaaca8c5633 100644 (file)
@@ -58,6 +58,7 @@ extern const BaseApi* cd_gtp;
 extern const BaseApi* cd_hopopts;
 extern const BaseApi* cd_ip4_embedded_in_icmp;
 extern const BaseApi* cd_ip6_embedded_in_icmp;
+extern const BaseApi* cd_prot_embedded_in_icmp;
 extern const BaseApi* cd_igmp;
 extern const BaseApi* cd_mobility;
 extern const BaseApi* cd_mpls;
@@ -114,6 +115,7 @@ const BaseApi* codecs[] =
     cd_hopopts,
     cd_ip4_embedded_in_icmp,
     cd_ip6_embedded_in_icmp,
+    cd_prot_embedded_in_icmp,
     cd_igmp,
     cd_mobility,
     cd_mpls,
index 0c0e9485d7dc65eaa87fa544233a2ddc3ab009aa..51544837a2116dbf57047d2a4a4a172e8cbfd054 100644 (file)
@@ -101,7 +101,7 @@ bool Ip4EmbeddedInIcmpCodec::decode(const uint8_t *raw_pkt, const uint32_t& raw_
     }
 
     ip_len = ntohs(ip4h->get_len());/* set the IP datagram length */
-    hlen = ip4h->get_len() << 2;    /* set the IP header length */
+    hlen = ip4h->get_hlen() << 2;    /* set the IP header length */
 
     if(raw_len < hlen)
     {
@@ -212,7 +212,7 @@ static const CodecApi ip4_embedded_in_icmp_api =
 #ifdef BUILDING_SO
 SO_PUBLIC const BaseApi* snort_plugins[] =
 {
-    &name_api.base,
+    &ip4_embedded_in_icmp_api.base,
     nullptr
 };
 #else
index 59a3d74cc087989d80ad688a7918e0c945c1c99b..8dd8e648a71d0a36d9836f31884fceb307b1fa54 100644 (file)
@@ -183,7 +183,7 @@ static const CodecApi ip6_embedded_in_icmp_api =
 #ifdef BUILDING_SO
 SO_PUBLIC const BaseApi* snort_plugins[] =
 {
-    &name_api.base,
+    &ip6_embedded_in_icmp_api.base,
     nullptr
 };
 #else