diff options
author | David S. Miller <davem@davemloft.net> | 2012-06-10 00:04:12 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-11 02:08:59 -0700 |
commit | 46517008e1168dc926cf2c47d529efc07eca85c0 (patch) | |
tree | 98e9cf1917c9b8f1c6c2d8121746fd4f8e414f45 /include/net | |
parent | 97bab73f987e2781129cd6f4b6379bf44d808cc6 (diff) | |
download | linux-46517008e1168dc926cf2c47d529efc07eca85c0.tar.bz2 |
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>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/route.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/net/route.h b/include/net/route.h index 6340c37677fc..cc693a5bb20d 100644 --- a/include/net/route.h +++ b/include/net/route.h @@ -215,8 +215,6 @@ static inline int ip_route_input_noref(struct sk_buff *skb, __be32 dst, __be32 s return ip_route_input_common(skb, dst, src, tos, devin, true); } -extern unsigned short ip_rt_frag_needed(struct net *net, const struct iphdr *iph, - unsigned short new_mtu, struct net_device *dev); extern void ip_rt_send_redirect(struct sk_buff *skb); extern unsigned int inet_addr_type(struct net *net, __be32 addr); |