Searched refs:ifr (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/drivers/ethernet/ |
D | eth_native_posix_adapt.c | 43 struct ifreq ifr; in eth_iface_create() local 51 (void)memset(&ifr, 0, sizeof(ifr)); in eth_iface_create() 54 ifr.ifr_flags = (tun_only ? IFF_TUN : IFF_TAP) | IFF_NO_PI; in eth_iface_create() 56 strncpy(ifr.ifr_name, if_name, IFNAMSIZ - 1); in eth_iface_create() 58 ret = ioctl(fd, TUNSETIFF, (void *)&ifr); in eth_iface_create()
|
/Zephyr-latest/drivers/can/ |
D | can_native_linux_adapt.c | 47 struct ifreq ifr; in linux_socketcan_iface_open() local 55 (void)memset(&ifr, 0, sizeof(ifr)); in linux_socketcan_iface_open() 58 strncpy(ifr.ifr_name, if_name, IFNAMSIZ - 1); in linux_socketcan_iface_open() 60 ret = ioctl(fd, SIOCGIFINDEX, (void *)&ifr); in linux_socketcan_iface_open() 66 addr.can_ifindex = ifr.ifr_ifindex; in linux_socketcan_iface_open()
|