Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> wrote: > If we have some generic way to parse immediates, this would look like: > > if (nfntl_attr_is_set(nle, NFTNL_EXPR_CT_SREG)) { > ... > } else if (nftnl_attr_is_set(nle, NFTNL_EXPR_CT_IMM)) { > ... > } > > Would this look nicer this way to you? I'll give it a try. We can't escape a bit more work anyway as the _IMM type will depend on the key. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html