Skip to main content

simple_someip/protocol/sd/
mod.rs

1mod entry;
2mod error;
3mod flags;
4mod header;
5mod options;
6
7#[cfg(test)]
8pub(crate) mod test_support;
9
10use core::net::Ipv4Addr;
11
12/// Standard SOME/IP-SD multicast group address (239.255.0.255).
13pub const MULTICAST_IP: Ipv4Addr = Ipv4Addr::new(239, 255, 0, 255);
14/// Standard SOME/IP-SD port (30490).
15pub const MULTICAST_PORT: u16 = 30490;
16/// SOME/IP Message ID for service discovery messages (`0xFFFF_8100`).
17pub const MESSAGE_ID_VALUE: u32 = 0xffff_8100;
18
19// Export all definitions from the service discovery mod
20
21pub use entry::{
22    Entry, EntryIter, EntryType, EntryView, EventGroupEntry, OptionsCount, ServiceEntry,
23};
24pub use error::Error;
25pub use flags::Flags;
26pub use header::{Header, SdHeaderView};
27pub use options::{
28    MAX_CONFIGURATION_STRING_LENGTH, OptionIter, OptionType, OptionView, Options,
29    TransportProtocol, extract_ipv4_endpoint,
30};