rm is_gsmtap_type

Instead of tracking which types are gsmtap-friendly, just rely on the
parser result.
This commit is contained in:
Will Greenberg
2026-07-15 15:06:14 -07:00
parent 15a7f99d09
commit 1702184a10
2 changed files with 0 additions and 18 deletions
-15
View File
@@ -156,21 +156,6 @@ impl Message {
Err(err) => Err(DiagParsingError::HdlcDecapsulationError(err, data.to_vec())),
}
}
/// Returns whether this message should be parsed into a GSMTAP packet for
/// display in pcap files
pub fn is_gsmtap_message(&self) -> bool {
let Message::Log { body, .. } = self else {
return false;
};
matches!(
body,
LogBody::LteRrcOtaMessage { .. }
| LogBody::LteMacRachResponse { .. }
| LogBody::LteMl1NeighborCellsMeasurements { .. }
| LogBody::Nas4GMessage { .. }
)
}
}
#[derive(Debug, Clone, PartialEq, DekuRead, DekuWrite)]
-3
View File
@@ -17,9 +17,6 @@ pub enum GsmtapParserError {
}
pub fn parse(msg: Message) -> Result<Option<(Timestamp, GsmtapMessage)>, GsmtapParserError> {
if !msg.is_gsmtap_message() {
return Ok(None);
}
if let Message::Log {
timestamp, body, ..
} = msg