Lines Matching refs:bs

162 	struct dns_server_list_v1_server bs;  in afs_extract_vlserver_list()  local
199 while (end - b >= sizeof(bs)) { in afs_extract_vlserver_list()
200 bs.name_len = afs_extract_le16(&b); in afs_extract_vlserver_list()
201 bs.priority = afs_extract_le16(&b); in afs_extract_vlserver_list()
202 bs.weight = afs_extract_le16(&b); in afs_extract_vlserver_list()
203 bs.port = afs_extract_le16(&b); in afs_extract_vlserver_list()
204 bs.source = *b++; in afs_extract_vlserver_list()
205 bs.status = *b++; in afs_extract_vlserver_list()
206 bs.protocol = *b++; in afs_extract_vlserver_list()
207 bs.nr_addrs = *b++; in afs_extract_vlserver_list()
210 bs.name_len, bs.priority, bs.weight, in afs_extract_vlserver_list()
211 bs.port, bs.protocol, bs.nr_addrs, in afs_extract_vlserver_list()
212 bs.name_len, bs.name_len, b); in afs_extract_vlserver_list()
214 if (end - b < bs.name_len) in afs_extract_vlserver_list()
218 if (bs.protocol == DNS_SERVER_PROTOCOL_UNSPECIFIED) { in afs_extract_vlserver_list()
219 bs.protocol = DNS_SERVER_PROTOCOL_UDP; in afs_extract_vlserver_list()
220 } else if (bs.protocol != DNS_SERVER_PROTOCOL_UDP) { in afs_extract_vlserver_list()
221 _leave(" = [proto %u]", bs.protocol); in afs_extract_vlserver_list()
225 if (bs.port == 0) in afs_extract_vlserver_list()
226 bs.port = AFS_VL_PORT; in afs_extract_vlserver_list()
227 if (bs.source > NR__dns_record_source) in afs_extract_vlserver_list()
228 bs.source = NR__dns_record_source; in afs_extract_vlserver_list()
229 if (bs.status > NR__dns_lookup_status) in afs_extract_vlserver_list()
230 bs.status = NR__dns_lookup_status; in afs_extract_vlserver_list()
237 if (p->name_len == bs.name_len && in afs_extract_vlserver_list()
238 p->port == bs.port && in afs_extract_vlserver_list()
239 strncasecmp(b, p->name, bs.name_len) == 0) { in afs_extract_vlserver_list()
247 server = afs_alloc_vlserver(b, bs.name_len, bs.port); in afs_extract_vlserver_list()
252 b += bs.name_len; in afs_extract_vlserver_list()
257 addrs = afs_extract_vl_addrs(&b, end, bs.nr_addrs, bs.port); in afs_extract_vlserver_list()
270 addrs->source = bs.source; in afs_extract_vlserver_list()
271 addrs->status = bs.status; in afs_extract_vlserver_list()
294 if (bs.priority < vllist->servers[j].priority) in afs_extract_vlserver_list()
296 if (bs.priority == vllist->servers[j].priority && in afs_extract_vlserver_list()
297 bs.weight > vllist->servers[j].weight) in afs_extract_vlserver_list()
309 vllist->servers[j].priority = bs.priority; in afs_extract_vlserver_list()
310 vllist->servers[j].weight = bs.weight; in afs_extract_vlserver_list()