From owner-freebsd-current@FreeBSD.ORG Fri Dec 10 17:01:33 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F31216A4CE for ; Fri, 10 Dec 2004 17:01:33 +0000 (GMT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E43743D1F for ; Fri, 10 Dec 2004 17:01:33 +0000 (GMT) (envelope-from sam@errno.com) Received: from [66.127.85.91] ([66.127.85.91]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id iBAH1PWi036642 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 10 Dec 2004 09:01:30 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <41B9D868.20900@errno.com> Date: Fri, 10 Dec 2004 09:10:00 -0800 From: Sam Leffler User-Agent: Mozilla Thunderbird 1.0RC1 (X11/20041208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Daniel O'Connor" References: <200412101301.06484.doconnor@gsoft.com.au> <200412101318.15278.doconnor@gsoft.com.au> In-Reply-To: <200412101318.15278.doconnor@gsoft.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: Recent ifconfig changes choke on fwip X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Dec 2004 17:01:33 -0000 Daniel O'Connor wrote: >On Fri, 10 Dec 2004 13:00, Daniel O'Connor wrote: > > >>I tried to do some tracing in GDB the line numbers don't seem to match up >>properly :-/ >> >> > >Ahh, building without -O2 helps.. >(gdb) bt >#0 0x0804b57a in in_status (s=7, info=0x805a134) at /usr/src/sbin/ifconfig/af_inet.c:69 >#1 0x0804a046 in af_all_status (s=7, sdl=0x805a134) at /usr/src/sbin/ifconfig/ifconfig.c:405 >#2 0x0804af39 in status (afp=0x80563c0, addrcount=0, sdl=0x805a134, ifm=0x805a0d4, ifam=0x0) > at /usr/src/sbin/ifconfig/ifconfig.c:850 >#3 0x08049e05 in main (argc=0, argv=0xbfbfe914) at /usr/src/sbin/ifconfig/ifconfig.c:349 > >(gdb) list af_inet.c:69 >64 >65 sin = (struct sockaddr_in *)info->rti_info[RTAX_IFA]; >66 if (sin == NULL) >67 return; >68 >69 printf("\tinet %s ", inet_ntoa(sin->sin_addr)); >70 >71 if (flags & IFF_POINTOPOINT) { >72 /* note RTAX_BRD overlap with IFF_BROADCAST */ >73 sin = (struct sockaddr_in *)info->rti_info[RTAX_BRD]; >(gdb) print sin >$3 = (struct sockaddr_in *) 0xfe >(gdb) print info->rti_info >$4 = {0x100590, 0x70697766, 0xc04f4330, 0xa4170800, 0xff020a38, 0xfe, 0x0, 0x0 > > I don't have any firewire devicesto test with. Someone else will need to pickup this one. Sam