ae 8e6349d4bc Remove PACKET_TAG_IPSEC_IN_DONE mbuf tag lookup and usage of its
security policy. The changed block of code in ip*_ipsec_input() is
called when packet has ESP/AH header. Presence of
PACKET_TAG_IPSEC_IN_DONE mbuf tag in the same time means that
packet was already handled by IPSEC and reinjected in the netisr,
and it has another ESP/AH headers (encrypted twice?).
Since it was already processed by IPSEC code, the AH/ESP headers
was already stripped (and probably outer IP header was stripped too)
and security policy from the tdb_ident was applied to those headers.
It is incorrect to apply this security policy to current headers.

Also make ip_ipsec_input() prototype similar to ip6_ipsec_input().

Obtained from:	Yandex LLC
Sponsored by:	Yandex LLC
2014-12-11 14:58:55 +00:00
..
2014-10-14 13:31:47 +00:00
2014-11-10 15:56:30 +00:00
2014-10-30 11:34:07 +00:00
2014-11-06 13:13:09 +00:00
2014-11-07 19:13:19 +00:00
2012-11-17 20:04:04 +00:00
2013-12-17 10:53:17 +00:00
2012-10-22 21:49:56 +00:00