ipv4: Kill ip_rt_frag_needed().
There is zero point to this function. It's only real substance is to perform an extremely outdated BSD4.2 ICMP check, which we can safely remove. If you really have a MTU limited link being routed by a BSD4.2 derived system, here's a nickel go buy yourself a real router. The other actions of ip_rt_frag_needed(), checking and conditionally updating the peer, are done by the per-protocol handlers of the ICMP event. TCP, UDP, et al. have a handler which will receive this event and transmit it back into the associated route via dst_ops->update_pmtu(). This simplification is important, because it eliminates the one place where we do not have a proper route context in which to make an inetpeer lookup. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
97bab73f98
commit
46517008e1
4 changed files with 1 additions and 70 deletions
|
@ -81,10 +81,6 @@ void rxrpc_UDP_error_report(struct sock *sk)
|
|||
_net("I/F MTU %u", mtu);
|
||||
}
|
||||
|
||||
/* ip_rt_frag_needed() may have eaten the info */
|
||||
if (mtu == 0)
|
||||
mtu = ntohs(icmp_hdr(skb)->un.frag.mtu);
|
||||
|
||||
if (mtu == 0) {
|
||||
/* they didn't give us a size, estimate one */
|
||||
if (mtu > 1500) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue