mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* tcp/ip stack question
@ 2007-06-07 12:50 kernel coder
  2007-06-07 19:01 ` Lee Revell
  0 siblings, 1 reply; 2+ messages in thread
From: kernel coder @ 2007-06-07 12:50 UTC (permalink / raw)
  To: linux-kernel

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?


Actually if i get the correct dev structure from ip_dev_find fucntion
then i'll assign that dev structure to current skbuff->dev  and call
dev_queue_xmit fucntion,so that it transmitted through second
interface card.Is mine approach correct?


shahzad

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-07 19:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-07 12:50 tcp/ip stack question kernel coder
2007-06-07 19:01 ` Lee Revell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®