Skip to contentSkip to conversation

no ICMP port unreachable for UDP packets

DISCUSSION clemens 1 participant 1 message Jul 24, 2001

lore
Share & tools
lore

clemens

author
#0 lore raw

linux 2.4.7 doesn't reply with icmp port unreachable messages to udp packets to an unbind udp port. strangely the icmp error message is only omitted for eth0 but not for lo. (i assert it's only been omitted for non local interfaces).
this behavior has confirmed for 2.4.7-pre8 and 2.4.7-final.

for both udp packets (from lo and from eth0) the icmp_send call in net/ipv4/udp.c is reached, since UDP_INC_STATS_BH(UdpNoPorts) is called as you can see from the increasing counter in /proc/net/snmp,
so the reply packet must be drop somewhere in icmp_send.

this bug should be easily reproducable with nmap and tcpdump.

greets, clemens