[Bug 1059] New: Using wildcard interface names in an anonymous set fails on big endian

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Mon Mar 21 13:56:33 CET 2016


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

            Bug ID: 1059
           Summary: Using wildcard interface names in an anonymous set
                    fails on big endian
           Product: nftables
           Version: unspecified
          Hardware: ppc
                OS: other
            Status: NEW
          Severity: major
          Priority: P5
         Component: nft
          Assignee: pablo at netfilter.org
          Reporter: magnus.oberg at westermo.se

I'm running on a PPC platform, big endian.

I'm getting this error at run-time:

/var/run/nftables.rules:10:6-12: Error: Byteorder mismatch: expected big
endian, got host endian
     iifname { "vlan1", "vi-vlan1_*" } ip daddr 33.44.5.6/32 ip protocol 6 tcp
dport 222 accept
     ^^^^^^^

It appears when using a wildcard interface string in an inline set.

The error is raised in byteorder_conversion() called from
expr_evaluate_relational() in evaluate.c.
Inside the OP_LOOKUP case, row 1232.

The string should in host byte order, but that is not expected for the lookup
(due to the prefix_expr_alloc()?)

-- 
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/20160321/ff4b1368/attachment.html>


More information about the netfilter-buglog mailing list