Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 2004 21:02:51 +0200
From:      Juan Rodriguez Hervella <jrh@it.uc3m.es>
To:        freebsd-net@freebsd.org
Subject:   How to use the RTM_IFINFO message of a Routing Socket
Message-ID:  <200405102102.51399.jrh@it.uc3m.es>

next in thread | raw e-mail | index | archive | help
Hello,

I dont understand, looking at "man 4 route", how to use the RTM_IFINFO
message of a Routing Socket.

I mean, do I have to make a "write" on the socket with a 
"struct if_msghdr" of type = RTM_IFINFO and later on a "read" with
the same data structure ?

Or can I just open the PF_ROUTE socket and then make a "read" with 
a "struct if_msghdr" data structure, w/out doing a "write" ?

I'm really lost, and I haven't found documentation about this topic, so 
please if somebody can give me an example or pointing me to
somewhere to learn to use this, I'd be delighted. Looking at 
"usr/src/bin/route.c" is simple another big mess for me.

I'm looking forward to your answers, net-people !

-- 
******
JFRH
******



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