Lines Matching defs:vid

73 	hash = jhash(&claim->vid, sizeof(claim->vid), hash);
92 hash = jhash(&gw->vid, sizeof(gw->vid), hash);
98 * batadv_compare_backbone_gw() - compare address and vid of two backbone gws
115 if (gw1->vid != gw2->vid)
122 * batadv_compare_claim() - compare address and vid of two claims
139 if (cl1->vid != cl2->vid)
254 * @vid: the VLAN ID
260 unsigned short vid)
272 search_entry.vid = vid;
338 * @vid: the VLAN ID
342 unsigned short vid, int claimtype)
392 "%s(): CLAIM %pM on vid %d\n", __func__, mac,
393 batadv_print_vid(vid));
401 "%s(): UNCLAIM %pM on vid %d\n", __func__, mac,
402 batadv_print_vid(vid));
410 "%s(): ANNOUNCE of %pM on vid %d\n", __func__,
411 ethhdr->h_source, batadv_print_vid(vid));
421 "%s(): REQUEST of %pM to %pM on vid %d\n", __func__,
423 batadv_print_vid(vid));
428 "%s(): LOOPDETECT of %pM to %pM on vid %d\n",
430 batadv_print_vid(vid));
435 if (vid & BATADV_VLAN_HAS_TAG) {
437 vid & VLAN_VID_MASK);
476 batadv_print_vid(backbone_gw->vid));
478 batadv_print_vid(backbone_gw->vid));
491 * @vid: the VLAN ID
498 unsigned short vid, bool own_backbone)
504 entry = batadv_backbone_hash_find(bat_priv, orig, vid);
511 orig, batadv_print_vid(vid));
517 entry->vid = vid;
543 batadv_tt_global_del_orig(bat_priv, orig_node, vid,
564 * @vid: VLAN identifier
572 unsigned short vid)
578 vid, true);
590 * @vid: the vid where the request came on
597 unsigned short vid)
611 vid);
625 batadv_bla_send_claim(bat_priv, claim->addr, claim->vid,
654 backbone_gw->vid, BATADV_CLAIM_TYPE_REQUEST);
680 batadv_bla_send_claim(bat_priv, mac, backbone_gw->vid,
688 * @vid: the VLAN ID of the frame
692 const u8 *mac, const unsigned short vid,
702 search_claim.vid = vid;
713 claim->vid = vid;
720 "%s(): adding new entry %pM, vid %d to hash ...\n",
721 __func__, mac, batadv_print_vid(vid));
741 "%s(): changing ownership for %pM, vid %d to gw %pM\n",
742 __func__, mac, batadv_print_vid(vid),
798 * @vid: VLAN id for the claim to be removed
801 const u8 *mac, const unsigned short vid)
808 search_claim.vid = vid;
813 batadv_dbg(BATADV_DBG_BLA, bat_priv, "%s(): %pM, vid %d\n", __func__,
814 mac, batadv_print_vid(vid));
837 * @vid: the VLAN ID of the frame
842 u8 *backbone_addr, unsigned short vid)
850 backbone_gw = batadv_bla_get_backbone_gw(bat_priv, backbone_addr, vid,
861 "%s(): ANNOUNCE vid %d (sent by %pM)... CRC = %#.4x\n",
862 __func__, batadv_print_vid(vid), backbone_gw->orig, crc);
872 batadv_print_vid(backbone_gw->vid),
896 * @vid: the VLAN ID of the frame
903 unsigned short vid)
916 "%s(): REQUEST vid %d (sent by %pM)...\n",
917 __func__, batadv_print_vid(vid), ethhdr->h_source);
919 batadv_bla_answer_request(bat_priv, primary_if, vid);
929 * @vid: the VLAN ID of the frame
936 unsigned short vid)
943 batadv_bla_send_claim(bat_priv, claim_addr, vid,
946 backbone_gw = batadv_backbone_hash_find(bat_priv, backbone_addr, vid);
953 "%s(): UNCLAIM %pM on vid %d (sent by %pM)...\n", __func__,
954 claim_addr, batadv_print_vid(vid), backbone_gw->orig);
956 batadv_bla_del_claim(bat_priv, claim_addr, vid);
967 * @vid: the VLAN ID of the frame
974 unsigned short vid)
980 backbone_gw = batadv_bla_get_backbone_gw(bat_priv, backbone_addr, vid,
987 batadv_bla_add_claim(bat_priv, claim_addr, vid, backbone_gw);
989 batadv_bla_send_claim(bat_priv, claim_addr, vid,
1091 unsigned short vid;
1097 vid = batadv_get_vid(skb, 0);
1102 if (vid & BATADV_VLAN_HAS_TAG) {
1173 "%s(): received a claim frame from another group. From: %pM on vid %d ...(hw_src %pM, hw_dst %pM)\n",
1174 __func__, ethhdr->h_source, batadv_print_vid(vid),
1181 batadv_bla_update_own_backbone_gw(bat_priv, primary_if, vid);
1187 ethhdr->h_source, vid))
1192 ethhdr->h_source, hw_src, vid))
1198 vid))
1203 vid))
1209 "%s(): ERROR - this looks like a claim frame, but is useless. eth src %pM on vid %d ...(hw_src %pM, hw_dst %pM)\n",
1210 __func__, ethhdr->h_source, batadv_print_vid(vid), hw_src,
1313 "%s(): %pM, vid %d\n", __func__,
1314 claim->addr, claim->vid);
1318 claim->addr, claim->vid);
1396 batadv_dbg(BATADV_DBG_BLA, bat_priv, "Send loopdetect frame for vid %d\n",
1397 backbone_gw->vid);
1399 backbone_gw->vid, BATADV_CLAIM_TYPE_LOOPDETECT);
1731 * the VLAN identified by vid.
1734 * @vid: VLAN identifier
1736 * Return: true if orig is a backbone for this vid, false otherwise.
1739 unsigned short vid)
1758 backbone_gw->vid == vid) {
1782 unsigned short vid;
1787 /* first, find out the vid. */
1791 vid = batadv_get_vid(skb, hdr_size);
1795 orig_node->orig, vid);
1835 * @vid: the VLAN ID of the frame
1846 unsigned short vid)
1870 vid, true);
1889 * @vid: the VLAN ID of the frame
1902 unsigned short vid, int packet_type)
1920 if (batadv_bla_loopdetect_check(bat_priv, skb, primary_if, vid))
1952 search_claim.vid = vid;
1964 ethhdr->h_source, vid) ?
1968 ethhdr->h_source, vid);
2001 ethhdr->h_source, vid);
2005 batadv_bla_update_own_backbone_gw(bat_priv, primary_if, vid);
2025 * @vid: the VLAN ID of the frame
2039 unsigned short vid)
2066 search_claim.vid = vid;
2093 ethhdr->h_source, vid);
2115 batadv_bla_update_own_backbone_gw(bat_priv, primary_if, vid);
2175 claim->addr, batadv_print_vid(claim->vid),
2238 nla_put_u16(msg, BATADV_ATTR_BLA_VID, claim->vid) ||
2415 batadv_print_vid(backbone_gw->vid), secs,
2477 nla_put_u16(msg, BATADV_ATTR_BLA_VID, backbone_gw->vid) ||
2605 * @vid: the VLAN ID
2613 u8 *addr, unsigned short vid)
2629 search_claim.vid = vid;