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)
commit13334d4875dbaeeb44e7905463f07e236f80311f
treece73f583ef4ca95348e62e1b93e266b6945a6234
parent9abc10238e1df7ce81c58a441f65efd5e905b9e8
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