summaryrefslogtreecommitdiff
path: root/sys/net/if_sec.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2023-11-23 23:45:11 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2023-11-23 23:45:11 +0000
commit4f592c123a8bb037be23d6d4204468b8edda3bcc (patch)
tree99235d7d30755808bb07b42121b978403538f27a /sys/net/if_sec.c
parent0615daf9d387c9a48b49cb0eee470980c1ee3021 (diff)
avoid passing weird mbuf chains to pf when pushing out a veb.
pf expects the ip header to be in the first mbuf of the chain we pass to pf_test, but in some situations the ethernet header is the only data in the first mbuf. after we remove the ethernet header, the first mbuf had no data in it which confused pf. fix this by passing all packets to ip_check on output as well as input. ip input handlers do all the necessary m_pullups. found by Mark Patruck.
Diffstat (limited to 'sys/net/if_sec.c')
0 files changed, 0 insertions, 0 deletions