kernel-ark/net/ipv4
Phil Oester 2a43c4af3f [NETFILTER]: Fix recent match jiffies wrap mismatches
Around jiffies wrap time (i.e. within first 5 mins after boot), recent
match rules which contain both --seconds and --hitcount arguments
experience false matches.

This is because the last_pkts array is filled with zeros on creation, and
when comparing 'now' to 0 (+ --seconds argument), time_before_eq thinks it
has found a hit.

Below patch adds a break if the packet value is zero.  This has the
unfortunate side effect of causing mismatches if a packet was received
when jiffies really was equal to zero.  The odds of that happening are
slim compared to the problems caused by not adding the break however.
Plus, the author used this same method just below, so it is "good enough".

This fixes netfilter bugs #383 and #395.

Signed-off-by: Phil Oester <kernel@linuxace.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2005-12-01 14:29:24 -08:00
..
ipvs [NET]: Add const markers to various variables. 2005-11-29 16:21:38 -08:00
netfilter [NETFILTER]: Fix recent match jiffies wrap mismatches 2005-12-01 14:29:24 -08:00
af_inet.c
ah4.c
arp.c
datagram.c
devinet.c [IPV4]: Fix secondary IP addresses after promotion 2005-11-22 14:47:37 -08:00
esp4.c
fib_frontend.c [IPV4]: Fix secondary IP addresses after promotion 2005-11-22 14:47:37 -08:00
fib_hash.c [NET]: Add const markers to various variables. 2005-11-29 16:21:38 -08:00
fib_lookup.h
fib_rules.c
fib_semantics.c [NET]: Add const markers to various variables. 2005-11-29 16:21:38 -08:00
fib_trie.c [FIB_TRIE]: Don't show local table in /proc/net/route output 2005-11-20 21:09:00 -08:00
icmp.c [NET]: Add const markers to various variables. 2005-11-29 16:21:38 -08:00
igmp.c
inet_connection_sock.c
inet_diag.c
inet_hashtables.c
inet_timewait_sock.c
inetpeer.c
ip_forward.c
ip_fragment.c
ip_gre.c [IPV4]: make two functions static 2005-11-29 16:27:20 -08:00
ip_input.c
ip_options.c
ip_output.c [IPV4]: make two functions static 2005-11-29 16:27:20 -08:00
ip_sockglue.c
ipcomp.c
ipconfig.c
ipip.c
ipmr.c
Kconfig
Makefile
multipath_drr.c
multipath_random.c
multipath_rr.c
multipath_wrandom.c
multipath.c
netfilter.c
proc.c [NET]: Add const markers to various variables. 2005-11-29 16:21:38 -08:00
protocol.c
raw.c
route.c [NET]: Add const markers to various variables. 2005-11-29 16:21:38 -08:00
syncookies.c
sysctl_net_ipv4.c
tcp_bic.c
tcp_cong.c
tcp_diag.c
tcp_highspeed.c
tcp_htcp.c
tcp_hybla.c
tcp_input.c
tcp_ipv4.c
tcp_minisocks.c
tcp_output.c
tcp_scalable.c
tcp_timer.c
tcp_vegas.c
tcp_westwood.c
tcp.c [NET]: Add const markers to various variables. 2005-11-29 16:21:38 -08:00
udp.c
xfrm4_input.c
xfrm4_output.c
xfrm4_policy.c
xfrm4_state.c
xfrm4_tunnel.c