From owner-freebsd-net@FreeBSD.ORG Fri Oct 1 19:32:36 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CF9316A4CF for ; Fri, 1 Oct 2004 19:32:36 +0000 (GMT) Received: from blacksheep.csh.rit.edu (blacksheep.csh.rit.edu [129.21.60.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3F2F43D1F for ; Fri, 1 Oct 2004 19:32:35 +0000 (GMT) (envelope-from wxs@csh.rit.edu) Received: from fury.csh.rit.edu (fury.csh.rit.edu [IPv6:2001:470:1f00:135:a00:20ff:fe8d:5399]) by blacksheep.csh.rit.edu (Postfix) with ESMTP id 157BE928D for ; Fri, 1 Oct 2004 15:32:35 -0400 (EDT) Received: by fury.csh.rit.edu (Postfix, from userid 44963) id E81DF14AC; Fri, 1 Oct 2004 15:32:34 -0400 (EDT) Date: Fri, 1 Oct 2004 15:32:34 -0400 From: Wesley Shields To: freebsd-net@freebsd.org Message-ID: <20041001193234.GA14576@csh.rit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.3i Subject: ifconfig question X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2004 19:32:36 -0000 Per a message about a month ago[1] I recently started some work on adding a -v flag to ifconfig. I've been able to get the index number and epoch as those are exposed to userland, but both the dname and dunit are in an ifnet struct which AFAIK is not visible. I initially thought you might be able to get them through an ioctl but that is not the case. Unless I'm mistaken I'd have to either move the parts I would like to see to the if_data struct (which is visible through a sysctl()), or make them visible through an ioctl. Am I correct in thinking that these are the only way to go about this problem, and if so which way is the best way? If neither of them are a wanted solution then any suggestions you have would be helpful, otherwise I guess I'm just barking up the wrong tree here. :) -- WXS [1]: http://lists.freebsd.org/pipermail/freebsd-net/2004-September/004964.html