Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 May 2004 11:21:21 +0300
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Juan Rodriguez Hervella <jrh@it.uc3m.es>
Cc:        freebsd-net@freebsd.org
Subject:   Re: How to use the RTM_IFINFO message of a Routing Socket
Message-ID:  <20040511082121.GA64972@ip.net.ua>
In-Reply-To: <200405102102.51399.jrh@it.uc3m.es>
References:  <200405102102.51399.jrh@it.uc3m.es>

next in thread | previous in thread | raw e-mail | index | archive | help

--d6Gm4EdcadzBjdND
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 10, 2004 at 09:02:51PM +0200, Juan Rodriguez Hervella wrote:
> Hello,
>=20
> I dont understand, looking at "man 4 route", how to use the RTM_IFINFO
> message of a Routing Socket.
>=20
> I mean, do I have to make a "write" on the socket with a=20
> "struct if_msghdr" of type =3D RTM_IFINFO and later on a "read" with
> the same data structure ?
>=20
> Or can I just open the PF_ROUTE socket and then make a "read" with=20
> a "struct if_msghdr" data structure, w/out doing a "write" ?
>=20
> I'm really lost, and I haven't found documentation about this topic, so=
=20
> please if somebody can give me an example or pointing me to
> somewhere to learn to use this, I'd be delighted. Looking at=20
> "usr/src/bin/route.c" is simple another big mess for me.
>=20
> I'm looking forward to your answers, net-people !
>=20
A kernel emits the RTM_IFINFO message on a routing socket by ether
reacting to the NET_RT_IFLIST sysctl(3), or when the interface's
status changes (see "route monitor" for one such example).


Cheers,
--=20
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

--d6Gm4EdcadzBjdND
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAoI0BUkv4P6juNwoRAsH7AJsF+1HA1f4a1xGZ59pFUTCtbtENVgCfVLIA
HQqyiytW9qP/sKP4WzKcM00=
=Xxy3
-----END PGP SIGNATURE-----

--d6Gm4EdcadzBjdND--



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