Lines Matching refs:vid
71 hash = jhash(&claim->vid, sizeof(claim->vid), hash); in batadv_choose_claim()
90 hash = jhash(&gw->vid, sizeof(gw->vid), hash); in batadv_choose_backbone_gw()
113 if (gw1->vid != gw2->vid) in batadv_compare_backbone_gw()
137 if (cl1->vid != cl2->vid) in batadv_compare_claim()
258 unsigned short vid) in batadv_backbone_hash_find() argument
270 search_entry.vid = vid; in batadv_backbone_hash_find()
340 unsigned short vid, int claimtype) in batadv_bla_send_claim() argument
391 batadv_print_vid(vid)); in batadv_bla_send_claim()
400 batadv_print_vid(vid)); in batadv_bla_send_claim()
409 ethhdr->h_source, batadv_print_vid(vid)); in batadv_bla_send_claim()
421 batadv_print_vid(vid)); in batadv_bla_send_claim()
428 batadv_print_vid(vid)); in batadv_bla_send_claim()
433 if (vid & BATADV_VLAN_HAS_TAG) { in batadv_bla_send_claim()
435 vid & VLAN_VID_MASK); in batadv_bla_send_claim()
470 batadv_print_vid(backbone_gw->vid)); in batadv_bla_loopdetect_report()
472 batadv_print_vid(backbone_gw->vid)); in batadv_bla_loopdetect_report()
492 unsigned short vid, bool own_backbone) in batadv_bla_get_backbone_gw() argument
498 entry = batadv_backbone_hash_find(bat_priv, orig, vid); in batadv_bla_get_backbone_gw()
505 orig, batadv_print_vid(vid)); in batadv_bla_get_backbone_gw()
511 entry->vid = vid; in batadv_bla_get_backbone_gw()
537 batadv_tt_global_del_orig(bat_priv, orig_node, vid, in batadv_bla_get_backbone_gw()
566 unsigned short vid) in batadv_bla_update_own_backbone_gw() argument
572 vid, true); in batadv_bla_update_own_backbone_gw()
591 unsigned short vid) in batadv_bla_answer_request() argument
605 vid); in batadv_bla_answer_request()
619 batadv_bla_send_claim(bat_priv, claim->addr, claim->vid, in batadv_bla_answer_request()
648 backbone_gw->vid, BATADV_CLAIM_TYPE_REQUEST); in batadv_bla_send_request()
674 batadv_bla_send_claim(bat_priv, mac, backbone_gw->vid, in batadv_bla_send_announce()
686 const u8 *mac, const unsigned short vid, in batadv_bla_add_claim() argument
696 search_claim.vid = vid; in batadv_bla_add_claim()
707 claim->vid = vid; in batadv_bla_add_claim()
715 __func__, mac, batadv_print_vid(vid)); in batadv_bla_add_claim()
736 __func__, mac, batadv_print_vid(vid), in batadv_bla_add_claim()
795 const u8 *mac, const unsigned short vid) in batadv_bla_del_claim() argument
802 search_claim.vid = vid; in batadv_bla_del_claim()
808 mac, batadv_print_vid(vid)); in batadv_bla_del_claim()
836 u8 *backbone_addr, unsigned short vid) in batadv_handle_announce() argument
844 backbone_gw = batadv_bla_get_backbone_gw(bat_priv, backbone_addr, vid, in batadv_handle_announce()
856 __func__, batadv_print_vid(vid), backbone_gw->orig, crc); in batadv_handle_announce()
866 batadv_print_vid(backbone_gw->vid), in batadv_handle_announce()
897 unsigned short vid) in batadv_handle_request() argument
911 __func__, batadv_print_vid(vid), ethhdr->h_source); in batadv_handle_request()
913 batadv_bla_answer_request(bat_priv, primary_if, vid); in batadv_handle_request()
930 unsigned short vid) in batadv_handle_unclaim() argument
937 batadv_bla_send_claim(bat_priv, claim_addr, vid, in batadv_handle_unclaim()
940 backbone_gw = batadv_backbone_hash_find(bat_priv, backbone_addr, vid); in batadv_handle_unclaim()
948 claim_addr, batadv_print_vid(vid), backbone_gw->orig); in batadv_handle_unclaim()
950 batadv_bla_del_claim(bat_priv, claim_addr, vid); in batadv_handle_unclaim()
968 unsigned short vid) in batadv_handle_claim() argument
974 backbone_gw = batadv_bla_get_backbone_gw(bat_priv, backbone_addr, vid, in batadv_handle_claim()
981 batadv_bla_add_claim(bat_priv, claim_addr, vid, backbone_gw); in batadv_handle_claim()
983 batadv_bla_send_claim(bat_priv, claim_addr, vid, in batadv_handle_claim()
1085 unsigned short vid; in batadv_bla_process_claim() local
1091 vid = batadv_get_vid(skb, 0); in batadv_bla_process_claim()
1096 if (vid & BATADV_VLAN_HAS_TAG) { in batadv_bla_process_claim()
1168 __func__, ethhdr->h_source, batadv_print_vid(vid), in batadv_bla_process_claim()
1175 batadv_bla_update_own_backbone_gw(bat_priv, primary_if, vid); in batadv_bla_process_claim()
1181 ethhdr->h_source, vid)) in batadv_bla_process_claim()
1186 ethhdr->h_source, hw_src, vid)) in batadv_bla_process_claim()
1192 vid)) in batadv_bla_process_claim()
1197 vid)) in batadv_bla_process_claim()
1204 __func__, ethhdr->h_source, batadv_print_vid(vid), hw_src, in batadv_bla_process_claim()
1308 claim->addr, claim->vid); in batadv_bla_purge_claims()
1312 claim->addr, claim->vid); in batadv_bla_purge_claims()
1391 backbone_gw->vid); in batadv_bla_send_loopdetect()
1393 backbone_gw->vid, BATADV_CLAIM_TYPE_LOOPDETECT); in batadv_bla_send_loopdetect()
1732 unsigned short vid) in batadv_bla_is_backbone_gw_orig() argument
1751 backbone_gw->vid == vid) { in batadv_bla_is_backbone_gw_orig()
1775 unsigned short vid; in batadv_bla_is_backbone_gw() local
1784 vid = batadv_get_vid(skb, hdr_size); in batadv_bla_is_backbone_gw()
1788 orig_node->orig, vid); in batadv_bla_is_backbone_gw()
1838 unsigned short vid) in batadv_bla_loopdetect_check() argument
1862 vid, true); in batadv_bla_loopdetect_check()
1894 unsigned short vid, int packet_type) in batadv_bla_rx() argument
1912 if (batadv_bla_loopdetect_check(bat_priv, skb, primary_if, vid)) in batadv_bla_rx()
1944 search_claim.vid = vid; in batadv_bla_rx()
1956 ethhdr->h_source, vid) ? in batadv_bla_rx()
1960 ethhdr->h_source, vid); in batadv_bla_rx()
1993 ethhdr->h_source, vid); in batadv_bla_rx()
1997 batadv_bla_update_own_backbone_gw(bat_priv, primary_if, vid); in batadv_bla_rx()
2029 unsigned short vid) in batadv_bla_tx() argument
2056 search_claim.vid = vid; in batadv_bla_tx()
2083 ethhdr->h_source, vid); in batadv_bla_tx()
2105 batadv_bla_update_own_backbone_gw(bat_priv, primary_if, vid); in batadv_bla_tx()
2163 nla_put_u16(msg, BATADV_ATTR_BLA_VID, claim->vid) || in batadv_bla_claim_dump_entry()
2334 nla_put_u16(msg, BATADV_ATTR_BLA_VID, backbone_gw->vid) || in batadv_bla_backbone_dump_entry()
2468 u8 *addr, unsigned short vid) in batadv_bla_check_claim() argument
2484 search_claim.vid = vid; in batadv_bla_check_claim()