frameassembly 1.0.1

A Domain-Specific Language (DSL) for writing deterministic network traffic to .pcap files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! PTP protocol AST definitions.

/// IEEE 1588 Precision Time Protocol specification.
#[derive(Debug, Clone, PartialEq, Eq, Default)]
pub struct PtpSpec<'a> {
    /// Message type name (e.g. SYNC, DELAY_REQ).
    pub msg_type: Option<&'a str>,
    /// Domain number.
    pub domain: Option<u8>,
    /// Sequence identifier.
    pub seq_id: Option<u16>,
    /// Clock identity string or hex bytes.
    pub clock_id: Option<&'a str>,
}