From owner-freebsd-net Wed Sep 4 0:20:16 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 F3A4D37B400 for ; Wed, 4 Sep 2002 00:20:11 -0700 (PDT) Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id A35EC43E72 for ; Wed, 4 Sep 2002 00:20:11 -0700 (PDT) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020904072011.RUFH12451.rwcrmhc51.attbi.com@InterJet.elischer.org>; Wed, 4 Sep 2002 07:20:11 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id AAA29476; Wed, 4 Sep 2002 00:02:45 -0700 (PDT) Date: Wed, 4 Sep 2002 00:02:43 -0700 (PDT) From: Julian Elischer To: Edward Brocklesby Cc: freebsd-net@freebsd.org Subject: Re: netns and protosw In-Reply-To: <20020904065538.GA64646@firedrake.hades.skumler.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Wed, 4 Sep 2002, Edward Brocklesby wrote: > 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.) is idp_input called directly or through the table? the protosw format was changed in a rather non portable way during the importing of ipv6. If your routine as called directly, then there is actually no reason to have it in the protosw. The whole protosw format needs to be gone ove with an eye to ALL the protocols. > > Regards, > -larne. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message