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:
|
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:
|
||||||
|
|
Loading…
Reference in New Issue