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