MFC r201254:
Make sure the multicast forwarding cache entry's stall queue is properly initialized before trying to insert an entry into it. PR: kern/142052 Reviewed by: bms
This commit is contained in:
parent
479812d91c
commit
aed7a0f878
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=201515
@ -1384,6 +1384,15 @@ X_ip_mforward(struct ip *ip, struct ifnet *ifp, struct mbuf *m,
|
||||
rt->mfc_rp.s_addr = INADDR_ANY;
|
||||
rt->mfc_bw_meter = NULL;
|
||||
|
||||
/* initialize pkt counters per src-grp */
|
||||
rt->mfc_pkt_cnt = 0;
|
||||
rt->mfc_byte_cnt = 0;
|
||||
rt->mfc_wrong_if = 0;
|
||||
timevalclear(&rt->mfc_last_assert);
|
||||
|
||||
TAILQ_INIT(&rt->mfc_stall);
|
||||
rt->mfc_nstall = 0;
|
||||
|
||||
/* link into table */
|
||||
LIST_INSERT_HEAD(&mfchashtbl[hash], rt, mfc_hash);
|
||||
TAILQ_INSERT_HEAD(&rt->mfc_stall, rte, rte_link);
|
||||
|
Loading…
Reference in New Issue
Block a user