From owner-freebsd-hackers Tue Mar 19 1: 8:11 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 3D5D837B405 for ; Tue, 19 Mar 2002 01:08:09 -0800 (PST) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id g2J986q03622; Tue, 19 Mar 2002 01:08:06 -0800 Date: Tue, 19 Mar 2002 01:08:06 -0800 From: Brooks Davis To: Marco Molteni Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: can I do this with a KLD? Message-ID: <20020319010806.A3263@Odin.AC.HMC.Edu> References: <20020319100000.A241@cobweb.example.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020319100000.A241@cobweb.example.org>; from molter@tin.it on Tue, Mar 19, 2002 at 10:00:00AM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 19, 2002 at 10:00:00AM +0100, Marco Molteni wrote: > Hi, >=20 > in netinet/in_proto.c there is struct ipprotosw inetsw[], which > contains the entry points for the various Internet protocols. If one > wants to add a new protocol he has to add the entry points in that > array. >=20 > Would it be feasible to add a new protocol as a KLD instead? If yes, > how? If not, what would be required to transform inetsw[] in a way > that would allow KLD? Take a look at sys/net/if_gif.c. It adds a new IP protocol and is loadable. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --PNTmBPCT7hxwcZjr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8lv/0XY6L6fI4GtQRAugBAJ9obE71LzB1b3sfhkgcEMjvInd57QCdGqPP 353e2MjsUk1RsI1fm4w1pUg= =C7Ll -----END PGP SIGNATURE----- --PNTmBPCT7hxwcZjr-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message