netdev
[Top] [All Lists]

ipt_ROUTE and destination MAC address

To: netdev@xxxxxxxxxxx
Subject: ipt_ROUTE and destination MAC address
From: "junk" <junk@xxxxxxxxxxx>
Date: Fri, 11 Feb 2005 13:39:38 +0100
References: <S262133AbVBJPBt/20050210150149Z+8411@vger.kernel.org>
Reply-to: "junk" <junk@xxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
Hello,

i'm coding a virtual interface. That virtual interface has to receive packets
coming on eth0. For that purpose, i'm using ipt_ROUTE. That works great, i can
see my packets arriving on red0 (my virtual interface).

But there is a problem..

If i send an icmp request to 10.0.1.1 from another computer:

The icmp request arrives on the physical interface, ROUTE target makes it
arrive on red0

icmp request arriving on red0: 10.0.0.1

The problem is that the destination MAC is the one of eth0, so, it seems the
kernel doesn't really deliver the packet to my driver. I can see it in tcpdump
but my driver receive function is never called.

I tried every -j ROUTE option, --gw or --iif, with --continue, or not..

Any idea?

<Prev in Thread] Current Thread [Next in Thread>