Skip to content

Fix incorrect IP protocol in IPv6 unknown transport response packets#85

Merged
SajjadPourali merged 1 commit into
mainfrom
fix/ipv6-unknown-transport-protocol
Jul 9, 2026
Merged

Fix incorrect IP protocol in IPv6 unknown transport response packets#85
SajjadPourali merged 1 commit into
mainfrom
fix/ipv6-unknown-transport-protocol

Conversation

@SajjadPourali

Copy link
Copy Markdown
Collaborator

When sending response packets for unknown transport protocols (e.g., ICMPv6, IGMP, ESP) over IPv6, the next_header field in the IPv6 header was hardcoded to IpNumber::UDP instead of using the actual protocol number (self.protocol).

This caused all unknown transport responses over IPv6 to incorrectly identify themselves as UDP packets, which would be silently dropped or rejected by the receiving network stack.

@SajjadPourali SajjadPourali merged commit a343ea8 into main Jul 9, 2026
4 checks passed
@SajjadPourali SajjadPourali deleted the fix/ipv6-unknown-transport-protocol branch July 9, 2026 01:09
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