git://git.onelab.eu
/
linux-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f20cce
)
- PL3791 fix: Suppress ICMP Unreachable if the port was bound to a (presumably raw...
author
Mark Huang
<mlhuang@cs.princeton.edu>
Mon, 17 Jan 2005 20:01:59 +0000
(20:01 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Mon, 17 Jan 2005 20:01:59 +0000
(20:01 +0000)
net/ipv4/udp.c
patch
|
blob
|
history
diff --git
a/net/ipv4/udp.c
b/net/ipv4/udp.c
index
ad097f5
..
d956482
100644
(file)
--- a/
net/ipv4/udp.c
+++ b/
net/ipv4/udp.c
@@
-1237,8
+1237,11
@@
int udp_rcv(struct sk_buff *skb)
if (udp_checksum_complete(skb))
goto csum_error;
- UDP_INC_STATS_BH(UDP_MIB_NOPORTS);
- icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0);
+ /* VNET: Suppress ICMP Unreachable if the port was bound to a (presumably raw) socket */
+ if (!skb->sk) {
+ UDP_INC_STATS_BH(UDP_MIB_NOPORTS);
+ icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0);
+ }
/*
* Hmm. We got an UDP packet to a port to which we