Skip to content

Conversation

@wenquan2015
Copy link

Summary

According RFC1122 3.2.2.1, A host SHOULD generate Destination Unreachable messages with code: 2(Protocol Unreachable), when the designated transport protocol is not supported.

Impact

ipv4

Testing

from scapy.all import *

icmp_pkt = IP(dst="10.0.1.2", len=21, proto=143) / "E"

send(icmp_pkt, verbose=1)

test result:

13:38:31.958568 IP 10.0.1.1 > 10.0.1.2: [Ethernet requires IPv6] (invalid)
13:38:31.959701 IP 10.0.1.2 > 10.0.1.1: ICMP 10.0.1.2 protocol 143 unreachable, length 29

According RFC1122 3.2.2.1, A host SHOULD generate Destination Unreachable messages with code: 2(Protocol Unreachable), when the designated transport protocol is not supported.

Signed-off-by: wenquan1 <[email protected]>
@github-actions github-actions bot added Area: Networking Effects networking subsystem Size: XS The size of the change in this PR is very small labels Dec 26, 2025
@xiaoxiang781216 xiaoxiang781216 merged commit 0891fa5 into apache:master Dec 29, 2025
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Networking Effects networking subsystem Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants