guard/tests
loki5512344 b64c329125
feat(xdp): IPv6 parity, monotonic ban expiry, per-protocol L4 minimum
IPv6 parity:
- blacklist6_map (LPM trie, 20-byte key) and is_blacklisted6(); the
  native_v6 path now passes the port gate and the L4 checks instead of
  returning XDP_PASS early.
- ban_cidr() covers V4 and V6; gateway bans by /32 or /128; subnet monitor
  bans v6 /64 prefixes; ban_ip() removed (dead code is a bug).
- v6 TCP feeds prefix stats through prefix_key_from_v6 (subnet detector
  now sees IPv6); UDP policy=drop and detect_tcp_bypass apply to v6.
- tests/xdp_ban_v6.rs and scripts/xdp_ipv6_smoke.sh (real netns/verifier).

Bug fixes (both families):
- Ban expiry compared SystemTime epoch-ns against bpf_ktime_get_ns(), so
  bans never expired. Userspace now writes CLOCK_MONOTONIC via
  xdp::monotonic_ns(); regression in tests/xdp_ban_clock.rs.
- The L4 gate required sizeof(struct tcphdr) for every protocol, so short
  UDP datagrams bypassed the port gate and the blacklist. The minimum is
  now per-protocol (UDP 8 bytes); smoke covers it.
2026-11-15 23:08:05 +01:00
..
config_parse.rs style: switch rustfmt to hard tabs; document tests-separate rule in TODO 2026-11-15 22:34:29 +01:00
filter_logic.rs style: switch rustfmt to hard tabs; document tests-separate rule in TODO 2026-11-15 22:34:29 +01:00
http_protocol.rs style: switch rustfmt to hard tabs; document tests-separate rule in TODO 2026-11-15 22:34:29 +01:00
pow_roundtrip.rs style: switch rustfmt to hard tabs; document tests-separate rule in TODO 2026-11-15 22:34:29 +01:00
protocol_registry.rs style: switch rustfmt to hard tabs; document tests-separate rule in TODO 2026-11-15 22:34:29 +01:00
subnet_detection.rs style: switch rustfmt to hard tabs; document tests-separate rule in TODO 2026-11-15 22:34:29 +01:00
traffic_intel.rs style: switch rustfmt to hard tabs; document tests-separate rule in TODO 2026-11-15 22:34:29 +01:00
tui_metrics.rs style: switch rustfmt to hard tabs; document tests-separate rule in TODO 2026-11-15 22:34:29 +01:00
xdp_ban_clock.rs feat(xdp): IPv6 parity, monotonic ban expiry, per-protocol L4 minimum 2026-11-15 23:08:05 +01:00
xdp_ban_v6.rs feat(xdp): IPv6 parity, monotonic ban expiry, per-protocol L4 minimum 2026-11-15 23:08:05 +01:00
xdp_diagnostics.rs style: switch rustfmt to hard tabs; document tests-separate rule in TODO 2026-11-15 22:34:29 +01:00
xdp_events.rs style: switch rustfmt to hard tabs; document tests-separate rule in TODO 2026-11-15 22:34:29 +01:00
xdp_globals.rs style: switch rustfmt to hard tabs; document tests-separate rule in TODO 2026-11-15 22:34:29 +01:00