]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7f70b232181787c335a1c999e8d60b144c53a8c9
tree8496c328c2590f0ca0cf91a1325794fe2c0d44d4
parent1e425371fecf732d1792e6afc693a08fecdbafd3
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