MCPcopy Create free account
hub / github.com/F-Stack/f-stack / expire_mfc

Function expire_mfc

freebsd/netinet/ip_mroute.c:1028–1045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1026}
1027
1028static void
1029expire_mfc(struct mfc *rt)
1030{
1031 struct rtdetq *rte, *nrte;
1032
1033 MFC_LOCK_ASSERT();
1034
1035 free_bw_list(rt->mfc_bw_meter);
1036
1037 TAILQ_FOREACH_SAFE(rte, &rt->mfc_stall, rte_link, nrte) {
1038 m_freem(rte->m);
1039 TAILQ_REMOVE(&rt->mfc_stall, rte, rte_link);
1040 free(rte, M_MRTABLE);
1041 }
1042
1043 LIST_REMOVE(rt, mfc_hash);
1044 free(rt, M_MRTABLE);
1045}
1046
1047/*
1048 * Add an mfc entry

Callers 3

if_detached_eventFunction · 0.85
X_ip_mrouter_doneFunction · 0.85
expire_upcallsFunction · 0.85

Calls 3

free_bw_listFunction · 0.85
m_freemFunction · 0.50
freeFunction · 0.50

Tested by

no test coverage detected