Module Name:    src
Committed By:   joerg
Date:           Sat Jun  1 19:13:41 UTC 2019

Modified Files:
        src/sys/netinet: ip_carp.c

Log Message:
Define carp6_cksum only when it is used, that is under INET6


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/sys/netinet/ip_carp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet/ip_carp.c
diff -u src/sys/netinet/ip_carp.c:1.102 src/sys/netinet/ip_carp.c:1.103
--- src/sys/netinet/ip_carp.c:1.102	Thu Mar 14 07:05:07 2019
+++ src/sys/netinet/ip_carp.c	Sat Jun  1 19:13:41 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: ip_carp.c,v 1.102 2019/03/14 07:05:07 ozaki-r Exp $	*/
+/*	$NetBSD: ip_carp.c,v 1.103 2019/06/01 19:13:41 joerg Exp $	*/
 /*	$OpenBSD: ip_carp.c,v 1.113 2005/11/04 08:11:54 mcbride Exp $	*/
 
 /*
@@ -33,7 +33,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_carp.c,v 1.102 2019/03/14 07:05:07 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_carp.c,v 1.103 2019/06/01 19:13:41 joerg Exp $");
 
 /*
  * TODO:
@@ -253,11 +253,13 @@ carp_cksum(struct mbuf *m, int len)
 	return (in_cksum(m, len));
 }
 
+#ifdef INET6
 static __inline u_int16_t
 carp6_cksum(struct mbuf *m, uint32_t off, uint32_t len)
 {
 	return (in6_cksum(m, IPPROTO_CARP, off, len));
 }
+#endif
 
 static void
 carp_hmac_prepare(struct carp_softc *sc)

Reply via email to