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
15
16
17
18
//! Generic Routing Encapsulation (GRE) AST definitions.

use core::marker::PhantomData;

/// Generic Routing Encapsulation (RFC 2784 / 2890) specification.
#[derive(Debug, Clone, PartialEq, Eq, Default)]
pub struct GreSpec<'a> {
    /// Optional 32-bit GRE Key.
    pub key: Option<u32>,
    /// Optional 32-bit Sequence Number.
    pub seq: Option<u32>,
    /// Protocol type of encapsulated payload.
    pub proto: Option<u16>,
    /// Checksum present flag.
    pub checksum: bool,
    /// Optional phantom reference.
    pub _marker: PhantomData<&'a ()>,
}