Re: Parsing route dump received using sysctl

2002-10-10 Thread Archie Cobbs
Ruslan Ermilov writes: > > 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. > > Look at the route(8) code, you're probably missing the > necessary alignments (with the

Re: Parsing route dump received using sysctl

2002-10-04 Thread Ruslan Ermilov
On Fri, Oct 04, 2002 at 09:08:50AM -0700, yatin chalke wrote: > 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_ms

Parsing route dump received using sysctl

2002-10-04 Thread yatin chalke
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: whe