summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/in6.h
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2012-05-24 18:25:09 +0000
committerbz <bz@FreeBSD.org>2012-05-24 18:25:09 +0000
commitd9ff82d31375889fd29b665a55f4c23f88b1aa86 (patch)
tree8dfc96c625e2beca5527cd30a623ad424da455a3 /sys/netinet6/in6.h
parent9b587cf418ada5a60db4f592bc3f8cf28bc1ef04 (diff)
downloadFreeBSD-src-d9ff82d31375889fd29b665a55f4c23f88b1aa86.zip
FreeBSD-src-d9ff82d31375889fd29b665a55f4c23f88b1aa86.tar.gz
MFp4 bz_ipv6_fast:
Introduce a (for now copied stripped down) in6_cksum_pseudo() function. We should be able to use this from in6_cksum() but we should also ponder possible MD specific improvements. It takes an extra csum argument to allow for easy checks as will be done by the upper layer protocol input paths. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
Diffstat (limited to 'sys/netinet6/in6.h')
-rw-r--r--sys/netinet6/in6.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet6/in6.h b/sys/netinet6/in6.h
index f0cf4f4..f910e70 100644
--- a/sys/netinet6/in6.h
+++ b/sys/netinet6/in6.h
@@ -632,7 +632,9 @@ struct ip6_mtuinfo {
#ifdef _KERNEL
struct cmsghdr;
+struct ip6_hdr;
+int in6_cksum_pseudo(struct ip6_hdr *, uint32_t, uint8_t, uint16_t);
int in6_cksum __P((struct mbuf *, u_int8_t, u_int32_t, u_int32_t));
int in6_localaddr __P((struct in6_addr *));
int in6_localip(struct in6_addr *);
OpenPOWER on IntegriCloud