Lines Matching refs:iface
33 struct eth_p_oui_iface *iface;
53 struct eth_p_oui_iface *iface = ctx;
73 dl_list_for_each(receiver, &iface->receiver,
91 struct eth_p_oui_iface *iface;
104 interfaces = hapd->iface->interfaces;
106 dl_list_for_each(iface, &interfaces->eth_p_oui, struct eth_p_oui_iface,
108 if (os_strcmp(iface->ifname, ifname) != 0)
115 iface = os_zalloc(sizeof(*iface));
116 if (!iface)
119 os_strlcpy(iface->ifname, ifname, sizeof(iface->ifname));
120 iface->l2 = l2_packet_init(ifname, NULL, ETH_P_OUI, eth_p_rx,
121 iface, 1);
122 if (!iface->l2) {
123 os_free(iface);
126 dl_list_init(&iface->receiver);
128 dl_list_add_tail(&interfaces->eth_p_oui, &iface->list);
131 dl_list_add_tail(&iface->receiver, &receiver->list);
132 receiver->iface = iface;
143 struct eth_p_oui_iface *iface;
148 iface = ctx->iface;
153 if (dl_list_empty(&iface->receiver)) {
154 dl_list_del(&iface->list);
155 l2_packet_deinit(iface->l2);
156 os_free(iface);
164 struct eth_p_oui_iface *iface = ctx->iface;
188 ret = l2_packet_send(iface->l2, NULL, 0, packet, packet_len);