Lines Matching defs:arg

494 	struct fib6_nh_dm_arg *arg = _arg;
496 arg->nh = nh;
497 return __rt6_device_match(arg->net, nh, arg->saddr, arg->oif,
498 arg->flags);
507 struct fib6_nh_dm_arg arg = {
517 if (nexthop_for_each_fib6_nh(nh, __rt6_nh_dev_match, &arg))
518 return arg.nh;
776 struct fib6_nh_frl_arg *arg = _arg;
778 arg->nh = nh;
779 return find_match(nh, arg->flags, arg->oif, arg->strict,
780 arg->mpri, arg->do_rr);
805 struct fib6_nh_frl_arg arg = {
821 &arg)) {
823 nh = arg.nh;
1766 static int rt6_nh_flush_exceptions(struct fib6_nh *nh, void *arg)
1768 struct fib6_info *f6i = arg;
1875 struct fib6_nh_excptn_arg *arg = _arg;
1878 err = fib6_nh_remove_exception(nh, arg->plen, arg->rt);
1894 struct fib6_nh_excptn_arg arg = {
1903 &arg);
1946 struct fib6_nh_match_arg *arg = _arg;
1948 if (arg->dev != nh->fib_nh_dev ||
1949 (arg->gw && !nh->fib_nh_gw_family) ||
1950 (!arg->gw && nh->fib_nh_gw_family) ||
1951 (arg->gw && !ipv6_addr_equal(arg->gw, &nh->fib_nh_gw6)))
1954 arg->match = nh;
1972 struct fib6_nh_match_arg arg = {
1977 nexthop_for_each_fib6_nh(from->nh, fib6_nh_find_match, &arg);
1979 if (!arg.match)
1981 fib6_nh = arg.match;
2154 struct fib6_nh_age_excptn_arg *arg = _arg;
2156 fib6_nh_age_exceptions(nh, arg->gc_args, arg->now);
2165 struct fib6_nh_age_excptn_arg arg = {
2171 &arg);
2768 struct fib6_nh_match_arg arg = {
2774 fib6_nh_find_match, &arg);
2779 if (!arg.match)
2782 res.nh = arg.match;
2905 struct fib6_nh_rd_arg *arg = _arg;
2907 arg->res->nh = nh;
2908 return ip6_redirect_nh_match(arg->res, arg->fl6, arg->gw, arg->ret);
2926 struct fib6_nh_rd_arg arg = {
2966 &arg))
3918 struct fib6_nh_del_cached_rt_arg *arg = _arg;
3921 rc = ip6_del_cached_rt(arg->cfg, arg->f6i, nh);
3927 struct fib6_nh_del_cached_rt_arg arg = {
3932 return nexthop_for_each_fib6_nh(f6i->nh, fib6_nh_del_cached_rt, &arg);
4117 struct fib6_nh_match_arg arg = {
4123 fib6_nh_find_match, &arg);
4128 if (!arg.match)
4130 res.nh = arg.match;
4502 static int fib6_remove_prefsrc(struct fib6_info *rt, void *arg)
4504 struct net_device *dev = ((struct arg_dev_net_ip *)arg)->dev;
4505 struct net *net = ((struct arg_dev_net_ip *)arg)->net;
4506 struct in6_addr *addr = ((struct arg_dev_net_ip *)arg)->addr;
4534 static int fib6_clean_tohost(struct fib6_info *rt, void *arg)
4536 struct in6_addr *gateway = (struct in6_addr *)arg;
4666 const struct arg_netdev_event *arg = p_arg;
4667 struct net *net = dev_net(arg->dev);
4670 rt->fib6_nh->fib_nh_dev == arg->dev) {
4671 rt->fib6_nh->fib_nh_flags &= ~arg->nh_flags;
4681 struct arg_netdev_event arg = {
4689 arg.nh_flags |= RTNH_F_LINKDOWN;
4691 fib6_clean_all(dev_net(dev), fib6_ifup, &arg);
4751 const struct arg_netdev_event *arg = p_arg;
4752 const struct net_device *dev = arg->dev;
4758 switch (arg->event) {
4794 struct arg_netdev_event arg = {
4803 fib6_clean_all_skip_notify(net, fib6_ifdown, &arg);
4805 fib6_clean_all(net, fib6_ifdown, &arg);
4823 struct rt6_mtu_change_arg *arg = (struct rt6_mtu_change_arg *)_arg;
4824 struct fib6_info *f6i = arg->f6i;
4831 if (nh->fib_nh_dev == arg->dev) {
4832 struct inet6_dev *idev = __in6_dev_get(arg->dev);
4835 if (mtu >= arg->mtu ||
4836 (mtu < arg->mtu && mtu == idev->cnf.mtu6))
4837 fib6_metric_set(f6i, RTAX_MTU, arg->mtu);
4840 rt6_exceptions_update_pmtu(idev, nh, arg->mtu);
4849 struct rt6_mtu_change_arg *arg = (struct rt6_mtu_change_arg *) p_arg;
4858 idev = __in6_dev_get(arg->dev);
4865 arg->f6i = f6i;
4869 arg);
4872 return fib6_nh_mtu_change(f6i->fib6_nh, arg);
4877 struct rt6_mtu_change_arg arg = {
4882 fib6_clean_all(dev_net(dev), rt6_mtu_change_route, &arg);
5414 static int rt6_nh_nlmsg_size(struct fib6_nh *nh, void *arg)
5416 int *nexthop_len = arg;
5679 static int fib6_info_nh_uses_dev(struct fib6_nh *nh, void *arg)
5681 const struct net_device *dev = arg;
5724 static int rt6_nh_dump_exceptions(struct fib6_nh *nh, void *arg)
5726 struct fib6_nh_exception_dump_walker *w = arg;
5778 struct rt6_rtnl_dump_arg *arg = (struct rt6_rtnl_dump_arg *) p_arg;
5779 struct fib_dump_filter *filter = &arg->filter;
5781 struct net *net = arg->net;
5808 if (rt6_fill_node(net, arg->skb, rt, NULL, NULL, NULL,
5810 NETLINK_CB(arg->cb->skb).portid,
5811 arg->cb->nlh->nlmsg_seq, flags)) {
5819 struct fib6_nh_exception_dump_walker w = { .dump = arg,