]> git.ipfire.org Git - thirdparty/libnftnl.git/commitdiff
expr: objref: do not print id
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 11 Apr 2018 07:52:23 +0000 (09:52 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 11 Apr 2018 07:52:23 +0000 (09:52 +0200)
The lookup expression does not do this either, so let's be consistent
and remove it.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/expr/objref.c

index 4cfa3cbfbd2b570cb02030b2a6350adeebc40a5a..64ee8638027c97b9825e8dc5378554973c159bb6 100644 (file)
@@ -225,8 +225,8 @@ static int nftnl_expr_objref_snprintf_default(char *buf, size_t len,
        struct nftnl_expr_objref *objref = nftnl_expr_data(e);
 
        if (e->flags & (1 << NFTNL_EXPR_OBJREF_SET_SREG))
-               return snprintf(buf, len, "sreg %u set %s id %u ",
-                               objref->set.sreg, objref->set.name, objref->set.id);
+               return snprintf(buf, len, "sreg %u set %s ",
+                               objref->set.sreg, objref->set.name);
        else
                return snprintf(buf, len, "type %u name %s ",
                                objref->imm.type, objref->imm.name);