Files
RedBear-OS/netstack
Red Bear OS 6c9faff30c netstack: add proptest cases to filter (table + conntrack)
Adds two proptest cases that exercise the table.add+remove
roundtrip and the ConnKey hash stability.

filter/table.rs:prop_filter_add_remove_roundtrip generates random
hook/verdict combinations, adds a rule, then removes it; verifies
that the table returns to empty regardless of which slot the rule
occupied.

filter/conntrack.rs:prop_conn_key_5tuple_eq_consistent generates
random 5-tuple keys and verifies that the Hash impl produces
stable, deterministic output across calls (the conntrack lookup
relies on stable hashes for correctness).

Both cases use proptest 1.11 (proptest 1.11 added to [dev-dependencies]
in the netstack Cargo.toml). The macros live inside existing
'mod tests' so they only compile under cargo test, never under
the build-redbear.sh production path.

proptest cases: 32 netstack tests pass (was 31).
2026-07-26 22:23:08 +09:00
..