summaryrefslogtreecommitdiffstats
path: root/src/conntrack.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2022-05-16 17:39:01 +0200
committerFlorian Westphal <fw@strlen.de>2022-05-16 21:45:19 +0200
commit46b5995f342b4c73b82ec0a26a297c16d67aeb53 (patch)
tree125cebf95524ce91900c3519d5a44b4a9e977d77 /src/conntrack.c
parent5ec684be08547619c68cfd50e58efa40f6e47f5d (diff)
conntrack: remove -o userspace
This flag makes life a lot harder because lack of the flag hides very useful information. Remove it and always tag events triggered by userspace flush. Option is still parsed for backwards compatibility sake. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/conntrack.c')
-rw-r--r--src/conntrack.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/conntrack.c b/src/conntrack.c
index a773543..bd02b13 100644
--- a/src/conntrack.c
+++ b/src/conntrack.c
@@ -1128,8 +1128,7 @@ enum {
_O_ID = (1 << 3),
_O_KTMS = (1 << 4),
_O_CL = (1 << 5),
- _O_US = (1 << 6),
- _O_SAVE = (1 << 7),
+ _O_SAVE = (1 << 6),
};
enum {
@@ -1149,7 +1148,7 @@ static struct parse_parameter {
{ {"ALL", "NEW", "UPDATES", "DESTROY"}, 4,
{ CT_EVENT_F_ALL, CT_EVENT_F_NEW, CT_EVENT_F_UPD, CT_EVENT_F_DEL } },
{ {"xml", "extended", "timestamp", "id", "ktimestamp", "labels", "userspace", "save"}, 8,
- { _O_XML, _O_EXT, _O_TMS, _O_ID, _O_KTMS, _O_CL, _O_US, _O_SAVE },
+ { _O_XML, _O_EXT, _O_TMS, _O_ID, _O_KTMS, _O_CL, 0, _O_SAVE },
},
};
@@ -1978,7 +1977,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 ((output_mask & _O_US) && nlh->nlmsg_pid) {
+ if (nlh->nlmsg_pid) {
char *prog = get_progname(nlh->nlmsg_pid);
if (prog)