inetpeer: Move ICMP rate limiting state into inet_peer entries.
authorDavid S. Miller <davem@davemloft.net>
Fri, 4 Feb 2011 23:55:25 +0000 (15:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Feb 2011 23:59:53 +0000 (15:59 -0800)
commit92d8682926342d2b6aa5b2ecc02221e00e1573a0
tree7f70b9cc2975716ab60ddd632b9fecf0a51b828d
parent0131ba451e20239c5dc701027c1a2edef95e1a6e
inetpeer: Move ICMP rate limiting state into inet_peer entries.

Like metrics, the ICMP rate limiting bits are cached state about
a destination.  So move it into the inet_peer entries.

If an inet_peer cannot be bound (the reason is memory allocation
failure or similar), the policy is to allow.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dst.h
include/net/icmp.h
include/net/inetpeer.h
net/ipv4/icmp.c
net/ipv4/inetpeer.c
net/ipv4/route.c
net/ipv6/icmp.c
net/ipv6/ip6_output.c
net/ipv6/ndisc.c