]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipv4: fix error handling in icmp_protocol.
authorLi Wei <lw@cn.fujitsu.com>
Thu, 21 Feb 2013 22:18:44 +0000 (22:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Feb 2013 20:10:18 +0000 (15:10 -0500)
commit5b0520425e5ea81ba95ec486dd6bbb59a09fff0e
treee506570823deb8fd65e52e34fe67cf327af2266e
parent08dcdbf6a7b9d14c2302c5bd0c5390ddf122f664
ipv4: fix error handling in icmp_protocol.

Now we handle icmp errors in each transport protocol's err_handler,
for icmp protocols, that is ping_err. Since this handler only care
of those icmp errors triggered by echo request, errors triggered
by echo reply(which sent by kernel) are sliently ignored.

So wrap ping_err() with icmp_err() to deal with those icmp errors.

Signed-off-by: Li Wei <lw@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/icmp.h
net/ipv4/af_inet.c
net/ipv4/icmp.c