Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix PCAP #977

Merged
merged 2 commits into from
Nov 27, 2019
Merged

Fix PCAP #977

merged 2 commits into from
Nov 27, 2019

Conversation

koeppea
Copy link
Member

@koeppea koeppea commented Nov 24, 2019

Starting with libpcap version 1.9.1, some changes come in that affect Ettercap:

  1. pcap_lookupdevice() to determine the default interface has become deprecated
  2. Setting PCAP_TIMEOUT to 0 on Linux (used with pcap_open_live()) causes a huge delay between the call of pcap_loop() and starting to pass packets to the handler function ec_decode(). This has the effect, that the network scan results in a 0 host list because the scan wait's only 1 second until it cancels the capture thread.

This PR addresses both issues. Of course, behavior changes on other platforms still need to be confirmed. However this depends on the availability of the new libpcap version on these platforms.

@koeppea
Copy link
Member Author

koeppea commented Nov 24, 2019

This PR fixes #974

@eaescob
Copy link
Contributor

eaescob commented Nov 25, 2019

Should we include pcap 1.9.1 with ettercap? Or specifically ask for it?

@koeppea
Copy link
Member Author

koeppea commented Nov 25, 2019

I think with this PR we're fine wither either version. So I see no need to provide it as bundled.

@eaescob eaescob merged commit eb47ce3 into Ettercap:master Nov 27, 2019
@koeppea koeppea deleted the fix-pcap branch November 28, 2019 19:44
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants