From owner-freebsd-current@FreeBSD.ORG Fri Dec 10 02:48:30 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 8AA6B16A4CE for ; Fri, 10 Dec 2004 02:48:30 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B11A43D46 for ; Fri, 10 Dec 2004 02:48:29 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id iBA2mGdv030339; Fri, 10 Dec 2004 13:18:16 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-current@freebsd.org Date: Fri, 10 Dec 2004 13:18:14 +1030 User-Agent: KMail/1.7.1 References: <200412101301.06484.doconnor@gsoft.com.au> In-Reply-To: <200412101301.06484.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2456800.3VtqN1daq8"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200412101318.15278.doconnor@gsoft.com.au> X-Spam-Score: -4.3 () IN_REP_TO,MIME_LONG_LINE_QP,PGP_SIGNATURE_2,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: sam@errno.com 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 02:48:30 -0000 --nextPart2456800.3VtqN1daq8 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=3D7, info=3D0x805a134) at /usr/src/sbin/ifco= nfig/af_inet.c:69 #1 0x0804a046 in af_all_status (s=3D7, sdl=3D0x805a134) at /usr/src/sbin/i= fconfig/ifconfig.c:405 #2 0x0804af39 in status (afp=3D0x80563c0, addrcount=3D0, sdl=3D0x805a134, = ifm=3D0x805a0d4, ifam=3D0x0) at /usr/src/sbin/ifconfig/ifconfig.c:850 #3 0x08049e05 in main (argc=3D0, argv=3D0xbfbfe914) at /usr/src/sbin/ifcon= fig/ifconfig.c:349 (gdb) list af_inet.c:69 64 65 sin =3D (struct sockaddr_in *)info->rti_info[RTAX_IFA]; 66 if (sin =3D=3D 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 =3D (struct sockaddr_in *)info->rti_info[RTAX_B= RD]; (gdb) print sin $3 =3D (struct sockaddr_in *) 0xfe (gdb) print info->rti_info $4 =3D {0x100590, 0x70697766, 0xc04f4330, 0xa4170800, 0xff020a38, 0xfe, 0x0= , 0x0} =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart2456800.3VtqN1daq8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBuQ5v5ZPcIHs/zowRAl+HAJ42NKKNytc7EmZIyp37HH2Y2QbIRACgjmOh a2ejnGwt1VrEs2xfJR8ThGw= =dd5c -----END PGP SIGNATURE----- --nextPart2456800.3VtqN1daq8--