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 <wenquan1@xiaomi.com>
@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
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.

2 participants