Staging: batman-adv: Directly prepare icmp packets in socket buffer
commitd52e90aeaf93d62cc1a7f9a8a9f3a6f68c475cf5
authorSven Eckelmann <sven.eckelmann@gmx.de>
Sat, 4 Sep 2010 23:58:26 +0000 (5 01:58 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 5 Sep 2010 07:29:45 +0000 (5 00:29 -0700)
tree6e6ea6e5dc01caad75f9ef69a1539a997f07ce5e
parente63760e59542ed872f7a5b1605a46e03b879d909
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