Skip to content

bugfix: recvmsg control buffer size is wrong for IPv6 for unix#3

Merged
pixsperdavid merged 1 commit into
pixsper:mainfrom
keepsimple1:space-fix
Jul 24, 2025
Merged

bugfix: recvmsg control buffer size is wrong for IPv6 for unix#3
pixsperdavid merged 1 commit into
pixsper:mainfrom
keepsimple1:space-fix

Conversation

@keepsimple1

Copy link
Copy Markdown
Contributor

I found that the recvmsg control buffer size is always set to IPv4 size (in_pktinfo) which is wrong for IPv6. This caused if_index is 0 in testing. I also noticed the addr_dst was not complete due to the short buffer size.

@pixsperdavid pixsperdavid merged commit 31d33db into pixsper:main Jul 24, 2025
3 checks passed
@pixsperdavid

Copy link
Copy Markdown
Contributor

Good spot, thanks!

@pixsperdavid

Copy link
Copy Markdown
Contributor

Available in v0.3.1.

@keepsimple1 keepsimple1 deleted the space-fix branch July 24, 2025 16:39
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.

2 participants