From: Duan Jiong <redacted>
Date: Sun, 12 Jan 2014 17:52:20 +0800
Because after the icmp_send() is called, the icmpv4_xrlim_allow()
will be called to limit the icmp message too.
Signed-off-by: Duan Jiong <redacted>
icmpv4_xrlim_allow() is different from what this code is doing.
There are seperate controls for ip_error() reporting, namely:
- if (peer->rate_tokens > ip_rt_error_burst)
...
- if (peer->rate_tokens >= ip_rt_error_cost)
And this is the only place where that is taken into account.
The icmpv4_xrlim_allow() is a top level limiting on all ICMPs,
this function is limiting specific kinds.
I am not applying this patch, sorry.