Please sign in to comment.
Set timeout based on OS
On Linux, a timeout of 0 will block until the next packet is received. On BSD/Mac OS X, 0 will block until the snaplen buffer is full, so set the default timeout to 500 ms.
- Loading branch information...