summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2025-09-11 11:08:27 +0530
committerSunil Nimmagadda <sunil@nimmagadda.net>2025-09-11 11:08:27 +0530
commitd1872ffaeb4fd54f5ea0e7e5457a7e749e211ed5 (patch)
tree3b8a78e1e05b2f00e78ec60d6423593ef62a68c7 /src
parent3124a5a76148733e25e58cece5d8324b04ebc8d5 (diff)
Be consistent.HEADmain
Diffstat (limited to 'src')
-rw-r--r--src/vrrpv2.rs2
1 files changed, 1 insertions, 1 deletions
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());
}