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>
This commit is contained in:
parent
980c478ddb
commit
0010e46577
3 changed files with 25 additions and 18 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue