diff options
author | Sunil Nimmagadda <sunil@nimmagadda.net> | 2024-11-24 10:34:32 +0530 |
---|---|---|
committer | Sunil Nimmagadda <sunil@nimmagadda.net> | 2024-11-24 10:37:37 +0530 |
commit | 5206a097b8ec26265c54fdba3a259e226019db10 (patch) | |
tree | 3afb2877c449f1afc27c22e4e9eca6abe1146e1d | |
parent | ec5906f32dba51b3ab1ea85c581de84f41088e5f (diff) |
Merge two write_all.
-rw-r--r-- | src/vrrpv2.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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()) } } |