Set sniff snaplen to MTU

This commit is contained in:
Mathieu Geli 2017-10-21 13:58:31 +03:00
parent a60980f311
commit c370494805
1 changed files with 2 additions and 1 deletions

View File

@ -136,9 +136,10 @@ def attach_filter(s, bpf_filter, iface):
if not TCPDUMP: if not TCPDUMP:
return return
try: try:
f = os.popen("%s -i %s -ddd -s 1600 '%s'" % ( f = os.popen("%s -i %s -ddd -s %d '%s'" % (
conf.prog.tcpdump, conf.prog.tcpdump,
conf.iface if iface is None else iface, conf.iface if iface is None else iface,
MTU,
bpf_filter, bpf_filter,
)) ))
except OSError: except OSError: