1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

Properly apply #ifdef INET and leave a comment that we are (will) apply

delayed IPv6 checksum processing in ip6_output.c when doing IPsec.

PR:		kern/170116
MFC after:	3 days
This commit is contained in:
Bjoern A. Zeeb 2012-07-31 05:44:03 +00:00
parent 68c99a6023
commit d2ed798615
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238935

View File

@ -291,16 +291,16 @@ ip6_ipsec_output(struct mbuf **m, struct inpcb *inp, int *flags, int *error,
/*
* Do delayed checksums now because we send before
* this is done in the normal processing path.
* XXX-BZ CSUM_DELAY_DATA_IPV6?
* For IPv6 we do delayed checksums in ip6_output.c.
*/
#ifdef INET
if ((*m)->m_pkthdr.csum_flags & CSUM_DELAY_DATA) {
ipseclog((LOG_DEBUG,
"%s: we do not support IPv4 over IPv6", __func__));
#ifdef INET
in_delayed_cksum(*m);
#endif
(*m)->m_pkthdr.csum_flags &= ~CSUM_DELAY_DATA;
}
#endif
/*
* Preserve KAME behaviour: ENOENT can be returned