Searched refs:gw (Results 1 - 4 of 4) sorted by relevance

/system/connectivity/shill/test-scripts/
H A Dbackchannel34 echo " reach <ip> <gw> [new_iface_name] Route <ip> via gateway <gw>"
75 gw="$1" ; shift
79 ip route add "$ip" via "$gw" dev "$test_if"
/system/extras/tests/net_test/
H A Dnet_test.py261 gw, iface = route[2], route[0]
262 gw = inet_ntop(AF_INET, gw.decode("hex")[::-1])
263 return gw, iface
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp339 char gw[INET6_ADDRSTRLEN] = ""; local
353 if (maybeLogDuplicateAttribute(*gw, "RTA_GATEWAY", msgname))
355 if (!inet_ntop(family, RTA_DATA(rta), gw, sizeof(gw)))
382 if (!*dst || (!*gw && !*dev))
390 asprintf(&mParams[1], "GATEWAY=%s", (*gw) ? gw : "");
/system/core/libnetutils/
H A Difc_utils.c536 struct in_addr gw)
556 if (gw.s_addr != 0) {
558 init_sockaddr_in(&rt.rt_gateway, gw.s_addr);
581 int ifc_create_default_route(const char *name, in_addr_t gw) argument
586 in_gw.s_addr = gw;
589 if (DBG) printerr("ifc_create_default_route(%s, %d) = %d", name, gw, ret);
535 ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, struct in_addr gw) argument

Completed in 3508 milliseconds