From: Ignacy Gawedzki <lkml@qult.net>
To: linux-kernel@vger.kernel.org
Subject: TUN/TAP hacking
Date: Thu, 24 Jul 2008 01:55:14 +0200 [thread overview]
Message-ID: <20080723235514.GA8992@zenon.in.qult.net> (raw)
Hi,
I need some advice from network stack experts, so I hope this is the right
place to ask.
I thought I'd be able to use the TAP interfaces to create some sort of a
network emulator. For a start I just "bridged" two tap interfaces, much in
the same way as the example of br_select.c from http://vtun.sf.net , assigned
both interfaces different IPv4 addresses (both with a /32 prefix), set them up
and tried to transmit a UDP packet from one address to the other through the
bridge. Both logs from my bridge program and tcpdump tell me that the packets
are flowing as expected, but somehow the destination process doesn't get the
packets (despite all correct bind, etc).
Is it simply that the stack inconditionally drops any packet with the same
source (IP and/or MAC) address as some local interface?
As ARP resolution seems not to work either (I had to put permanent entries in
the neighbor table), I suppose this is the case indeed.
Could anyone confirm that? (please CC me, I've not subscribed)
Thanks,
Ignacy
--
If you're not living on the edge, you're taking up too much space.
next reply other threads:[~2008-07-24 0:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-23 23:55 Ignacy Gawedzki [this message]
2008-07-24 2:25 ` Dan Noé
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=20080723235514.GA8992@zenon.in.qult.net \
--to=lkml@qult.net \
--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®