Hi,

I am currently trying to get a route dump in
freebsd4.4 using sysctl with NET_RT_DUMP.

I am running into problems while parsing the returned
rt_msghdr structures.

The sockaddr structures returned after the rt_msghdr
are messed up and it is not giving correct gateway or
netmask.

For ex: when I am parsing the received route dump the
netmask received is nonzero(random value) for a
default route (which it returns as 0.0.0.0) and also
netmask doesnt appear to be a sockaddr structure.

Also for further routes gateway and netmasks are
0.0.0.0.
I am  parsing the received sockaddr structures to get
all the values depending on flag bits set in rt_msghdr
structure.

If anyone can help me in this matter it will be a
great help.

Thanks,
--Yatin


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to