summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vrrpv2.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vrrpv2.rs b/src/vrrpv2.rs
index 3ad19b6..df9d523 100644
--- a/src/vrrpv2.rs
+++ b/src/vrrpv2.rs
@@ -108,12 +108,11 @@ impl VRRPv2 {
self.virtual_router_id,
self.priority,
self.count_ip_addrs,
+ self.auth_type as u8,
+ self.advertisement_interval,
]
.as_ref(),
)?;
- wr.write_all(
- [self.auth_type as u8, self.advertisement_interval].as_ref(),
- )?;
wr.write_all(self.checksum.to_be_bytes().as_ref())?;
for ip in self.ip_addrs.iter() {
wr.write_all(&ip.to_bits().to_be_bytes())?;