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
#ENDIF(UNIX)
-
-
# convert cmake options into compiler defines
set_project_compiler_defines_if_true (ENABLE_PERFPROFILING "PERF_PROFILING")
# 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)
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)
${PLUGIN_LIST}
)
+ target_link_libraries(ips_actions
+ packet_io
+ )
+
else (STATIC_IPS_ACTIONS)
add_library ( ips_actions STATIC
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;
cd_hopopts,
cd_ip4_embedded_in_icmp,
cd_ip6_embedded_in_icmp,
+ cd_prot_embedded_in_icmp,
cd_igmp,
cd_mobility,
cd_mpls,
}
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)
{
#ifdef BUILDING_SO
SO_PUBLIC const BaseApi* snort_plugins[] =
{
- &name_api.base,
+ &ip4_embedded_in_icmp_api.base,
nullptr
};
#else
#ifdef BUILDING_SO
SO_PUBLIC const BaseApi* snort_plugins[] =
{
- &name_api.base,
+ &ip6_embedded_in_icmp_api.base,
nullptr
};
#else