From 450466976a5dcd0199b2b8efb24096f0e2a4099a Mon Sep 17 00:00:00 2001 From: Herbert Wolverson Date: Tue, 14 Mar 2023 19:17:13 +0000 Subject: [PATCH] Fix warnings --- src/rust/lqos_bus/src/ip_stats.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/rust/lqos_bus/src/ip_stats.rs b/src/rust/lqos_bus/src/ip_stats.rs index 8e66c865..75c34c90 100644 --- a/src/rust/lqos_bus/src/ip_stats.rs +++ b/src/rust/lqos_bus/src/ip_stats.rs @@ -117,12 +117,20 @@ pub fn tos_parser(tos: u8) -> (u8, u8) { /// Packet header dump #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)] pub struct PacketHeader { + /// Timestamp (ns since boot) pub timestamp: u64, + /// Source IP pub src: String, + /// Destination IP pub dst: String, + /// Source Port pub src_port : u16, + /// Destination Port pub dst_port: u16, + /// Ip Protocol (see Linux kernel docs) pub ip_protocol: u8, + /// Tos to decode pub tos: u8, + /// Packet Size pub size: u32, } \ No newline at end of file