Lines Matching refs:ifname
185 lws_interface_to_sa(int ipv6, const char *ifname, struct sockaddr_in *addr, in lws_interface_to_sa() argument
202 ifc->ifa_name, ifname, in lws_interface_to_sa()
205 if (strcmp(ifc->ifa_name, ifname)) in lws_interface_to_sa()
252 if (inet_pton(AF_INET6, ifname, &addr6->sin6_addr) == 1) in lws_interface_to_sa()
256 if (inet_pton(AF_INET, ifname, &addr->sin_addr) == 1) in lws_interface_to_sa()
277 lws_plat_ifname_to_hwaddr(int fd, const char *ifname, uint8_t *hwaddr, int len) in lws_plat_ifname_to_hwaddr() argument
283 lws_strncpy(i.ifr_name, ifname, sizeof(i.ifr_name)); in lws_plat_ifname_to_hwaddr()
339 lws_plat_if_up(const char *ifname, int fd, int up) in lws_plat_if_up() argument
345 lws_strncpy(ifr.ifr_name, ifname, IFNAMSIZ); in lws_plat_if_up()
371 lws_plat_BINDTODEVICE(lws_sockfd_type fd, const char *ifname) in lws_plat_BINDTODEVICE() argument
378 lws_strncpy(i.ifr_ifrn.ifrn_name, ifname, in lws_plat_BINDTODEVICE()
394 lws_plat_ifconfig_ip(const char *ifname, int fd, uint8_t *ip, uint8_t *mask_ip, in lws_plat_ifconfig_ip() argument
407 lws_strncpy(ifr.ifr_name, ifname, IFNAMSIZ); in lws_plat_ifconfig_ip()
409 lws_plat_if_up(ifname, fd, 0); in lws_plat_ifconfig_ip()
427 lws_plat_if_up(ifname, fd, 1); in lws_plat_ifconfig_ip()
443 route.rt_dev = (char *)ifname; in lws_plat_ifconfig_ip()