Home
last modified time | relevance | path

Searched refs:ifname (Results 1 – 6 of 6) sorted by relevance

/system/core/include/netutils/
Difc.h34 extern int ifc_enable(const char *ifname);
35 extern int ifc_disable(const char *ifname);
40 extern int ifc_reset_connections(const char *ifname, const int reset_mask);
55 extern int ifc_get_default_route(const char *ifname);
57 extern int ifc_set_default_route(const char *ifname, in_addr_t gateway);
60 extern int ifc_remove_default_route(const char *ifname);
63 extern int ifc_remove_route(const char *ifname, const char *dst,
68 extern int ifc_configure(const char *ifname, in_addr_t address,
Ddhcp.h26 extern int dhcp_do_request(const char *ifname,
34 extern int dhcp_do_request_renew(const char *ifname,
42 extern int dhcp_stop(const char *ifname);
43 extern int dhcp_release_lease(const char *ifname);
/system/core/libnetutils/
Difc_utils.c352 char ifname[64]; // Currently, IFNAMSIZ = 16. in ifc_clear_ipv6_addresses() local
361 rawaddrstr, &prefixlen, ifname) == 3) { in ifc_clear_ipv6_addresses()
363 if (strcmp(name, ifname)) { in ifc_clear_ipv6_addresses()
382 ret = ifc_del_address(ifname, addrstr, prefixlen); in ifc_clear_ipv6_addresses()
384 ALOGE("Deleting address %s/%d on %s: %s", addrstr, prefixlen, ifname, in ifc_clear_ipv6_addresses()
504 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, in ifc_act_on_ipv4_route() argument
514 rt.rt_dev = (void*) ifname; in ifc_act_on_ipv4_route()
572 int ifc_enable(const char *ifname) in ifc_enable() argument
577 result = ifc_up(ifname); in ifc_enable()
582 int ifc_disable(const char *ifname) in ifc_disable() argument
[all …]
Ddhcpclient.c129 static int dhcp_configure(const char *ifname, dhcp_info *info) in dhcp_configure() argument
132 return ifc_configure(ifname, info->ipaddr, info->prefixLength, info->gateway, in dhcp_configure()
387 int dhcp_init_ifc(const char *ifname) in dhcp_init_ifc() argument
405 if (ifc_get_hwaddr(ifname, hwaddr)) { in dhcp_init_ifc()
408 if (ifc_get_ifindex(ifname, &if_index)) { in dhcp_init_ifc()
412 s = open_raw_socket(ifname, hwaddr, if_index); in dhcp_init_ifc()
432 … printerr("no acknowledgement from DHCP server\nconfiguring %s with offered parameters\n", ifname); in dhcp_init_ifc()
433 return dhcp_configure(ifname, &info); in dhcp_init_ifc()
512 printerr("configuring %s\n", ifname); in dhcp_init_ifc()
514 return dhcp_configure(ifname, &info); in dhcp_init_ifc()
Dpacket.h20 int open_raw_socket(const char *ifname, uint8_t *hwaddr, int if_index);
Dpacket.c42 int open_raw_socket(const char *ifname __attribute__((unused)), uint8_t *hwaddr, int if_index) in open_raw_socket() argument