LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-27-2009, 02:01 PM   #1
setutsi
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Rep: Reputation: 0
Post Need Help with 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-30-2009 at 05:58 AM.
 
Old 04-13-2009, 11:42 PM   #2
titan22
LQ Newbie
 
Registered: Apr 2009
Posts: 17

Rep: Reputation: 3
ip_output is not an exported API. Your device driver cannot use it, only functions in EXPORT_SYMBOL() can be used. The rest of the functions are internal to Linux.

For example: ip_queue_xmit can be used by your driver.
EXPORT_SYMBOL(ip_queue_xmit);

Last edited by titan22; 04-13-2009 at 11:43 PM.
 
  


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
ip_output.c (ip_finish_output2( )) shrishailnk Linux - Networking 0 04-30-2006 09:08 AM
help to separate implemenation of IP and LINK layers in ip_output.c cranium2004 Programming 0 08-18-2004 05:02 AM

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

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