Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Mar 2002 01:08:06 -0800
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Marco Molteni <molter@tin.it>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: can I do this with a KLD?
Message-ID:  <20020319010806.A3263@Odin.AC.HMC.Edu>
In-Reply-To: <20020319100000.A241@cobweb.example.org>; from molter@tin.it on Tue, Mar 19, 2002 at 10:00:00AM %2B0100
References:  <20020319100000.A241@cobweb.example.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020319010806.A3263>