Skip to content

Commit b5e5ffc

Browse files
committed
ntp: enable keywords for firewall mode
Ticket: OISF#8394
1 parent b1b6e4e commit b5e5ffc

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

rust/src/ntp/detect.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ use crate::detect::uint::{
2222
};
2323
use crate::detect::{
2424
helper_keyword_register_sticky_buffer, SigTableElmtStickyBuffer, SIGMATCH_INFO_ENUM_UINT,
25-
SIGMATCH_INFO_UINT8,
25+
SIGMATCH_INFO_UINT8, SIGMATCH_SUPPORT_FIREWALL
2626
};
2727
use std::ffi::CStr;
2828
use std::os::raw::{c_int, c_void};
2929
use suricata_sys::sys::{
3030
DetectEngineCtx, DetectEngineThreadCtx, Flow, SCDetectBufferSetActiveList,
3131
SCDetectHelperBufferProgressMpmRegister, SCDetectHelperBufferProgressRegister,
3232
SCDetectHelperKeywordRegister, SCDetectSignatureSetAppProto, SCSigMatchAppendSMToList,
33-
SCSigTableAppLiteElmt, SigMatchCtx, Signature,
33+
SCSigTableAppLiteElmt, SigMatchCtx, Signature
3434
};
3535

3636
static mut G_NTP_VERSION_KW_ID: u16 = 0;
@@ -201,7 +201,7 @@ pub(super) unsafe extern "C" fn detect_ntp_register() {
201201
AppLayerTxMatch: Some(ntp_detect_version_match),
202202
Setup: Some(ntp_detect_version_setup),
203203
Free: Some(ntp_detect_u8_free),
204-
flags: SIGMATCH_INFO_UINT8,
204+
flags: SIGMATCH_INFO_UINT8 | SIGMATCH_SUPPORT_FIREWALL,
205205
};
206206
G_NTP_VERSION_KW_ID = SCDetectHelperKeywordRegister(&kw);
207207
G_NTP_VERSION_BUFFER_ID = SCDetectHelperBufferProgressRegister(
@@ -218,7 +218,7 @@ pub(super) unsafe extern "C" fn detect_ntp_register() {
218218
AppLayerTxMatch: Some(ntp_detect_mode_match),
219219
Setup: Some(ntp_detect_mode_setup),
220220
Free: Some(ntp_detect_u8_free),
221-
flags: SIGMATCH_INFO_UINT8 | SIGMATCH_INFO_ENUM_UINT,
221+
flags: SIGMATCH_INFO_UINT8 | SIGMATCH_INFO_ENUM_UINT | SIGMATCH_SUPPORT_FIREWALL,
222222
};
223223
G_NTP_MODE_KW_ID = SCDetectHelperKeywordRegister(&kw);
224224
G_NTP_MODE_BUFFER_ID = SCDetectHelperBufferProgressRegister(
@@ -235,7 +235,7 @@ pub(super) unsafe extern "C" fn detect_ntp_register() {
235235
AppLayerTxMatch: Some(ntp_detect_stratum_match),
236236
Setup: Some(ntp_detect_stratum_setup),
237237
Free: Some(ntp_detect_u8_free),
238-
flags: SIGMATCH_INFO_UINT8,
238+
flags: SIGMATCH_INFO_UINT8 | SIGMATCH_SUPPORT_FIREWALL,
239239
};
240240
G_NTP_STRATUM_KW_ID = SCDetectHelperKeywordRegister(&kw);
241241
G_NTP_STRATUM_BUFFER_ID = SCDetectHelperBufferProgressRegister(

0 commit comments

Comments
 (0)