diff options
author | Guy Harris <gharris@sonic.net> | 2020-11-22 04:02:26 -0800 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2020-11-22 17:51:37 +0000 |
commit | 5fcedcf8f45f22d9e0cdf433cd1a6351ff5aaddf (patch) | |
tree | 5d5de5b83807c6d232d78d80fdaef49db3f5862a /services | |
parent | 4212bea8f30c53c578e69072d9cfdeeb563d1d6b (diff) |
Various code and comment cleanups.
Doing a blocking read from a pipe on Windows is done in several places,
using similar sequences of code; put that sequence into a subroutine,
with the parts that differ in arguments to the routine.
Add some comments, and update some comments, to better clarify what the
code is doing in various places.
In the switch statement that tests the first 4 bytes read from a pipe or
socket, call pcap_pipe_open_live() at the end of all of the cases where
the file appears to be a pcap file; that makes the handling of pcap
files look a bit more like the handling of pcapng files.
Diffstat (limited to 'services')
0 files changed, 0 insertions, 0 deletions