Add tx weighting stage

This commit is contained in:
Stephen Akridge
2021-12-16 14:47:55 +00:00
committed by Tao Zhu
parent 664deb2157
commit 976b138e76
8 changed files with 150 additions and 16 deletions

View File

@ -32,6 +32,7 @@ pub struct Meta {
pub addr: IpAddr,
pub port: u16,
pub flags: PacketFlags,
pub weight: u64,
}
#[derive(Clone)]
@ -145,6 +146,7 @@ impl Default for Meta {
addr: IpAddr::V4(Ipv4Addr::UNSPECIFIED),
port: 0,
flags: PacketFlags::empty(),
weight: 0,
}
}
}