]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: batman-adv: Directly prepare icmp packets in socket buffer
authorSven Eckelmann <sven.eckelmann@gmx.de>
Sat, 4 Sep 2010 23:58:26 +0000 (01:58 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 5 Sep 2010 07:29:45 +0000 (00:29 -0700)
commitd8079227e1fab468c36ffa8666fd83255e5821cf
tree6e6ea6e5dc01caad75f9ef69a1539a997f07ce5e
parent21bd22fc08a0f3bf0cb540217788752df3ceab04
Staging: batman-adv: Directly prepare icmp packets in socket buffer

It is unnecessary to generate an icmp packet in an extra memory region
and than copying it to a new allocated skb.

This also resolved the problem that we do inform the user that we
couldn't send the packet because we couldn't allocate the socket buffer.

Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/icmp_socket.c