summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2019-08-09 12:56:31 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2019-08-09 13:55:09 +0200
commit4f0dae9239bda9a0844e4103bfa082ca0a5711b1 (patch)
treefdc6a69edb79e7bd0236f3017bba8dd3344e207e /src
parent33ba110cc1a12dfe082384d96843cc5fe564cf64 (diff)
conntrack: support for IPS_OFFLOADHEADmaster
Print [OFFLOAD] tag when listing entries via snprintf() interface. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r--src/conntrack/snprintf_default.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/conntrack/snprintf_default.c b/src/conntrack/snprintf_default.c
index 06466b1..765ce72 100644
--- a/src/conntrack/snprintf_default.c
+++ b/src/conntrack/snprintf_default.c
@@ -183,8 +183,10 @@ static int __snprintf_status_assured(char *buf,
const struct nf_conntrack *ct)
{
int size = 0;
-
- if (ct->status & IPS_ASSURED)
+
+ if (ct->status & IPS_OFFLOAD)
+ size = snprintf(buf, len, "[OFFLOAD] ");
+ else if (ct->status & IPS_ASSURED)
size = snprintf(buf, len, "[ASSURED] ");
return size;