]> err.no Git - linux-2.6/commitdiff
netns: fix ip_rt_frag_needed rt_is_expired
authorHugh Dickins <hugh@veritas.com>
Sun, 27 Jul 2008 00:51:06 +0000 (17:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Jul 2008 00:51:06 +0000 (17:51 -0700)
Running recent kernels, and using a particular vpn gateway, I've been
having to edit my mails down to get them accepted by the smtp server.

Git bisect led to commit e84f84f276473dcc673f360e8ff3203148bdf0e2 -
netns: place rt_genid into struct net.  The conversion from a != test
to rt_is_expired() put one negative too many: and now my mail works.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Acked-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c

index e4ab0ac94f9225f4ac9f6d2f12d4ece0c1383400..a507c5e27d0e7d057d0870f9d718903c2d083e4e 100644 (file)
@@ -1502,7 +1502,7 @@ unsigned short ip_rt_frag_needed(struct net *net, struct iphdr *iph,
                                    rth->fl.iif != 0 ||
                                    dst_metric_locked(&rth->u.dst, RTAX_MTU) ||
                                    !net_eq(dev_net(rth->u.dst.dev), net) ||
-                                   !rt_is_expired(rth))
+                                   rt_is_expired(rth))
                                        continue;
 
                                if (new_mtu < 68 || new_mtu >= old_mtu) {