diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-04 18:55:25 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-04 18:59:53 -0500 |
commit | 92d8682926342d2b6aa5b2ecc02221e00e1573a0 (patch) | |
tree | 7f70b9cc2975716ab60ddd632b9fecf0a51b828d /include/net/dst.h | |
parent | 0131ba451e20239c5dc701027c1a2edef95e1a6e (diff) |
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>
Diffstat (limited to 'include/net/dst.h')
-rw-r--r-- | include/net/dst.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/net/dst.h b/include/net/dst.h index 484f80b69ada..e550195d4f86 100644 --- a/include/net/dst.h +++ b/include/net/dst.h | |||
@@ -78,8 +78,6 @@ struct dst_entry { | |||
78 | atomic_t __refcnt; /* client references */ | 78 | atomic_t __refcnt; /* client references */ |
79 | int __use; | 79 | int __use; |
80 | unsigned long lastuse; | 80 | unsigned long lastuse; |
81 | unsigned long rate_last; /* rate limiting for ICMP */ | ||
82 | unsigned int rate_tokens; | ||
83 | int flags; | 81 | int flags; |
84 | #define DST_HOST 0x0001 | 82 | #define DST_HOST 0x0001 |
85 | #define DST_NOXFRM 0x0002 | 83 | #define DST_NOXFRM 0x0002 |