summaryrefslogtreecommitdiff
path: root/net/ipv4/icmp.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2008-04-29 03:32:25 -0700
committerDavid S. Miller <davem@davemloft.net>2008-04-29 03:32:25 -0700
commit0010e46577a27c1d915034637f6c2fa57a9a091c (patch)
treedc13ec8dbbf980b53c8d1049dbf8944806cca0d2 /net/ipv4/icmp.c
parent980c478ddbb720948967b028ddbb4179a025bc2c (diff)
downloadkernel-common-0010e46577a27c1d915034637f6c2fa57a9a091c.tar.gz
kernel-common-0010e46577a27c1d915034637f6c2fa57a9a091c.tar.bz2
kernel-common-0010e46577a27c1d915034637f6c2fa57a9a091c.zip
ipv4: Update MTU to all related cache entries in ip_rt_frag_needed()
Add struct net_device parameter to ip_rt_frag_needed() and update MTU to cache entries where ifindex is specified. This is similar to what is already done in ip_rt_redirect(). Signed-off-by: Timo Teras <timo.teras@iki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/icmp.c')
-rw-r--r--net/ipv4/icmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c
index c67d00e8c600..87397351ddac 100644
--- a/net/ipv4/icmp.c
+++ b/net/ipv4/icmp.c
@@ -691,7 +691,8 @@ static void icmp_unreach(struct sk_buff *skb)
NIPQUAD(iph->daddr));
} else {
info = ip_rt_frag_needed(net, iph,
- ntohs(icmph->un.frag.mtu));
+ ntohs(icmph->un.frag.mtu),
+ skb->dev);
if (!info)
goto out;
}