mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-07-27 17:38:10 -07:00
Update lib/src/analysis/incomplete_sib.rs
Co-authored-by: Will Greenberg <willg@eff.org>
This commit is contained in:
committed by
Will Greenberg
parent
672d825bdb
commit
68b13ea09e
@@ -37,19 +37,10 @@ impl Analyzer for IncompleteSibAnalyzer {
|
|||||||
fn analyze_information_element(&mut self, ie: &InformationElement) -> Option<Event> {
|
fn analyze_information_element(&mut self, ie: &InformationElement) -> Option<Event> {
|
||||||
self.packet_num += 1;
|
self.packet_num += 1;
|
||||||
|
|
||||||
let sch_msg = match ie {
|
unpack!(InformationElement::LTE(lte_ie) = ie);
|
||||||
InformationElement::LTE(lte_ie) => match &**lte_ie {
|
unpack!(LteInformationElement::BcchDlSch(sch_msg) = &**lte_ie);
|
||||||
LteInformationElement::BcchDlSch(sch_msg) => sch_msg,
|
unpack!(BCCH_DL_SCH_MessageType::C1(c1) = &sch_msg.message);
|
||||||
_ => return None,
|
unpack!(BCCH_DL_SCH_MessageType_c1::SystemInformationBlockType1(sib1) = c1);
|
||||||
},
|
|
||||||
_ => return None,
|
|
||||||
};
|
|
||||||
let BCCH_DL_SCH_MessageType::C1(BCCH_DL_SCH_MessageType_c1::SystemInformationBlockType1(
|
|
||||||
sib1,
|
|
||||||
)) = &sch_msg.message
|
|
||||||
else {
|
|
||||||
return None;
|
|
||||||
};
|
|
||||||
|
|
||||||
if sib1.scheduling_info_list.0.len() < 2 {
|
if sib1.scheduling_info_list.0.len() < 2 {
|
||||||
return Some(Event {
|
return Some(Event {
|
||||||
|
|||||||
Reference in New Issue
Block a user