LinuxQuestions.org
Help answer threads with 0 replies.
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 05-24-2011, 05:16 PM   #1
vdx
Member
 
Registered: Aug 2007
Location: The Greate INDIA
Distribution: CentOS, RHEL, Fedora
Posts: 102

Rep: Reputation: 24
struct sk_buff has no member named 'nh'


I am compiling a kernel module in 2.6.33.6 ver kernel.

I am getting the following error
Code:
/root/vandan/l4_switch/kernel/l4switch.c:103: error: ‘struct sk_buff’ has no member named ‘nh’
I found that it references the below kernel header file, In which the struct sk_buff is defined and it doesn't contain any member named nh in tht.

Quote:
/lib/modules/2.6.33.6/build/include/linux/skbuff.h
hw to resolve this issue ?
 
Old 05-24-2011, 06:18 PM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
These members now appear to be handled by the network header and transport header fields. If there is no newer version of the module you are compiling, then it will need to be patched, perhaps along the lines of replacing 'skbuffptr->nh.iph' with 'ip_hdr(skbuffptr)' and 'skbuffptr->h.th' with 'tcp_hdr(skbuffptr)'.

Last edited by neonsignal; 05-24-2011 at 06:38 PM.
 
1 members found this post helpful.
Old 05-25-2011, 04:07 AM   #3
vdx
Member
 
Registered: Aug 2007
Location: The Greate INDIA
Distribution: CentOS, RHEL, Fedora
Posts: 102

Original Poster
Rep: Reputation: 24
thnx neonsignal ur reply was very helpful
 
  


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
how to solve errors like ‘struct iphdr’ has no member named ‘daddr’ trinity.coder Programming 2 01-10-2010 11:36 PM
error: ‘struct in6_addr’ has no member named ‘in6_u’ deb1513 Programming 1 12-02-2008 06:56 AM
error: 'struct SDL_SysWMinfo' has no member named 'info' TiDjY Linux - Desktop 4 11-24-2008 06:00 AM
error: ‘struct tcphdr’ has no member named ‘th_flags’ nasim751 Linux - Software 0 04-17-2008 05:55 AM
error: ‘struct inode’ has no member named ‘u’ PankajDS Linux - Kernel 0 02-25-2008 11:34 PM

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

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