Compare commits

...

2 commits

Author SHA1 Message Date
zedddie
efe7d76fbc
some merge conflicts 2026-03-25 12:58:21 +01:00
zedddie
a1be70b9cc
add protobuf to devshell 2026-03-25 12:55:38 +01:00
3 changed files with 15 additions and 1 deletions

View file

@ -23,6 +23,7 @@
git
pkg-config
openssl
protobuf
];
shellHook = "exec fish";
};

View file

@ -33,7 +33,17 @@ pub mod domain {
}
}
/// Type of domain value.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// The value is used as is.

View file

@ -69,6 +69,9 @@ impl fmt::Display for PacketInfo {
// y:y:y:y:y:y:y:y = 8 hexademical; y = segment, pair of 2 u8 big endian
write!(
f,
// FIXME: fe80:0:0:0:93a:245e:daac:7a75 -> ff12:0:0:0:0:0:0:8384
// we should drop zeroes in display: fe80::93a:245e:daac:7a75 -> ff12::8384
// NOTE: fe80:0:0:93a:0:245e and fe80:0:93a:0:0:245e can NOT both be compressed to fe80::93a::245e by obvious reasons
"{:x}:{:x}:{:x}:{:x}:{:x}:{:x}:{:x}:{:x} port:{} -> {:x}:{:x}:{:x}:{:x}:{:x}:{:x}:{:x}:{:x} port:{} {:?} is dns? {:?}",
src_ip[0],
src_ip[1],