Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LTE parsing, an Analyzer trait, and an implementation of one analyzer #36

Merged
merged 5 commits into from
Feb 16, 2024

Conversation

wgreenberg
Copy link
Collaborator

@wgreenberg wgreenberg commented Feb 8, 2024

This adds a TON of autogenerated parser code and ASN.1 specs that aren't meant to be reviewed! Feel free to ignore basically everything in the telcom-parser dir except its readme and lib.rs files

Fixes #21
Fixes #25

@wgreenberg wgreenberg force-pushed the lte-parsing branch 5 times, most recently from e7259d3 to 34a59c6 Compare February 13, 2024 22:47
This crate's code is nearly entirely autogenerated using an ASN.1
parsing tool called hampi. The code in src/lte_rrc.rs shouldn't be
manually modified, and should only be regenerated using hampi (or a
similar tool).
This'll let us convert a Gsmtap message into a fully parsed LTE
message.
This trait will be implemented by all of our heuristics, giving
us a uniform interface for collecting events and displaying them
to the user.
This also renames the lte_parser crate to telcom_parser, since it'll
handle any 2G or 3G parsing going forward.
let data = hex_to_bin("484c469010600018fd1a9207e22103108ac21bdc09802292cdd20000");
let mut asn_data = PerCodecData::from_slice_uper(&data);
let sib1 = BCCH_DL_SCH_Message::uper_decode(&mut asn_data);
dbg!(&sib1);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a blocker for now but we do need to complete this test. Give it some sib fields to match or something.

@cooperq cooperq merged commit 5f4ac7d into main Feb 16, 2024
1 check passed
@cooperq cooperq deleted the lte-parsing branch June 6, 2024 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

basic heuristics on PCAP Further parsing of LTE messages
2 participants