kernels/linux-2.4.0/net/ipv4/netfilter/ip_conntrack_proto_icmp.c
/* Returns verdict for packet, or -1 for invalid. */
Returns verdict for packet, or -1 for invalid.
Returns verdict for packet or - 1 for invalid .
static int icmp_packet(struct ip_conntrack *ct,
		       struct iphdr *iph, size_t len,
		       enum ip_conntrack_info ctinfo)
{
	if (CTINFO2DIR(ctinfo) == IP_CT_DIR_REPLY) {
		if (del_timer(&ct->timeout))
			ct->timeout.function((unsigned long)ct);
	} else
		ip_ct_refresh(ct, ICMP_TIMEOUT);
	return NF_ACCEPT;
}
static int icmp_packet ( struct ip_conntrack * ct , struct iphdr * iph , size_t len , enum ip_conntrack_info ctinfo ) { if ( CTINFO2DIR ( ctinfo ) == IP_CT_DIR_REPLY ) { if ( del_timer ( & ct -> timeout ) ) ct -> timeout . function ( ( unsigned long ) ct ) ; } else ip_ct_refresh ( ct , ICMP_TIMEOUT ) ; return NF_ACCEPT ; }
Returns verdict for packet, or -1 for invalid.
Returns verdict for packet or - 1 for invalid .
/* FIXME: Should keep count of orig - reply packets: if == 0,
           destroy --RR */ /* Delete connection immediately on reply: won't actually
           vanish as we still have skb */