Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/drivers/can/
Dcan_native_posix_linux_socketcan.c46 struct ifreq ifr; in linux_socketcan_iface_open() local
54 (void)memset(&ifr, 0, sizeof(ifr)); in linux_socketcan_iface_open()
57 strncpy(ifr.ifr_name, if_name, IFNAMSIZ); in linux_socketcan_iface_open()
59 ret = ioctl(fd, SIOCGIFINDEX, (void *)&ifr); in linux_socketcan_iface_open()
65 addr.can_ifindex = ifr.ifr_ifindex; in linux_socketcan_iface_open()
/Zephyr-Core-3.5.0/drivers/ethernet/
Deth_native_posix_adapt.c57 struct ifreq ifr; in eth_iface_create() local
65 (void)memset(&ifr, 0, sizeof(ifr)); in eth_iface_create()
68 ifr.ifr_flags = (tun_only ? IFF_TUN : IFF_TAP) | IFF_NO_PI; in eth_iface_create()
70 strncpy(ifr.ifr_name, if_name, IFNAMSIZ - 1); in eth_iface_create()
72 ret = ioctl(fd, TUNSETIFF, (void *)&ifr); in eth_iface_create()