Had been deprecated and non-functional since 2017.
/// Function to free local storage
pub localstorage_free: Option<LocalStorageFreeFn>,
- /// Function to get transaction MPM ID
- pub get_tx_mpm_id: Option<GetTxMpmIDFn>,
- /// Function to set transaction MPM ID
- pub set_tx_mpm_id: Option<SetTxMpmIDFn>,
-
/// Function to get files
pub get_files: Option<GetFilesFn>,
pub type SetTxLoggedFn = extern "C" fn (*mut c_void, *mut c_void, u32);
pub type LocalStorageNewFn = extern "C" fn () -> *mut c_void;
pub type LocalStorageFreeFn = extern "C" fn (*mut c_void);
-pub type GetTxMpmIDFn = extern "C" fn (*mut c_void) -> u64;
-pub type SetTxMpmIDFn = extern "C" fn (*mut c_void, u64) -> c_int;
pub type GetFilesFn = extern "C" fn (*mut c_void, u8) -> *mut FileContainer;
pub type GetTxIteratorFn = extern "C" fn (ipproto: u8, alproto: AppProto,
state: *mut c_void,
get_eventinfo_byid : Some(rs_template_state_get_event_info_by_id),
localstorage_new: None,
localstorage_free: None,
- get_tx_mpm_id: None,
- set_tx_mpm_id: None,
get_files: None,
get_tx_iterator: Some(rs_template_state_get_tx_iterator),
get_tx_detect_flags: None,
get_eventinfo_byid : None,
localstorage_new : None,
localstorage_free : None,
- get_tx_mpm_id : None,
- set_tx_mpm_id : None,
get_files : None,
get_tx_iterator : Some(rs_dhcp_state_get_tx_iterator),
set_tx_detect_flags: None,
get_eventinfo_byid: Some(rs_dns_state_get_event_info_by_id),
localstorage_new: None,
localstorage_free: None,
- get_tx_mpm_id: None,
- set_tx_mpm_id: None,
get_files: None,
get_tx_iterator: None,
get_tx_detect_flags: Some(rs_dns_tx_get_detect_flags),
get_eventinfo_byid: Some(rs_dns_state_get_event_info_by_id),
localstorage_new: None,
localstorage_free: None,
- get_tx_mpm_id: None,
- set_tx_mpm_id: None,
get_files: None,
get_tx_iterator: None,
get_tx_detect_flags: Some(rs_dns_tx_get_detect_flags),
get_eventinfo_byid : Some(rs_ikev2_state_get_event_info_by_id),
localstorage_new : None,
localstorage_free : None,
- get_tx_mpm_id : None,
- set_tx_mpm_id : None,
get_files : None,
get_tx_iterator : None,
get_tx_detect_flags: None,
get_eventinfo_byid : Some(rs_krb5_state_get_event_info_by_id),
localstorage_new : None,
localstorage_free : None,
- get_tx_mpm_id : None,
- set_tx_mpm_id : None,
get_files : None,
get_tx_iterator : None,
get_tx_detect_flags: Some(rs_krb5_tx_detect_flags_get),
get_eventinfo_byid : Some(rs_ntp_state_get_event_info_by_id),
localstorage_new : None,
localstorage_free : None,
- get_tx_mpm_id : None,
- set_tx_mpm_id : None,
get_files : None,
get_tx_iterator : None,
get_tx_detect_flags: None,
get_eventinfo_byid: None,
localstorage_new: None,
localstorage_free: None,
- get_tx_mpm_id: None,
- set_tx_mpm_id: None,
get_files: None,
get_tx_iterator: None,
get_tx_detect_flags: None,
get_eventinfo_byid : Some(rs_rfb_state_get_event_info_by_id),
localstorage_new: None,
localstorage_free: None,
- get_tx_mpm_id: None,
- set_tx_mpm_id: None,
get_files: None,
get_tx_iterator: Some(rs_rfb_state_get_tx_iterator),
get_tx_detect_flags: Some(rs_rfb_get_tx_detect_flags),
get_eventinfo_byid: Some(rs_sip_state_get_event_info_by_id),
localstorage_new: None,
localstorage_free: None,
- get_tx_mpm_id: None,
- set_tx_mpm_id: None,
get_files: None,
get_tx_iterator: None,
get_tx_detect_flags: None,
get_eventinfo_byid : Some(rs_snmp_state_get_event_info_by_id),
localstorage_new : None,
localstorage_free : None,
- get_tx_mpm_id : None,
- set_tx_mpm_id : None,
get_files : None,
get_tx_iterator : None,
get_tx_detect_flags: Some(rs_snmp_get_tx_detect_flags),
get_eventinfo_byid: Some(rs_ssh_state_get_event_info_by_id),
localstorage_new: None,
localstorage_free: None,
- get_tx_mpm_id: None,
- set_tx_mpm_id: None,
get_files: None,
get_tx_iterator: None,
get_tx_detect_flags: Some(rs_ssh_get_tx_detect_flags),
SCReturn;
}
-void AppLayerParserRegisterMpmIDsFuncs(uint8_t ipproto, AppProto alproto,
- uint64_t(*GetTxMpmIDs)(void *tx),
- int (*SetTxMpmIDs)(void *tx, uint64_t))
-{
- SCEnter();
- SCLogWarning(SC_WARN_DEPRECATED, "%u/%s: GetTxMpmIDs/SetTxMpmIDs is no longer used",
- ipproto, AppProtoToString(alproto));
- SCReturn;
-}
-
void AppLayerParserRegisterSetStreamDepthFlag(uint8_t ipproto, AppProto alproto,
void (*SetStreamDepthFlag)(void *tx, uint8_t flags))
{
void AppLayerParserRegisterGetStreamDepth(uint8_t ipproto,
AppProto alproto,
uint32_t (*GetStreamDepth)(void));
-void AppLayerParserRegisterMpmIDsFuncs(uint8_t ipproto, AppProto alproto,
- uint64_t (*GetTxMpmIDs)(void *tx),
- int (*SetTxMpmIDs)(void *tx, uint64_t));
void AppLayerParserRegisterDetectFlagsFuncs(uint8_t ipproto, AppProto alproto,
uint64_t(*GetTxDetectFlags)(void *tx, uint8_t dir),
void (*SetTxDetectFlags)(void *tx, uint8_t dir, uint64_t));
AppLayerParserRegisterLocalStorageFunc(p->ip_proto, alproto,
p->LocalStorageAlloc, p->LocalStorageFree);
}
- if (p->GetTxMpmIDs && p->SetTxMpmIDs) {
- AppLayerParserRegisterMpmIDsFuncs(p->ip_proto, alproto,
- p->GetTxMpmIDs, p->SetTxMpmIDs);
- }
if (p->StateGetFiles) {
AppLayerParserRegisterGetFilesFunc(p->ip_proto, alproto,
p->StateGetFiles);
void *(*LocalStorageAlloc)(void);
void (*LocalStorageFree)(void *);
- uint64_t (*GetTxMpmIDs)(void *tx);
- int (*SetTxMpmIDs)(void *tx, uint64_t);
-
FileContainer *(*StateGetFiles)(void *, uint8_t);
AppLayerGetTxIterTuple (*GetTxIterator)(const uint8_t ipproto,