lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <75b66ecd0706071201m3068ca5cge65a6d423e110df2@mail.gmail.com>
Date:	Thu, 7 Jun 2007 15:01:50 -0400
From:	"Lee Revell" <rlrevell@...-job.com>
To:	"kernel coder" <lhrkernelcoder@...il.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: tcp/ip stack question

On 6/7/07, kernel coder <lhrkernelcoder@...il.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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ