Commit
869c0833fc3c711d0c439666a96915e78dbdfbc4
by Pau Espin Pedrol
server: Delay reopen of pcap only until necessary
If we are asked to reopen a pcap file (eg due to external SIGUSR1) while in the middle of receiving a data packet (we already received the header of the segment so data will arrive soon), code exists to delay reopening so that we can include that last packet which arrived because the time where we were asked to reopen. However, the new pcap file was reopened only after next packet arrived. Instead, we want to reopen it as soon as that last packet is received, so that a new pcap file is created. This allows better tracking eg. empty traffic during time in between last data packet before reopen and the next data packet arriving.
While at it, rename the variable to make it more informative, and convert it to a bool.
Commit
8d2e574c981cd315d2022f6e13496a52ba9c2e99
by Pau Espin Pedrol
server: Store read buf max len as conn field
This will be useful later on when adding pcapng support, since checks will become more complex due to different data types to be checked, based on information from pcap vs pcapng gathered from magic field inside the received link_hdr buffer.