mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +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>
(cherry picked from commit 075414dc05
)
This commit is contained in:
committed by
Jule Anger
parent
8c1314aae6
commit
0adfd0cc0f
@ -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)
|
||||
|
Reference in New Issue
Block a user