fixing pcap parsing and device detaching
merging
fixes on netif
turn off an interface on which we cannnot listen any more
Merge pull request #13 from crotsos/master

minor bug fixes from the android build and pcap based packet capturing
[xen] Add a mutex around netif write,writev

We need this to avoid one packet write calling notify() while a parallel
writev has only written some of the fragments onto the ring.

This fixes the phenomenon where a packet fragments (eg containing HTTP
headers) end up being transmitted as whole frames. It also removes the
curious duplicates experienced during a ping flood.
Merge pull request #20 from djs55/fix-netfront-fragments

[xen] Add a mutex around netif write,writev
[xen] in netif, do not block until a response is received, but return right after the request has been successfully pushed and the other side notified
Sped up checksum calculation.