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

Set sa_len properly in getdefaultgateway() #20

Merged
merged 1 commit into from
Jan 22, 2022

Conversation

khng300
Copy link

@khng300 khng300 commented Jan 11, 2022

In USE_SOCKET_ROUTE's implementation, sa_len of the sockaddrs need to be
set as well.

Sponsored by: The FreeBSD Foundation

In USE_SOCKET_ROUTE's implementation, sa_len of the sockaddrs need to be
set as well.

Sponsored by:	The FreeBSD Foundation
@khng300
Copy link
Author

khng300 commented Jan 11, 2022

This fixes the issue which initnatpmp() always return (-3) on FreeBSD.

khng300 added a commit to khng300/freebsd-ports that referenced this pull request Jan 11, 2022
The tracking PR is miniupnp/libnatpmp#20.

Sponsored by:	The FreeBSD Foundation
khng300 added a commit to khng300/freebsd-ports that referenced this pull request Jan 12, 2022
The tracking PR is miniupnp/libnatpmp#20.

Sponsored by:	The FreeBSD Foundation
khng300 added a commit to khng300/freebsd-ports that referenced this pull request Jan 12, 2022
The tracking PR is miniupnp/libnatpmp#20.

Sponsored by:	The FreeBSD Foundation
@miniupnp miniupnp merged commit 724dc69 into miniupnp:master Jan 22, 2022
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.

None yet

2 participants