From 26b293760b4cdee55ae689a6f719b3f83a0d3cde Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Sun, 1 Jan 2023 11:59:24 +0530 Subject: Implement a VRRPv2 packet parser. Use nom parser combinator crate to parse a VRRPv2 packet. TODO: checksum verification and checksum tests. --- Cargo.lock | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index e81a06c..5ae3ddc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -66,6 +66,12 @@ version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + [[package]] name = "mio" version = "0.8.5" @@ -78,6 +84,16 @@ dependencies = [ "windows-sys", ] +[[package]] +name = "nom" +version = "7.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8903e5a29a317527874d0402f867152a3d21c908bb0b933e416c65e301d4c36" +dependencies = [ + "memchr", + "minimal-lexical", +] + [[package]] name = "num_cpus" version = "1.14.0" @@ -227,6 +243,7 @@ checksum = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3" name = "vrrpd" version = "0.1.0" dependencies = [ + "nom", "tokio", ] -- cgit v1.2.3