Home
last modified time | relevance | path

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

/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()
/system/core/libnetutils/
Difc_utils.c222 static void init_sockaddr_in(struct sockaddr *sa, in_addr_t addr) in init_sockaddr_in() function
236 init_sockaddr_in(&ifr.ifr_addr, addr); in ifc_set_addr()
439 init_sockaddr_in(&ifr.ifr_addr, mask); in ifc_set_mask()
454 init_sockaddr_in(&ifr.ifr_addr, mask); in ifc_set_prefixLength()
522 init_sockaddr_in(&rt.rt_genmask, netmask); in ifc_act_on_ipv4_route()
523 init_sockaddr_in(&rt.rt_dst, dst.s_addr); in ifc_act_on_ipv4_route()
532 init_sockaddr_in(&rt.rt_gateway, gw.s_addr); in ifc_act_on_ipv4_route()
613 init_sockaddr_in(&ifr.ifr_addr, myaddr); in ifc_reset_connections()
655 init_sockaddr_in(&rt.rt_dst, 0); in ifc_remove_default_route()