Skip to content
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 libpcap / winpcap to image #63

Closed
andrewkroh opened this issue Jul 21, 2020 · 2 comments
Closed

Add libpcap / winpcap to image #63

andrewkroh opened this issue Jul 21, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@andrewkroh
Copy link
Member

Packetbeat builds libpcap from source every time packaging runs. It downloads 1.8.1 and builds a static library. It would be beneficial to do this once when the images are built rather then anytime packetbeat is built. This is where Packetbeat run the build commands:

https://github.com/elastic/beats/blob/941709b4b9455a435b4afba9b2704360be7e75bd/packetbeat/magefile.go#L254-L285

And on Windows it installs WinPCAP so that it can link against it (dynamically). So these commands could also be added to the image.

https://github.com/elastic/beats/blob/941709b4b9455a435b4afba9b2704360be7e75bd/packetbeat/magefile.go#L377-L409

@andrewkroh andrewkroh added the enhancement New feature or request label Jul 21, 2020
@kuisathaverat
Copy link
Contributor

for Linux it is possible and easy, for windows the wpcap.def depends on the beats, I am not sure is not possible to generate a def file for all the beats.

@andrewkroh
Copy link
Member Author

I think it only depends on beats in that elastic/beats has a copy of the DLL needed to create the winpcap static library. elastic/beats#1259 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants