mirror of https://github.com/secdev/scapy.git
Set sniff snaplen to MTU
This commit is contained in:
parent
a60980f311
commit
c370494805
|
@ -136,9 +136,10 @@ def attach_filter(s, bpf_filter, iface):
|
|||
if not TCPDUMP:
|
||||
return
|
||||
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.iface if iface is None else iface,
|
||||
MTU,
|
||||
bpf_filter,
|
||||
))
|
||||
except OSError:
|
||||
|
|
Loading…
Reference in New Issue