Lines Matching refs:fake_iface
155 static struct net_if *fake_iface[3]; variable
161 if (if_count >= ARRAY_SIZE(fake_iface)) { in iface_cb()
178 fake_iface[if_count++] = iface; in iface_cb()
217 zassert_not_null(fake_iface[0], ""); in test_iface_setup()
218 zassert_not_null(fake_iface[1], ""); in test_iface_setup()
219 zassert_not_null(fake_iface[2], ""); in test_iface_setup()
222 net_if_get_by_iface(fake_iface[0]), fake_iface[0], in test_iface_setup()
223 net_if_get_by_iface(fake_iface[1]), fake_iface[1], in test_iface_setup()
224 net_if_get_by_iface(fake_iface[2]), fake_iface[2]); in test_iface_setup()
226 net_if_up(fake_iface[0]); in test_iface_setup()
227 net_if_up(fake_iface[1]); in test_iface_setup()
228 net_if_up(fake_iface[2]); in test_iface_setup()
285 _recv_data(fake_iface[0]); in test_recv_before_bridging()
286 _recv_data(fake_iface[1]); in test_recv_before_bridging()
287 _recv_data(fake_iface[2]); in test_recv_before_bridging()
306 ret = eth_bridge_iface_add(bridge, fake_iface[0]); in test_setup_bridge()
308 ret = eth_bridge_iface_add(bridge, fake_iface[1]); in test_setup_bridge()
312 ret = eth_bridge_iface_add(bridge, fake_iface[1]); in test_setup_bridge()
315 ret = eth_bridge_iface_add(bridge, fake_iface[2]); in test_setup_bridge()
327 int src_if_idx = net_if_get_by_iface(fake_iface[i]); in test_recv_with_bridge()
330 _recv_data(fake_iface[i]); in test_recv_with_bridge()
344 if (eth_fake_data[j].iface == fake_iface[i]) { in test_recv_with_bridge()
375 ret = eth_bridge_iface_remove(bridge, fake_iface[0]); in test_recv_after_bridging()
377 ret = eth_bridge_iface_remove(bridge, fake_iface[1]); in test_recv_after_bridging()
379 ret = eth_bridge_iface_remove(bridge, fake_iface[2]); in test_recv_after_bridging()