Searched defs:gw (Results 1 - 2 of 2) sorted by relevance

/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 391 milliseconds