From owner-freebsd-hackers Wed May 3 0:33: 7 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from cairo.anu.edu.au (cairo.anu.edu.au [150.203.224.11]) by hub.freebsd.org (Postfix) with ESMTP id 2F4A137B5EF for ; Wed, 3 May 2000 00:33:01 -0700 (PDT) (envelope-from avalon@cairo.anu.edu.au) Received: (from avalon@localhost) by cairo.anu.edu.au (8.9.3/8.9.3) id RAA04251 for hackers@freebsd.org; Wed, 3 May 2000 17:32:56 +1000 (EST) From: Darren Reed Message-Id: <200005030732.RAA04251@cairo.anu.edu.au> Subject: protosw or ipprotosw - code mess in netinet To: hackers@freebsd.org Date: Wed, 3 May 2000 17:32:56 +1000 (Australia/NSW) X-Mailer: ELM [version 2.5 PL1] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Looking through /sys/netinet, it would appear that sometimes inetsw[] is "struct protosw" and others "struct ipprotosw". Which is it meant to be ? If ipprotosw is the same as protosw, why does ipprotosw exist ? e.g. in_proto.c:struct ipprotosw inetsw[] = { in_proto.c: (struct protosw *)inetsw, in_proto.c: (struct protosw *)&inetsw[sizeof(inetsw)/sizeof(inetsw[0])], 0, ip_mroute.c: extern struct protosw inetsw[]; ip_output.c:extern struct protosw inetsw[]; Darren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message