Searched refs:gw (Results 1 – 4 of 4) sorted by relevance
/system/connectivity/shill/test-scripts/ |
D | backchannel | 75 gw="$1" ; shift 79 ip route add "$ip" via "$gw" dev "$test_if"
|
/system/core/libsysutils/src/ |
D | NetlinkEvent.cpp | 339 char gw[INET6_ADDRSTRLEN] = ""; in parseRtMessage() local 353 if (maybeLogDuplicateAttribute(*gw, "RTA_GATEWAY", msgname)) in parseRtMessage() 355 if (!inet_ntop(family, RTA_DATA(rta), gw, sizeof(gw))) in parseRtMessage() 382 if (!*dst || (!*gw && !*dev)) in parseRtMessage() 390 asprintf(&mParams[1], "GATEWAY=%s", (*gw) ? gw : ""); in parseRtMessage()
|
/system/extras/tests/net_test/ |
D | net_test.py | 261 gw, iface = route[2], route[0] 262 gw = inet_ntop(AF_INET, gw.decode("hex")[::-1]) 263 return gw, iface
|
/system/core/libnetutils/ |
D | ifc_utils.c | 536 struct in_addr gw) in ifc_act_on_ipv4_route() argument 556 if (gw.s_addr != 0) { in ifc_act_on_ipv4_route() 558 init_sockaddr_in(&rt.rt_gateway, gw.s_addr); in ifc_act_on_ipv4_route() 581 int ifc_create_default_route(const char *name, in_addr_t gw) in ifc_create_default_route() argument 586 in_gw.s_addr = gw; in ifc_create_default_route() 589 if (DBG) printerr("ifc_create_default_route(%s, %d) = %d", name, gw, ret); in ifc_create_default_route()
|