Lines Matching refs:ifreq
174 struct ifreq ifreq = { 0 }; in test_so_bindtodevice() local
189 strcpy(ifreq.ifr_name, DEV2_NAME); in test_so_bindtodevice()
190 ret = zsock_setsockopt(sock_s, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, in test_so_bindtodevice()
191 sizeof(ifreq)); in test_so_bindtodevice()
198 strcpy(ifreq.ifr_name, DEV1_NAME); in test_so_bindtodevice()
201 ret = zsock_setsockopt(sock_c, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, in test_so_bindtodevice()
202 sizeof(ifreq)); in test_so_bindtodevice()
223 strcpy(ifreq.ifr_name, DEV2_NAME); in test_so_bindtodevice()
226 ret = zsock_setsockopt(sock_c, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, in test_so_bindtodevice()
227 sizeof(ifreq)); in test_so_bindtodevice()
253 strcpy(ifreq.ifr_name, ""); in test_so_bindtodevice()
254 ret = zsock_setsockopt(sock_s, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, in test_so_bindtodevice()
255 sizeof(ifreq)); in test_so_bindtodevice()
261 strcpy(ifreq.ifr_name, DEV1_NAME); in test_so_bindtodevice()
264 ret = zsock_setsockopt(sock_c, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, in test_so_bindtodevice()
265 sizeof(ifreq)); in test_so_bindtodevice()