From owner-freebsd-current Wed Oct 3 12:42:49 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailhub.yumyumyum.org (dsl092-171-091.wdc1.dsl.speakeasy.net [66.92.171.91]) by hub.freebsd.org (Postfix) with SMTP id 7722637B406 for ; Wed, 3 Oct 2001 12:42:38 -0700 (PDT) Received: (qmail 6986 invoked from network); 3 Oct 2001 19:42:37 -0000 Received: from ken.yumyumyum.org (HELO there) (192.168.0.2) by dsl092-171-091.wdc1.dsl.speakeasy.net with SMTP; 3 Oct 2001 19:42:37 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Kenneth Culver Reply-To: culverk@wam.umd.edu To: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: SIOCGIFDATA Date: Wed, 3 Oct 2001 15:42:57 -0400 X-Mailer: KMail [version 1.3] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20011003194238.7722637B406@hub.freebsd.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I was wondering if anyone had thought of implementing the above ioctl. Right now from what I can tell, (from wmnet, and netstat) all stats for a network device are kvm_read out of the kernel. On my local machine (just to see if it was feasable) I wrote an ioctl and added a structure (nameifdata, which has a character array to store an if_name, and an if_data) that when given an if_name (in the nameifdata) it fills the if_data with the appropriate device's stats, and pulls it back to userland. I was wondering if anyone would be interested in committing this ioctl, mainly because for a program such as wmnet or any other program that needs stats, it's a pain to go through all the kvm stuff when a socket could just be opened, and then that data could be ioctl'd using that socket. If there is any reason why nobody has created this ioctl, please explain it to me. Ken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message