Searched refs:packet_sock (Results 1 – 1 of 1) sorted by relevance
174 int packet_sock; member233 if (send(iapp->packet_sock, &msg, sizeof(msg), 0) < 0) in iapp_send_layer2_update()393 iapp->udp_sock = iapp->packet_sock = -1; in iapp_init()470 iapp->packet_sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in iapp_init()471 if (iapp->packet_sock < 0) { in iapp_init()481 if (bind(iapp->packet_sock, (struct sockaddr *) &addr, in iapp_init()528 if (iapp->packet_sock >= 0) { in iapp_deinit()529 eloop_unregister_read_sock(iapp->packet_sock); in iapp_deinit()530 close(iapp->packet_sock); in iapp_deinit()