Home
last modified time | relevance | path

Searched refs:gateway (Results 1 – 7 of 7) sorted by relevance

/system/netd/
DSecondaryTableController.cpp64 char *gateway) { in addRoute() argument
79 return modifyRoute(cli, ADD, iface, dest, prefix, gateway, tableIndex); in addRoute()
83 char *dest, int prefix, char *gateway, int tableIndex) { in modifyRoute() argument
86 if (strcmp("::", gateway) == 0) { in modifyRoute()
92 IP_PATH, action, dest, prefix, gateway, iface, tableIndex+BASE_TABLE_NUMBER); in modifyRoute()
97 IP_PATH, action, dest, prefix, gateway, iface, tableIndex+BASE_TABLE_NUMBER); in modifyRoute()
146 char *gateway) { in removeRoute() argument
155 return modifyRoute(cli, DEL, iface, dest, prefix, gateway, tableIndex); in removeRoute()
DSecondaryTableController.h38 int addRoute(SocketClient *cli, char *iface, char *dest, int prefixLen, char *gateway);
39 int removeRoute(SocketClient *cli, char *iface, char *dest, int prefixLen, char *gateway);
46 char *gateway, int tableIndex);
/system/core/libnetutils/
Ddhcp_utils.c89 char *gateway, in fill_ip_info() argument
108 property_get(prop_name, gateway, NULL); in fill_ip_info()
114 if (strcmp(gateway, "0.0.0.0") == 0) { in fill_ip_info()
116 strncpy(gateway, server, PROPERTY_VALUE_MAX); in fill_ip_info()
178 char *gateway, in dhcp_do_request() argument
235 if (fill_ip_info(interface, ipaddr, gateway, prefixLength, in dhcp_do_request()
328 char *gateway, in dhcp_do_request_renew() argument
370 fill_ip_info(interface, ipaddr, gateway, prefixLength, in dhcp_do_request_renew()
Ddhcpclient.c104 uint32_t gateway; member
116 void get_dhcp_info(uint32_t *ipaddr, uint32_t *gateway, uint32_t *prefixLength, in get_dhcp_info() argument
121 *gateway = last_good_info.gateway; in get_dhcp_info()
132 return ifc_configure(ifname, info->ipaddr, info->prefixLength, info->gateway, in dhcp_configure()
157 strcpy(gway, ipaddr(info->gateway)); in dump_dhcp_info()
207 if (optlen >= 4) memcpy(&info->gateway, x, 4); in decode_dhcp_msg()
Difc_utils.c742 int ifc_set_default_route(const char *ifname, in_addr_t gateway) in ifc_set_default_route() argument
748 addr.s_addr = gateway; in ifc_set_default_route()
749 if ((result = ifc_create_default_route(ifname, gateway)) < 0) { in ifc_set_default_route()
781 in_addr_t gateway, in ifc_configure() argument
804 if (ifc_create_default_route(ifname, gateway)) { in ifc_configure()
805 … printerr("failed to set default route %s: %s\n", ipaddr_to_string(gateway), strerror(errno)); in ifc_configure()
/system/core/include/netutils/
Difc.h57 extern int ifc_set_default_route(const char *ifname, in_addr_t gateway);
69 uint32_t prefixLength, in_addr_t gateway,
Ddhcp.h28 char *gateway,