ctdb-build: Add --enable-pcap configure option
commit188e949fdf687432b0a487c571fc140d66b0df11
authorMartin Schwenke <martin@meltin.net>
Mon, 8 Aug 2022 01:26:54 +0000 (8 11:26 +1000)
committerJule Anger <janger@samba.org>
Tue, 29 Aug 2023 09:35:11 +0000 (29 09:35 +0000)
tree9c2fbe1d43c268ac8e28fbd0a785b440955c915e
parentf25b506a73dea3a02c02e62b6979e108760dee00
ctdb-build: Add --enable-pcap configure option

This forces the use pcap for packet capture on Linux.

It appears that using a raw socket for capture does not work with
infiniband - pcap support for that to come.

Don't (yet?) change the default capture method to pcap.  On some
platforms (e.g. my personal Intel NUC, running Debian testing), pcap
is much less reliable than the raw socket.  However, pcap seems fine
on most other platforms.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit d1543d5c7889f3ac42f80fc5d1eddf54f9c5d0d6)
ctdb/wscript