Skip to content

Commit

Permalink
Adding option for setting the libpcap update timeout (simsong#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelen5 authored and simsong committed Sep 16, 2018
1 parent 99f5a90 commit f1d7925
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tcpflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ typedef struct {

default_t defaults[] = {
{"tdelta","0","Time delta in seconds"},
{"packet-buffer-timeout", "10", "Time in milliseconds between each callback from libpcap"},
{0,0,0}
};

Expand Down Expand Up @@ -849,6 +850,7 @@ int main(int argc, char *argv[])
demux.fs = &fs;

si.get_config("tdelta",&datalink_tdelta,"Time offset for packets");
si.get_config("packet-buffer-timeout", &packet_buffer_timeout, "Time in milliseconds between each callback from libpcap");

/* Record the configuration */
if(xreport){
Expand Down

0 comments on commit f1d7925

Please sign in to comment.