diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2003-11-07 21:32:48 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2003-11-07 21:32:48 +0000 |
commit | cf80019c0508c143864d35fb7cb55c06dab7edd9 (patch) | |
tree | 2f57ca87bdbffd160dfa4743190f23ad46a4579e /sys/netinet/ip_carp.c | |
parent | bf97d9da700d80bfb9c5b08d20a099cef422fc57 (diff) |
Add missing #ifdef INET6.
Courtesy of markus@
Diffstat (limited to 'sys/netinet/ip_carp.c')
-rw-r--r-- | sys/netinet/ip_carp.c | 4 |
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); |