From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH nft 0/6] ruleset tracing Date: Sun, 24 Apr 2016 23:57:19 +0100 Message-ID: <20160424225718.GA14306@macbook.localdomain> References: <1461533440-10605-1-git-send-email-kaber@trash.net> <20160424222213.GA28797@breakpoint.cc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: pablo@netfilter.org, netfilter-devel@vger.kernel.org To: Florian Westphal Return-path: Received: from stinky.trash.net ([213.144.137.162]:52353 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752304AbcDXW53 (ORCPT ); Sun, 24 Apr 2016 18:57:29 -0400 Content-Disposition: inline In-Reply-To: <20160424222213.GA28797@breakpoint.cc> Sender: netfilter-devel-owner@vger.kernel.org List-ID: On 25.04, Florian Westphal wrote: > Patrick McHardy wrote: > > The following patches contain the latest version of the ruleset tracing > > functionality. > > I consider this patchset complete. Testing and comments welcome. > > Seems it doesn't work with inet table, I get segfault in expr_print > (EXPR_VALUE expr with expr->dtype == NULL). > > Callchain that produces this expression is: > > trace_gen_stmts -> payload_expr_expand -> payload_expr_alloc > > desc argument to payload_expr_alloc is the inet one, which > has no template for types != 0, so tmpl->dtype that gets passed > to expr_alloc is NULL. Thanks, I'll look into that. > Works fine without inet table. Only "problem" I found is that > nft displays the ether addr reversed vs. what 'ip link' shows, > i.e. if ip link says 1:2:3:4:5:6 nft shows 6:5:4:3:2:1. > > I'll do more tests tomorrow and will double check that its not > a kernel bug. That's just a missing byte order conversion, I've fixed it locally.