Lines Matching refs:mfc
236 static struct mfc *mfctable[CONFIG_MFCTBLSIZ];
318 static int ip_mdq(struct mbuf *, struct ifnet *, struct mfc *,
353 struct mfc *_rt = mfctable[MFCHASH(o,g)]; \
411 struct mfcctl mfc;
446 error = sooptcopyin(sopt, &mfc, sizeof mfc, sizeof mfc);
450 error = add_mfc(&mfc);
452 error = del_mfc(&mfc);
534 struct mfc *rt;
608 struct mfc *rt;
637 struct mfc *nr = rt->mfc_next;
836 * Add an mfc entry
841 struct mfc *rt;
948 rt = (struct mfc *) _MALLOC(sizeof(*rt), M_MRTABLE, M_NOWAIT);
1002 * Delete an mfc entry
1009 struct mfc *rt;
1010 struct mfc **nptr;
1079 struct mfc *rt;
1201 rt = (struct mfc *) _MALLOC(sizeof(*rt), M_MRTABLE, M_NOWAIT);
1293 struct mfc *mfc, **nptr;
1300 for (mfc = *nptr; mfc != NULL; mfc = *nptr) {
1306 if (mfc->mfc_stall != NULL &&
1307 mfc->mfc_expire != 0 &&
1308 --mfc->mfc_expire == 0) {
1311 (u_long)ntohl(mfc->mfc_origin.s_addr),
1312 (u_long)ntohl(mfc->mfc_mcastgrp.s_addr));
1317 for (rte = mfc->mfc_stall; rte; ) {
1327 *nptr = mfc->mfc_next;
1328 FREE(mfc, M_MRTABLE);
1330 nptr = &mfc->mfc_next;
1341 ip_mdq(struct mbuf *m, struct ifnet *ifp, struct mfc *rt,