summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2012-09-19 15:31:23 +0000
committerhenning <henning@openbsd.org>2012-09-19 15:31:23 +0000
commitce799eff169eb9727a38e267f0a8a8b728fe8a77 (patch)
treee1f2f307c84d7ec34029c9a7fc3c649eba03d199
parentdefina an IFCAP_CSUM_MASK, covering IFCAP_CSUM_*, and use it in if_vlan.c (diff)
downloadwireguard-openbsd-ce799eff169eb9727a38e267f0a8a8b728fe8a77.tar.xz
wireguard-openbsd-ce799eff169eb9727a38e267f0a8a8b728fe8a77.zip
inherit IFCAP_CSUM_* from the parent interface
in my tree for a while and I forgot what exactly triggered it, but in one way or another this comes from the netbsd camp ok benno mpf
-rw-r--r--sys/netinet/ip_carp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index c593ac70b02..ac2b058d036 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.195 2012/04/11 17:42:53 mikeb Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.196 2012/09/19 15:31:23 henning Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -1864,6 +1864,8 @@ carp_set_ifp(struct carp_softc *sc, struct ifnet *ifp)
if (ncif != NULL)
ifp->if_carp = (caddr_t)ncif;
sc->sc_carpdev = ifp;
+ sc->sc_if.if_capabilities = ifp->if_capabilities &
+ IFCAP_CSUM_MASK;
cif = (struct carp_if *)ifp->if_carp;
TAILQ_FOREACH(vr, &cif->vhif_vrs, sc_list) {
if (vr == sc)