lkml.org 
[lkml]   [2007]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: tcp/ip stack question
On 6/7/07, kernel coder <lhrkernelcoder@gmail.com> wrote:
> hi,
> I am recieveing the packet on eth1 and want to send it through eth2.
>
> I've written code in netif_recieve_skb function .This code changes the
> mac header in sk_buff structure so that it can be send through other
> interface card.But when i call ip_dev_find fucntion to get the second
> interface structure ,NULL is returned.I checked the ip of second
> ethernet card and it was similar to one passed to ip_dev_find
> fucntion,then why NULL is being returned?
>

Um... why would you need to modify kernel code to do this? Try "man route".

Lee
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-06-07 21:05    [W:0.020 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site