Lines Matching refs:common

48 	struct driver_wired_common_data common;  member
176 drv->common.sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_PAE)); in wired_init_sockets()
177 if (drv->common.sock < 0) { in wired_init_sockets()
183 if (eloop_register_read_sock(drv->common.sock, handle_read, in wired_init_sockets()
184 drv->common.ctx, NULL)) { in wired_init_sockets()
190 os_strlcpy(ifr.ifr_name, drv->common.ifname, sizeof(ifr.ifr_name)); in wired_init_sockets()
191 if (ioctl(drv->common.sock, SIOCGIFINDEX, &ifr) != 0) { in wired_init_sockets()
203 if (bind(drv->common.sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) in wired_init_sockets()
210 if (wired_multicast_membership(drv->common.sock, ifr.ifr_ifindex, in wired_init_sockets()
218 os_strlcpy(ifr.ifr_name, drv->common.ifname, sizeof(ifr.ifr_name)); in wired_init_sockets()
219 if (ioctl(drv->common.sock, SIOCGIFHWADDR, &ifr) != 0) { in wired_init_sockets()
240 drv->common.ctx, NULL)) { in wired_init_sockets()
264 os_strlcpy(ifr.ifr_ifrn.ifrn_name, drv->common.ifname, IFNAMSIZ); in wired_init_sockets()
313 res = send(drv->common.sock, (u8 *) hdr, len, 0); in wired_send_eapol()
338 drv->common.ctx = hapd; in wired_driver_hapd_init()
339 os_strlcpy(drv->common.ifname, params->ifname, in wired_driver_hapd_init()
340 sizeof(drv->common.ifname)); in wired_driver_hapd_init()
356 if (drv->common.sock >= 0) { in wired_driver_hapd_deinit()
357 eloop_unregister_read_sock(drv->common.sock); in wired_driver_hapd_deinit()
358 close(drv->common.sock); in wired_driver_hapd_deinit()
378 if (driver_wired_init_common(&drv->common, ifname, ctx) < 0) { in wpa_driver_wired_init()
391 driver_wired_deinit_common(&drv->common); in wpa_driver_wired_deinit()