Lines Matching full:mfc

185 VNET_DEFINE_STATIC(LIST_HEAD(mfchashhdr, mfc)*, mfchashtbl);
327 static void expire_mfc(struct mfc *);
333 static int ip_mdq(struct mbuf *, struct ifnet *, struct mfc *, vifi_t);
335 static __inline struct mfc *
341 struct mbuf *, struct mfc *);
343 struct mbuf *, struct mfc *);
345 struct mbuf *, struct mfc *);
374 static __inline struct mfc *
377 struct mfc *rt; in mfc_find()
396 static __inline struct mfc *
399 struct mfc *rt; in mfc_alloc()
423 struct mfcctl2 mfc; in X_ip_mrouter_set() local
460 error = sooptcopyin(sopt, &mfc, sizeof(struct mfcctl2), in X_ip_mrouter_set()
463 error = sooptcopyin(sopt, &mfc, sizeof(struct mfcctl), in X_ip_mrouter_set()
465 bzero((caddr_t)&mfc + sizeof(struct mfcctl), in X_ip_mrouter_set()
466 sizeof(mfc) - sizeof(struct mfcctl)); in X_ip_mrouter_set()
471 error = add_mfc(&mfc); in X_ip_mrouter_set()
473 error = del_mfc(&mfc); in X_ip_mrouter_set()
580 struct mfc *rt; in get_sg_cnt()
638 * 2. Walk the multicast forwarding cache (mfc) looking for in if_detached_event()
648 struct mfc *rt, *nrt; in if_detached_event()
834 struct mfc *rt, *nrt; in X_ip_mrouter_done()
892 * - the MFC table is empty in set_api_config()
1092 * update an mfc entry without resetting counters and S,G addresses.
1095 update_mfc_params(struct mfc *rt, struct mfcctl2 *mfccp) in update_mfc_params()
1113 * fully initialize an mfc entry from the parameter.
1116 init_mfc_params(struct mfc *rt, struct mfcctl2 *mfccp) in init_mfc_params()
1131 expire_mfc(struct mfc *rt) in expire_mfc()
1154 * Add an mfc entry
1159 struct mfc *rt; in add_mfc()
1170 CTR4(KTR_IPMF, "%s: update mfc orig 0x%08x group %lx parent %x", in add_mfc()
1190 "%s: add mfc orig 0x%08x group %lx parent %x qh %p", in add_mfc()
1218 CTR1(KTR_IPMF, "%s: adding mfc w/o upcall", __func__); in add_mfc()
1254 * Delete an mfc entry
1261 struct mfc *rt; in del_mfc()
1266 CTR3(KTR_IPMF, "%s: delete mfc orig 0x%08x group %lx", __func__, in del_mfc()
1324 struct mfc *rt; in X_ip_mforward()
1334 CTR3(KTR_IPMF, "ip_mforward: delete mfc orig 0x%08x group %lx ifp %p", in X_ip_mforward()
1406 CTR2(KTR_IPMF, "ip_mforward: no mfc for (0x%08x,%lx)", in X_ip_mforward()
1548 struct mfc *rt, *nrt; in expire_upcalls()
1579 ip_mdq(struct mbuf *m, struct ifnet *ifp, struct mfc *rt, vifi_t xmt_vif) in ip_mdq()
1917 struct mfc *mfc; in add_bw_upcall() local
1945 mfc = mfc_find(&req->bu_src, &req->bu_dst); in add_bw_upcall()
1946 if (mfc == NULL) { in add_bw_upcall()
1953 bwm_ptr = &mfc->mfc_bw_meter_geq; in add_bw_upcall()
1955 bwm_ptr = &mfc->mfc_bw_meter_leq; in add_bw_upcall()
1988 x->bm_mfc = mfc; in add_bw_upcall()
2000 /* Add the new bw_meter entry to the front of entries for this MFC */ in add_bw_upcall()
2032 struct mfc *mfc; in del_bw_upcall() local
2040 /* Find the corresponding MFC entry */ in del_bw_upcall()
2041 mfc = mfc_find(&req->bu_src, &req->bu_dst); in del_bw_upcall()
2042 if (mfc == NULL) { in del_bw_upcall()
2047 * Delete all bw_meter entries for this mfc in del_bw_upcall()
2052 list = mfc->mfc_bw_meter_leq; in del_bw_upcall()
2053 mfc->mfc_bw_meter_leq = NULL; in del_bw_upcall()
2057 list = mfc->mfc_bw_meter_geq; in del_bw_upcall()
2058 mfc->mfc_bw_meter_geq = NULL; in del_bw_upcall()
2070 bwm_ptr = &mfc->mfc_bw_meter_geq; in del_bw_upcall()
2072 bwm_ptr = &mfc->mfc_bw_meter_leq; in del_bw_upcall()
2083 if (x != NULL) { /* Delete entry from the list for this MFC */ in del_bw_upcall()
2280 struct mfc *rt) in pim_register_send()
2372 struct mbuf *mb_copy, struct mfc *rt) in pim_register_send_upcall()
2424 struct mfc *rt) in pim_register_send_rp()
2730 struct mfc *rt; in sysctl_mfctable()
2747 error = SYSCTL_OUT(req, rt, sizeof(struct mfc)); in sysctl_mfctable()
2760 "(struct *mfc[mfchashsize], netinet/ip_mroute.h)");