From owner-freebsd-questions Tue Jun 29 8: 4: 5 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dirty.research.bell-labs.com (dirty.research.bell-labs.com [204.178.16.6]) by hub.freebsd.org (Postfix) with SMTP id 0C98B14E12 for ; Tue, 29 Jun 1999 08:04:01 -0700 (PDT) (envelope-from lili@dnrc.bell-labs.com) Received: from bronx.dnrc.bell-labs.com ([135.180.160.8]) by dirty; Tue Jun 29 11:02:25 EDT 1999 Received: from dnrc.bell-labs.com (tone [135.180.240.26]) by bronx.dnrc.bell-labs.com (8.9.3/8.9.3) with ESMTP id LAA24766; Tue, 29 Jun 1999 11:02:25 -0400 (EDT) Message-ID: <3778E01C.4AFEF0CC@dnrc.bell-labs.com> Date: Tue, 29 Jun 1999 11:02:52 -0400 From: Li Li Organization: Lucent / Bell Labs, USA X-Mailer: Mozilla 4.5 [en] (X11; U; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Ladavac Marino Cc: freebsd-questions@freebsd.org Subject: Re: How to access multicast routing entry from a user process? References: <55586E7391ACD211B9730000C11002761796B4@r-lmh-wi-100.corpnet.at> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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