/// Function to get the TX iterator
pub get_tx_iterator: Option<GetTxIteratorFn>,
- // Function to set TX detect flags.
- pub set_tx_detect_flags: Option<SetTxDetectFlagsFn>,
-
- // Function to get TX detect flags.
- pub get_tx_detect_flags: Option<GetTxDetectFlagsFn>,
-
pub get_tx_data: GetTxDataFn,
// Function to apply config to a TX. Optional. Normal (bidirectional)
max_tx_id: u64,
istate: &mut u64)
-> AppLayerGetTxIterTuple;
-pub type GetTxDetectFlagsFn = unsafe extern "C" fn(*mut c_void, u8) -> u64;
-pub type SetTxDetectFlagsFn = unsafe extern "C" fn(*mut c_void, u8, u64);
pub type GetTxDataFn = unsafe extern "C" fn(*mut c_void) -> *mut AppLayerTxData;
pub type ApplyTxConfigFn = unsafe extern "C" fn (*mut c_void, *mut c_void, c_int, AppLayerTxConfig);
pub fn AppLayerParserStateIssetFlag(state: *mut c_void, flag: u8) -> c_int;
pub fn AppLayerParserConfParserEnabled(ipproto: *const c_char, proto: *const c_char) -> c_int;
pub fn AppLayerParserRegisterGetTxIterator(ipproto: u8, alproto: AppProto, fun: AppLayerGetTxIteratorFn);
- pub fn AppLayerParserRegisterDetectFlagsFuncs(
- ipproto: u8,
- alproto: AppProto,
- GetTxDetectFlats: GetTxDetectFlagsFn,
- SetTxDetectFlags: SetTxDetectFlagsFn,
- );
pub fn AppLayerParserRegisterOptionFlags(ipproto: u8, alproto: AppProto, flags: u32);
}
localstorage_free: None,
get_files: None,
get_tx_iterator: Some(rs_template_state_get_tx_iterator),
- get_tx_detect_flags: None,
- set_tx_detect_flags: None,
get_tx_data: rs_template_get_tx_data,
apply_tx_config: None,
};
localstorage_free : None,
get_files : None,
get_tx_iterator : Some(rs_dhcp_state_get_tx_iterator),
- set_tx_detect_flags: None,
- get_tx_detect_flags: None,
get_tx_data : rs_dhcp_get_tx_data,
apply_tx_config : None,
};
localstorage_free: None,
get_files: None,
get_tx_iterator: None,
- get_tx_detect_flags: None,
- set_tx_detect_flags: None,
get_de_state: rs_dns_state_get_tx_detect_state,
set_de_state: rs_dns_state_set_tx_detect_state,
get_tx_data: rs_dns_state_get_tx_data,
localstorage_free: None,
get_files: None,
get_tx_iterator: None,
- get_tx_detect_flags: None,
- set_tx_detect_flags: None,
get_de_state: rs_dns_state_get_tx_detect_state,
set_de_state: rs_dns_state_set_tx_detect_state,
get_tx_data: rs_dns_state_get_tx_data,
localstorage_free : None,
get_files : None,
get_tx_iterator : None,
- get_tx_detect_flags: None,
- set_tx_detect_flags: None,
get_tx_data : rs_ikev2_get_tx_data,
apply_tx_config : None,
};
localstorage_free : None,
get_files : None,
get_tx_iterator : None,
- get_tx_detect_flags: None,
- set_tx_detect_flags: None,
get_tx_data : rs_krb5_get_tx_data,
apply_tx_config : None,
};
localstorage_free : None,
get_files : None,
get_tx_iterator : None,
- get_tx_detect_flags: None,
- set_tx_detect_flags: None,
get_tx_data : rs_ntp_get_tx_data,
apply_tx_config : None,
};
localstorage_free: None,
get_files: None,
get_tx_iterator: None,
- get_tx_detect_flags: None,
- set_tx_detect_flags: None,
get_tx_data: rs_rdp_get_tx_data,
apply_tx_config: None,
};
localstorage_free: None,
get_files: None,
get_tx_iterator: Some(rs_rfb_state_get_tx_iterator),
- get_tx_detect_flags: None,
- set_tx_detect_flags: None,
get_tx_data: rs_rfb_get_tx_data,
apply_tx_config: None,
};
localstorage_free: None,
get_files: None,
get_tx_iterator: None,
- get_tx_detect_flags: None,
- set_tx_detect_flags: None,
get_tx_data: rs_sip_get_tx_data,
apply_tx_config: None,
};
localstorage_free : None,
get_files : None,
get_tx_iterator : None,
- get_tx_detect_flags: None,
- set_tx_detect_flags: None,
get_tx_data : rs_snmp_get_tx_data,
apply_tx_config : None,
};
localstorage_free: None,
get_files: None,
get_tx_iterator: None,
- get_tx_detect_flags: None,
- set_tx_detect_flags: None,
get_tx_data: rs_ssh_get_tx_data,
apply_tx_config: None,
};
const AppProto alproto, void *alstate, uint64_t min_tx_id,
uint64_t max_tx_id, AppLayerGetTxIterState *istate);
- void (*SetTxDetectFlags)(void *, uint8_t, uint64_t);
- uint64_t (*GetTxDetectFlags)(void *, uint8_t);
-
AppLayerTxData *(*GetTxData)(void *tx);
bool (*ApplyTxConfig)(void *state, void *tx, int mode, AppLayerTxConfig);
} AppLayerParser;