Searched refs:monitor_wired (Results 1 – 2 of 2) sorted by relevance
130 wt->monitor_wired = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in monitor_init_wired()131 if (wt->monitor_wired < 0) { in monitor_init_wired()137 if (bind(wt->monitor_wired, (struct sockaddr *) &ll, sizeof(ll)) < 0) { in monitor_init_wired()139 close(wt->monitor_wired); in monitor_init_wired()140 wt->monitor_wired = -1; in monitor_init_wired()144 if (eloop_register_read_sock(wt->monitor_wired, monitor_read_wired, in monitor_init_wired()148 close(wt->monitor_wired); in monitor_init_wired()149 wt->monitor_wired = -1; in monitor_init_wired()165 if (wt->monitor_wired >= 0) { in monitor_deinit()166 eloop_unregister_read_sock(wt->monitor_wired); in monitor_deinit()[all …]
197 int monitor_wired; member