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
[-- Attachment #1 --] On Tue, Mar 19, 2002 at 10:00:00AM +0100, Marco Molteni wrote: > Hi, > > 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. > > 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 -- 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 [-- Attachment #2 --] -----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020319010806.A3263>
