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

On NetBSD, use TCP_KEEPIDLE as KEEPALIVE_OPTION. #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

he32
Copy link

@he32 he32 commented Dec 12, 2020

Without this, we saw this on NetBSD (routinator uses net2):

13038 19 routinator CALL setsockopt(0x15,0xffff,8,0x7d60bd3d62b4,4)
13038 19 routinator RET setsockopt 0
13038 19 routinator CALL setsockopt(0x15,6,8,0x7d60bd3d62b4,4)
13038 19 routinator RET setsockopt -1 errno 42 Protocol option not available

The '8' in the above corresponds to the "ifdef notyet" definition
of TCP_NOOPT, reserved for (future/possible) FreeBSD compat, and
results in the ENOPROTOOPT error return shown above.

Without this, we saw this on NetBSD (routinator uses net2):

 13038     19 routinator CALL  setsockopt(0x15,0xffff,8,0x7d60bd3d62b4,4)
 13038     19 routinator RET   setsockopt 0
 13038     19 routinator CALL  setsockopt(0x15,6,8,0x7d60bd3d62b4,4)
 13038     19 routinator RET   setsockopt -1 errno 42 Protocol option not available

The '8' in the above corresponds to the "ifdef notyet" definition
of TCP_NOOPT, reserved for (future/possible) FreeBSD compat, and
results in the ENOPROTOOPT error return shown above.
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

Successfully merging this pull request may close these issues.

1 participant