|
|
|
@ -403,8 +403,6 @@ pub struct DNSState {
|
|
|
|
// Transactions.
|
|
|
|
// Transactions.
|
|
|
|
pub transactions: Vec<DNSTransaction>,
|
|
|
|
pub transactions: Vec<DNSTransaction>,
|
|
|
|
|
|
|
|
|
|
|
|
pub events: u16,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config: Option<ConfigTracker>,
|
|
|
|
config: Option<ConfigTracker>,
|
|
|
|
|
|
|
|
|
|
|
|
gap: bool,
|
|
|
|
gap: bool,
|
|
|
|
@ -416,7 +414,6 @@ impl DNSState {
|
|
|
|
return DNSState{
|
|
|
|
return DNSState{
|
|
|
|
tx_id: 0,
|
|
|
|
tx_id: 0,
|
|
|
|
transactions: Vec::new(),
|
|
|
|
transactions: Vec::new(),
|
|
|
|
events: 0,
|
|
|
|
|
|
|
|
config: None,
|
|
|
|
config: None,
|
|
|
|
gap: false,
|
|
|
|
gap: false,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
@ -426,7 +423,6 @@ impl DNSState {
|
|
|
|
return DNSState{
|
|
|
|
return DNSState{
|
|
|
|
tx_id: 0,
|
|
|
|
tx_id: 0,
|
|
|
|
transactions: Vec::new(),
|
|
|
|
transactions: Vec::new(),
|
|
|
|
events: 0,
|
|
|
|
|
|
|
|
config: None,
|
|
|
|
config: None,
|
|
|
|
gap: false,
|
|
|
|
gap: false,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
@ -496,7 +492,6 @@ impl DNSState {
|
|
|
|
let tx = &mut self.transactions[len - 1];
|
|
|
|
let tx = &mut self.transactions[len - 1];
|
|
|
|
core::sc_app_layer_decoder_events_set_event_raw(&mut tx.events,
|
|
|
|
core::sc_app_layer_decoder_events_set_event_raw(&mut tx.events,
|
|
|
|
event as u8);
|
|
|
|
event as u8);
|
|
|
|
self.events += 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pub fn parse_request(&mut self, input: &[u8]) -> bool {
|
|
|
|
pub fn parse_request(&mut self, input: &[u8]) -> bool {
|
|
|
|
|