Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Aug 2001 16:26:11 +0300
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        "Daniel C. Sobral" <daniel.sobral@tcoip.com.br>
Cc:        net@FreeBSD.ORG
Subject:   Re: RTM_INFO
Message-ID:  <20010816162611.G73183@sunbay.com>
In-Reply-To: <3B7BC5CE.7040906@tcoip.com.br>; from daniel.sobral@tcoip.com.br on Thu, Aug 16, 2001 at 10:08:30AM -0300
References:  <3B7BC5CE.7040906@tcoip.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help
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:<HOST,LOCAL>
: locks:  inits:
: sockaddrs: <DST,GATEWAY>
:  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:<UP>
: sockaddrs: <NETMASK,IFP,IFA,BRD>
:  (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:<LOOPBACK,RUNNING,MULTICAST>
: 
: 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: <NETMASK,IFP,IFA,BRD>
:  (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:<UP,HOST,LOCAL>
: locks:  inits:
: sockaddrs: <DST,GATEWAY>
:  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:<UP,LOOPBACK,RUNNING,MULTICAST>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010816162611.G73183>