aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/distributed-arp-table.c
diff options
context:
space:
mode:
authorAntonio Quartulli <antonio@open-mesh.com>2013-06-04 06:11:39 -0400
committerAntonio Quartulli <antonio@meshcoding.com>2013-10-19 09:11:21 -0400
commitc018ad3de61a1dc4194879a53e5559e094aa7b1a (patch)
tree4edb9c156b618dae46d38249a5c817e0d1f1e2b0 /net/batman-adv/distributed-arp-table.c
parentbc58eeef744df93e141678ef44452f0869cd563d (diff)
batman-adv: add the VLAN ID attribute to the TT entry
To make the translation table code VLAN-aware, each entry must carry the VLAN ID which it belongs to. This patch adds such attribute to the related TT structures. Signed-off-by: Antonio Quartulli <antonio@open-mesh.com> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/distributed-arp-table.c')
-rw-r--r--net/batman-adv/distributed-arp-table.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/net/batman-adv/distributed-arp-table.c b/net/batman-adv/distributed-arp-table.c
index 99da41290f82..1b590f01f824 100644
--- a/net/batman-adv/distributed-arp-table.c
+++ b/net/batman-adv/distributed-arp-table.c
@@ -905,7 +905,8 @@ bool batadv_dat_snoop_outgoing_arp_request(struct batadv_priv *bat_priv,
905 * additional DAT answer may trigger kernel warnings about 905 * additional DAT answer may trigger kernel warnings about
906 * a packet coming from the wrong port. 906 * a packet coming from the wrong port.
907 */ 907 */
908 if (batadv_is_my_client(bat_priv, dat_entry->mac_addr)) { 908 if (batadv_is_my_client(bat_priv, dat_entry->mac_addr,
909 BATADV_NO_FLAGS)) {
909 ret = true; 910 ret = true;
910 goto out; 911 goto out;
911 } 912 }
@@ -990,9 +991,11 @@ bool batadv_dat_snoop_incoming_arp_request(struct batadv_priv *bat_priv,
990 */ 991 */
991 if (hdr_size == sizeof(struct batadv_unicast_4addr_packet)) 992 if (hdr_size == sizeof(struct batadv_unicast_4addr_packet))
992 err = batadv_send_skb_unicast_4addr(bat_priv, skb_new, 993 err = batadv_send_skb_unicast_4addr(bat_priv, skb_new,
993 BATADV_P_DAT_CACHE_REPLY); 994 BATADV_P_DAT_CACHE_REPLY,
995 BATADV_NO_FLAGS);
994 else 996 else
995 err = batadv_send_skb_unicast(bat_priv, skb_new); 997 err = batadv_send_skb_unicast(bat_priv, skb_new,
998 BATADV_NO_FLAGS);
996 999
997 if (!err) { 1000 if (!err) {
998 batadv_inc_counter(bat_priv, BATADV_CNT_DAT_CACHED_REPLY_TX); 1001 batadv_inc_counter(bat_priv, BATADV_CNT_DAT_CACHED_REPLY_TX);
@@ -1080,7 +1083,7 @@ bool batadv_dat_snoop_incoming_arp_reply(struct batadv_priv *bat_priv,
1080 /* if this REPLY is directed to a client of mine, let's deliver the 1083 /* if this REPLY is directed to a client of mine, let's deliver the
1081 * packet to the interface 1084 * packet to the interface
1082 */ 1085 */
1083 ret = !batadv_is_my_client(bat_priv, hw_dst); 1086 ret = !batadv_is_my_client(bat_priv, hw_dst, BATADV_NO_FLAGS);
1084out: 1087out:
1085 if (ret) 1088 if (ret)
1086 kfree_skb(skb); 1089 kfree_skb(skb);