diff options
author | Ignacy Gawędzki <ignacy.gawedzki@green-communications.fr> | 2024-02-07 15:50:13 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2024-02-07 16:54:28 +0100 |
commit | e77aa7413d7feb315f9d388f595553af79a56d9d (patch) | |
tree | eda51339ec03d435ac1277735f26cc1ff81d5993 /src | |
parent | 58a5b32b2d5c7b6b755121930b6752e6c714f24f (diff) |
conntrack: don't print [USERSPACE] information in case of XML output
In case XML output is requested, refrain from appending "[USERSPACE]"
and details to the output.
Signed-off-by: Ignacy Gawędzki <ignacy.gawedzki@green-communications.fr>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/conntrack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conntrack.c b/src/conntrack.c index c1551ca..0d71352 100644 --- a/src/conntrack.c +++ b/src/conntrack.c @@ -1944,7 +1944,7 @@ static int event_cb(const struct nlmsghdr *nlh, void *data) nfct_snprintf_labels(buf, sizeof(buf), ct, type, op_type, op_flags, labelmap); done: - if (nlh->nlmsg_pid) { + if (nlh->nlmsg_pid && !(output_mask & _O_XML)) { char *prog = get_progname(nlh->nlmsg_pid); if (prog) |