From: aruna.hewapathirane@gmail.com (Aruna Hewapathirane)
To: kernelnewbies@lists.kernelnewbies.org
Subject: TCP as a module
Date: Mon, 14 Nov 2016 07:17:00 -0500 [thread overview]
Message-ID: <CAFSeFg8wpPX_qtKF5DLxn7mstfnCKq5XzWA9Zs5QE7ELk+0TsA@mail.gmail.com> (raw)
In-Reply-To: <CAFgPn1DyTvr3SuciOwcitiiOjT50DMxfX=ok_iN69H2pw2fCvQ@mail.gmail.com>
> Currently TCP is statically linked to the kernel.
Correct, so how is this done and where ? Once you figure that part
out you have what you need to do what you want to :)
> How can I make it a loadable module?
Change into your source tree, look for this file:
linux-4.7.2/linux-4.7.2/net/Kconfig
Kconfig is used by the KBuild system that menuconfig uses.
Look for the section:
config INET
bool "TCP/IP networking" <-- change bool to tristate, save and run make
menuconfig.
Now you can ask menuconfig to build TCP as a module.
But... it may be better to if you can use:
https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt
One last thing, heed the warnings in Kconfig they are there for a reason.
Good luck and what exactly are you trying to do ? Am curious.
Aruna ( Shrugs and gets ready to duck a flying trout Valdis may send my way
:)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161114/223b0a43/attachment.html
next prev parent reply other threads:[~2016-11-14 12:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-06 1:10 TCP as a module Md. Islam
2016-11-13 5:55 ` Valdis.Kletnieks at vt.edu
2016-11-14 12:17 ` Aruna Hewapathirane [this message]
2016-11-15 5:14 ` Md. Islam
2016-11-15 6:05 ` Valdis.Kletnieks at vt.edu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFSeFg8wpPX_qtKF5DLxn7mstfnCKq5XzWA9Zs5QE7ELk+0TsA@mail.gmail.com \
--to=aruna.hewapathirane@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).