Lines Matching refs:bs

164 	struct dns_server_list_v1_server bs;  in afs_extract_vlserver_list()  local
201 while (end - b >= sizeof(bs)) { in afs_extract_vlserver_list()
202 bs.name_len = afs_extract_le16(&b); in afs_extract_vlserver_list()
203 bs.priority = afs_extract_le16(&b); in afs_extract_vlserver_list()
204 bs.weight = afs_extract_le16(&b); in afs_extract_vlserver_list()
205 bs.port = afs_extract_le16(&b); in afs_extract_vlserver_list()
206 bs.source = *b++; in afs_extract_vlserver_list()
207 bs.status = *b++; in afs_extract_vlserver_list()
208 bs.protocol = *b++; in afs_extract_vlserver_list()
209 bs.nr_addrs = *b++; in afs_extract_vlserver_list()
212 bs.name_len, bs.priority, bs.weight, in afs_extract_vlserver_list()
213 bs.port, bs.protocol, bs.nr_addrs, in afs_extract_vlserver_list()
214 bs.name_len, bs.name_len, b); in afs_extract_vlserver_list()
216 if (end - b < bs.name_len) in afs_extract_vlserver_list()
220 if (bs.protocol == DNS_SERVER_PROTOCOL_UNSPECIFIED) { in afs_extract_vlserver_list()
221 bs.protocol = DNS_SERVER_PROTOCOL_UDP; in afs_extract_vlserver_list()
222 } else if (bs.protocol != DNS_SERVER_PROTOCOL_UDP) { in afs_extract_vlserver_list()
223 _leave(" = [proto %u]", bs.protocol); in afs_extract_vlserver_list()
227 if (bs.port == 0) in afs_extract_vlserver_list()
228 bs.port = AFS_VL_PORT; in afs_extract_vlserver_list()
229 if (bs.source > NR__dns_record_source) in afs_extract_vlserver_list()
230 bs.source = NR__dns_record_source; in afs_extract_vlserver_list()
231 if (bs.status > NR__dns_lookup_status) in afs_extract_vlserver_list()
232 bs.status = NR__dns_lookup_status; in afs_extract_vlserver_list()
239 if (p->name_len == bs.name_len && in afs_extract_vlserver_list()
240 p->port == bs.port && in afs_extract_vlserver_list()
241 strncasecmp(b, p->name, bs.name_len) == 0) { in afs_extract_vlserver_list()
249 server = afs_alloc_vlserver(b, bs.name_len, bs.port); in afs_extract_vlserver_list()
254 b += bs.name_len; in afs_extract_vlserver_list()
259 addrs = afs_extract_vl_addrs(cell->net, &b, end, bs.nr_addrs, bs.port); in afs_extract_vlserver_list()
272 addrs->source = bs.source; in afs_extract_vlserver_list()
273 addrs->status = bs.status; in afs_extract_vlserver_list()
296 if (bs.priority < vllist->servers[j].priority) in afs_extract_vlserver_list()
298 if (bs.priority == vllist->servers[j].priority && in afs_extract_vlserver_list()
299 bs.weight > vllist->servers[j].weight) in afs_extract_vlserver_list()
311 vllist->servers[j].priority = bs.priority; in afs_extract_vlserver_list()
312 vllist->servers[j].weight = bs.weight; in afs_extract_vlserver_list()