ipsec is glued into the stack in a very weird way, violating all kinds
authorhenning <henning@openbsd.org>
Thu, 24 Jul 2008 10:55:44 +0000 (10:55 +0000)
committerhenning <henning@openbsd.org>
Thu, 24 Jul 2008 10:55:44 +0000 (10:55 +0000)
commit75f549bda4632a86c3ad5f52bb1f1224409d2346
tree921f33598765cf8ebefcee529c77bd5417699c75
parent3c84041b47b6cf6b2bc433ebf921b9eb8ae4363b
ipsec is glued into the stack in a very weird way, violating all kinds
of expected semantics. thus, for return packets coming out of an ipsec
tunnel, we need to clear the pf state key pointer in the mbuf header
to prevent a state for encapsulated traffic to be linked to the
decapsulated traffic one.
problem noticed by Oleg Safiullin <form@pdp-11.org.ru>, took me some
time to understand what the hell was going on. ok ryan
sys/netinet/ipsec_input.c