Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22111
b: refs/heads/master
c: d5315b5
h: refs/heads/master
i:
  22109: cfcacc4
  22107: f987c03
  22103: 97f22c1
  22095: 8aa973e
  22079: 7df66fb
v: v3
  • Loading branch information
YOSHIFUJI Hideaki authored and David S. Miller committed Mar 21, 2006
1 parent a82e036 commit 029190a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 299d9939089126f764090a202f2d6c69934bcf66
refs/heads/master: d5315b500b68ea921fe05fe2cbc06bcae90ff615
18 changes: 4 additions & 14 deletions trunk/net/ipv6/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -1235,11 +1235,12 @@ void rt6_pmtu_discovery(struct in6_addr *daddr, struct in6_addr *saddr,
1. It is connected route. Action: COW
2. It is gatewayed route or NONEXTHOP route. Action: clone it.
*/
if (!rt->rt6i_nexthop && !(rt->rt6i_flags & RTF_NONEXTHOP)) {
if (!rt->rt6i_nexthop && !(rt->rt6i_flags & RTF_NONEXTHOP))
nrt = rt6_alloc_cow(rt, daddr, saddr);
if (!nrt)
goto out;
else
nrt = rt6_alloc_clone(rt, daddr);

if (nrt) {
nrt->u.dst.metrics[RTAX_MTU-1] = pmtu;
if (allfrag)
nrt->u.dst.metrics[RTAX_FEATURES-1] |= RTAX_FEATURE_ALLFRAG;
Expand All @@ -1254,18 +1255,7 @@ void rt6_pmtu_discovery(struct in6_addr *daddr, struct in6_addr *saddr,
nrt->rt6i_flags |= RTF_DYNAMIC|RTF_EXPIRES;

ip6_ins_rt(nrt, NULL, NULL, NULL);
} else {
nrt = rt6_alloc_clone(rt, daddr);
if (!nrt)
goto out;
dst_set_expires(&nrt->u.dst, ip6_rt_mtu_expires);
nrt->rt6i_flags |= RTF_DYNAMIC|RTF_EXPIRES;
nrt->u.dst.metrics[RTAX_MTU-1] = pmtu;
if (allfrag)
nrt->u.dst.metrics[RTAX_FEATURES-1] |= RTAX_FEATURE_ALLFRAG;
ip6_ins_rt(nrt, NULL, NULL, NULL);
}

out:
dst_release(&rt->u.dst);
}
Expand Down

0 comments on commit 029190a

Please sign in to comment.