
170 Chapter 2—IPv6 Multicasting
Insert New Entry
Listing 2-42
ip6_mroute.c
984 /*
985 * It is possible that an entry is being inserted without an upcall
986 */
987 if (nstl == 0) {
997
998 for (rt = mf6ctable[hash]; rt; rt = rt->mf6c_next) {
999
1000 if (IN6_ARE_ADDR_EQUAL(&rt->mf6c_origin.sin6_addr,
1001 &mfccp->mf6cc_origin.sin6_addr)&&
1002 IN6_ARE_ADDR_EQUAL(&rt->mf6c_mcastgrp.sin6_addr,
1003 &mfccp->mf6cc_mcastgrp.sin6_addr)) {
1004
1005 rt->mf6c_origin = mfccp->mf6cc_origin;
1006 rt->mf6c_mcastgrp = mfccp->mf6cc_mcastgrp;
1007 rt->mf6c_parent = mfccp->mf6cc_parent;
1008 rt->mf6c_ifset = mfccp->mf6cc_ifset;
1009 /* initialize pkt counters per src-grp */
1010 ...