[Bug 983] New: mnl_socket_recvfrom hangs in example code

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Sun Oct 26 12:43:23 CET 2014


https://bugzilla.netfilter.org/show_bug.cgi?id=983

            Bug ID: 983
           Summary: mnl_socket_recvfrom hangs in example code
           Product: nftables
           Version: unspecified
          Hardware: x86_64
                OS: Fedora
            Status: NEW
          Severity: normal
          Priority: P5
         Component: nft
          Assignee: pablo at netfilter.org
          Reporter: porjo38 at yahoo.com.au

Running examples/nft-rule-parse-add.c with the following JSON:

{"rule":{"family":"ip","table":"filter","chain":"input","expr":[{"type":"payload","dreg":1,"offset":9,"len":1,"base":"network"},{"type":"cmp","sreg":1,"op":"eq","data_reg":{"type":"value","len":1,"data0":"0x00000006"}},{"type":"payload","dreg":1,"offset":1,"len":2,"base":"transport"},{"type":"cmp","sreg":1,"op":"eq","data_reg":{"type":"value","len":2,"data0":"0x00001600"}}]}}

The program outputs the JSON to stdout then hangs. If I hit ctrl+c the program
ends. There is no error message.

 I've inserted printf statements into the program and can see that the hang
happens on the first call to mnl_socket_recvfrom().

I've tested using libmnl and libnftnl from git repo.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20141026/80566f7d/attachment.html>


More information about the netfilter-buglog mailing list