Lines Matching full:mfc

111 static void mroute_netlink_event(struct mr_table *mrt, struct mfc_cache *mfc,
637 struct mfc_cache *mfc, u32 tb_id) in call_ipmr_mfc_entry_notifiers() argument
640 &mfc->_c, tb_id, &net->ipv4.ipmr_seq); in call_ipmr_mfc_entry_notifiers()
1175 /* MFC cache manipulation by user space mroute daemon */
1177 static int ipmr_mfc_delete(struct mr_table *mrt, struct mfcctl *mfc, int parent) in ipmr_mfc_delete() argument
1184 c = ipmr_cache_find_parent(mrt, mfc->mfcc_origin.s_addr, in ipmr_mfc_delete()
1185 mfc->mfcc_mcastgrp.s_addr, parent); in ipmr_mfc_delete()
1199 struct mfcctl *mfc, int mrtsock, int parent) in ipmr_mfc_add() argument
1206 if (mfc->mfcc_parent >= MAXVIFS) in ipmr_mfc_add()
1211 c = ipmr_cache_find_parent(mrt, mfc->mfcc_origin.s_addr, in ipmr_mfc_add()
1212 mfc->mfcc_mcastgrp.s_addr, parent); in ipmr_mfc_add()
1216 c->_c.mfc_parent = mfc->mfcc_parent; in ipmr_mfc_add()
1217 ipmr_update_thresholds(mrt, &c->_c, mfc->mfcc_ttls); in ipmr_mfc_add()
1227 if (mfc->mfcc_mcastgrp.s_addr != htonl(INADDR_ANY) && in ipmr_mfc_add()
1228 !ipv4_is_multicast(mfc->mfcc_mcastgrp.s_addr)) in ipmr_mfc_add()
1235 c->mfc_origin = mfc->mfcc_origin.s_addr; in ipmr_mfc_add()
1236 c->mfc_mcastgrp = mfc->mfcc_mcastgrp.s_addr; in ipmr_mfc_add()
1237 c->_c.mfc_parent = mfc->mfcc_parent; in ipmr_mfc_add()
1238 ipmr_update_thresholds(mrt, &c->_c, mfc->mfcc_ttls); in ipmr_mfc_add()
1365 struct mfcctl mfc; in ip_mroute_setsockopt() local
1454 if (optlen != sizeof(mfc)) { in ip_mroute_setsockopt()
1458 if (copy_from_sockptr(&mfc, optval, sizeof(mfc))) { in ip_mroute_setsockopt()
1463 parent = mfc.mfcc_parent; in ip_mroute_setsockopt()
1465 ret = ipmr_mfc_delete(mrt, &mfc, parent); in ip_mroute_setsockopt()
1467 ret = ipmr_mfc_add(net, mrt, &mfc, in ip_mroute_setsockopt()
2388 static void mroute_netlink_event(struct mr_table *mrt, struct mfc_cache *mfc, in mroute_netlink_event() argument
2395 skb = nlmsg_new(mroute_msgsize(mfc->_c.mfc_parent >= MAXVIFS, in mroute_netlink_event()
2401 err = ipmr_fill_mroute(mrt, skb, 0, 0, mfc, cmd, 0); in mroute_netlink_event()
2991 const struct mfc_cache *mfc = v; in ipmr_mfc_seq_show() local
2996 (__force u32) mfc->mfc_mcastgrp, in ipmr_mfc_seq_show()
2997 (__force u32) mfc->mfc_origin, in ipmr_mfc_seq_show()
2998 mfc->_c.mfc_parent); in ipmr_mfc_seq_show()
3002 mfc->_c.mfc_un.res.pkt, in ipmr_mfc_seq_show()
3003 mfc->_c.mfc_un.res.bytes, in ipmr_mfc_seq_show()
3004 mfc->_c.mfc_un.res.wrong_if); in ipmr_mfc_seq_show()
3005 for (n = mfc->_c.mfc_un.res.minvif; in ipmr_mfc_seq_show()
3006 n < mfc->_c.mfc_un.res.maxvif; n++) { in ipmr_mfc_seq_show()
3008 mfc->_c.mfc_un.res.ttls[n] < 255) in ipmr_mfc_seq_show()
3011 n, mfc->_c.mfc_un.res.ttls[n]); in ipmr_mfc_seq_show()