summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/expr/exthdr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/expr/exthdr.c b/src/expr/exthdr.c
index 9ed4ae1..d4f1665 100644
--- a/src/expr/exthdr.c
+++ b/src/expr/exthdr.c
@@ -301,9 +301,11 @@ static int nftnl_expr_exthdr_snprintf_default(char *buf, size_t len,
const struct nftnl_expr *e)
{
struct nftnl_expr_exthdr *exthdr = nftnl_expr_data(e);
- return snprintf(buf, len, "load%s %ub @ %u + %u => reg %u ",
+ return snprintf(buf, len, "load%s %ub @ %u + %u%s => reg %u ",
op2str(exthdr->op), exthdr->len, exthdr->type,
- exthdr->offset, exthdr->dreg);
+ exthdr->offset,
+ exthdr->flags & NFT_EXTHDR_F_PRESENT ? " present" : "",
+ exthdr->dreg);
}
static int