All multicast listeners on a port should get one copy of the packet. This

was broken during the locking changes.
This commit is contained in:
John Hay 2006-09-07 18:44:54 +00:00
parent 47b470b9e3
commit 1fcae350ae
1 changed files with 3 additions and 3 deletions

View File

@ -283,9 +283,9 @@ udp6_input(mp, offp, proto)
struct mbuf *n;
if ((n = m_copy(m, 0, M_COPYALL)) != NULL) {
INP_LOCK(in6p);
udp6_append(in6p, n, off, &fromsa);
INP_UNLOCK(in6p);
INP_LOCK(last);
udp6_append(last, n, off, &fromsa);
INP_UNLOCK(last);
}
}
last = in6p;