From owner-freebsd-net Thu Aug 16 6:26:53 2001 Delivered-To: freebsd-net@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 1FA2437B40D for ; Thu, 16 Aug 2001 06:26:44 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f7GDQBb09466; Thu, 16 Aug 2001 16:26:11 +0300 (EEST) (envelope-from ru) Date: Thu, 16 Aug 2001 16:26:11 +0300 From: Ruslan Ermilov To: "Daniel C. Sobral" Cc: net@FreeBSD.ORG Subject: Re: RTM_INFO Message-ID: <20010816162611.G73183@sunbay.com> References: <3B7BC5CE.7040906@tcoip.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B7BC5CE.7040906@tcoip.com.br>; from daniel.sobral@tcoip.com.br on Thu, Aug 16, 2001 at 10:08:30AM -0300 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 On Thu, Aug 16, 2001 at 10:08:30AM -0300, Daniel C. Sobral wrote: > Another question... when the interface goes up and an RTM_INFO message s/RTM_INFO/RTM_IFINFO > is generated, shouldn't the interface addresses be passed? > Why? In the down/up event, only interface's status changes: : # route -vn monitor : got message of size 124 on Thu Aug 16 16:19:12 2001 : RTM_DELETE: Delete Route: len 124, pid: 0, seq 0, errno 0, flags: : locks: inits: : sockaddrs: : 127.0.0.1 127.0.0.1 : : got message of size 116 on Thu Aug 16 16:19:12 2001 : RTM_DELADDR: address being removed from iface: len 116, metric 0, flags: : sockaddrs: : (0) 0 ff lo0 127.0.0.1 127.0.0.1 : : got message of size 96 on Thu Aug 16 16:19:12 2001 : RTM_IFINFO: iface status change: len 96, if# 3, flags: : : got message of size 116 on Thu Aug 16 16:21:02 2001 : RTM_NEWADDR: address being added to iface: len 116, metric 0, flags: : sockaddrs: : (0) 0 ff lo0 127.0.0.1 127.0.0.1 : : got message of size 124 on Thu Aug 16 16:21:02 2001 : RTM_ADD: Add Route: len 124, pid: 0, seq 0, errno 0, flags: : locks: inits: : sockaddrs: : 127.0.0.1 127.0.0.1 : : got message of size 96 on Thu Aug 16 16:21:02 2001 : RTM_IFINFO: iface status change: len 96, if# 3, flags: The first three are from ``ifconfig lo0 down'', and first two of them are from in_ifscrub() which deletes interface route. The last three are from ``ifconfig lo0 up'', and first two of them are from in_ifinit() which adds interface route. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message