Skip to content

Silence bogus "Packet ... received on wrong socket" warning#44

Merged
troglobit merged 1 commit intotroglobit:masterfrom
gromit1811:bugfix/rx-on-wrong-socket
Mar 10, 2026
Merged

Silence bogus "Packet ... received on wrong socket" warning#44
troglobit merged 1 commit intotroglobit:masterfrom
gromit1811:bugfix/rx-on-wrong-socket

Conversation

@gromit1811
Copy link

Compare binary instead of string group addresses to decide whether a received packet is for the expected group. This avoids bogus warnings in case of different string representations for the same address, e.g. ff0e::1, [ff0e::1] and ff0E::1 which are all the same group but the latter 2 would have resulted in warnings so far.

Also fixes a potential dereference of and uninitialized dst pointer in the unlikely event that we don't have IPv6 support and find_dstaddr() returned NULL.

Compare binary instead of string group addresses to decide whether a
received packet is for the expected group. This avoids bogus warnings in
case of different string representations for the same address, e.g. ff0e::1,
[ff0e::1] and ff0E::1 which are all the same group but the latter 2 would
have resulted in warnings so far.

Also fixes a potential dereference of and uninitialized dst pointer in the
unlikely event that we don't have IPv6 support and find_dstaddr() returned
NULL.

Signed-off-by: Martin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
Copy link
Owner

@troglobit troglobit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@troglobit troglobit merged commit 2bc37c7 into troglobit:master Mar 10, 2026
3 checks passed
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