Skip to content

Commit

Permalink
netns: fix ip_rt_frag_needed rt_is_expired
Browse files Browse the repository at this point in the history
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 e84f84f -
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>
  • Loading branch information
Hugh Dickins authored and David S. Miller committed Jul 27, 2008
1 parent 6c64825 commit 6c3b8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6c3b8fc

Please sign in to comment.