运行时错误: nfq_bind_p期间的错误

2024-09-28 20:38:46 发布

您现在位置:Python中文网/ 问答频道 /正文

当我尝试使用pythonnfqueue时,出现以下错误。我的代码是

import logging

l=logging.getLogger("scapy.runtime")
l.setLevel(49)

import os,sys,nfqueue,socket
from scapy.all import *

q = nfqueue.queue()
    q.open()
    q.bind(socket.AF_INET)

我得到一个RuntimeError:error during nfq_bind_pf during the last line。我使用的是python2.7和ubuntu12.04。还有

^{pr2}$

退货

0 NONE

1 NONE

2 nf_queue

3 NONE

Tags: 代码importnonequeuebindlogging错误socket