summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_carp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index 2d23fa9fb9e..465ee2a93ee 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.130 2006/08/31 12:37:31 mcbride Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.131 2006/11/16 13:12:43 henning Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -779,6 +779,10 @@ carp_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
void
carpattach(int n)
{
+ struct ifg_group *ifg;
+
+ if ((ifg = if_creategroup("carp")) != NULL)
+ ifg->ifg_refcnt++; /* keep around even if empty */
if_clone_attach(&carp_cloner);
}