Skip to content

Commit

Permalink
set-up refcount for struct in6_multi in freebsd[45], when multicast-g…
Browse files Browse the repository at this point in the history
…roup is newly created via advanced-MSF-API
  • Loading branch information
suz committed Apr 20, 2004
1 parent 161b20a commit 465e24d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kame/sys/netinet6/mldv2.c
@@ -1,4 +1,4 @@
/* $KAME: mldv2.c,v 1.17 2004/04/20 08:42:25 suz Exp $ */
/* $KAME: mldv2.c,v 1.18 2004/04/20 09:03:28 suz Exp $ */

/*
* Copyright (c) 2002 INRIA. All rights reserved.
Expand Down Expand Up @@ -3350,6 +3350,7 @@ in6_modmulti2(ap, ifp, error, numsrc, src, mode,
bzero(in6m, sizeof(*in6m));
in6m->in6m_addr = *ap;
in6m->in6m_ifp = ifp;
in6m->in6m_refcount = 1;
in6m->in6m_ifma = ifma;
ifma->ifma_protospec = in6m;
LIST_INSERT_HEAD(&in6_multihead, in6m, in6m_entry);
Expand Down

0 comments on commit 465e24d

Please sign in to comment.