dhcp does not need promisc mode. Disable it in scapy (#46018)

This commit is contained in:
J. Nick Koston 2021-02-04 12:39:44 -10:00 committed by Paulus Schoutsen
parent 8cce60b1ac
commit 77887f123e

View File

@ -292,6 +292,8 @@ def _verify_l2socket_creation_permission():
thread so we will not be able to capture thread so we will not be able to capture
any permission or bind errors. any permission or bind errors.
""" """
# disable scapy promiscuous mode as we do not need it
conf.sniff_promisc = 0
conf.L2socket() conf.L2socket()