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

Internet-device interface going down stops knockd #69

Open
o-jasper opened this issue Jun 21, 2020 · 0 comments
Open

Internet-device interface going down stops knockd #69

o-jasper opened this issue Jun 21, 2020 · 0 comments

Comments

@o-jasper
Copy link

pcap_dispatch(cap, -1, sniff, NULL); returns < 0 in that case causing the program to exit.

This would mean that people might not be able to connect anymore without going to the device and re-enabling it. (Note the .service systemd file doesn't infinite loop it either, but that doesn't seem like the place to solve it...)

In knockoff i solved it by running an infinite loop and just echoing any error.(though really the interface going down is not an error by the program..) Looking at the code, i haven't figured out what it is more specifically other than reading pcap_geterr string.. But really regardless of what the error was, the show must go on?

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

No branches or pull requests

1 participant