Only write the frame captured bytes in the pcap.
commit7bdecfcb863c124f7ce9519a26dfcfaea102117d
authorEmmanuel Roullit <emmanuel.roullit@gmail.com>
Wed, 4 Jul 2012 16:17:16 +0000 (4 18:17 +0200)
committerEmmanuel Roullit <emmanuel.roullit@gmail.com>
Wed, 4 Jul 2012 16:17:16 +0000 (4 18:17 +0200)
tree6c4d561f921557229c5037188c3d79495df52b02
parentb7cd07ae968e429dd2b538efcfce5b98d75bf4c2
Only write the frame captured bytes in the pcap.

The total length of the frame can be larger than what the kernel managed
to capture. So we can only write to the file up to the capture length.
libdabba/pcap.c