Deleted Added
full compact
1c1
< /* $FreeBSD: head/sys/netinet6/ip6_output.c 121811 2003-10-31 16:32:12Z ume $ */
---
> /* $FreeBSD: head/sys/netinet6/ip6_output.c 122062 2003-11-04 16:02:05Z ume $ */
186a187,190
> #ifdef FAST_IPSEC
> int needipsectun = 0;
> struct secpolicy *sp = NULL;
> #endif /* FAST_IPSEC */
188a193
> struct socket *so;
191c196,198
< ip6 = mtod(m, struct ip6_hdr *);
---
> /* for AH processing. stupid to have "socket" variable in IP layer... */
> so = ipsec_getsocket(m);
> (void)ipsec_setsocket(m, NULL);
193,195d199
< #ifdef FAST_IPSEC
< int needipsectun = 0;
< struct secpolicy *sp = NULL;
198d201
< #endif /* FAST_IPSEC */
238c241
< if (inp == NULL)
---
> if (so == NULL)
241c244
< sp = ipsec6_getpolicybypcb(m, IPSEC_DIR_OUTBOUND, inp, &error);
---
> sp = ipsec6_getpolicybysock(m, IPSEC_DIR_OUTBOUND, so, &error);