diff options
| author | Calvin Morrison <calvin@pobox.com> | 2026-08-18 22:10:27 -0400 |
|---|---|---|
| committer | Calvin Morrison <calvin@pobox.com> | 2026-08-18 22:10:27 -0400 |
| commit | ed972197544a12d2527cfe6d9ac0c0d9beb399b0 (patch) | |
| tree | aad584779a2f6106bddc5d7c06421771d7f59c08 /fw/test/wire.md | |
| parent | 2f408deee4d88ebd2ee87bbf5fe227ff764e0e6d (diff) | |
fw: the gateway relay decides the same way the card does
relay() and permitted() were the same twenty lines twice: parse, work
out which end is the peer, consult the flow table, consult the rules,
log, count, remember. Two copies that had already drifted -- relay
printed "(state)" and "(new)" under -d and permitted printed neither,
and the two spelled the drop reason differently -- and every fix since
has had to be made in both, which is how the copies drift further.
Now relay reads a packet, asks permitted, and writes it or does not.
The debug line permitted was missing is added rather than dropped, so
-d still distinguishes a packet the flow table let through from one the
rules did.
No new checks: the point is that nothing changes. The gateway tests
already cover this path -- a connection crossing, one rule serving both
directions, a rule change killing a live flow -- and all 60 pass.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'fw/test/wire.md')
0 files changed, 0 insertions, 0 deletions
