From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Westphal Subject: [PATCH 2/2] conntrack: snprintf: add connlabel format specifier Date: Tue, 18 Jun 2013 22:54:22 +0200 Message-ID: <1371588862-3407-2-git-send-email-fw@strlen.de> References: <1371588862-3407-1-git-send-email-fw@strlen.de> Cc: Florian Westphal To: netfilter-devel@vger.kernel.org Return-path: Received: from Chamillionaire.breakpoint.cc ([80.244.247.6]:57873 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932235Ab3FRU4C (ORCPT ); Tue, 18 Jun 2013 16:56:02 -0400 In-Reply-To: <1371588862-3407-1-git-send-email-fw@strlen.de> Sender: netfilter-devel-owner@vger.kernel.org List-ID: by default, nfct_snprintf will not resolve connlabel names, as they're system specific. This adds a fmt attribute to resolve names accordingly. output looks like this: ... mark=0 use=1 labels=eth0-in (0),eth1-in (1) or Major stupidity: As names can be anything, we need to be careful, especially when creating XML output. Only alphanumerical label names are printed at this time. Else you get labels=(0), .. or