From owner-freebsd-net Thu Aug 16 11:25:14 2001 Delivered-To: freebsd-net@freebsd.org Received: from mail.tcoip.com.br (cerberus.tcoip.com.br [200.220.254.3]) by hub.freebsd.org (Postfix) with ESMTP id 625E337B40B for ; Thu, 16 Aug 2001 11:25:11 -0700 (PDT) (envelope-from daniel.sobral@tcoip.com.br) Received: from tcoip.com.br (3xb5onovkbv0gop3@dcs.intra.tcoip.com.br [192.168.60.194]) by mail.tcoip.com.br (8.11.1/8.11.1) with ESMTP id f7GILsS03450; Thu, 16 Aug 2001 15:21:54 -0300 Message-ID: <3B7C0F33.3080100@tcoip.com.br> Date: Thu, 16 Aug 2001 15:21:39 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.3) Gecko/20010808 X-Accept-Language: en, pt-br, ja MIME-Version: 1.0 To: Garrett Wollman Cc: net@FreeBSD.ORG Subject: Re: RTM_INFO References: <3B7BC5CE.7040906@tcoip.com.br> <200108161652.f7GGqvK54639@khavrinen.lcs.mit.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Garrett Wollman wrote: > < said: > > >>Another question... when the interface goes up and an RTM_INFO message >>is generated, shouldn't the interface addresses be passed? >> > > No; there is enough information in the RTM_IFINFO message for a > listener to determine which interface is being referred to. At least > on my machine it is in any case almost immediately preceded by an > RTM_NEWADDR: > > # first we see the address being restored... > got message of size 116 on Thu Aug 16 12:49:52 2001 > RTM_NEWADDR: address being added to iface: len 116, metric 0, flags: > sockaddrs: > (0) 0 ffff ff fxp0:0.d0.b7.54.3e.d3 khavrinen 18.24.4.255 > > # then the network route is added back... > got message of size 172 on Thu Aug 16 12:49:52 2001 > RTM_ADD: Add Route: len 172, pid: 0, seq 0, errno 0, flags: > locks: inits: > sockaddrs: > 18.24.4.0 (255) ffff ffff ff > > # and now our interface comes back up > got message of size 96 on Thu Aug 16 12:49:52 2001 > RTM_IFINFO: iface status change: len 96, if# 1, flags: Funny. I don't see RTM_NEWADDR being generated. Of course, no route is added when the interface is simply brought up. -- Daniel C. Sobral (8-DCS) Daniel.Sobral@tcoip.com.br dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net Include me out. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message