Lines Matching full:iface

23 static inline enum net_verdict custom_l2_recv(struct net_if *iface,  in custom_l2_recv()  argument
31 static inline int custom_l2_send(struct net_if *iface, struct net_pkt *pkt) in custom_l2_send() argument
38 static int custom_l2_enable(struct net_if *iface, bool state) in custom_l2_enable() argument
45 static enum net_l2_flags custom_l2_flags(struct net_if *iface) in custom_l2_flags() argument
53 static void dummy_iface_init(struct net_if *iface) in dummy_iface_init() argument
58 net_if_set_link_addr(iface, mac, 8, NET_LINK_IEEE802154); in dummy_iface_init()
75 struct net_if *iface = net_if_get_first_by_type( in ZTEST() local
78 zassert_not_null(net_if_l2(iface), "No L2 found"); in ZTEST()
79 zassert_not_null(net_if_l2(iface)->send, "No send() found"); in ZTEST()
81 tx_pkt = net_pkt_alloc_with_buffer(iface, sizeof(TEST_PAYLOAD), in ZTEST()
99 struct net_if *iface = net_if_get_first_by_type( in ZTEST() local
102 zassert_not_null(net_if_l2(iface), "No L2 found"); in ZTEST()
103 zassert_not_null(net_if_l2(iface)->recv, "No recv () found"); in ZTEST()
105 rx_pkt = net_pkt_rx_alloc_with_buffer(iface, sizeof(TEST_PAYLOAD), in ZTEST()
112 ret = net_recv_data(iface, rx_pkt); in ZTEST()
122 struct net_if *iface = net_if_get_first_by_type( in ZTEST() local
125 zassert_not_null(net_if_l2(iface), "No L2 found"); in ZTEST()
126 zassert_not_null(net_if_l2(iface)->enable, "No enable() found"); in ZTEST()
128 ret = net_if_down(iface); in ZTEST()
129 zassert_equal(0, ret, "Failed to set iface down"); in ZTEST()
132 ret = net_if_up(iface); in ZTEST()
133 zassert_equal(0, ret, "Failed to set iface up"); in ZTEST()
140 struct net_if *iface = net_if_get_first_by_type( in ZTEST() local
142 zassert_not_null(net_if_l2(iface), "No L2 found"); in ZTEST()
143 zassert_not_null(net_if_l2(iface)->get_flags, "No get_flags() found"); in ZTEST()
145 flags = net_if_l2(iface)->get_flags(iface); in ZTEST()