Lines Matching refs:vid
297 key = (const unsigned char *)&dat->vid; in batadv_hash_dat()
298 for (i = 0; i < sizeof(dat->vid); i++) { in batadv_hash_dat()
322 unsigned short vid) in batadv_dat_entry_hash_find() argument
333 to_find.vid = vid; in batadv_dat_entry_hash_find()
362 u8 *mac_addr, unsigned short vid) in batadv_dat_entry_add() argument
367 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip, vid); in batadv_dat_entry_add()
376 batadv_print_vid(vid)); in batadv_dat_entry_add()
385 dat_entry->vid = vid; in batadv_dat_entry_add()
402 &dat_entry->ip, dat_entry->mac_addr, batadv_print_vid(vid)); in batadv_dat_entry_add()
626 unsigned short vid) in batadv_dat_select_candidates() argument
642 dat.vid = vid; in batadv_dat_select_candidates()
673 unsigned short vid, int packet_subtype) in batadv_dat_forward_data() argument
682 cand = batadv_dat_select_candidates(bat_priv, ip, vid); in batadv_dat_forward_data()
882 batadv_print_vid(dat_entry->vid), in batadv_dat_cache_seq_print_text()
927 nla_put_u16(msg, BATADV_ATTR_DAT_CACHE_VID, dat_entry->vid) || in batadv_dat_cache_dump_entry()
1129 unsigned short vid; in batadv_dat_get_vid() local
1131 vid = batadv_get_vid(skb, *hdr_size); in batadv_dat_get_vid()
1138 if (vid & BATADV_VLAN_HAS_TAG) in batadv_dat_get_vid()
1141 return vid; in batadv_dat_get_vid()
1161 unsigned short vid) in batadv_dat_arp_create_reply() argument
1172 if (vid & BATADV_VLAN_HAS_TAG) in batadv_dat_arp_create_reply()
1174 vid & VLAN_VID_MASK); in batadv_dat_arp_create_reply()
1200 unsigned short vid; in batadv_dat_snoop_outgoing_arp_request() local
1205 vid = batadv_dat_get_vid(skb, &hdr_size); in batadv_dat_snoop_outgoing_arp_request()
1220 batadv_dat_entry_add(bat_priv, ip_src, hw_src, vid); in batadv_dat_snoop_outgoing_arp_request()
1222 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip_dst, vid); in batadv_dat_snoop_outgoing_arp_request()
1232 if (batadv_is_my_client(bat_priv, dat_entry->mac_addr, vid)) { in batadv_dat_snoop_outgoing_arp_request()
1243 dat_entry->mac_addr, vid)) { in batadv_dat_snoop_outgoing_arp_request()
1253 hw_src, vid); in batadv_dat_snoop_outgoing_arp_request()
1268 ret = batadv_dat_forward_data(bat_priv, skb, ip_dst, vid, in batadv_dat_snoop_outgoing_arp_request()
1295 unsigned short vid; in batadv_dat_snoop_incoming_arp_request() local
1301 vid = batadv_dat_get_vid(skb, &hdr_size); in batadv_dat_snoop_incoming_arp_request()
1313 batadv_dat_entry_add(bat_priv, ip_src, hw_src, vid); in batadv_dat_snoop_incoming_arp_request()
1315 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip_dst, vid); in batadv_dat_snoop_incoming_arp_request()
1320 dat_entry->mac_addr, hw_src, vid); in batadv_dat_snoop_incoming_arp_request()
1331 NULL, vid); in batadv_dat_snoop_incoming_arp_request()
1333 err = batadv_send_skb_via_tt(bat_priv, skb_new, NULL, vid); in batadv_dat_snoop_incoming_arp_request()
1359 unsigned short vid; in batadv_dat_snoop_outgoing_arp_reply() local
1364 vid = batadv_dat_get_vid(skb, &hdr_size); in batadv_dat_snoop_outgoing_arp_reply()
1377 batadv_dat_entry_add(bat_priv, ip_src, hw_src, vid); in batadv_dat_snoop_outgoing_arp_reply()
1378 batadv_dat_entry_add(bat_priv, ip_dst, hw_dst, vid); in batadv_dat_snoop_outgoing_arp_reply()
1383 batadv_dat_forward_data(bat_priv, skb, ip_src, vid, in batadv_dat_snoop_outgoing_arp_reply()
1385 batadv_dat_forward_data(bat_priv, skb, ip_dst, vid, in batadv_dat_snoop_outgoing_arp_reply()
1407 unsigned short vid; in batadv_dat_snoop_incoming_arp_reply() local
1412 vid = batadv_dat_get_vid(skb, &hdr_size); in batadv_dat_snoop_incoming_arp_reply()
1431 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip_src, vid); in batadv_dat_snoop_incoming_arp_reply()
1442 batadv_dat_entry_add(bat_priv, ip_src, hw_src, vid); in batadv_dat_snoop_incoming_arp_reply()
1443 batadv_dat_entry_add(bat_priv, ip_dst, hw_dst, vid); in batadv_dat_snoop_incoming_arp_reply()
1454 if (!batadv_bla_check_claim(bat_priv, hw_src, vid)) { in batadv_dat_snoop_incoming_arp_reply()
1465 dropped = !batadv_is_my_client(bat_priv, hw_dst, vid); in batadv_dat_snoop_incoming_arp_reply()
1470 dropped |= batadv_is_my_client(bat_priv, hw_src, vid); in batadv_dat_snoop_incoming_arp_reply()
1689 unsigned short vid) in batadv_dat_put_dhcp() argument
1694 hw_dst, vid); in batadv_dat_put_dhcp()
1700 batadv_dat_entry_add(bat_priv, yiaddr, chaddr, vid); in batadv_dat_put_dhcp()
1701 batadv_dat_entry_add(bat_priv, ip_dst, hw_dst, vid); in batadv_dat_put_dhcp()
1703 batadv_dat_forward_data(bat_priv, skb, yiaddr, vid, in batadv_dat_put_dhcp()
1705 batadv_dat_forward_data(bat_priv, skb, ip_dst, vid, in batadv_dat_put_dhcp()
1712 &ip_dst, hw_dst, batadv_print_vid(vid)); in batadv_dat_put_dhcp()
1715 &yiaddr, chaddr, batadv_print_vid(vid)); in batadv_dat_put_dhcp()
1775 unsigned short vid) in batadv_dat_snoop_outgoing_dhcp_ack() argument
1787 ip_src, vid); in batadv_dat_snoop_outgoing_dhcp_ack()
1806 unsigned short vid; in batadv_dat_snoop_incoming_dhcp_ack() local
1824 vid = batadv_dat_get_vid(skb, &hdr_size); in batadv_dat_snoop_incoming_dhcp_ack()
1826 batadv_dat_entry_add(bat_priv, yiaddr, chaddr, vid); in batadv_dat_snoop_incoming_dhcp_ack()
1827 batadv_dat_entry_add(bat_priv, ip_src, hw_src, vid); in batadv_dat_snoop_incoming_dhcp_ack()
1831 &ip_src, hw_src, batadv_print_vid(vid)); in batadv_dat_snoop_incoming_dhcp_ack()
1834 &yiaddr, chaddr, batadv_print_vid(vid)); in batadv_dat_snoop_incoming_dhcp_ack()
1853 unsigned short vid; in batadv_dat_drop_broadcast_packet() local
1864 vid = batadv_dat_get_vid(forw_packet->skb, &hdr_size); in batadv_dat_drop_broadcast_packet()
1871 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip_dst, vid); in batadv_dat_drop_broadcast_packet()