LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 05-21-2012, 06:28 AM   #1
Maximus_JR
LQ Newbie
 
Registered: May 2012
Posts: 1

Rep: Reputation: Disabled
why skb_dst() returns NULL


Hi, everyone. I'm new here and a bug confused me for several days. I am learning snull(a virtual netdevice driver, I believe many of u know it) these days. I tried to add: printk("%lu\n", skb->dst) in function snull_tx() on kernel 2.6.22 and get an address of the pointer(it seems right) when I ping; then I tried to add: printk("%lu\n", skb_dst(skb)) in function snull_tx() on kernel 3.3.2 and get NULL when I ping.

why would this happen? I think skb_dst(struct sk_buff *skb) on kernel 3.3.2 is the same with skb->dst on kernel 2.6.22, am I right? If I'm right, why would the results be different?

Can anyone help me?
 
  


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
XtWindowToWidget() function returns NULL with Sun jre1.5, working fine with java1.4 prashanthprabhu Linux - Software 0 05-13-2009 03:21 AM
setlocale() returns NULL mic Programming 2 11-08-2005 04:49 AM
Rhythmbox returns failed to activate the shell: (null) Minderbinder Linux - Software 0 06-04-2004 06:41 PM
Kmalloc returns null iannou Linux - General 0 06-28-2003 11:36 AM
Allegro create_bitmap() returns NULL tommyclee Programming 1 05-31-2002 12:41 PM


All times are GMT -5. The time now is 07:41 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration