Lines Matching defs:vid
290 __be16 vid;
300 vid = htons(dat->vid);
301 key = (__force const unsigned char *)&vid;
302 for (i = 0; i < sizeof(dat->vid); i++) {
320 * @vid: VLAN identifier
326 unsigned short vid)
337 to_find.vid = vid;
363 * @vid: VLAN identifier
366 u8 *mac_addr, unsigned short vid)
371 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip, vid);
378 "Entry updated: %pI4 %pM (vid: %d)\n",
380 batadv_print_vid(vid));
389 dat_entry->vid = vid;
405 batadv_dbg(BATADV_DBG_DAT, bat_priv, "New entry added: %pI4 %pM (vid: %d)\n",
406 &dat_entry->ip, dat_entry->mac_addr, batadv_print_vid(vid));
618 * @vid: VLAN identifier
628 unsigned short vid)
644 dat.vid = vid;
664 * @vid: VLAN identifier
675 unsigned short vid, int packet_subtype)
684 cand = batadv_dat_select_candidates(bat_priv, ip, vid);
875 nla_put_u16(msg, BATADV_ATTR_DAT_CACHE_VID, dat_entry->vid) ||
1066 unsigned short vid;
1068 vid = batadv_get_vid(skb, *hdr_size);
1075 if (vid & BATADV_VLAN_HAS_TAG)
1078 return vid;
1088 * @vid: VLAN identifier (optional, set to zero otherwise)
1098 unsigned short vid)
1109 if (vid & BATADV_VLAN_HAS_TAG)
1111 vid & VLAN_VID_MASK);
1137 unsigned short vid;
1142 vid = batadv_dat_get_vid(skb, &hdr_size);
1157 batadv_dat_entry_add(bat_priv, ip_src, hw_src, vid);
1159 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip_dst, vid);
1169 if (batadv_is_my_client(bat_priv, dat_entry->mac_addr, vid)) {
1180 dat_entry->mac_addr, vid)) {
1190 hw_src, vid);
1205 ret = batadv_dat_forward_data(bat_priv, skb, ip_dst, vid,
1231 unsigned short vid;
1237 vid = batadv_dat_get_vid(skb, &hdr_size);
1249 batadv_dat_entry_add(bat_priv, ip_src, hw_src, vid);
1251 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip_dst, vid);
1256 dat_entry->mac_addr, hw_src, vid);
1267 NULL, vid);
1269 err = batadv_send_skb_via_tt(bat_priv, skb_new, NULL, vid);
1294 unsigned short vid;
1299 vid = batadv_dat_get_vid(skb, &hdr_size);
1312 batadv_dat_entry_add(bat_priv, ip_src, hw_src, vid);
1313 batadv_dat_entry_add(bat_priv, ip_dst, hw_dst, vid);
1318 batadv_dat_forward_data(bat_priv, skb, ip_src, vid,
1320 batadv_dat_forward_data(bat_priv, skb, ip_dst, vid,
1342 unsigned short vid;
1347 vid = batadv_dat_get_vid(skb, &hdr_size);
1366 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip_src, vid);
1377 batadv_dat_entry_add(bat_priv, ip_src, hw_src, vid);
1378 batadv_dat_entry_add(bat_priv, ip_dst, hw_dst, vid);
1389 if (!batadv_bla_check_claim(bat_priv, hw_src, vid)) {
1400 dropped = !batadv_is_my_client(bat_priv, hw_dst, vid);
1405 dropped |= batadv_is_my_client(bat_priv, hw_src, vid);
1613 * @vid: VLAN identifier
1623 unsigned short vid)
1628 hw_dst, vid);
1634 batadv_dat_entry_add(bat_priv, yiaddr, chaddr, vid);
1635 batadv_dat_entry_add(bat_priv, ip_dst, hw_dst, vid);
1637 batadv_dat_forward_data(bat_priv, skb, yiaddr, vid,
1639 batadv_dat_forward_data(bat_priv, skb, ip_dst, vid,
1645 "Snooped from outgoing DHCPACK (server address): %pI4, %pM (vid: %i)\n",
1646 &ip_dst, hw_dst, batadv_print_vid(vid));
1648 "Snooped from outgoing DHCPACK (client address): %pI4, %pM (vid: %i)\n",
1649 &yiaddr, chaddr, batadv_print_vid(vid));
1696 * @vid: VLAN identifier
1709 unsigned short vid)
1721 ip_src, vid);
1740 unsigned short vid;
1758 vid = batadv_dat_get_vid(skb, &hdr_size);
1760 batadv_dat_entry_add(bat_priv, yiaddr, chaddr, vid);
1761 batadv_dat_entry_add(bat_priv, ip_src, hw_src, vid);
1764 "Snooped from incoming DHCPACK (server address): %pI4, %pM (vid: %i)\n",
1765 &ip_src, hw_src, batadv_print_vid(vid));
1767 "Snooped from incoming DHCPACK (client address): %pI4, %pM (vid: %i)\n",
1768 &yiaddr, chaddr, batadv_print_vid(vid));
1787 unsigned short vid;
1798 vid = batadv_dat_get_vid(forw_packet->skb, &hdr_size);
1805 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip_dst, vid);