All of lore.kernel.org
 help / color / mirror / Atom feed
* TUN/TAP hacking
@ 2008-07-23 23:55 Ignacy Gawedzki
  2008-07-24  2:25 ` Dan Noé
  0 siblings, 1 reply; 4+ messages in thread
From: Ignacy Gawedzki @ 2008-07-23 23:55 UTC (permalink / raw)
  To: linux-kernel

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.

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

end of thread, other threads:[~2008-07-24  9:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-23 23:55 TUN/TAP hacking Ignacy Gawedzki
2008-07-24  2:25 ` Dan Noé
2008-07-24  6:50   ` Marek Kierdelewicz
2008-07-24  8:34     ` Ignacy Gawedzki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.