Searched defs:gateway (Results 1 - 4 of 4) sorted by relevance

/system/netd/
H A DSecondaryTableController.cpp64 char *gateway) {
79 return modifyRoute(cli, ADD, iface, dest, prefix, gateway, tableIndex);
83 char *dest, int prefix, char *gateway, int tableIndex) {
86 if (strcmp("::", gateway) == 0) {
92 IP_PATH, action, dest, prefix, gateway, iface, tableIndex+BASE_TABLE_NUMBER);
97 IP_PATH, action, dest, prefix, gateway, iface, tableIndex+BASE_TABLE_NUMBER);
146 char *gateway) {
155 return modifyRoute(cli, DEL, iface, dest, prefix, gateway, tableIndex);
63 addRoute(SocketClient *cli, char *iface, char *dest, int prefix, char *gateway) argument
82 modifyRoute(SocketClient *cli, const char *action, char *iface, char *dest, int prefix, char *gateway, int tableIndex) argument
145 removeRoute(SocketClient *cli, char *iface, char *dest, int prefix, char *gateway) argument
/system/core/libnetutils/
H A Ddhcp_utils.c89 char *gateway,
107 snprintf(prop_name, sizeof(prop_name), "%s.%s.gateway", DHCP_PROP_NAME_PREFIX, p2p_interface);
108 property_get(prop_name, gateway, NULL);
114 if (strcmp(gateway, "0.0.0.0") == 0) {
115 //DHCP server is our best bet as gateway
116 strncpy(gateway, server, PROPERTY_VALUE_MAX);
178 char *gateway,
235 if (fill_ip_info(interface, ipaddr, gateway, prefixLength,
328 char *gateway,
370 fill_ip_info(interface, ipaddr, gateway, prefixLengt
87 fill_ip_info(const char *interface, char *ipaddr, char *gateway, uint32_t *prefixLength, char *dns1, char *dns2, char *server, uint32_t *lease, char *vendorInfo) argument
176 dhcp_do_request(const char *interface, char *ipaddr, char *gateway, uint32_t *prefixLength, char *dns1, char *dns2, char *server, uint32_t *lease, char *vendorInfo) argument
326 dhcp_do_request_renew(const char *interface, char *ipaddr, char *gateway, uint32_t *prefixLength, char *dns1, char *dns2, char *server, uint32_t *lease, char *vendorInfo) argument
[all...]
H A Ddhcpclient.c104 uint32_t gateway; member in struct:dhcp_info
116 void get_dhcp_info(uint32_t *ipaddr, uint32_t *gateway, uint32_t *prefixLength, argument
121 *gateway = last_good_info.gateway;
132 return ifc_configure(ifname, info->ipaddr, info->prefixLength, info->gateway,
157 strcpy(gway, ipaddr(info->gateway));
207 if (optlen >= 4) memcpy(&info->gateway, x, 4);
H A Difc_utils.c694 * Return the address of the default gateway
739 * Sets the specified gateway as the default route for the named interface.
742 int ifc_set_default_route(const char *ifname, in_addr_t gateway) argument
748 addr.s_addr = gateway;
749 if ((result = ifc_create_default_route(ifname, gateway)) < 0) {
781 in_addr_t gateway,
804 if (ifc_create_default_route(ifname, gateway)) {
805 printerr("failed to set default route %s: %s\n", ipaddr_to_string(gateway), strerror(errno));
903 printerr("getaddrinfo failed: invalid gateway %s\n", gw);
778 ifc_configure(const char *ifname, in_addr_t address, uint32_t prefixLength, in_addr_t gateway, in_addr_t dns1, in_addr_t dns2) argument

Completed in 91 milliseconds