LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-11-2012, 06:27 AM   #1
peeyushpd
LQ Newbie
 
Registered: Feb 2012
Posts: 20

Rep: Reputation: Disabled
How to make changes to network stack .c files


Hi,

I want to make changes to the existing network stack code for some reason.
Please let me know where can I find the C files in my system to make any changes or what approach should I take for doing so.

Say I want to make some changes to the network layer. I want to add my module in the existing C code. How can I do that ? Where to find the relevant code ?

Thanks,
Peeyush
 
Old 02-12-2012, 01:58 AM   #2
hydraMax
Member
 
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467
Blog Entries: 60

Rep: Reputation: 51
Not my area of expertise (yet) but I think most the network stack stuff is in the kernel. Download the kernel sources and look in the net directory. You can find directories for ipv4, mac80211, netfilter, and all kinds of other stuff. You will have to recompile and reinstall your kernel (or modules) to see your changes.

Kernel programming is no walk in the park though. You have to be very good with C and learn a lot about the kernel structures and memory locking techniques and so forth. I've got a book I'm going through right now, Essential Linux Device Drivers from Prentice Hall, which is very detailed.
 
1 members found this post helpful.
Old 02-12-2012, 02:45 AM   #3
peeyushpd
LQ Newbie
 
Registered: Feb 2012
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydraMax View Post
Not my area of expertise (yet) but I think most the network stack stuff is in the kernel. Download the kernel sources and look in the net directory. You can find directories for ipv4, mac80211, netfilter, and all kinds of other stuff. You will have to recompile and reinstall your kernel (or modules) to see your changes.

Kernel programming is no walk in the park though. You have to be very good with C and learn a lot about the kernel structures and memory locking techniques and so forth. I've got a book I'm going through right now, Essential Linux Device Drivers from Prentice Hall, which is very detailed.
Hey Thanks,
That gave me a direction to think. Yes for kernel structures I am referring the book "TCP/IP Illustrated, Volume 2 by W. Richard Stevens". All the best.

Thanks,
Peeyush
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I make the SCSI driver stack do larger transfers per command? mlefevre Linux - General 2 04-11-2011 01:01 PM
odd network stack glitch seen Skaperen Linux - Networking 2 01-25-2011 01:42 PM
How do I change my network config files in SuSe to make my IP permanent Pooh Linux - Networking 7 11-06-2009 02:12 AM
Linux Network Stack. tech1222 Linux - Networking 0 09-15-2004 08:05 PM
How to use Glist to make a stack?? Claus Programming 0 11-25-2003 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration