Lines Matching refs:mfc

95 static void mr6_netlink_event(struct mr_table *mrt, struct mfc6_cache *mfc,
485 const struct mfc6_cache *mfc = v; in ipmr_mfc_seq_show() local
490 &mfc->mf6c_mcastgrp, &mfc->mf6c_origin, in ipmr_mfc_seq_show()
491 mfc->_c.mfc_parent); in ipmr_mfc_seq_show()
495 mfc->_c.mfc_un.res.pkt, in ipmr_mfc_seq_show()
496 mfc->_c.mfc_un.res.bytes, in ipmr_mfc_seq_show()
497 mfc->_c.mfc_un.res.wrong_if); in ipmr_mfc_seq_show()
498 for (n = mfc->_c.mfc_un.res.minvif; in ipmr_mfc_seq_show()
499 n < mfc->_c.mfc_un.res.maxvif; n++) { in ipmr_mfc_seq_show()
501 mfc->_c.mfc_un.res.ttls[n] < 255) in ipmr_mfc_seq_show()
504 mfc->_c.mfc_un.res.ttls[n]); in ipmr_mfc_seq_show()
692 struct mfc6_cache *mfc, u32 tb_id) in call_ip6mr_mfc_entry_notifiers() argument
695 &mfc->_c, tb_id, &net->ipv6.ipmr_seq); in call_ip6mr_mfc_entry_notifiers()
1218 static int ip6mr_mfc_delete(struct mr_table *mrt, struct mf6cctl *mfc, in ip6mr_mfc_delete() argument
1225 c = ip6mr_cache_find_parent(mrt, &mfc->mf6cc_origin.sin6_addr, in ip6mr_mfc_delete()
1226 &mfc->mf6cc_mcastgrp.sin6_addr, parent); in ip6mr_mfc_delete()
1426 struct mf6cctl *mfc, int mrtsock, int parent) in ip6mr_mfc_add() argument
1434 if (mfc->mf6cc_parent >= MAXMIFS) in ip6mr_mfc_add()
1439 if (IF_ISSET(i, &mfc->mf6cc_ifset)) in ip6mr_mfc_add()
1445 c = ip6mr_cache_find_parent(mrt, &mfc->mf6cc_origin.sin6_addr, in ip6mr_mfc_add()
1446 &mfc->mf6cc_mcastgrp.sin6_addr, parent); in ip6mr_mfc_add()
1450 c->_c.mfc_parent = mfc->mf6cc_parent; in ip6mr_mfc_add()
1461 if (!ipv6_addr_any(&mfc->mf6cc_mcastgrp.sin6_addr) && in ip6mr_mfc_add()
1462 !ipv6_addr_is_multicast(&mfc->mf6cc_mcastgrp.sin6_addr)) in ip6mr_mfc_add()
1469 c->mf6c_origin = mfc->mf6cc_origin.sin6_addr; in ip6mr_mfc_add()
1470 c->mf6c_mcastgrp = mfc->mf6cc_mcastgrp.sin6_addr; in ip6mr_mfc_add()
1471 c->_c.mfc_parent = mfc->mf6cc_parent; in ip6mr_mfc_add()
1661 struct mf6cctl mfc; in ip6_mroute_setsockopt() local
1723 if (optlen < sizeof(mfc)) in ip6_mroute_setsockopt()
1725 if (copy_from_sockptr(&mfc, optval, sizeof(mfc))) in ip6_mroute_setsockopt()
1728 parent = mfc.mf6cc_parent; in ip6_mroute_setsockopt()
1731 ret = ip6mr_mfc_delete(mrt, &mfc, parent); in ip6_mroute_setsockopt()
1733 ret = ip6mr_mfc_add(net, mrt, &mfc, in ip6_mroute_setsockopt()
2416 static void mr6_netlink_event(struct mr_table *mrt, struct mfc6_cache *mfc, in mr6_netlink_event() argument
2423 skb = nlmsg_new(mr6_msgsize(mfc->_c.mfc_parent >= MAXMIFS, mrt->maxvif), in mr6_netlink_event()
2428 err = ip6mr_fill_mroute(mrt, skb, 0, 0, mfc, cmd, 0); in mr6_netlink_event()