Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-doc
Path: blob/main/website/static/security/patches/EN-10:01/mcinit.patch
18096 views
1
Index: sys/netinet/ip_mroute.c
2
===================================================================
3
--- sys/netinet/ip_mroute.c (revision 201431)
4
+++ sys/netinet/ip_mroute.c (working copy)
5
@@ -1384,6 +1384,15 @@ fail:
6
rt->mfc_rp.s_addr = INADDR_ANY;
7
rt->mfc_bw_meter = NULL;
8
9
+ /* initialize pkt counters per src-grp */
10
+ rt->mfc_pkt_cnt = 0;
11
+ rt->mfc_byte_cnt = 0;
12
+ rt->mfc_wrong_if = 0;
13
+ timevalclear(&rt->mfc_last_assert);
14
+
15
+ TAILQ_INIT(&rt->mfc_stall);
16
+ rt->mfc_nstall = 0;
17
+
18
/* link into table */
19
LIST_INSERT_HEAD(&mfchashtbl[hash], rt, mfc_hash);
20
TAILQ_INSERT_HEAD(&rt->mfc_stall, rte, rte_link);
21
22