pcap-file: Flush packets to operating system immediately.
authorBen Pfaff <blp@nicira.com>
Wed, 22 Jul 2015 18:22:01 +0000 (11:22 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 9 Sep 2015 17:29:06 +0000 (10:29 -0700)
commitf9ef2270063488a9892b5a3f8da680ddd8a5b7f7
tree9de1ca692fb398d3c107db8cd0c4db32f66ea2d5
parent53eb8cb830133f00c945aabd92455da238620d8c
pcap-file: Flush packets to operating system immediately.

This makes the pcap files written by netdev-dummy up-to-date even if one
kills the process with a signal.  This could be a performance hit if
the pcap file writer were to be used in some kind of performance critical
situation, but so far it's only used in netdev-dummy, which is just for
testing.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
lib/pcap-file.c