Home
last modified time | relevance | path

Searched refs:init_sockaddr_in (Results 1 – 2 of 2) sorted by relevance

/system/core/libnetutils/
Difc_utils.c128 static void init_sockaddr_in(struct sockaddr *sa, in_addr_t addr) in init_sockaddr_in() function
141 init_sockaddr_in(&ifr.ifr_addr, addr); in ifc_set_addr()
151 init_sockaddr_in(&ifr.ifr_addr, mask); in ifc_set_mask()
198 init_sockaddr_in(&rt.rt_genmask, 0); in ifc_create_default_route()
199 init_sockaddr_in(&rt.rt_gateway, addr); in ifc_create_default_route()
214 init_sockaddr_in(&rt.rt_dst, addr); in ifc_add_host_route()
215 init_sockaddr_in(&rt.rt_genmask, 0); in ifc_add_host_route()
216 init_sockaddr_in(&rt.rt_gateway, 0); in ifc_add_host_route()
258 init_sockaddr_in(&ifr.ifr_addr, myaddr); in ifc_reset_connections()
302 init_sockaddr_in(&rt.rt_dst, dest); in ifc_remove_host_routes()
[all …]
/system/core/toolbox/
Difconfig.c29 static inline void init_sockaddr_in(struct sockaddr_in *sin, const char *addr) in init_sockaddr_in() function
44 init_sockaddr_in((struct sockaddr_in *) &ifr->ifr_dstaddr, addr); in setdstaddr()
50 init_sockaddr_in((struct sockaddr_in *) &ifr->ifr_netmask, addr); in setnetmask()
56 init_sockaddr_in((struct sockaddr_in *) &ifr->ifr_addr, addr); in setaddr()