You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

244 lines
6.0 KiB

  1. diff -u --recursive snort-2.9.11.1-vanilla/configure.in snort-2.9.11.1/configure.in
  2. --- snort-2.9.11.1-vanilla/configure.in 2018-03-02 15:41:50.601809500 -0500
  3. +++ snort-2.9.11.1/configure.in 2018-03-02 16:19:08.119307772 -0500
  4. @@ -282,21 +282,7 @@
  5. AC_CHECK_TYPES([boolean])
  6. # In case INADDR_NONE is not defined (like on Solaris)
  7. -have_inaddr_none="no"
  8. -AC_MSG_CHECKING([for INADDR_NONE])
  9. -AC_RUN_IFELSE(
  10. -[AC_LANG_PROGRAM(
  11. -[[
  12. -#include <sys/types.h>
  13. -#include <netinet/in.h>
  14. -#include <arpa/inet.h>
  15. -]],
  16. -[[
  17. - if (inet_addr("10,5,2") == INADDR_NONE);
  18. - return 0;
  19. -]])],
  20. -[have_inaddr_none="yes"],
  21. -[have_inaddr_none="no"])
  22. +have_inaddr_none="yes"
  23. AC_MSG_RESULT($have_inaddr_none)
  24. if test "x$have_inaddr_none" = "xno"; then
  25. AC_DEFINE([INADDR_NONE],[-1],[For INADDR_NONE definition])
  26. @@ -428,17 +414,7 @@
  27. fi
  28. fi
  29. -AC_MSG_CHECKING([for pcap_lex_destroy])
  30. -AC_RUN_IFELSE(
  31. -[AC_LANG_PROGRAM(
  32. -[[
  33. -#include <pcap.h>
  34. -]],
  35. -[[
  36. - pcap_lex_destroy();
  37. -]])],
  38. -[have_pcap_lex_destroy="yes"],
  39. -[have_pcap_lex_destroy="no"])
  40. +have_pcap_lex_destroy="yes"
  41. AC_MSG_RESULT($have_pcap_lex_destroy)
  42. if test "x$have_pcap_lex_destroy" = "xyes"; then
  43. AC_DEFINE([HAVE_PCAP_LEX_DESTROY],[1],[Can cleanup lex buffer stack created by pcap bpf filter])
  44. @@ -715,18 +691,7 @@
  45. AC_CHECK_FUNCS([daq_hup_apply] [daq_acquire_with_meta] [daq_dp_add_dc])
  46. -AC_MSG_CHECKING([for daq real addresses])
  47. -AC_RUN_IFELSE(
  48. -[AC_LANG_PROGRAM(
  49. -[[
  50. -#include <daq.h>
  51. -]],
  52. -[[
  53. - DAQ_PktHdr_t hdr;
  54. - hdr.n_real_dPort = 0;
  55. -]])],
  56. -[have_daq_real_addresses="yes"],
  57. -[have_daq_real_addresses="no"])
  58. +have_daq_address_space_id="yes"
  59. AC_MSG_RESULT($have_daq_real_addresses)
  60. if test "x$have_daq_real_addresses" = "xyes"; then
  61. AC_DEFINE([HAVE_DAQ_REAL_ADDRESSES],[1],
  62. @@ -753,56 +718,21 @@
  63. fi
  64. -AC_MSG_CHECKING([for daq address space ID])
  65. -AC_RUN_IFELSE(
  66. -[AC_LANG_PROGRAM(
  67. -[[
  68. -#include <daq.h>
  69. -]],
  70. -[[
  71. - DAQ_PktHdr_t hdr;
  72. - hdr.address_space_id = 0;
  73. -]])],
  74. -[have_daq_address_space_id="yes"],
  75. -[have_daq_address_space_id="no"])
  76. +have_daq_address_space_id="yes"
  77. AC_MSG_RESULT($have_daq_address_space_id)
  78. if test "x$have_daq_address_space_id" = "xyes"; then
  79. AC_DEFINE([HAVE_DAQ_ADDRESS_SPACE_ID],[1],
  80. [DAQ version supports address space ID in header.])
  81. fi
  82. -AC_MSG_CHECKING([for daq flow ID])
  83. -AC_RUN_IFELSE(
  84. -[AC_LANG_PROGRAM(
  85. -[[
  86. -#include <daq.h>
  87. -]],
  88. -[[
  89. - DAQ_PktHdr_t hdr;
  90. - hdr.flow_id = 0;
  91. -]])],
  92. -[have_daq_flow_id="yes"],
  93. -[have_daq_flow_id="no"])
  94. +have_daq_flow_id="yes"
  95. AC_MSG_RESULT($have_daq_flow_id)
  96. if test "x$have_daq_flow_id" = "xyes"; then
  97. AC_DEFINE([HAVE_DAQ_FLOW_ID],[1],
  98. [DAQ version supports flow ID in header.])
  99. fi
  100. -AC_MSG_CHECKING([for daq extended flow modifiers])
  101. -AC_RUN_IFELSE(
  102. -[AC_LANG_PROGRAM(
  103. -[[
  104. -#include <daq.h>
  105. -]],
  106. -[[
  107. - DAQ_ModFlow_t mod;
  108. - mod.type = 0;
  109. - mod.length = 0;
  110. - mod.value = NULL;
  111. -]])],
  112. -[have_daq_ext_modflow="yes"],
  113. -[have_daq_ext_modflow="no"])
  114. +have_daq_ext_modflow="no"
  115. AC_MSG_RESULT($have_daq_ext_modflow)
  116. if test "x$have_daq_ext_modflow" = "xyes"; then
  117. CCONFIGFLAGS="${CCONFIGFLAGS} -DHAVE_DAQ_EXT_MODFLOW"
  118. @@ -810,20 +740,7 @@
  119. [DAQ version supports extended flow modifiers.])
  120. fi
  121. -AC_MSG_CHECKING([for daq query flow])
  122. -AC_RUN_IFELSE(
  123. -[AC_LANG_PROGRAM(
  124. -[[
  125. -#include <daq.h>
  126. -]],
  127. -[[
  128. - DAQ_QueryFlow_t mod;
  129. - mod.type = 0;
  130. - mod.length = 0;
  131. - mod.value = NULL;
  132. -]])],
  133. -[have_daq_queryflow="yes"],
  134. -[have_daq_queryflow="no"])
  135. +have_daq_queryflow="no"
  136. AC_MSG_RESULT($have_daq_queryflow)
  137. if test "x$have_daq_queryflow" = "xyes"; then
  138. CCONFIGFLAGS="${CCONFIGFLAGS} -DHAVE_DAQ_QUERYFLOW"
  139. @@ -831,17 +748,7 @@
  140. [DAQ version supports query flow.])
  141. fi
  142. -AC_MSG_CHECKING([for daq data channel flags])
  143. -AC_RUN_IFELSE(
  144. -[AC_LANG_PROGRAM(
  145. -[[
  146. -#include <daq.h>
  147. -]],
  148. -[[
  149. - DAQ_Data_Channel_Params_t params;
  150. -]])],
  151. -[have_daq_data_channel_flags="yes"],
  152. -[have_daq_data_channel_flags="no"])
  153. +have_daq_data_channel_flags="no"
  154. AC_MSG_RESULT($have_daq_data_channel_flags)
  155. if test "x$have_daq_data_channel_flags" = "xyes"; then
  156. CCONFIGFLAGS="${CCONFIGFLAGS} -DHAVE_DAQ_DATA_CHANNEL_PARAMS"
  157. @@ -849,18 +756,7 @@
  158. [DAQ version supports data channel.])
  159. fi
  160. -AC_MSG_CHECKING([for separate IP versions on pinhole endpoints])
  161. -AC_RUN_IFELSE(
  162. -[AC_LANG_PROGRAM(
  163. -[[
  164. -#include <daq.h>
  165. -]],
  166. -[[
  167. - DAQ_DP_key_t dpKey;
  168. - dpKey.src_af = 0;
  169. -]])],
  170. -[have_daq_data_channel_separate_ip_versions="yes"],
  171. -[have_daq_data_channel_separate_ip_versions="no"])
  172. +have_daq_data_channel_separate_ip_versions="no"
  173. AC_MSG_RESULT($have_daq_data_channel_separate_ip_versions)
  174. if test "x$have_daq_data_channel_separate_ip_versions" = "xyes"; then
  175. CCONFIGFLAGS="${CCONFIGFLAGS} -DHAVE_DAQ_DATA_CHANNEL_SEPARATE_IP_VERSIONS"
  176. @@ -869,35 +765,14 @@
  177. fi
  178. AC_MSG_CHECKING([for DAQ_VERDICT_RETRY])
  179. -AC_RUN_IFELSE(
  180. -[AC_LANG_PROGRAM(
  181. -[[
  182. -#include <daq.h>
  183. -]],
  184. -[[
  185. - DAQ_Verdict verdict;
  186. - verdict = DAQ_VERDICT_RETRY;
  187. -]])],
  188. -[have_daq_verdict_retry="yes"],
  189. -[have_daq_verdict_retry="no"])
  190. +have_daq_verdict_retry="yes"
  191. AC_MSG_RESULT($have_daq_verdict_retry)
  192. if test "x$have_daq_verdict_retry" = "xyes"; then
  193. AC_DEFINE([HAVE_DAQ_VERDICT_RETRY],[1],
  194. [DAQ version supports DAQ_VERDICT_RETRY in DAQ_Verdict.])
  195. fi
  196. -AC_MSG_CHECKING([for daq packet trace])
  197. -AC_RUN_IFELSE(
  198. -[AC_LANG_PROGRAM(
  199. -[[
  200. -#include <daq.h>
  201. -]],
  202. -[[
  203. - DAQ_PktHdr_t hdr;
  204. - hdr.flags = DAQ_PKT_FLAG_TRACE_ENABLED;
  205. -]])],
  206. -[have_daq_packet_trace="yes"],
  207. -[have_daq_packet_trace="no"])
  208. +have_daq_packet_trace="no"
  209. AC_MSG_RESULT($have_daq_packet_trace)
  210. if test "x$have_daq_packet_trace" = "xyes"; then
  211. AC_DEFINE([HAVE_DAQ_PKT_TRACE],[1],
  212. @@ -906,18 +781,7 @@
  213. echo "DAQ version doesn't support packet trace."
  214. fi
  215. -AC_MSG_CHECKING([for daq verdict reason])
  216. -AC_RUN_IFELSE(
  217. -[AC_LANG_PROGRAM(
  218. -[[
  219. -#include <daq.h>
  220. -]],
  221. -[[
  222. - DAQ_ModFlow_t fl;
  223. - fl.type = DAQ_MODFLOW_TYPE_VER_REASON;
  224. -]])],
  225. -[have_daq_verdict_reason="yes"],
  226. -[have_daq_verdict_reason="no"])
  227. +have_daq_verdict_reason="no"
  228. AC_MSG_RESULT($have_daq_verdict_reason)
  229. if test "x$have_daq_verdict_reason" = "xyes"; then
  230. AC_DEFINE([HAVE_DAQ_VERDICT_REASON],[1],