LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-24-2008, 11:08 PM   #1
iamjayanth
Member
 
Registered: Oct 2008
Posts: 51

Rep: Reputation: 15
Where is ip_finish_output in 2.6.23 kernel


Hi masters,

I am using fedora 2.6.23.1-42.fc8 kernel and am trying to design a packet filtering system using netfilter. But in the above mentioned kernel I couldn't find the familiar function ip_finish_output. I have done the same project in kernel 2.4 and 2.6.9 redhat.

Can anybody tell me is there any replacement for the above function in 2.6.23 kernel.Or if the function is there can anyone tell me in which path they are present. I have already done a grep in the kernel source tree yielding zero result.

grep -r ip_finish_output /usr/src/kernels/2.6.23.1-42.fc8-i686/*

resulted in the following output.
/usr/src/kernels/2.6.23.1-42.fc8-i686/System.map:c11dbd3e t ip_finish_output
/usr/src/kernels/2.6.23.1-42.fc8-i686/System.map:c11dbf59 t ip_finish_output2

Can anybody help me.



regards
 
Old 11-25-2008, 08:59 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
'grep ip_finish_output linux-2.6.26/net/*/*'

output =
Quote:
linux-2.6.26/net/ipv4/ip_output.c:static inline int ip_finish_output2(struct sk_buff *skb)
linux-2.6.26/net/ipv4/ip_output.c:
printk(KERN_DEBUG "ip_finish_output2: No header cache and no neighbour!\n");
linux-2.6.26/net/ipv4/ip_output.c:static int ip_finish_output(struct sk_buff *skb)
linux-2.6.26/net/ipv4/ip_output.c: return ip_fragment(skb, ip_finish_output2);
linux-2.6.26/net/ipv4/ip_output.c: return ip_finish_output2(skb);
linux-2.6.26/net/ipv4/ip_output.c: ip_finish_output,
linux-2.6.26/net/ipv4/ip_output.c: ip_finish_output,
EDIT : Same in 2.6.23.9 , but then again, if you got it
from Fedora, something could be modified ?
(In Fedora 'kernel-devel' most files are missing)

Last edited by knudfl; 11-25-2008 at 09:14 AM.
 
Old 11-25-2008, 10:22 PM   #3
iamjayanth
Member
 
Registered: Oct 2008
Posts: 51

Original Poster
Rep: Reputation: 15
If there is no ip_finish_output in fedora , what replaces that. There should be something which should work exactly like ip_finish_output. How can I output packets that I have stolen. Also In my system there is no ip_output.c function also.
Thanks for the reply,Please help me . I am in a road block.
 
Old 11-26-2008, 07:06 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
If you want to build a new kernel, the full kernel
source exists :
The package 'kernel-2.6.23.1-42.fc8.src.rpm'
http://download.fedora.redhat.com/pu.../source/SRPMS/
which will "install" (unpack) to
/usr/src/redhat/SOURCES/linux-2.6.23.tar.bz2 + 170 patches
and other files.

Last edited by knudfl; 11-27-2008 at 10:39 AM.
 
Old 01-27-2009, 05:11 AM   #5
setutsi
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Rep: Reputation: 0
Post ip_output()

hi all!
I am trying to build a kernel module which requires me to use the ip_output() function.

I have included the header file "<include/net/ip.h>"
which contains the declaration for ip_output().

when I compile with

make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

I get the warning below:
WARNING: "ip_output" [/home/eric/Desktop/modelnet/linux_module/linuxmodelnet.ko] undefined!

How do I get it to see the definition which is in "<net/ipv4/ip_output.c>"
Any help will be very much appreciated
thanks

Last edited by setutsi; 01-27-2009 at 07:34 AM.
 
Old 01-28-2009, 12:34 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
setutsi # 5 : Welcome to LQ.

Suggest : Start a new thread with the question.
You won't get any answers in this old thread.

http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
> > Please show, which Linux, you are using,
and "Linux" version, please. Like RH EL5 , Fedora "9"
Ubuntu 8.10 ... etc. etc.

Good luck.

Last edited by knudfl; 01-28-2009 at 07:53 AM.
 
  


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
upgrading Fedora Core 3 kernel 2.6.9-1.667 to 2.6.26.3 manually+kernel panic error LinuxLovinNoob Linux - Newbie 7 12-17-2008 08:45 PM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:00 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