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 GitHub
parent 60268e63d9
commit b9f9de0c1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -282,4 +282,6 @@ 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()