-
Notifications
You must be signed in to change notification settings - Fork 854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add separate ENABLE_RPCAPD option to build rpcapd #961
base: master
Are you sure you want to change the base?
Add separate ENABLE_RPCAPD option to build rpcapd #961
Conversation
So you're building the experimental daemon for a protocol, but not the client code for that protocol? :-) |
|
Yes. A use-case for this is to run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not seeing ./configure changes here. I guess they are coming.
I believe that we will eventually drop autoconf, but it hasn't happened yet.
@@ -205,9 +205,11 @@ set(PCAP_TYPE "" CACHE STRING "Packet capture type") | |||
# not having it on UN*X. | |||
# | |||
if(WIN32) | |||
option(ENABLE_REMOTE "Enable remote capture" ON) | |||
option(ENABLE_RPCAPD "Enable building of rpcapd" ON) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
option(ENABLE_RPCAPD "Enable building of rpcapd" ON) | |
option(ENABLE_RPCAPD "Enable building of remote capture daemon (rpcapd)" ON) |
else() | ||
option(ENABLE_REMOTE "Enable remote capture" OFF) | ||
option(ENABLE_RPCAPD "Enable building of rpcapd" OFF) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
option(ENABLE_RPCAPD "Enable building of rpcapd" OFF) | |
option(ENABLE_RPCAPD "Enable building of remote capture daemon (rpcapd)" OFF) |
else() | ||
option(ENABLE_REMOTE "Enable remote capture" OFF) | ||
option(ENABLE_RPCAPD "Enable building of rpcapd" OFF) | ||
option(ENABLE_REMOTE "Enable libpcap API for connecting to rpcapd" OFF) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
option(ENABLE_REMOTE "Enable libpcap API for connecting to rpcapd" OFF) | |
option(ENABLE_REMOTE "Enable libpcap client API for collecting remote captures via rpcapd" OFF) |
Yes.
I think that this is a step forward, and if there is demand for that flag, I guess we can add it. |
That's also a use case for an option not to build libpcap at all, just rpcapd. Yes, |
Guy Harris <[email protected]> wrote:
That's also a use case for an option not to build libpcap *at all*,
just rpcapd. Yes, `./configure --disable-libpcap` sounds a bit weird
if you're running libpcap's configure script, but.... :-)
Building in libpcap statically rather than risk confusion with "system"
libpcap makes a lot of sense to me.
Even more so on systems that might not have libpcap at all, and one ships
rpcapd as part of some debug enablement.
|
I have discovered rpcapd recently. Looking at this PR I wonder if it makes sense to have a separate repos for libpcap and rpcapd. It seems that it makes sense to enable and disable both libpcap building as well as rpcapd server and client. Please excuse me if this makes little or no sense as I am getting in touch with this tool. Thanks! |
The libpcap client for the rpcap protocol, and the rpcapd server for the rpcap protocol, share:
Having separate copies of those in two repositories would complicate maintenance of that code - changes to that code in one repository would have to be propagated to the other repository. There might be ways to untangle the dependencies, but it'd take more thought to come up with a good way to do it. |
This PR is related to #955 and shows how
rpcapd
can be build without having to enable the new and experimental "remote"libpcap
API (ENABLE_REMOTE
).