• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 use crate::{defrag::*, *};
2 
3 /// Values identifying a fragmented packet.
4 #[derive(Debug, Clone, Hash, Eq, PartialEq)]
5 pub struct IpFragId<CustomChannelId = ()>
6 where
7     CustomChannelId: core::hash::Hash + Eq + PartialEq + Clone + Sized,
8 {
9     /// First VLAN id of the fragmented packets.
10     pub outer_vlan_id: Option<VlanId>,
11 
12     /// Second VLAN id of the fragmented packets.
13     pub inner_vlan_id: Option<VlanId>,
14 
15     /// IP source & destination address & identifaction field.
16     pub ip: IpFragVersionSpecId,
17 
18     /// IP number of the payload.
19     pub payload_ip_number: IpNumber,
20 
21     /// Custom user defined channel identifier (can be used to differentiate packet
22     /// sources if the normal ethernet packets identifier are not enough).
23     pub channel_id: CustomChannelId,
24 }
25