summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vrrpv2.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vrrpv2.rs b/src/vrrpv2.rs
index 6fc80a3..e0f45a6 100644
--- a/src/vrrpv2.rs
+++ b/src/vrrpv2.rs
@@ -163,6 +163,7 @@ pub fn from_bytes(bytes: &[u8]) -> Result<VRRPv2, VRRPv2Error> {
Ok(vrrpv2)
}
+/// TODO: as_chunks is nicer but not stabilised yet.
fn checksum(bytes: &[u8]) -> u16 {
let mut sum: u32 = 0;
for chunk in bytes.chunks(2) {