equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright 2006 Intel Corporation |
2 * Copyright 2010-2011 Trinity College Dublin |
3 * |
3 * |
4 * Licensed under the Apache License, Version 2.0 (the "License"); |
4 * Licensed under the Apache License, Version 2.0 (the "License"); |
5 * you may not use this file except in compliance with the License. |
5 * you may not use this file except in compliance with the License. |
6 * You may obtain a copy of the License at |
6 * You may obtain a copy of the License at |
7 * |
7 * |
59 if (! block->complete()) { |
59 if (! block->complete()) { |
60 ASSERT(cc == (int)len); |
60 ASSERT(cc == (int)len); |
61 return cc; |
61 return cc; |
62 } |
62 } |
63 |
63 |
64 BPQBlock* bpq_block = new BPQBlock(block); |
64 BPQBlock* bpq_block = new BPQBlock(bundle); |
65 log_info_p(LOG, " BPQBlock:"); |
65 log_info_p(LOG, " BPQBlock:"); |
66 log_info_p(LOG, " kind: %d", bpq_block->kind()); |
66 log_info_p(LOG, " kind: %d", bpq_block->kind()); |
67 log_info_p(LOG, "matching rule: %d", bpq_block->matching_rule()); |
67 log_info_p(LOG, "matching rule: %d", bpq_block->matching_rule()); |
68 log_info_p(LOG, " query_len: %d", bpq_block->query_len()); |
68 log_info_p(LOG, " query_len: %d", bpq_block->query_len()); |
69 log_info_p(LOG, " query_val: %s", bpq_block->query_val()); |
69 log_info_p(LOG, " query_val: %s", bpq_block->query_val()); |
165 } else { |
165 } else { |
166 log_err_p(LOG, "Cannot find BPQ block"); |
166 log_err_p(LOG, "Cannot find BPQ block"); |
167 return BP_FAIL; |
167 return BP_FAIL; |
168 } |
168 } |
169 |
169 |
170 BPQBlock* bpq_block = new BPQBlock(bpq_info); |
170 BPQBlock* bpq_block = new BPQBlock(bundle); |
171 |
171 |
172 //int length = bpq_block->length(); |
172 //int length = bpq_block->length(); |
173 int length = bpq_info->data_length(); |
173 int length = bpq_info->data_length(); |
174 |
174 |
175 generate_preamble(xmit_blocks, |
175 generate_preamble(xmit_blocks, |