From d1872ffaeb4fd54f5ea0e7e5457a7e749e211ed5 Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Thu, 11 Sep 2025 11:08:27 +0530 Subject: Be consistent. --- src/vrrpv2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vrrpv2.rs b/src/vrrpv2.rs index e58db14..d226420 100644 --- a/src/vrrpv2.rs +++ b/src/vrrpv2.rs @@ -92,7 +92,7 @@ impl VRRPv2 { bytes.push(self.ip_addrs.len() as u8); bytes.push(self.auth_type as u8); bytes.push(self.advertisement_interval); - bytes.extend_from_slice(&[0, 0]); // Placeholder for checksum + bytes.extend_from_slice(&[0; 2]); // Placeholder for checksum for ip in &self.ip_addrs { bytes.extend_from_slice(&ip.to_bits().to_be_bytes()); } -- cgit v1.2.3