Lines Matching refs:arg_ifindex

48 static int arg_ifindex = 0;  variable
127 if (arg_ifindex > 0 && arg_ifindex != ifi) in ifname_mangle()
130 arg_ifindex = ifi; in ifname_mangle()
223 r = sd_bus_message_append(req, "isit", arg_ifindex, name, arg_family, arg_flags); in resolve_host()
316 ifindex = arg_ifindex; in resolve_address()
507 r = sd_bus_message_append(req, "isqqt", arg_ifindex, name, class, type, arg_flags); in resolve_record()
766 … r = sd_bus_message_append(req, "isssit", arg_ifindex, name, type, domain, arg_family, arg_flags); in resolve_service()
2054 r = sd_bus_message_append(req, "i", arg_ifindex); in call_dns()
2075 if (ifindex != 0 && ifindex != arg_ifindex) in call_dns()
2130 if (arg_ifindex <= 0) in verb_dns()
2134 return status_ifindex(bus, arg_ifindex, NULL, STATUS_DNS, NULL); in verb_dns()
2161 r = sd_bus_message_append(req, "i", arg_ifindex); in call_domain()
2210 if (arg_ifindex <= 0) in verb_domain()
2214 return status_ifindex(bus, arg_ifindex, NULL, STATUS_DOMAIN, NULL); in verb_domain()
2246 if (arg_ifindex <= 0) in verb_default_route()
2250 return status_ifindex(bus, arg_ifindex, NULL, STATUS_DEFAULT_ROUTE, NULL); in verb_default_route()
2256 …= bus_call_method(bus, bus_resolve_mgr, "SetLinkDefaultRoute", &error, NULL, "ib", arg_ifindex, b); in verb_default_route()
2260 …= bus_call_method(bus, bus_network_mgr, "SetLinkDefaultRoute", &error, NULL, "ib", arg_ifindex, b); in verb_default_route()
2286 if (arg_ifindex <= 0) in verb_llmnr()
2290 return status_ifindex(bus, arg_ifindex, NULL, STATUS_LLMNR, NULL); in verb_llmnr()
2292 …r = bus_call_method(bus, bus_resolve_mgr, "SetLinkLLMNR", &error, NULL, "is", arg_ifindex, argv[2]… in verb_llmnr()
2296 … = bus_call_method(bus, bus_network_mgr, "SetLinkLLMNR", &error, NULL, "is", arg_ifindex, argv[2]); in verb_llmnr()
2322 if (arg_ifindex <= 0) in verb_mdns()
2326 return status_ifindex(bus, arg_ifindex, NULL, STATUS_MDNS, NULL); in verb_mdns()
2328 …call_method(bus, bus_resolve_mgr, "SetLinkMulticastDNS", &error, NULL, "is", arg_ifindex, argv[2]); in verb_mdns()
2338 "is", arg_ifindex, argv[2]); in verb_mdns()
2364 if (arg_ifindex <= 0) in verb_dns_over_tls()
2368 return status_ifindex(bus, arg_ifindex, NULL, STATUS_PRIVATE, NULL); in verb_dns_over_tls()
2370 …s_call_method(bus, bus_resolve_mgr, "SetLinkDNSOverTLS", &error, NULL, "is", arg_ifindex, argv[2]); in verb_dns_over_tls()
2380 "is", arg_ifindex, argv[2]); in verb_dns_over_tls()
2406 if (arg_ifindex <= 0) in verb_dnssec()
2410 return status_ifindex(bus, arg_ifindex, NULL, STATUS_DNSSEC, NULL); in verb_dnssec()
2412 …r = bus_call_method(bus, bus_resolve_mgr, "SetLinkDNSSEC", &error, NULL, "is", arg_ifindex, argv[2… in verb_dnssec()
2416 …= bus_call_method(bus, bus_network_mgr, "SetLinkDNSSEC", &error, NULL, "is", arg_ifindex, argv[2]); in verb_dnssec()
2437 r = sd_bus_message_append(req, "i", arg_ifindex); in call_nta()
2462 if (arg_ifindex <= 0) in verb_nta()
2466 return status_ifindex(bus, arg_ifindex, NULL, STATUS_NTA, NULL); in verb_nta()
2513 if (arg_ifindex <= 0) in verb_revert_link()
2516 r = bus_call_method(bus, bus_resolve_mgr, "RevertLink", &error, NULL, "i", arg_ifindex); in verb_revert_link()
2520 … r = bus_call_method(bus, bus_network_mgr, "RevertLinkDNS", &error, NULL, "i", arg_ifindex); in verb_revert_link()
2996 if (arg_ifindex <= 0) in compat_parse_argv()