Lines Matching refs:mfc
90 static void mr6_netlink_event(struct mr_table *mrt, struct mfc6_cache *mfc,
474 const struct mfc6_cache *mfc = v; in ipmr_mfc_seq_show() local
479 &mfc->mf6c_mcastgrp, &mfc->mf6c_origin, in ipmr_mfc_seq_show()
480 mfc->_c.mfc_parent); in ipmr_mfc_seq_show()
484 mfc->_c.mfc_un.res.pkt, in ipmr_mfc_seq_show()
485 mfc->_c.mfc_un.res.bytes, in ipmr_mfc_seq_show()
486 mfc->_c.mfc_un.res.wrong_if); in ipmr_mfc_seq_show()
487 for (n = mfc->_c.mfc_un.res.minvif; in ipmr_mfc_seq_show()
488 n < mfc->_c.mfc_un.res.maxvif; n++) { in ipmr_mfc_seq_show()
490 mfc->_c.mfc_un.res.ttls[n] < 255) in ipmr_mfc_seq_show()
493 mfc->_c.mfc_un.res.ttls[n]); in ipmr_mfc_seq_show()
682 struct mfc6_cache *mfc, u32 tb_id) in call_ip6mr_mfc_entry_notifiers() argument
685 &mfc->_c, tb_id, &net->ipv6.ipmr_seq); in call_ip6mr_mfc_entry_notifiers()
1209 static int ip6mr_mfc_delete(struct mr_table *mrt, struct mf6cctl *mfc, in ip6mr_mfc_delete() argument
1216 c = ip6mr_cache_find_parent(mrt, &mfc->mf6cc_origin.sin6_addr, in ip6mr_mfc_delete()
1217 &mfc->mf6cc_mcastgrp.sin6_addr, parent); in ip6mr_mfc_delete()
1417 struct mf6cctl *mfc, int mrtsock, int parent) in ip6mr_mfc_add() argument
1425 if (mfc->mf6cc_parent >= MAXMIFS) in ip6mr_mfc_add()
1430 if (IF_ISSET(i, &mfc->mf6cc_ifset)) in ip6mr_mfc_add()
1436 c = ip6mr_cache_find_parent(mrt, &mfc->mf6cc_origin.sin6_addr, in ip6mr_mfc_add()
1437 &mfc->mf6cc_mcastgrp.sin6_addr, parent); in ip6mr_mfc_add()
1441 c->_c.mfc_parent = mfc->mf6cc_parent; in ip6mr_mfc_add()
1452 if (!ipv6_addr_any(&mfc->mf6cc_mcastgrp.sin6_addr) && in ip6mr_mfc_add()
1453 !ipv6_addr_is_multicast(&mfc->mf6cc_mcastgrp.sin6_addr)) in ip6mr_mfc_add()
1460 c->mf6c_origin = mfc->mf6cc_origin.sin6_addr; in ip6mr_mfc_add()
1461 c->mf6c_mcastgrp = mfc->mf6cc_mcastgrp.sin6_addr; in ip6mr_mfc_add()
1462 c->_c.mfc_parent = mfc->mf6cc_parent; in ip6mr_mfc_add()
1652 struct mf6cctl mfc; in ip6_mroute_setsockopt() local
1714 if (optlen < sizeof(mfc)) in ip6_mroute_setsockopt()
1716 if (copy_from_sockptr(&mfc, optval, sizeof(mfc))) in ip6_mroute_setsockopt()
1719 parent = mfc.mf6cc_parent; in ip6_mroute_setsockopt()
1722 ret = ip6mr_mfc_delete(mrt, &mfc, parent); in ip6_mroute_setsockopt()
1724 ret = ip6mr_mfc_add(net, mrt, &mfc, in ip6_mroute_setsockopt()
2421 static void mr6_netlink_event(struct mr_table *mrt, struct mfc6_cache *mfc, in mr6_netlink_event() argument
2428 skb = nlmsg_new(mr6_msgsize(mfc->_c.mfc_parent >= MAXMIFS, mrt->maxvif), in mr6_netlink_event()
2433 err = ip6mr_fill_mroute(mrt, skb, 0, 0, mfc, cmd, 0); in mr6_netlink_event()