diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2024-01-24 00:17:02 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2024-01-24 00:17:02 +0000 |
commit | 4a08ad6dc0c88e6448b39fb6e43e03e8d8e49f5a (patch) | |
tree | bb54c079c3469ae2b0b73feff7fb22ca14b5733e /sys/dev/ic/rt2560.c | |
parent | 977764c6a48e9ceb498ebd4afa5b127b501e0377 (diff) |
tag packets going out a sec interface to prevent route/encap loops.
sec(4) was already looking for this mbuf tag so it could drop packets
that had already been sent out on the same interface, but i forgot
the code that adds the tag.
this was reported by jason tubnor who experienced spins/lockups
when using sec and a physical interface was disconnected. rather
than being a locking problem like we initially assumed, it turned
out that unplugging a physical interface caused a route for ipsec
encapsulated traffic to go out over sec(4), causing the packet to
loop in the stack.
the fix was also tested and verified by jason. sorry for taking so
long to look at it.
Diffstat (limited to 'sys/dev/ic/rt2560.c')
0 files changed, 0 insertions, 0 deletions