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

[epcap] epcap not starting properly when eth interface has no ipv4 address #37

Closed
kvakvs opened this issue Nov 2, 2012 · 1 comment
Closed
Assignees

Comments

@kvakvs
Copy link

kvakvs commented Nov 2, 2012

When starting LINC on a eth-only setup (without taps and bridges), epcap does not start if interface doesn't have ipv4 address assigned (even a fake one). If you copy the command line and run it manually with -v (verbose) option, it prints something like "ethX: ipv4 address not assigned" and quits.

@kvakvs
Copy link
Author

kvakvs commented Nov 2, 2012

The error is caused by pcap_lookupnet() and is only making sense if we are using ipv4 broadcast filters (which we don't). So can safely comment out the call to pcap_lookupnet and pass 0 to pcap_compile().
This is in epcap/c_src/epcap.c lines 177-179

@ghost ghost assigned kvakvs Nov 5, 2012
@kvakvs kvakvs closed this as completed Nov 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant