[PATCH v4 4/4] tests: add check for decoding of netfilter subsystem

Dmitry V. Levin ldv at altlinux.org
Sun Mar 11 01:44:02 UTC 2018


On Sun, Mar 11, 2018 at 03:48:03AM +0300, Dmitry V. Levin wrote:
[...]
> For netlink_netfilter.c purposes I'd recommend to use something like
> (subsys_id > nl_netfilter_subsys_ids[ARRAY_SIZE(nl_netfilter_subsys_ids) - 1].val)
> instead of subsys_id >= NFNL_SUBSYS_COUNT).

There is also a terminating XLAT_END in the array, so it has to be
(subsys_id > nl_netfilter_subsys_ids[ARRAY_SIZE(nl_netfilter_subsys_ids) - 2].val)
instead.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20180311/e08b6ee5/attachment.bin>


More information about the Strace-devel mailing list