git.samba.org
/
asn
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40380a8
)
ctdb-common: Use pcap_get_selectable_fd()
author
Martin Schwenke
<martin@meltin.net>
Wed, 10 Aug 2022 23:00:25 +0000
(09:00 +1000)
committer
Amitay Isaacs
<amitay@samba.org>
Tue, 20 Sep 2022 10:43:37 +0000
(10:43 +0000)
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>
ctdb/common/system_socket.c
patch
|
blob
|
history
diff --git
a/ctdb/common/system_socket.c
b/ctdb/common/system_socket.c
index 43910e9b1771fd493ce550e54743c78fda716e68..74fe1593a016e66841d158eec671be6eefe1bc04 100644
(file)
--- a/
ctdb/common/system_socket.c
+++ b/
ctdb/common/system_socket.c
@@
-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)