batman-adv: Move call to batadv_nc_skb_forward() from routing.c to send.c
authorMartin Hundebøll <martin@hundeboll.net>
Sat, 20 Apr 2013 11:54:39 +0000 (13:54 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 29 May 2013 00:44:55 +0000 (02:44 +0200)
commite91ecfc64ad691176be119e627e36cec8564f44b
treed709428d92da6a522edca57fbec960d7c582c93f
parent5f80df6705fcd8153f93bd0e82109dbeb7ff535b
batman-adv: Move call to batadv_nc_skb_forward() from routing.c to send.c

The call to batadv_nc_skb_forward() fits better in
batadv_send_skb_to_orig(), as this is where the actual next hop is
looked up.

To let the caller of batadv_send_skb_to_orig() know wether the skb is
transmitted, buffered or failed, the return value is changed from
boolean to int.

Signed-off-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/network-coding.c
net/batman-adv/network-coding.h
net/batman-adv/routing.c
net/batman-adv/send.c
net/batman-adv/send.h
net/batman-adv/translation-table.c
net/batman-adv/unicast.c
net/batman-adv/vis.c