Change "pcap" to "pcapy"

In CentOS 7, there is no rpm named "pcap" rather than
"pcapy".

Change-Id: I04b78201e6a2d797a8d5655fab1bc042a9976431
This commit is contained in:
changzhi1990 2016-03-08 18:08:01 +08:00
parent 2bc7b90781
commit a981d2eff8

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
import pcap
import pcapy
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 = pcap.pcap(iface, timeout_ms=timeout * 1000)
listener = pcapy.pcapy(iface, timeout_ms=timeout * 1000)
listener.setfilter(filter)
return listener