Lines Matching full:mfc

178 VNET_DEFINE_STATIC(LIST_HEAD(mfchashhdr, mfc)*, mfchashtbl);
320 static void expire_mfc(struct mfc *);
326 static int ip_mdq(struct mbuf *, struct ifnet *, struct mfc *, vifi_t);
328 static __inline struct mfc *
334 struct mbuf *, struct mfc *);
336 struct mbuf *, struct mfc *);
338 struct mbuf *, struct mfc *);
367 static __inline struct mfc *
370 struct mfc *rt; in mfc_find()
389 static __inline struct mfc *
392 struct mfc *rt; in mfc_alloc()
416 struct mfcctl2 mfc; in X_ip_mrouter_set() local
453 error = sooptcopyin(sopt, &mfc, sizeof(struct mfcctl2), in X_ip_mrouter_set()
456 error = sooptcopyin(sopt, &mfc, sizeof(struct mfcctl), in X_ip_mrouter_set()
458 bzero((caddr_t)&mfc + sizeof(struct mfcctl), in X_ip_mrouter_set()
459 sizeof(mfc) - sizeof(struct mfcctl)); in X_ip_mrouter_set()
464 error = add_mfc(&mfc); in X_ip_mrouter_set()
466 error = del_mfc(&mfc); in X_ip_mrouter_set()
573 struct mfc *rt; in get_sg_cnt()
631 * 2. Walk the multicast forwarding cache (mfc) looking for in if_detached_event()
641 struct mfc *rt, *nrt; in if_detached_event()
817 struct mfc *rt, *nrt; in X_ip_mrouter_done()
874 * - the MFC table is empty in set_api_config()
1074 * update an mfc entry without resetting counters and S,G addresses.
1077 update_mfc_params(struct mfc *rt, struct mfcctl2 *mfccp) in update_mfc_params()
1095 * fully initialize an mfc entry from the parameter.
1098 init_mfc_params(struct mfc *rt, struct mfcctl2 *mfccp) in init_mfc_params()
1113 expire_mfc(struct mfc *rt) in expire_mfc()
1136 * Add an mfc entry
1141 struct mfc *rt; in add_mfc()
1152 CTR4(KTR_IPMF, "%s: update mfc orig 0x%08x group %lx parent %x", in add_mfc()
1172 "%s: add mfc orig 0x%08x group %lx parent %x qh %p", in add_mfc()
1200 CTR1(KTR_IPMF, "%s: adding mfc w/o upcall", __func__); in add_mfc()
1236 * Delete an mfc entry
1243 struct mfc *rt; in del_mfc()
1248 CTR3(KTR_IPMF, "%s: delete mfc orig 0x%08x group %lx", __func__, in del_mfc()
1306 struct mfc *rt; in X_ip_mforward()
1316 CTR3(KTR_IPMF, "ip_mforward: delete mfc orig 0x%08x group %lx ifp %p", in X_ip_mforward()
1388 CTR2(KTR_IPMF, "ip_mforward: no mfc for (0x%08x,%lx)", in X_ip_mforward()
1530 struct mfc *rt, *nrt; in expire_upcalls()
1561 ip_mdq(struct mbuf *m, struct ifnet *ifp, struct mfc *rt, vifi_t xmt_vif) in ip_mdq()
1899 struct mfc *mfc; in add_bw_upcall() local
1927 mfc = mfc_find(&req->bu_src, &req->bu_dst); in add_bw_upcall()
1928 if (mfc == NULL) { in add_bw_upcall()
1935 bwm_ptr = &mfc->mfc_bw_meter_geq; in add_bw_upcall()
1937 bwm_ptr = &mfc->mfc_bw_meter_leq; in add_bw_upcall()
1970 x->bm_mfc = mfc; in add_bw_upcall()
1982 /* Add the new bw_meter entry to the front of entries for this MFC */ in add_bw_upcall()
2014 struct mfc *mfc; in del_bw_upcall() local
2022 /* Find the corresponding MFC entry */ in del_bw_upcall()
2023 mfc = mfc_find(&req->bu_src, &req->bu_dst); in del_bw_upcall()
2024 if (mfc == NULL) { in del_bw_upcall()
2029 * Delete all bw_meter entries for this mfc in del_bw_upcall()
2034 list = mfc->mfc_bw_meter_leq; in del_bw_upcall()
2035 mfc->mfc_bw_meter_leq = NULL; in del_bw_upcall()
2039 list = mfc->mfc_bw_meter_geq; in del_bw_upcall()
2040 mfc->mfc_bw_meter_geq = NULL; in del_bw_upcall()
2052 bwm_ptr = &mfc->mfc_bw_meter_geq; in del_bw_upcall()
2054 bwm_ptr = &mfc->mfc_bw_meter_leq; in del_bw_upcall()
2065 if (x != NULL) { /* Delete entry from the list for this MFC */ in del_bw_upcall()
2262 struct mfc *rt) in pim_register_send()
2354 struct mbuf *mb_copy, struct mfc *rt) in pim_register_send_upcall()
2406 struct mfc *rt) in pim_register_send_rp()
2712 struct mfc *rt; in sysctl_mfctable()
2726 error = SYSCTL_OUT(req, rt, sizeof(struct mfc)); in sysctl_mfctable()
2739 "(struct *mfc[mfchashsize], netinet/ip_mroute.h)");