The problem is the tun/tap device need to use the write/read functions to send pkt into the netstack<div>but I use the send/recv.</div><div><br></div><div>problem solved.</div><div><br><div class="gmail_quote">2010/12/9 贺鹏 <span dir="ltr"><<a href="mailto:xnhp0320@gmail.com">xnhp0320@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br clear="all">Hi all:<div>       I use macvlan as the network configuration for my LXC VMs.</div><div><br></div><div>

       Here is my configuration for LXC VMs:</div><div><br><div>       lxc.network.type = macvlan</div>
<div>       lxc.network.macvlan.mode = vepa</div><div>       lxc.network.flags = up</div><div>       lxc.network.link = tap0</div><div><br></div><div>       and I config 4 virtual eth in this VMs, each has the tap0 as its network link.</div>


<div><br></div><div>       I use a tap device as the link for the macvlan, and I run a process to read and write this tap device.</div><div>       when I write a ARP quest to the tap device, the macvlan didn't broadcast the packet to  the network interface in the VM.</div>


<div><br></div><div>       I put some debug code in the macvlan.c and runs this test. and I find the skb did not even enter the macvlan_handle_frame function.</div><div>       </div><div>       Could someone tell me is there any thing wrong in my config?</div>


<div><br></div><div>       thx~~</div><div><br></div><div><br></div><div><br>-- <br><div><br></div>hepeng<br>ICT<br>
</div></div>
</blockquote></div><br><br clear="all"><br>-- <br>hepeng<br>ICT<br>
</div>