]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit623d4565f874c9b743f1fc0cd17902406cabef04
tree7f70b9cc2975716ab60ddd632b9fecf0a51b828d
parent5ff239e8ba5430e6ee34b744fd8499ae8abcd132
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