• Home
  • Raw
  • Download

Lines Matching refs:arg

506 	struct fib6_nh_dm_arg *arg = _arg;  in __rt6_nh_dev_match()  local
508 arg->nh = nh; in __rt6_nh_dev_match()
509 return __rt6_device_match(arg->net, nh, arg->saddr, arg->oif, in __rt6_nh_dev_match()
510 arg->flags); in __rt6_nh_dev_match()
519 struct fib6_nh_dm_arg arg = { in rt6_nh_dev_match() local
529 if (nexthop_for_each_fib6_nh(nh, __rt6_nh_dev_match, &arg)) in rt6_nh_dev_match()
530 return arg.nh; in rt6_nh_dev_match()
786 struct fib6_nh_frl_arg *arg = _arg; in rt6_nh_find_match() local
788 arg->nh = nh; in rt6_nh_find_match()
789 return find_match(nh, arg->flags, arg->oif, arg->strict, in rt6_nh_find_match()
790 arg->mpri, arg->do_rr); in rt6_nh_find_match()
815 struct fib6_nh_frl_arg arg = { in __find_rr_leaf() local
831 &arg)) { in __find_rr_leaf()
833 nh = arg.nh; in __find_rr_leaf()
1746 static int rt6_nh_flush_exceptions(struct fib6_nh *nh, void *arg) in rt6_nh_flush_exceptions() argument
1748 struct fib6_info *f6i = arg; in rt6_nh_flush_exceptions()
1855 struct fib6_nh_excptn_arg *arg = _arg; in rt6_nh_remove_exception_rt() local
1858 err = fib6_nh_remove_exception(nh, arg->plen, arg->rt); in rt6_nh_remove_exception_rt()
1874 struct fib6_nh_excptn_arg arg = { in rt6_remove_exception_rt() local
1883 &arg); in rt6_remove_exception_rt()
1926 struct fib6_nh_match_arg *arg = _arg; in fib6_nh_find_match() local
1928 if (arg->dev != nh->fib_nh_dev || in fib6_nh_find_match()
1929 (arg->gw && !nh->fib_nh_gw_family) || in fib6_nh_find_match()
1930 (!arg->gw && nh->fib_nh_gw_family) || in fib6_nh_find_match()
1931 (arg->gw && !ipv6_addr_equal(arg->gw, &nh->fib_nh_gw6))) in fib6_nh_find_match()
1934 arg->match = nh; in fib6_nh_find_match()
1952 struct fib6_nh_match_arg arg = { in rt6_update_exception_stamp_rt() local
1957 nexthop_for_each_fib6_nh(from->nh, fib6_nh_find_match, &arg); in rt6_update_exception_stamp_rt()
1959 if (!arg.match) in rt6_update_exception_stamp_rt()
1961 fib6_nh = arg.match; in rt6_update_exception_stamp_rt()
2134 struct fib6_nh_age_excptn_arg *arg = _arg; in rt6_nh_age_exceptions() local
2136 fib6_nh_age_exceptions(nh, arg->gc_args, arg->now); in rt6_nh_age_exceptions()
2145 struct fib6_nh_age_excptn_arg arg = { in rt6_age_exceptions() local
2151 &arg); in rt6_age_exceptions()
2745 struct fib6_nh_match_arg arg = { in __ip6_rt_update_pmtu() local
2751 fib6_nh_find_match, &arg); in __ip6_rt_update_pmtu()
2756 if (!arg.match) in __ip6_rt_update_pmtu()
2759 res.nh = arg.match; in __ip6_rt_update_pmtu()
2882 struct fib6_nh_rd_arg *arg = _arg; in fib6_nh_redirect_match() local
2884 arg->res->nh = nh; in fib6_nh_redirect_match()
2885 return ip6_redirect_nh_match(arg->res, arg->fl6, arg->gw, arg->ret); in fib6_nh_redirect_match()
2903 struct fib6_nh_rd_arg arg = { in __ip6_route_redirect() local
2943 &arg)) in __ip6_route_redirect()
3845 struct fib6_nh_del_cached_rt_arg *arg = _arg; in fib6_nh_del_cached_rt() local
3848 rc = ip6_del_cached_rt(arg->cfg, arg->f6i, nh); in fib6_nh_del_cached_rt()
3854 struct fib6_nh_del_cached_rt_arg arg = { in ip6_del_cached_rt_nh() local
3859 return nexthop_for_each_fib6_nh(f6i->nh, fib6_nh_del_cached_rt, &arg); in ip6_del_cached_rt_nh()
4044 struct fib6_nh_match_arg arg = { in rt6_do_redirect() local
4050 fib6_nh_find_match, &arg); in rt6_do_redirect()
4055 if (!arg.match) in rt6_do_redirect()
4057 res.nh = arg.match; in rt6_do_redirect()
4228 static int rt6_addrconf_purge(struct fib6_info *rt, void *arg) in rt6_addrconf_purge() argument
4271 int ipv6_route_ioctl(struct net *net, unsigned int cmd, void __user *arg) in ipv6_route_ioctl() argument
4282 err = copy_from_user(&rtmsg, arg, in ipv6_route_ioctl()
4411 static int fib6_remove_prefsrc(struct fib6_info *rt, void *arg) in fib6_remove_prefsrc() argument
4413 struct net_device *dev = ((struct arg_dev_net_ip *)arg)->dev; in fib6_remove_prefsrc()
4414 struct net *net = ((struct arg_dev_net_ip *)arg)->net; in fib6_remove_prefsrc()
4415 struct in6_addr *addr = ((struct arg_dev_net_ip *)arg)->addr; in fib6_remove_prefsrc()
4443 static int fib6_clean_tohost(struct fib6_info *rt, void *arg) in fib6_clean_tohost() argument
4445 struct in6_addr *gateway = (struct in6_addr *)arg; in fib6_clean_tohost()
4575 const struct arg_netdev_event *arg = p_arg; in fib6_ifup() local
4576 struct net *net = dev_net(arg->dev); in fib6_ifup()
4579 rt->fib6_nh->fib_nh_dev == arg->dev) { in fib6_ifup()
4580 rt->fib6_nh->fib_nh_flags &= ~arg->nh_flags; in fib6_ifup()
4590 struct arg_netdev_event arg = { in rt6_sync_up() local
4598 arg.nh_flags |= RTNH_F_LINKDOWN; in rt6_sync_up()
4600 fib6_clean_all(dev_net(dev), fib6_ifup, &arg); in rt6_sync_up()
4660 const struct arg_netdev_event *arg = p_arg; in fib6_ifdown() local
4661 const struct net_device *dev = arg->dev; in fib6_ifdown()
4667 switch (arg->event) { in fib6_ifdown()
4703 struct arg_netdev_event arg = { in rt6_sync_down_dev() local
4712 fib6_clean_all_skip_notify(net, fib6_ifdown, &arg); in rt6_sync_down_dev()
4714 fib6_clean_all(net, fib6_ifdown, &arg); in rt6_sync_down_dev()
4732 struct rt6_mtu_change_arg *arg = (struct rt6_mtu_change_arg *)_arg; in fib6_nh_mtu_change() local
4733 struct fib6_info *f6i = arg->f6i; in fib6_nh_mtu_change()
4740 if (nh->fib_nh_dev == arg->dev) { in fib6_nh_mtu_change()
4741 struct inet6_dev *idev = __in6_dev_get(arg->dev); in fib6_nh_mtu_change()
4744 if (mtu >= arg->mtu || in fib6_nh_mtu_change()
4745 (mtu < arg->mtu && mtu == idev->cnf.mtu6)) in fib6_nh_mtu_change()
4746 fib6_metric_set(f6i, RTAX_MTU, arg->mtu); in fib6_nh_mtu_change()
4749 rt6_exceptions_update_pmtu(idev, nh, arg->mtu); in fib6_nh_mtu_change()
4758 struct rt6_mtu_change_arg *arg = (struct rt6_mtu_change_arg *) p_arg; in rt6_mtu_change_route() local
4767 idev = __in6_dev_get(arg->dev); in rt6_mtu_change_route()
4774 arg->f6i = f6i; in rt6_mtu_change_route()
4778 arg); in rt6_mtu_change_route()
4781 return fib6_nh_mtu_change(f6i->fib6_nh, arg); in rt6_mtu_change_route()
4786 struct rt6_mtu_change_arg arg = { in rt6_mtu_change() local
4791 fib6_clean_all(dev_net(dev), rt6_mtu_change_route, &arg); in rt6_mtu_change()
5259 static int rt6_nh_nlmsg_size(struct fib6_nh *nh, void *arg) in rt6_nh_nlmsg_size() argument
5261 int *nexthop_len = arg; in rt6_nh_nlmsg_size()
5514 static int fib6_info_nh_uses_dev(struct fib6_nh *nh, void *arg) in fib6_info_nh_uses_dev() argument
5516 const struct net_device *dev = arg; in fib6_info_nh_uses_dev()
5559 static int rt6_nh_dump_exceptions(struct fib6_nh *nh, void *arg) in rt6_nh_dump_exceptions() argument
5561 struct fib6_nh_exception_dump_walker *w = arg; in rt6_nh_dump_exceptions()
5613 struct rt6_rtnl_dump_arg *arg = (struct rt6_rtnl_dump_arg *) p_arg; in rt6_dump_route() local
5614 struct fib_dump_filter *filter = &arg->filter; in rt6_dump_route()
5616 struct net *net = arg->net; in rt6_dump_route()
5643 if (rt6_fill_node(net, arg->skb, rt, NULL, NULL, NULL, in rt6_dump_route()
5645 NETLINK_CB(arg->cb->skb).portid, in rt6_dump_route()
5646 arg->cb->nlh->nlmsg_seq, flags)) { in rt6_dump_route()
5654 struct fib6_nh_exception_dump_walker w = { .dump = arg, in rt6_dump_route()