Lines Matching refs:route
66 struct rtnl_route *route = (struct rtnl_route *) obj; in delete_cb() local
76 if ((err = rtnl_route_delete(sock, route, 0)) < 0) in delete_cb()
90 struct rtnl_route *route; in main() local
97 route = nl_cli_route_alloc(); in main()
144 case 'd': nf++; nl_cli_route_parse_dst(route, optarg); break; in main()
145 case 'n': nf++; nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main()
146 case 't': nf++; nl_cli_route_parse_table(route, optarg); break; in main()
147 case ARG_FAMILY: nf++; nl_cli_route_parse_family(route, optarg); break; in main()
148 case ARG_SRC: nf++; nl_cli_route_parse_src(route, optarg); break; in main()
149 case ARG_IIF: nf++; nl_cli_route_parse_iif(route, optarg, link_cache); break; in main()
150 case ARG_PREF_SRC: nf++; nl_cli_route_parse_pref_src(route, optarg); break; in main()
151 case ARG_METRICS: nf++; nl_cli_route_parse_metric(route, optarg); break; in main()
152 case ARG_PRIORITY: nf++; nl_cli_route_parse_prio(route, optarg); break; in main()
153 case ARG_SCOPE: nf++; nl_cli_route_parse_scope(route, optarg); break; in main()
154 case ARG_PROTOCOL: nf++; nl_cli_route_parse_protocol(route, optarg); break; in main()
155 case ARG_TYPE: nf++; nl_cli_route_parse_type(route, optarg); break; in main()
165 nl_cache_foreach_filter(route_cache, OBJ_CAST(route), delete_cb, NULL); in main()