Revert "Change "pcap" to "pcapy""
This reverts commit a981d2eff81eec01d3663c5530e79852619e9d7e. Change-Id: I15249d771362a103e4bfdfd1b325af4c13fab192
This commit is contained in:
parent
62a9eaf14a
commit
67a9b7749c
@ -13,7 +13,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import pcapy
|
||||
import pcap
|
||||
from steth.agent.common import log
|
||||
from steth.agent.common import utils
|
||||
from steth.agent.common import constants
|
||||
@ -24,7 +24,7 @@ LOG = log.get_logger()
|
||||
class PcapDriver(object):
|
||||
|
||||
def setup_listener(self, iface, filter, timeout=2):
|
||||
listener = pcapy.pcapy(iface, timeout_ms=timeout * 1000)
|
||||
listener = pcap.pcap(iface, timeout_ms=timeout * 1000)
|
||||
listener.setfilter(filter)
|
||||
return listener
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user