mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-30 09:29:58 -07:00
track packet num in analysis harness
This commit is contained in:
committed by
Cooper Quintin
parent
7475cd5cd9
commit
87d6d1691a
@@ -49,6 +49,7 @@ impl Analyzer for LteSib6And7DowngradeAnalyzer {
|
||||
fn analyze_information_element(
|
||||
&mut self,
|
||||
ie: &InformationElement,
|
||||
packet_num: usize,
|
||||
) -> Option<super::analyzer::Event> {
|
||||
let sibs = &self.unpack_system_information(ie)?.0;
|
||||
for sib in sibs {
|
||||
@@ -62,9 +63,10 @@ impl Analyzer for LteSib6And7DowngradeAnalyzer {
|
||||
{
|
||||
return Some(Event {
|
||||
event_type: EventType::High,
|
||||
message:
|
||||
"LTE cell advertised a 3G cell for priority 0 reselection"
|
||||
.to_string(),
|
||||
message: format!(
|
||||
"LTE cell advertised a 3G cell for priority 0 reselection (packet {})",
|
||||
packet_num
|
||||
),
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -77,9 +79,10 @@ impl Analyzer for LteSib6And7DowngradeAnalyzer {
|
||||
{
|
||||
return Some(Event {
|
||||
event_type: EventType::High,
|
||||
message:
|
||||
"LTE cell advertised a 3G cell for priority 0 reselection"
|
||||
.to_string(),
|
||||
message: format!(
|
||||
"LTE cell advertised a 3G cell for priority 0 reselection (packet {})",
|
||||
packet_num
|
||||
),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user