MCPcopy Index your code
hub / github.com/JulianSchmid/someip-parse-rs

github.com/JulianSchmid/someip-parse-rs @v0.6.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.6.2 ↗ · + Follow
248 symbols 417 edges 29 files 22 documented · 9%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Crates.io docs.rs Build Status Github Build Status Gitlab codecov

someip_parse

A Rust library for parsing the SOME/IP network protocol (without payload interpretation).

Usage

Add the following to your Cargo.toml:

[dependencies]
someip_parse = "0.6.1"

Example

examples/print_messages.rs:

use someip_parse::SomeipMsgsIterator;

//trying parsing some ip messages located in a udp payload
for someip_message in SomeipMsgsIterator::new(&udp_payload) {
    match someip_message {
        Ok(value) => {
            if value.is_someip_sd() {
                println!("someip service discovery packet");
            } else {
                println!("0x{:x} (service id: 0x{:x}, method/event id: 0x{:x})",
                         value.message_id(),
                         value.service_id(),
                         value.event_or_method_id());
            }
            println!("  with payload {:?}", value.payload())
        },
        Err(_) => {} //error reading a someip packet (based on size, protocol version value or message type value)
    }
}

References

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option. The corresponding license texts can be found in the LICENSE-APACHE file and the LICENSE-MIT file.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.

Core symbols most depended-on inside this repo

sequence
called by 24
src/tp_pool.rs
sequence
called by 15
src/tp_buf.rs
offset
called by 11
src/tp_header.rs
to_vec
called by 8
src/tp_pool.rs
consume
called by 7
src/tp_pool.rs
try_finalize
called by 6
src/tp_buf.rs
send_to_buffer
called by 6
src/tp_buf.rs
to_bytes
called by 5
src/sd.rs

Shape

Method 116
Function 85
Class 27
Enum 20

Languages

Rust100%

Modules by API surface

src/sd.rs51 symbols
src/someip_msg_slice.rs22 symbols
src/tp_pool.rs19 symbols
src/someip_header.rs19 symbols
src/tp_buf.rs16 symbols
src/tp_header.rs12 symbols
src/err/someip_header_read_error.rs10 symbols
src/tp_buf_config.rs7 symbols
src/err/someip_slice_error.rs7 symbols
src/err/slice_write_space_error.rs7 symbols
src/err/len_error.rs7 symbols
src/err/layer.rs7 symbols

For agents

$ claude mcp add someip-parse-rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page