Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jun 1999 11:02:52 -0400
From:      Li Li <lili@dnrc.bell-labs.com>
To:        Ladavac Marino <mladavac@metropolitan.at>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to access multicast routing entry from a user process?
Message-ID:  <3778E01C.4AFEF0CC@dnrc.bell-labs.com>
References:  <55586E7391ACD211B9730000C11002761796B4@r-lmh-wi-100.corpnet.at>

next in thread | previous in thread | raw e-mail | index | archive | help
I looked at netstat before. Since it reports all the multicast routing
information, it just uses kvm_read to copy the kernel multicast routing
table to the user process address space. I don't want to do this,
either.

Thanks though,

L. Li
 

Ladavac Marino wrote:
> 
> > -----Original Message-----
> > From: Li Li [SMTP:lili@dnrc.bell-labs.com]
> > Sent: Tuesday, June 29, 1999 4:40 PM
> > To:   Mark Tinguely; freebsd-questions@freebsd.org
> > Subject:      Re: How to access multicast routing entry from a user
> > process?
> >
> > Mark Tinguely wrote:
> > >
> > > a person can dump the routing table to a file. and read it that way.
> > >
> > > --mark.
> >
> > I need to frequently access entries in the multicast routing table.
> > This
> > does not seem to be efficient. I want to know if there are any system
> > calls or socket options available that I can use. Of cause, I can
> > always
> > hack the kernel. But I do not want to re-invent the wheel if people
> > have
> > already provided nice ways to access the multicast routing table. So
> > my
> > question is: are there any available system calls or socket options
> > for
> > this purpose?
>         [ML]  Well, netstat does it.  Did you look at the netstat source
> (I fear it digs through kmem)?  I don't know whether there is a portable
> way to do it, though.
> 
>         /Marino
> 
> > L. Li
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3778E01C.4AFEF0CC>