From 5206a097b8ec26265c54fdba3a259e226019db10 Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Sun, 24 Nov 2024 10:34:32 +0530 Subject: Merge two write_all. --- src/vrrpv2.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/vrrpv2.rs') diff --git a/src/vrrpv2.rs b/src/vrrpv2.rs index df9d523..c830899 100644 --- a/src/vrrpv2.rs +++ b/src/vrrpv2.rs @@ -117,8 +117,7 @@ impl VRRPv2 { for ip in self.ip_addrs.iter() { wr.write_all(&ip.to_bits().to_be_bytes())?; } - wr.write_all([0; 4].as_ref())?; // Authentication Data 1 - wr.write_all([0; 4].as_ref())?; // Authentication Data 2 + wr.write_all([0; 8].as_ref())?; // Authentication Data Ok(wr.into_inner()) } } -- cgit v1.2.3