batman-adv: refine API calls for unicast transmissions of SKBs
authorLinus Lüssing <linus.luessing@web.de>
Wed, 3 Jul 2013 08:40:00 +0000 (10:40 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Sat, 19 Oct 2013 15:31:54 +0000 (17:31 +0200)
commite300d314664ef6746e697d5b581f85114ab1f843
tree8496c328c2590f0ca0cf91a1325794fe2c0d44d4
parentb8cbd81d0944cd2dc097b2b4ae8adaf639c5b4df
batman-adv: refine API calls for unicast transmissions of SKBs

With this patch the functions batadv_send_skb_unicast() and
batadv_send_skb_unicast_4addr() are further refined into
batadv_send_skb_via_tt(), batadv_send_skb_via_tt_4addr() and
batadv_send_skb_via_gw(). This way we avoid any "guessing" about where to send
a packet in the unicast forwarding methods and let the callers decide.

This is going to be useful for the upcoming multicast related patches in
particular.

Further, the return values were polished a little to use the more
appropriate NET_XMIT_* defines.

Signed-off-by: Linus Lüssing <linus.luessing@web.de>
Acked-by: Antonio Quartulli <antonio@meshcoding.com>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/distributed-arp-table.c
net/batman-adv/send.c
net/batman-adv/send.h
net/batman-adv/soft-interface.c