[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [MirageOS-devel] TunTap vs PACKET sockets
On 11/19/2015 13:46, Hannes Mehnert wrote: > On 11/19/2015 13:27, Richard Mortier wrote: >> What's the rationale for / trade-off of using tun/tap vs using packet >> sockets? > > I assume you're talking about socket(PF_PACKET, SOCK_RAW, _)? This > seems to be only supported on Linux. > > On BSD systems, pcap is responsible for capturing an interface (see > pcap_open_live / pcap_inject). And once you use them, you'll discover that your host network stack doesn't receive the packet's you inject via pcap_inject, and your mirage kernel doesn't receive packets from your host (at least as far as I remember when I did this several years ago). hannes Attachment:
signature.asc _______________________________________________ MirageOS-devel mailing list MirageOS-devel@xxxxxxxxxxxxxxxxxxxx http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |