add version

This commit is contained in:
Cooper Quintin
2025-07-16 14:42:17 -07:00
committed by Will Greenberg
parent fbac464b46
commit a4cb9454bd

View File

@@ -1,8 +1,8 @@
use std::borrow::Cow;
use pycrate_rs::nas::NASMessage;
use pycrate_rs::nas::emm::EMMMessage;
use pycrate_rs::nas::generated::emm::emm_security_mode_command::NASSecAlgoCiphAlgo::EPSEncryptionAlgorithmEEA0Null;
use pycrate_rs::nas::NASMessage;
use super::analyzer::{Analyzer, Event, EventType, Severity};
use super::information_element::{InformationElement, LteInformationElement};
@@ -34,6 +34,10 @@ impl Analyzer for NasNullCipherAnalyzer {
)
}
fn get_version(&self) -> u32 {
1
}
fn analyze_information_element(&mut self, ie: &InformationElement) -> Option<Event> {
self.packet_num += 1;
let payload = match ie {