From: Rich Fought Date: Thu, 4 Oct 2012 21:55:36 +0000 (+0000) Subject: Conntrack Dump ICMP X-Git-Tag: libnl3_2_14~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3376e7df646bdbde1b41ef4be62746f04f11849;p=libnl Conntrack Dump ICMP Looks like a cut and paste oversight ... --- diff --git a/lib/netfilter/ct_obj.c b/lib/netfilter/ct_obj.c index d5cd18a..4686170 100644 --- a/lib/netfilter/ct_obj.c +++ b/lib/netfilter/ct_obj.c @@ -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)); }