set_de_state: rs_dns_state_set_tx_detect_state,
get_tx_data: rs_dns_state_get_tx_data,
apply_tx_config: Some(rs_dns_apply_tx_config),
- flags: 0,
+ flags: APP_LAYER_PARSER_OPT_UNIDIR_TXS,
};
let ip_proto_str = CString::new("udp").unwrap();
if AppLayerParserConfParserEnabled(ip_proto_str.as_ptr(), parser.name) != 0 {
let _ = AppLayerRegisterParser(&parser, alproto);
}
- AppLayerParserRegisterOptionFlags(IPPROTO_UDP as u8, ALPROTO_DNS,
- crate::applayer::APP_LAYER_PARSER_OPT_UNIDIR_TXS);
}
}
set_de_state: rs_dns_state_set_tx_detect_state,
get_tx_data: rs_dns_state_get_tx_data,
apply_tx_config: Some(rs_dns_apply_tx_config),
- flags: 0,
+ flags: APP_LAYER_PARSER_OPT_ACCEPT_GAPS | APP_LAYER_PARSER_OPT_UNIDIR_TXS,
};
let ip_proto_str = CString::new("tcp").unwrap();
if AppLayerParserConfParserEnabled(ip_proto_str.as_ptr(), parser.name) != 0 {
let _ = AppLayerRegisterParser(&parser, alproto);
}
- AppLayerParserRegisterOptionFlags(IPPROTO_TCP as u8, ALPROTO_DNS,
- crate::applayer::APP_LAYER_PARSER_OPT_ACCEPT_GAPS);
- AppLayerParserRegisterOptionFlags(IPPROTO_TCP as u8, ALPROTO_DNS,
- crate::applayer::APP_LAYER_PARSER_OPT_UNIDIR_TXS);
}
}