NetBSD Problem Report #18999
Received: (qmail 18994 invoked by uid 605); 10 Nov 2002 00:40:09 -0000
Message-Id: <200211100040.gAA0e7600929@left.wing.org>
Date: Sat, 9 Nov 2002 16:40:07 -0800 (PST)
From: Ed Gould <ed@left.wing.org>
Sender: gnats-bugs-owner@netbsd.org
Reply-To: ed@left.wing.org
To: gnats-bugs@gnats.netbsd.org
Subject: net/6to4 confused by IPv4 aliases
X-Send-Pr-Version: 3.95
>Number: 18999
>Category: pkg
>Synopsis: net/6to4 confused by IPv4 aliases
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 10 00:41:00 +0000 2002
>Closed-Date: Sun Nov 10 05:31:34 +0000 2002
>Last-Modified: Sun Nov 10 05:32:00 +0000 2002
>Originator: Ed Gould
>Release: pkgsrc as of 11 Nov 02
>Organization:
--
Left Wing Computing
>Environment:
System: NetBSD left.wing.org 1.5.2 NetBSD 1.5.2 (LEFT) #1: Sat Nov 9 00:31:47 PST 2002 ed@left.wing.org:/usr/src/sys/arch/i386/compile/LEFT i386
>Description:
If there is an IPv4 alias on the outside interface, 6to4 does
not properly calculate the IPv6 address.
>How-To-Repeat:
Run 6to4 on such an interface.
>Fix:
--- /usr/pkg/sbin/6to4 Sat Nov 9 14:35:58 2002
+++ work/6to4 Sat Nov 9 16:31:56 2002
@@ -57,7 +57,7 @@
#
# Figure out IP#s etc.
#
-$localadr4 = `ifconfig $out_if inet | grep inet`;
+$localadr4 = `ifconfig $out_if inet | grep inet | grep -v alias`;
$localadr4 =~ s/^.*inet\s*//;
$localadr4 =~ s/\s.*$//;
chomp($localadr4);
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: hubertf
State-Changed-When: Sat Nov 9 21:31:12 PST 2002
State-Changed-Why:
patch committed, thanks!
- Hubert
From: Hubert Feyrer <hubertf@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: pr/18999 CVS commit: pkgsrc/net/6to4/files
Date: Sun, 10 Nov 2002 07:31:00 +0200 (EET)
Module Name: pkgsrc
Committed By: hubertf
Date: Sun Nov 10 05:31:00 UTC 2002
Modified Files:
pkgsrc/net/6to4/files: 6to4
Log Message:
Handle ifconfig aliases better.
Patch contributed by Ed Gould <ed@left.wing.org> in PR pkg/18999
To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 pkgsrc/net/6to4/files/6to4
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.