Searched refs:gw (Results 1 – 2 of 2) sorted by relevance
/system/core/libsysutils/src/ |
D | NetlinkEvent.cpp | 336 char gw[INET6_ADDRSTRLEN] = ""; in parseRtMessage() local 350 if (maybeLogDuplicateAttribute(*gw, "RTA_GATEWAY", msgname)) in parseRtMessage() 352 if (!inet_ntop(family, RTA_DATA(rta), gw, sizeof(gw))) in parseRtMessage() 379 if (!*dst || (!*gw && !*dev)) in parseRtMessage() 387 asprintf(&mParams[1], "GATEWAY=%s", (*gw) ? gw : ""); in parseRtMessage()
|
/system/core/libnetutils/ |
D | ifc_utils.c | 532 struct in_addr gw) in ifc_act_on_ipv4_route() argument 552 if (gw.s_addr != 0) { in ifc_act_on_ipv4_route() 554 init_sockaddr_in(&rt.rt_gateway, gw.s_addr); in ifc_act_on_ipv4_route() 577 int ifc_create_default_route(const char *name, in_addr_t gw) in ifc_create_default_route() argument 582 in_gw.s_addr = gw; in ifc_create_default_route() 585 if (DBG) printerr("ifc_create_default_route(%s, %d) = %d", name, gw, ret); in ifc_create_default_route()
|