LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-03-2004, 09:40 AM   #1
coontie
Member
 
Registered: Jun 2003
Distribution: Fedora Core 5
Posts: 100

Rep: Reputation: 15
what is the proper way to make changes to udp.c?


I want to test out a few things by making some subtle changes to tcp.c and udp.c. What is the proper way of doing this? If I make changes, how do I recompile? Is there a master make file? Is there a write-up on the web about how to do this?

thank you.
 
Old 03-03-2004, 10:13 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
According to me, a proper way would be to make a copy of your current sources. And then modify the copy. About the makefile, I suppose that your IP stack is compiled in the kernel... so you have to recompile your whole kernel: make dep && make bzImage... (don't forget to include .config file in your copy if you don't want to redo the "make menuconfig" step)
 
Old 03-04-2004, 12:29 PM   #3
coontie
Member
 
Registered: Jun 2003
Distribution: Fedora Core 5
Posts: 100

Original Poster
Rep: Reputation: 15
are you sure i have to recompile the entire kernel?? seems like an overkill to me...
 
Old 03-04-2004, 01:00 PM   #4
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
I think, yes you have to recompile the whole kernel... but it's very "fast" (in fact if you have a 2.4 kernel with a pentium 75MHZ and 32Mo RAM, it's very long but the command to type are short ).
You just have to type (if you have thought to recopy the .config file):
make clean && make dep && make bzImage (for a 2.4 kernel)
 
  


Reply



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
RFC 868 udp 37 time-udp gpl SUSE / openSUSE 2 03-31-2005 10:07 AM
"Make sure you have the proper permissions on it"??? madh@ter Linux - Newbie 2 08-10-2004 03:42 PM
How to receive UDP and ICMP packets, by one UDP socket(PMTUD) myself_rajat Linux - Networking 0 05-28-2004 05:43 AM
how can I get/make a proper squid daemon startup script for boot time binkybuckle Debian 0 07-05-2003 07:58 PM
Proper way to shutdown? snocked Linux - Newbie 12 02-11-2003 08:26 AM

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

All times are GMT -5. The time now is 03:02 AM.

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