]> granicus.if.org Git - libnl/commitdiff
Conntrack Dump ICMP
authorRich Fought <Rich.Fought@watchguard.com>
Thu, 4 Oct 2012 21:55:36 +0000 (21:55 +0000)
committerThomas Graf <tgraf@redhat.com>
Thu, 18 Oct 2012 15:43:45 +0000 (17:43 +0200)
Looks like a cut and paste oversight ...

lib/netfilter/ct_obj.c

index d5cd18a26bf248e6dc2f2c9dd0f20cd897d0c6ee..4686170fe28da5c2e6fd93702b1a64eb28719b7a 100644 (file)
@@ -121,10 +121,10 @@ static void dump_icmp(struct nl_dump_params *p, struct nfnl_ct *ct, int reply)
        if (nfnl_ct_test_icmp_type(ct, reply))
                nl_dump(p, "icmp type %d ", nfnl_ct_get_icmp_type(ct, reply));
 
-       if (nfnl_ct_test_icmp_type(ct, reply))
+       if (nfnl_ct_test_icmp_code(ct, reply))
                nl_dump(p, "code %d ", nfnl_ct_get_icmp_code(ct, reply));
 
-       if (nfnl_ct_test_icmp_type(ct, reply))
+       if (nfnl_ct_test_icmp_id(ct, reply))
                nl_dump(p, "id %d ", nfnl_ct_get_icmp_id(ct, reply));
 }