pcap: let the packet-block helper use is_multiple_of

This commit is contained in:
Dylan M. Taylor committed 2026-11-17 12:15:24 -05:00
1 parent 0d56a411cb
commit 309ae75a4e
1 file changed
+1 -1
+1 -1
View File
@@ -136,7 +136,7 @@ pub fn pcap(frames: &[Vec<u8>]) -> Vec<u8> {
pub fn block(t: u32, body: &[u8]) -> Vec<u8> {
let mut body = body.to_vec();
while body.len() % 4 != 0 {
while !body.len().is_multiple_of(4) {
body.push(0);
}
let len = (body.len() + 12) as u32;