* Revert "Remove commented-out code" This reverts commit 9e69777925f103ee11e5940bba95b896c828839b. * Implement deserialization for `addrv2` messages * Limit addr and addrv2 messages to MAX_ADDRS_IN_MESSAGE * Clarify address version comments * Minor cleanups and fixes * Add preallocation tests for AddrV2 * Add serialization tests for AddrV2 * Use prop_assert in AddrV2 proptests * Use a generic utility method for deserializing IP addresses in `addrv2` * Document the purpose of a conversion to MetaAddr * Fix a comment typo, and clarify that comment * Clarify the unsupported AddrV2 network ID error and enum variant names ```sh fastmod AddrV2UnimplementedError UnsupportedAddrV2NetworkIdError zebra-network fastmod Unimplemented Unsupported zebra-network ``` * Fix and clarify unsupported AddrV2 comments * Replace `panic!` with `unreachable!` * Clarify a comment about skipping a length check in a test * Remove a redundant test * Basic addr (v1) and addrv2 deserialization tests * Test deserialized IPv4 and IPv6 values in addr messages * Remove redundant io::Cursor * Add comments with expected values of address test vectors |
||
---|---|---|
.. | ||
proptest-regressions | ||
src | ||
Cargo.toml |