Closed miny1233 closed 2 months ago
switch内的break只会跳出switch而不会跳出外层的while。目前的修改是,读nfqueue_next,如果是IO_NOTREADY =0,就不会执行内层循环,而去执行nfqueue_receive
switch
break
while
nfqueue_next
IO_NOTREADY
0
nfqueue_receive
内层循环条件好像还有问题应该是
while ((pkg_status = nfqueue_next(buf, packet)) && !should_exit)
我不懂如何在PR里再交commit
这一部分我在重构了,现在这样设计不太好
PR反映的是对应的分支,你push到miny1233:patch-2就能在PR中显示出来
switch
内的break
只会跳出switch
而不会跳出外层的while
。目前的修改是,读nfqueue_next
,如果是IO_NOTREADY
=0
,就不会执行内层循环,而去执行nfqueue_receive