Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Oct 2002 12:10:22 -0700 (PDT)
From:      Archie Cobbs <archie@dellroad.org>
To:        Ruslan Ermilov <ru@FreeBSD.ORG>
Cc:        yatin chalke <yat_33@yahoo.com>, freebsd-net@FreeBSD.ORG
Subject:   Re: Parsing route dump received using sysctl
Message-ID:  <200210101910.g9AJAMQj013104@arch20m.dellroad.org>
In-Reply-To: <20021004162657.GB91159@sunbay.com> "from Ruslan Ermilov at Oct 4, 2002 07:26:57 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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 ROUNDUP() macro).

Alternately, use the uroute(3) routines in the devel/libpdel port..

    http://www.dellroad.org/manpage?page=uroute

-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com

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?200210101910.g9AJAMQj013104>