Date: Tue, 29 Jun 1999 16:44:57 +0200 From: Ladavac Marino <mladavac@metropolitan.at> To: 'Li Li' <lili@dnrc.bell-labs.com>, Mark Tinguely <tinguely@plains.nodak.edu>, freebsd-questions@freebsd.org Subject: RE: How to access multicast routing entry from a user process? Message-ID: <55586E7391ACD211B9730000C11002761796B4@r-lmh-wi-100.corpnet.at>
next in thread | raw e-mail | index | archive | help
> -----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?55586E7391ACD211B9730000C11002761796B4>