{"action":"closed","issue":{"url":"https://api.github.com/repos/pfq/PFQ/issues/14","labels_url":"https://api.github.com/repos/pfq/PFQ/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/pfq/PFQ/issues/14/comments","events_url":"https://api.github.com/repos/pfq/PFQ/issues/14/events","html_url":"https://github.com/pfq/PFQ/issues/14","id":104878795,"number":14,"title":"pfq_read_linux hangs on suricata and bro","user":{"login":"Mr-Click","id":8599631,"avatar_url":"https://avatars.githubusercontent.com/u/8599631?v=3","gravatar_id":"","url":"https://api.github.com/users/Mr-Click","html_url":"https://github.com/Mr-Click","followers_url":"https://api.github.com/users/Mr-Click/followers","following_url":"https://api.github.com/users/Mr-Click/following{/other_user}","gists_url":"https://api.github.com/users/Mr-Click/gists{/gist_id}","starred_url":"https://api.github.com/users/Mr-Click/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mr-Click/subscriptions","organizations_url":"https://api.github.com/users/Mr-Click/orgs","repos_url":"https://api.github.com/users/Mr-Click/repos","events_url":"https://api.github.com/users/Mr-Click/events{/privacy}","received_events_url":"https://api.github.com/users/Mr-Click/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-04T12:12:34Z","updated_at":"2015-09-07T10:40:44Z","closed_at":"2015-09-07T10:40:44Z","body":"I tested PFQ (both master and experimantel branch) with modified pcap libraries (1.3.0 and 1.7.4) on suricata (with autofp mode) and bro. In both test cases (using iface pfq:ethX) pfq_read_linux hangs in the following loop:\r\n\r\nfor(; (max_packets <= 0 || n > 0) && (it != it_end); it = pfq_net_queue_next(&nq, it))\r\n{\r\n   ...\r\n         while (!pfq_pkt_ready(&nq, it))\r\n\t pfq_yield();\r\n   ...\r\nIf suricata is executed in worker mode the library seems to work properly.\r\n\r\nregards,\r\nValerio"}}