From owner-freebsd-questions Tue Jun 29 7:47:56 1999 Delivered-To: freebsd-questions@freebsd.org Received: from titan.metropolitan.at (mail.metropolitan.at [195.212.98.131]) by hub.freebsd.org (Postfix) with ESMTP id BD65014E12 for ; Tue, 29 Jun 1999 07:47:51 -0700 (PDT) (envelope-from mladavac@metropolitan.at) Received: by TITAN with Internet Mail Service (5.0.1458.49) id ; Tue, 29 Jun 1999 16:50:50 +0200 Message-ID: <55586E7391ACD211B9730000C11002761796B4@r-lmh-wi-100.corpnet.at> From: Ladavac Marino To: 'Li Li' , Mark Tinguely , freebsd-questions@freebsd.org Subject: RE: How to access multicast routing entry from a user process? Date: Tue, 29 Jun 1999 16:44:57 +0200 X-Priority: 3 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1458.49) Content-Type: text/plain Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----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