From owner-freebsd-net Tue Sep 3 23:57:27 2002 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 217B237B400 for ; Tue, 3 Sep 2002 23:57:25 -0700 (PDT) Received: from firedrake.hades.skumler.net (pc1-oxfd1-6-cust131.oxf.cable.ntl.com [80.3.240.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BFE643E7B for ; Tue, 3 Sep 2002 23:57:24 -0700 (PDT) (envelope-from nighthawk@unrealircd.com) Received: by firedrake.hades.skumler.net (Postfix, from userid 1000) id 0CF1A758; Wed, 4 Sep 2002 07:55:39 +0100 (BST) Date: Wed, 4 Sep 2002 07:55:38 +0100 From: Edward Brocklesby To: freebsd-net@freebsd.org Subject: netns and protosw Message-ID: <20020904065538.GA64646@firedrake.hades.skumler.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Good morning, I am currently trying to make the /sys/netns code work again. While I'm quite close to making it at least compile, I'm having a problem with the protosw struct that I can't see the answer to. For example, idp_input() is defined as: int idp_input(struct mbuf *m, struct nspcb *nsp); However, it's passed as a pr_input_t: typedef void pr_input_t (struct mbuf *, int); in protosw in /sys/netns/ns_proto.c. I assume this is some change that has been made since this code last worked; could someone enlighten me as to how the nspcb can be extracted from mbuf and int? (A similar problem exists with the other functions passed in the protosw.) Regards, -larne. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message