From: "Lee Revell" <rlrevell@joe-job.com>
To: "kernel coder" <lhrkernelcoder@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: tcp/ip stack question
Date: Thu, 7 Jun 2007 15:01:50 -0400 [thread overview]
Message-ID: <75b66ecd0706071201m3068ca5cge65a6d423e110df2@mail.gmail.com> (raw)
In-Reply-To: <f69849430706070550k4780060dheaa0f3073555d137@mail.gmail.com>
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
prev parent reply other threads:[~2007-06-07 19:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-07 12:50 kernel coder
2007-06-07 19:01 ` Lee Revell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=75b66ecd0706071201m3068ca5cge65a6d423e110df2@mail.gmail.com \
--to=rlrevell@joe-job.com \
--cc=lhrkernelcoder@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®