mirror of
https://github.com/samba-team/samba.git
synced 2025-01-18 06:04:06 +03:00
ctdb-common: Use pcap_get_selectable_fd()
This is preferred because it will fail for devices that do not support epoll_wait() and similar. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
40380a8042
commit
075414dc05
@ -981,7 +981,7 @@ int ctdb_sys_open_capture_socket(const char *iface, void **private_data)
|
||||
}
|
||||
*((pcap_t **)private_data) = pt;
|
||||
|
||||
return pcap_fileno(pt);
|
||||
return pcap_get_selectable_fd(pt);
|
||||
}
|
||||
|
||||
int ctdb_sys_close_capture_socket(void *private_data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user