From owner-freebsd-net@FreeBSD.ORG Sat Aug 9 10:09:56 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14CCB1065674 for ; Sat, 9 Aug 2008 10:09:56 +0000 (UTC) (envelope-from rfrench@freebsd.org) Received: from oberon.wxnz.net (oberon.wxnz.net [58.28.6.13]) by mx1.freebsd.org (Postfix) with ESMTP id CF8BB8FC12 for ; Sat, 9 Aug 2008 10:09:55 +0000 (UTC) (envelope-from rfrench@freebsd.org) Received: from mini-tank.local (ip-58-28-152-154.static-xdsl.xnet.co.nz [58.28.152.154]) by oberon.wxnz.net (Postfix) with ESMTP id 8D4102BBF40 for ; Sat, 9 Aug 2008 22:13:01 +1200 (NZST) From: Ryan French To: freebsd-net@freebsd.org Date: Sat, 9 Aug 2008 22:09:55 +1200 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808092209.55478.rfrench@freebsd.org> Subject: Looking for the FreeBSD equivalent of an OpenBSD function X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2008 10:09:56 -0000 Hi all, First of all thank you for all the help with my question yesterday, my problem today is unfortunately not something syntactical like the last one. I am working on moving over code from OpenBSDs implementation ofMPLS to FreeBSD, and I have run up against a function called 'sysctl_ifq' and I was wondering if anyone knew of an equivalent in FreeBSD. The code that calls the function is shown below. Thanks for any help. int mpls_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp, size_t newlen) { if (name[0] >= MPLSCTL_MAXID) return EOPNOTSUPP; /* Almost all sysctl names at this level are terminal. */ if (namelen != 1 && name[0] != MPLSCTL_IFQUEUE) return (ENOTDIR); switch (name[0]) { case MPLSCTL_IFQUEUE: return (sysctl_ifq(name + 1, namelen - 1, oldp, oldlenp, newp, newlen, &mplsintrq)); default: return sysctl_int_arr(mplsctl_vars, name, namelen, oldp, oldlenp, newp, newlen); } }