]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: batman-adv: fix batman icmp originating from secondary interface
authorMarek Lindner <lindner_marek@yahoo.de>
Mon, 9 Aug 2010 21:56:40 +0000 (23:56 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Aug 2010 01:15:36 +0000 (18:15 -0700)
commit5789e0dd7cb07c7e580fa28b8538967a6fa3f5cd
treece73f583ef4ca95348e62e1b93e266b6945a6234
parent1d7c86cbc480b93debe2ccfa6a378fc10565d9bd
Staging: batman-adv: fix batman icmp originating from secondary interface

If a batman icmp packet had to be routed over a secondary interface
at the first hop, the mac address of that secondary interface would
be written in the 'orig' field of the icmp packet. A node which is
more than one hop away is not aware of the mac address because
secondary interfaces are not flooded through the whole mesh and
therefore can't send a reply.
This patch always sends the mac address of the primary interface
in the 'orig' field of the icmp packet.

Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
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
drivers/staging/batman-adv/types.h