summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormcbride <mcbride@openbsd.org>2003-11-07 21:32:47 +0000
committermcbride <mcbride@openbsd.org>2003-11-07 21:32:47 +0000
commite84d3bd0660e320fe7f756cf7cf22d88ed7ba65d (patch)
tree1ecca1a482194016f215a56d2a38310005d473ce
parentupdated URL and a typo from Jared Yanovich; (diff)
downloadwireguard-openbsd-e84d3bd0660e320fe7f756cf7cf22d88ed7ba65d.tar.xz
wireguard-openbsd-e84d3bd0660e320fe7f756cf7cf22d88ed7ba65d.zip
Add missing #ifdef INET6.
Courtesy of markus@
-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 6a1d553d583..a734d852ccd 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.22 2003/11/05 06:39:48 mcbride Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.23 2003/11/07 21:32:47 mcbride Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -560,7 +560,9 @@ carpattach(int number)
sc->sc_advskew = 0;
sc->sc_init_counter = 1;
sc->sc_naddrs = sc->sc_naddrs6 = 0;
+#ifdef INET6
sc->sc_im6o.im6o_multicast_hlim = CARP_DFLTTL;
+#endif /* INET6 */
timeout_set(&sc->sc_ad_tmo, carp_send_ad, sc);
timeout_set(&sc->sc_md_tmo, carp_master_down, sc);