Lines Matching refs:tt_request

1096 	struct tt_query_packet *tt_request;  in send_tt_request()  local
1118 tt_request = (struct tt_query_packet *)skb_put(skb, in send_tt_request()
1121 tt_request->header.packet_type = BAT_TT_QUERY; in send_tt_request()
1122 tt_request->header.version = COMPAT_VERSION; in send_tt_request()
1123 memcpy(tt_request->src, primary_if->net_dev->dev_addr, ETH_ALEN); in send_tt_request()
1124 memcpy(tt_request->dst, dst_orig_node->orig, ETH_ALEN); in send_tt_request()
1125 tt_request->header.ttl = TTL; in send_tt_request()
1126 tt_request->ttvn = ttvn; in send_tt_request()
1127 tt_request->tt_data = tt_crc; in send_tt_request()
1128 tt_request->flags = TT_REQUEST; in send_tt_request()
1131 tt_request->flags |= TT_FULL_TABLE; in send_tt_request()
1162 struct tt_query_packet *tt_request) in send_other_tt_response() argument
1177 tt_request->src, tt_request->ttvn, tt_request->dst, in send_other_tt_response()
1178 (tt_request->flags & TT_FULL_TABLE ? 'F' : '.')); in send_other_tt_response()
1181 req_dst_orig_node = orig_hash_find(bat_priv, tt_request->dst); in send_other_tt_response()
1185 res_dst_orig_node = orig_hash_find(bat_priv, tt_request->src); in send_other_tt_response()
1198 req_ttvn = tt_request->ttvn; in send_other_tt_response()
1202 tt_request->tt_data != req_dst_orig_node->tt_crc) in send_other_tt_response()
1206 if (tt_request->flags & TT_FULL_TABLE || in send_other_tt_response()
1255 memcpy(tt_response->dst, tt_request->src, ETH_ALEN); in send_other_tt_response()
1288 struct tt_query_packet *tt_request) in send_my_tt_response() argument
1303 tt_request->src, tt_request->ttvn, in send_my_tt_response()
1304 (tt_request->flags & TT_FULL_TABLE ? 'F' : '.')); in send_my_tt_response()
1308 req_ttvn = tt_request->ttvn; in send_my_tt_response()
1310 orig_node = orig_hash_find(bat_priv, tt_request->src); in send_my_tt_response()
1324 if (tt_request->flags & TT_FULL_TABLE || my_ttvn != req_ttvn || in send_my_tt_response()
1371 memcpy(tt_response->dst, tt_request->src, ETH_ALEN); in send_my_tt_response()
1402 struct tt_query_packet *tt_request) in send_tt_response() argument
1404 if (is_my_mac(tt_request->dst)) in send_tt_response()
1405 return send_my_tt_response(bat_priv, tt_request); in send_tt_response()
1407 return send_other_tt_response(bat_priv, tt_request); in send_tt_response()