diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-12-11 19:29:51 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-12-11 19:29:51 +0000 |
commit | add3d145f1e4779d4ad19b17ed3d205165fe8f28 (patch) | |
tree | 3e8d66bf5e58033b75510baece4eae293976aea2 /sys/netinet6 | |
parent | 86e85007b500fe54023f94dad0fd3f5d566fc2ba (diff) |
no need to rtalloc1() twice in pmtud. from kame
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/icmp6.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index 086f2b8da03..3b0632123a2 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -1,5 +1,5 @@ -/* $OpenBSD: icmp6.c,v 1.26 2000/12/11 08:04:56 itojun Exp $ */ -/* $KAME: icmp6.c,v 1.156 2000/10/19 19:21:07 itojun Exp $ */ +/* $OpenBSD: icmp6.c,v 1.27 2000/12/11 19:29:50 itojun Exp $ */ +/* $KAME: icmp6.c,v 1.172 2000/12/11 19:27:06 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -1074,12 +1074,7 @@ icmp6_mtudisc_update(ip6cp, validated) htons(m->m_pkthdr.rcvif->if_index); } /* sin6.sin6_scope_id = XXX: should be set if DST is a scoped addr */ - rt = rtalloc1((struct sockaddr *)&sin6, 1); /*clone*/ - if (!rt || (rt->rt_flags & RTF_HOST) == 0) { - if (rt) - RTFREE(rt); - rt = icmp6_mtudisc_clone((struct sockaddr *)&sin6); - } + rt = icmp6_mtudisc_clone((struct sockaddr *)&sin6); if (rt && (rt->rt_flags & RTF_HOST) && !(rt->rt_rmx.rmx_locks & RTV_MTU)) { |