suricata
detect-http-host.c
Go to the documentation of this file.
1 /* Copyright (C) 2007-2019 Open Information Security Foundation
2  *
3  * You can copy, redistribute or modify this Program under the terms of
4  * the GNU General Public License version 2 as published by the Free
5  * Software Foundation.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * version 2 along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15  * 02110-1301, USA.
16  */
17 
18 /**
19  * \ingroup httplayer
20  *
21  * @{
22  */
23 
24 
25 /**
26  * \file
27  *
28  * \author Anoop Saldanha <anoopsaldanha@gmail.com>
29  *
30  * Implements support for the http_host keyword.
31  */
32 
33 #include "suricata-common.h"
34 #include "threads.h"
35 #include "decode.h"
36 
37 #include "detect.h"
38 #include "detect-parse.h"
39 #include "detect-engine.h"
40 #include "detect-engine-buffer.h"
41 #include "detect-engine-mpm.h"
43 #include "detect-content.h"
44 #include "detect-pcre.h"
45 
46 #include "flow.h"
47 #include "flow-var.h"
48 #include "flow-util.h"
49 
50 #include "util-debug.h"
51 #include "util-unittest-helper.h"
52 #include "util-spm.h"
53 
54 #include "app-layer.h"
55 #include "app-layer-parser.h"
56 
57 #include "app-layer-htp.h"
58 #include "stream-tcp.h"
59 #include "detect-http-host.h"
60 
61 static int DetectHttpHHSetup(DetectEngineCtx *, Signature *, const char *);
62 #ifdef UNITTESTS
63 static void DetectHttpHHRegisterTests(void);
64 #endif
65 static bool DetectHttpHostValidateCallback(
66  const Signature *s, const char **sigerror, const DetectBufferType *dbt);
67 static int DetectHttpHostSetup(DetectEngineCtx *, Signature *, const char *);
68 static InspectionBuffer *GetData(DetectEngineThreadCtx *det_ctx,
69  const DetectEngineTransforms *transforms,
70  Flow *_f, const uint8_t _flow_flags,
71  void *txv, const int list_id);
72 static InspectionBuffer *GetData2(DetectEngineThreadCtx *det_ctx,
73  const DetectEngineTransforms *transforms, Flow *_f, const uint8_t _flow_flags, void *txv,
74  const int list_id);
75 static int DetectHttpHRHSetup(DetectEngineCtx *, Signature *, const char *);
76 static int g_http_raw_host_buffer_id = 0;
77 static int DetectHttpHostRawSetupSticky(DetectEngineCtx *de_ctx, Signature *s, const char *str);
78 static InspectionBuffer *GetRawData(DetectEngineThreadCtx *det_ctx,
79  const DetectEngineTransforms *transforms, Flow *_f,
80  const uint8_t _flow_flags, void *txv, const int list_id);
81 static InspectionBuffer *GetRawData2(DetectEngineThreadCtx *det_ctx,
82  const DetectEngineTransforms *transforms, Flow *_f, const uint8_t _flow_flags, void *txv,
83  const int list_id);
84 static int g_http_host_buffer_id = 0;
85 static int g_http2_thread_id = 0;
86 static int g_http2_raw_thread_id = 0;
87 
88 /**
89  * \brief Registers the keyword handlers for the "http_host" keyword.
90  */
92 {
93  /* http_host content modifier */
95  sigmatch_table[DETECT_HTTP_HOST_CM].desc = "content modifier to match on the HTTP hostname";
96  // no doc url for this obsolete keyword, see http.host
97  sigmatch_table[DETECT_HTTP_HOST_CM].Setup = DetectHttpHHSetup;
98 #ifdef UNITTESTS
100 #endif
103 
104  /* http.host sticky buffer */
105  sigmatch_table[DETECT_HTTP_HOST].name = "http.host";
106  sigmatch_table[DETECT_HTTP_HOST].desc = "sticky buffer to match on the HTTP Host buffer";
107  sigmatch_table[DETECT_HTTP_HOST].url = "/rules/http-keywords.html#http-host";
108  sigmatch_table[DETECT_HTTP_HOST].Setup = DetectHttpHostSetup;
110 
112  HTP_REQUEST_PROGRESS_HEADERS, DetectEngineInspectBufferGeneric, GetData);
113 
115  GetData, ALPROTO_HTTP1, HTP_REQUEST_PROGRESS_HEADERS);
116 
118  HTTP2TxTypeStream, HTTP2ProgHeaders, DetectEngineInspectBufferGeneric, GetData2);
119 
121  PrefilterGenericMpmRegister, GetData2, ALPROTO_HTTP2, HTTP2TxTypeStream,
122  HTTP2ProgHeaders);
123 
125  DetectHttpHostValidateCallback);
126 
128  "http host");
129 
130  g_http2_thread_id = SCDetectRegisterThreadCtxGlobalFuncs(
131  "http_host", SCDetectThreadBufDataInit, NULL, SCDetectThreadBufDataFree);
132 
133  g_http_host_buffer_id = DetectBufferTypeGetByName("http_host");
134 
135  /* http_raw_host content modifier */
136  sigmatch_table[DETECT_HTTP_RAW_HOST].name = "http_raw_host";
137  sigmatch_table[DETECT_HTTP_RAW_HOST].desc = "content modifier to match on the HTTP host header "
138  "or the raw hostname from the HTTP uri";
139  // no doc url for this obsolete keyword, see http.host.raw
140  sigmatch_table[DETECT_HTTP_RAW_HOST].Setup = DetectHttpHRHSetup;
143 
144  /* http.host sticky buffer */
145  sigmatch_table[DETECT_HTTP_HOST_RAW].name = "http.host.raw";
146  sigmatch_table[DETECT_HTTP_HOST_RAW].desc = "sticky buffer to match on the HTTP host header or the raw hostname from the HTTP uri";
147  sigmatch_table[DETECT_HTTP_HOST_RAW].url = "/rules/http-keywords.html#http-host-raw";
148  sigmatch_table[DETECT_HTTP_HOST_RAW].Setup = DetectHttpHostRawSetupSticky;
150 
152  HTP_REQUEST_PROGRESS_HEADERS, DetectEngineInspectBufferGeneric, GetRawData);
153 
155  GetRawData, ALPROTO_HTTP1, HTP_REQUEST_PROGRESS_HEADERS);
156 
158  HTTP2TxTypeStream, HTTP2ProgHeaders, DetectEngineInspectBufferGeneric, GetRawData2);
159 
161  PrefilterGenericMpmRegister, GetRawData2, ALPROTO_HTTP2, HTTP2TxTypeStream,
162  HTTP2ProgHeaders);
163 
164  DetectBufferTypeSetDescriptionByName("http_raw_host",
165  "http raw host header");
166 
167  g_http2_raw_thread_id = SCDetectRegisterThreadCtxGlobalFuncs(
168  "http_raw_host", SCDetectThreadBufDataInit, NULL, SCDetectThreadBufDataFree);
169 
170  g_http_raw_host_buffer_id = DetectBufferTypeGetByName("http_raw_host");
171 }
172 
173 /**
174  * \brief The setup function for the http_host keyword for a signature.
175  *
176  * \param de_ctx Pointer to the detection engine context.
177  * \param s Pointer to the signature for the current Signature being
178  * parsed from the rules.
179  * \param m Pointer to the head of the SigMatch for the current rule
180  * being parsed.
181  * \param arg Pointer to the string holding the keyword value.
182  *
183  * \retval 0 On success
184  * \retval -1 On failure
185  */
186 static int DetectHttpHHSetup(DetectEngineCtx *de_ctx, Signature *s, const char *arg)
187 {
189  de_ctx, s, arg, DETECT_HTTP_HOST_CM, g_http_host_buffer_id, ALPROTO_HTTP1);
190 }
191 
192 static bool DetectHttpHostValidateCallback(
193  const Signature *s, const char **sigerror, const DetectBufferType *dbt)
194 {
195  for (uint32_t x = 0; x < s->init_data->buffer_index; x++) {
196  if (s->init_data->buffers[x].id != (uint32_t)dbt->id)
197  continue;
198  const SigMatch *sm = s->init_data->buffers[x].head;
199  for (; sm != NULL; sm = sm->next) {
200  if (sm->type == DETECT_CONTENT) {
202  if (cd->flags & DETECT_CONTENT_NOCASE) {
203  *sigerror = "http.host keyword "
204  "specified along with \"nocase\". "
205  "The hostname buffer is normalized "
206  "to lowercase, specifying "
207  "nocase is redundant.";
208  SCLogWarning("rule %u: %s", s->id, *sigerror);
209  return false;
210  } else {
211  uint32_t u;
212  for (u = 0; u < cd->content_len; u++) {
213  if (isupper(cd->content[u]))
214  break;
215  }
216  if (u != cd->content_len) {
217  *sigerror = "A pattern with "
218  "uppercase characters detected for http.host. "
219  "The hostname buffer is normalized to lowercase, "
220  "please specify a lowercase pattern.";
221  SCLogWarning("rule %u: %s", s->id, *sigerror);
222  return false;
223  }
224  }
225  }
226  }
227  }
228 
229  return true;
230 }
231 
232 /**
233  * \brief this function setup the http.host keyword used in the rule
234  *
235  * \param de_ctx Pointer to the Detection Engine Context
236  * \param s Pointer to the Signature to which the current keyword belongs
237  * \param str Should hold an empty string always
238  *
239  * \retval 0 On success
240  */
241 static int DetectHttpHostSetup(DetectEngineCtx *de_ctx, Signature *s, const char *str)
242 {
243  if (SCDetectBufferSetActiveList(de_ctx, s, g_http_host_buffer_id) < 0)
244  return -1;
246  return -1;
247  return 0;
248 }
249 
250 static InspectionBuffer *GetData(DetectEngineThreadCtx *det_ctx,
251  const DetectEngineTransforms *transforms, Flow *_f,
252  const uint8_t _flow_flags, void *txv, const int list_id)
253 {
254  InspectionBuffer *buffer = SCInspectionBufferGet(det_ctx, list_id);
255  if (buffer->inspect == NULL) {
256  htp_tx_t *tx = (htp_tx_t *)txv;
257 
258  if (htp_tx_request_hostname(tx) == NULL)
259  return NULL;
260 
261  const uint32_t data_len = (uint32_t)bstr_len(htp_tx_request_hostname(tx));
262  const uint8_t *data = bstr_ptr(htp_tx_request_hostname(tx));
263 
265  det_ctx, list_id, buffer, data, data_len, transforms);
266  }
267 
268  return buffer;
269 }
270 
271 static InspectionBuffer *GetData2(DetectEngineThreadCtx *det_ctx,
272  const DetectEngineTransforms *transforms, Flow *_f, const uint8_t _flow_flags, void *txv,
273  const int list_id)
274 {
275  InspectionBuffer *buffer = SCInspectionBufferGet(det_ctx, list_id);
276  if (buffer->inspect == NULL) {
277  uint32_t b_len = 0;
278  const uint8_t *b = NULL;
279  void *thread_buf = SCDetectThreadCtxGetGlobalKeywordThreadCtx(det_ctx, g_http2_thread_id);
280  if (thread_buf == NULL)
281  return NULL;
282  if (SCHttp2TxGetHostNorm(txv, &b, &b_len, thread_buf) != 1)
283  return NULL;
284  if (b == NULL || b_len == 0)
285  return NULL;
286 
287  SCInspectionBufferSetupAndApplyTransforms(det_ctx, list_id, buffer, b, b_len, transforms);
288  }
289 
290  return buffer;
291 }
292 
293 static InspectionBuffer *GetRawData2(DetectEngineThreadCtx *det_ctx,
294  const DetectEngineTransforms *transforms, Flow *_f, const uint8_t _flow_flags, void *txv,
295  const int list_id)
296 {
297  InspectionBuffer *buffer = SCInspectionBufferGet(det_ctx, list_id);
298  if (buffer->inspect == NULL) {
299  uint32_t b_len = 0;
300  const uint8_t *b = NULL;
301  void *thread_buf =
302  SCDetectThreadCtxGetGlobalKeywordThreadCtx(det_ctx, g_http2_raw_thread_id);
303  if (thread_buf == NULL)
304  return NULL;
305 
306  if (SCHttp2TxGetHost(txv, &b, &b_len, thread_buf) != 1)
307  return NULL;
308  if (b == NULL || b_len == 0)
309  return NULL;
310 
311  SCInspectionBufferSetupAndApplyTransforms(det_ctx, list_id, buffer, b, b_len, transforms);
312  }
313 
314  return buffer;
315 }
316 
317 /**
318  * \brief The setup function for the http_raw_host keyword for a signature.
319  *
320  * \param de_ctx Pointer to the detection engine context.
321  * \param s Pointer to the signature for the current Signature being
322  * parsed from the rules.
323  * \param m Pointer to the head of the SigMatch for the current rule
324  * being parsed.
325  * \param arg Pointer to the string holding the keyword value.
326  *
327  * \retval 0 On success
328  * \retval -1 On failure
329  */
330 int DetectHttpHRHSetup(DetectEngineCtx *de_ctx, Signature *s, const char *arg)
331 {
333  de_ctx, s, arg, DETECT_HTTP_RAW_HOST, g_http_raw_host_buffer_id, ALPROTO_HTTP1);
334 }
335 
336 /**
337  * \brief this function setup the http.host keyword used in the rule
338  *
339  * \param de_ctx Pointer to the Detection Engine Context
340  * \param s Pointer to the Signature to which the current keyword belongs
341  * \param str Should hold an empty string always
342  *
343  * \retval 0 On success
344  */
345 static int DetectHttpHostRawSetupSticky(DetectEngineCtx *de_ctx, Signature *s, const char *str)
346 {
347  if (SCDetectBufferSetActiveList(de_ctx, s, g_http_raw_host_buffer_id) < 0)
348  return -1;
350  return -1;
351  return 0;
352 }
353 
354 static InspectionBuffer *GetRawData(DetectEngineThreadCtx *det_ctx,
355  const DetectEngineTransforms *transforms, Flow *_f,
356  const uint8_t _flow_flags, void *txv, const int list_id)
357 {
358  InspectionBuffer *buffer = SCInspectionBufferGet(det_ctx, list_id);
359  if (buffer->inspect == NULL) {
360  htp_tx_t *tx = (htp_tx_t *)txv;
361 
362  const uint8_t *data = NULL;
363  uint32_t data_len = 0;
364 
365  if (htp_uri_hostname(htp_tx_parsed_uri(tx)) == NULL) {
366  if (htp_tx_request_headers(tx) == NULL)
367  return NULL;
368 
369  const htp_header_t *h = htp_tx_request_header(tx, "Host");
370  if (h == NULL || htp_header_value(h) == NULL)
371  return NULL;
372 
373  data = htp_header_value_ptr(h);
374  data_len = (uint32_t)htp_header_value_len(h);
375  } else {
376  data = (const uint8_t *)bstr_ptr(htp_uri_hostname(htp_tx_parsed_uri(tx)));
377  data_len = (uint32_t)bstr_len(htp_uri_hostname(htp_tx_parsed_uri(tx)));
378  }
379 
381  det_ctx, list_id, buffer, data, data_len, transforms);
382  }
383 
384  return buffer;
385 }
386 
387 /************************************Unittests*********************************/
388 
389 #ifdef UNITTESTS
390 #include "tests/detect-http-host.c"
391 #endif /* UNITTESTS */
392 
393 /**
394  * @}
395  */
DETECT_CONTENT_NOCASE
#define DETECT_CONTENT_NOCASE
Definition: detect-content.h:29
DetectHttpHHRegister
void DetectHttpHHRegister(void)
Registers the keyword handlers for the "http_host" keyword.
Definition: detect-http-host.c:91
SigTableElmt_::url
const char * url
Definition: detect.h:1545
SignatureInitDataBuffer_::head
SigMatch * head
Definition: detect.h:543
detect-content.h
detect-engine.h
SIGMATCH_NOOPT
#define SIGMATCH_NOOPT
Definition: detect-engine-register.h:308
SigTableElmt_::desc
const char * desc
Definition: detect.h:1544
sigmatch_table
SigTableElmt * sigmatch_table
Definition: detect-parse.c:78
DetectEngineInspectBufferGeneric
uint8_t DetectEngineInspectBufferGeneric(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, const DetectEngineAppInspectionEngine *engine, const Signature *s, Flow *f, uint8_t flags, void *alstate, void *txv, uint64_t tx_id)
Do the content inspection & validation for a signature.
Definition: detect-engine.c:2267
flow-util.h
SCInspectionBufferGet
InspectionBuffer * SCInspectionBufferGet(DetectEngineThreadCtx *det_ctx, const int list_id)
Definition: detect-engine-inspect-buffer.c:56
DETECT_HTTP_HOST
@ DETECT_HTTP_HOST
Definition: detect-engine-register.h:196
SigTableElmt_::name
const char * name
Definition: detect.h:1542
stream-tcp.h
DetectEngineTransforms
Definition: detect.h:395
DETECT_CONTENT
@ DETECT_CONTENT
Definition: detect-engine-register.h:78
SigTableElmt_::flags
uint32_t flags
Definition: detect.h:1533
SCDetectThreadCtxGetGlobalKeywordThreadCtx
void * SCDetectThreadCtxGetGlobalKeywordThreadCtx(DetectEngineThreadCtx *det_ctx, int id)
Retrieve thread local keyword ctx by id.
Definition: detect-engine.c:4097
InspectionBuffer
Definition: detect-engine-inspect-buffer.h:34
threads.h
Flow_
Flow data structure.
Definition: flow.h:359
DetectEngineCtx_
main detection engine ctx
Definition: detect.h:995
DetectBufferTypeRegisterValidateCallback
void DetectBufferTypeRegisterValidateCallback(const char *name, bool(*ValidateCallback)(const Signature *, const char **sigerror, const DetectBufferType *))
Definition: detect-engine.c:1675
DETECT_HTTP_RAW_HOST
@ DETECT_HTTP_RAW_HOST
Definition: detect-engine-register.h:197
SCInspectionBufferSetupAndApplyTransforms
void SCInspectionBufferSetupAndApplyTransforms(DetectEngineThreadCtx *det_ctx, const int list_id, InspectionBuffer *buffer, const uint8_t *data, const uint32_t data_len, const DetectEngineTransforms *transforms)
setup the buffer with our initial data
Definition: detect-engine-inspect-buffer.c:197
SCDetectBufferSetActiveList
int SCDetectBufferSetActiveList(DetectEngineCtx *de_ctx, Signature *s, const int list)
Definition: detect-engine-buffer.c:29
DetectBufferType_
Definition: detect.h:454
DetectContentData_
Definition: detect-content.h:93
SCDetectSignatureSetAppProto
int SCDetectSignatureSetAppProto(Signature *s, AppProto alproto)
Definition: detect-parse.c:2613
SigTableElmt_::Setup
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
Definition: detect.h:1524
detect-pcre.h
detect-http-host.c
Handle HTTP host header. HHHD - Http Host Header Data.
DetectAppLayerMpmRegisterSubState
void DetectAppLayerMpmRegisterSubState(const char *name, int direction, int priority, PrefilterRegisterFunc PrefilterRegister, InspectionBufferGetDataPtr GetData, AppProto alproto, uint8_t sub_state, uint8_t tx_min_progress)
Definition: detect-engine-mpm.c:167
detect-engine-prefilter.h
DetectAppLayerInspectEngineRegister
void DetectAppLayerInspectEngineRegister(const char *name, AppProto alproto, uint32_t dir, uint8_t progress, InspectEngineFuncPtr Callback, InspectionBufferGetDataPtr GetData)
Registers an app inspection engine.
Definition: detect-engine.c:275
util-unittest-helper.h
DetectBufferTypeGetByName
int DetectBufferTypeGetByName(const char *name)
Definition: detect-engine.c:1452
SIG_FLAG_TOSERVER
#define SIG_FLAG_TOSERVER
Definition: detect.h:274
app-layer-htp.h
decode.h
util-debug.h
de_ctx
DetectEngineCtx * de_ctx
Definition: fuzz_siginit.c:22
DetectEngineThreadCtx_
Definition: detect.h:1316
DetectHttpHHRegisterTests
void DetectHttpHHRegisterTests(void)
Definition: detect-http-host.c:2576
detect-engine-mpm.h
detect.h
SigMatch_::next
struct SigMatch_ * next
Definition: detect.h:364
DETECT_HTTP_HOST_RAW
@ DETECT_HTTP_HOST_RAW
Definition: detect-engine-register.h:198
PrefilterGenericMpmRegister
int PrefilterGenericMpmRegister(DetectEngineCtx *de_ctx, SigGroupHead *sgh, MpmCtx *mpm_ctx, const DetectBufferMpmRegistry *mpm_reg, int list_id)
Definition: detect-engine-prefilter.c:1707
SCLogWarning
#define SCLogWarning(...)
Macro used to log WARNING messages.
Definition: util-debug.h:262
SigTableElmt_::alternative
uint16_t alternative
Definition: detect.h:1540
app-layer-parser.h
SigMatch_::ctx
SigMatchCtx * ctx
Definition: detect.h:363
SIGMATCH_INFO_CONTENT_MODIFIER
#define SIGMATCH_INFO_CONTENT_MODIFIER
Definition: detect-engine-register.h:328
DetectEngineContentModifierBufferSetup
int DetectEngineContentModifierBufferSetup(DetectEngineCtx *de_ctx, Signature *s, const char *arg, int sm_type, int sm_list, AppProto alproto)
Definition: detect-parse.c:183
DetectContentData_::flags
uint32_t flags
Definition: detect-content.h:104
Signature_::init_data
SignatureInitData * init_data
Definition: detect.h:775
ALPROTO_HTTP2
@ ALPROTO_HTTP2
Definition: app-layer-protos.h:69
detect-http-host.h
DetectBufferType_::id
int id
Definition: detect.h:457
suricata-common.h
SigMatch_::type
uint16_t type
Definition: detect.h:361
ALPROTO_HTTP1
@ ALPROTO_HTTP1
Definition: app-layer-protos.h:36
util-spm.h
DetectContentData_::content
uint8_t * content
Definition: detect-content.h:94
DetectAppLayerMpmRegister
void DetectAppLayerMpmRegister(const char *name, int direction, int priority, PrefilterRegisterFunc PrefilterRegister, InspectionBufferGetDataPtr GetData, AppProto alproto, uint8_t tx_min_progress)
register an app layer keyword for mpm
Definition: detect-engine-mpm.c:159
detect-engine-buffer.h
DetectAppLayerInspectEngineRegisterSubState
void DetectAppLayerInspectEngineRegisterSubState(const char *name, AppProto alproto, uint32_t dir, uint8_t sub_state, uint8_t progress, InspectEngineFuncPtr Callback, InspectionBufferGetDataPtr GetData)
register an app inspection engine for a tx type
Definition: detect-engine.c:298
SignatureInitData_::buffers
SignatureInitDataBuffer * buffers
Definition: detect.h:671
InspectionBuffer::inspect
const uint8_t * inspect
Definition: detect-engine-inspect-buffer.h:35
str
#define str(s)
Definition: suricata-common.h:313
DETECT_HTTP_HOST_CM
@ DETECT_HTTP_HOST_CM
Definition: detect-engine-register.h:195
Signature_::id
uint32_t id
Definition: detect.h:741
detect-parse.h
SignatureInitDataBuffer_::id
uint32_t id
Definition: detect.h:534
Signature_
Signature container.
Definition: detect.h:692
SigMatch_
a single match condition for a signature
Definition: detect.h:360
ALPROTO_HTTP
@ ALPROTO_HTTP
Definition: app-layer-protos.h:77
SIGMATCH_INFO_STICKY_BUFFER
#define SIGMATCH_INFO_STICKY_BUFFER
Definition: detect-engine-register.h:330
DetectContentData_::content_len
uint16_t content_len
Definition: detect-content.h:95
DetectBufferTypeSetDescriptionByName
void DetectBufferTypeSetDescriptionByName(const char *name, const char *desc)
Definition: detect-engine.c:1549
flow.h
SCDetectRegisterThreadCtxGlobalFuncs
int SCDetectRegisterThreadCtxGlobalFuncs(const char *name, void *(*InitFunc)(void *), void *data, void(*FreeFunc)(void *))
Register Thread keyword context Funcs (Global)
Definition: detect-engine.c:4053
SignatureInitData_::buffer_index
uint32_t buffer_index
Definition: detect.h:672
flow-var.h
SigTableElmt_::RegisterTests
void(* RegisterTests)(void)
Definition: detect.h:1531
app-layer.h