[Fwd: RIP daemon porting problem]

James Housley jim at thehousleys.net
Fri May 4 14:44:43 UTC 2001


Joel Sherrill wrote:
> 
> Hi,
> 
> This is really a FreeBSD question.  Could you please look up the
> answer in the online manual pages and reply to this?
> 
> Thanks.
> 
> --
> Joel Sherrill, Ph.D.             Director of Research & Development
> joel at OARcorp.com                 On-Line Applications Research
> Ask me about RTEMS: a free RTOS  Huntsville AL 35805
>    Support Available             (256) 722-9985
> 
>   ------------------------------------------------------------------------
> 
> Subject: RIP daemon porting problem
> Date: Thu, 3 May 2001 18:22:52 +0400
> From: "Michael A.Sladkov" <michael at continuum.ru>
> Organization: JSC Continuum+
> To: rtems-users at OARcorp.com
> 
> Hi,
> 
> I am trying to port "routeD" daemon from FreeBSD to RTEMS.
> 
> Code in FreeBSD:
> 
>         static char *sysctl_buf;
>         size_t needed;
>         int mib[6];
> 
>         mib[0] = CTL_NET;
>         mib[1] = PF_ROUTE;
>         mib[2] = 0;
>         mib[3] = AF_INET;
>         mib[4] = NET_RT_IFLIST;
>         mib[5] = 0;
> 
>         sysctl(mib, 6, sysctl_buf,&needed, 0, 0);
> 
>         I have a question. What are in sysctl_buf after sysctl call?
>         How does analogous code in RTEMS look ?
> 
> 

The online manpage is at the link below.

http://www.FreeBSD.org/cgi/man.cgi?query=sysctl&apropos=0&sektion=3&manpath=FreeBSD+4.3-RELEASE&format=html

Does this help?

Jim
-- 
/"\   ASCII Ribbon Campaign  .
\ / - NO HTML/RTF in e-mail  .
 X  - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
jeh at FreeBSD.org      http://www.FreeBSD.org     The Power to Serve
jim at TheHousleys.Net  http://www.TheHousleys.net
---------------------------------------------------------------------
It's always a long day, 86400 doesn't fit into a short.



More information about the users mailing list