]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: change interface_rx to get orig node
authorAntonio Quartulli <ordex@autistici.org>
Thu, 5 Jul 2012 21:38:30 +0000 (23:38 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Thu, 23 Aug 2012 12:20:22 +0000 (14:20 +0200)
commit7d330275783d0820471d8fa5beba2f6807ee44e4
treecd95307c7eb751c87c1f4baf9569b3aa70f414b4
parent6e9d9d9e216d1b364697b0af4e2e5ddc85fea7fd
batman-adv: change interface_rx to get orig node

In order to understand  where a broadcast packet is coming from and use
this information to detect not yet announced clients, this patch modifies the
interface_rx() function by passing a new argument: the orig node
corresponding to the node that originated the received packet (if known).
This new argument if not NULL for broadcast packets only (other packets does not
have source field).

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/routing.c
net/batman-adv/soft-interface.c
net/batman-adv/soft-interface.h