Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix packetcapture packets unrecognized issue on osx.
By default, gopacket will write snap length=0 in the pcapng file header, means unlimited snaplen. tcpdump on osx(libpcap version 1.10.1) cannot recognize this and will report error. This patch will set a default value(524288) for it. Signed-off-by: Hang Yan <yhang@vmware.com>
- Loading branch information