Lines Matching defs:scan
670 unsigned char *scan = (unsigned char *)buf;
671 unsigned char *scan_end = scan + n_buf;
686 name_trn_id = BE_IN16(scan); scan += 2;
687 info = BE_IN16(scan); scan += 2;
688 qdcount = BE_IN16(scan); scan += 2;
689 ancount = BE_IN16(scan); scan += 2;
690 nscount = BE_IN16(scan); scan += 2;
691 arcount = BE_IN16(scan); scan += 2;
712 /* scan is in position for question entries */
762 name_len = smb_netbios_getname(name_buf, (char *)scan,
779 scan += name_len;
780 if (scan + 4 > scan_end) {
786 npb->question[i].question_type = BE_IN16(scan); scan += 2;
787 npb->question[i].question_class = BE_IN16(scan); scan += 2;
796 if (scan[0] == 0xc0) {
800 name_len = smb_netbios_getname(name_buf, (char *)scan,
808 scan += rc;
810 if (scan + 10 > scan_end) {
827 nrr[i].rr_type = BE_IN16(scan); scan += 2;
828 nrr[i].rr_class = BE_IN16(scan); scan += 2;
829 nrr[i].ttl = BE_IN32(scan); scan += 4;
830 nrr[i].rdlength = BE_IN16(scan); scan += 2;
833 if ((scan + n) > scan_end) {
838 bcopy(scan, heap, n);
859 BE_IN16(scan);
864 scan + 2, sizeof (uint32_t));
868 scan += 6;
872 scan += n;
1329 unsigned char *scan = data;
1355 scan = data;
1360 BE_OUT16(scan, attr); scan += 2;
1362 *scan++ = ret_addr;
1363 *scan++ = ret_addr >> 8;
1364 *scan++ = ret_addr >> 16;
1365 *scan++ = ret_addr >> 24;
1387 unsigned char *scan;
1413 scan = smb_netbios_cache_status(data, MAX_NETBIOS_REPLY_DATA_SIZE,
1428 if ((scan + 6) >= scan_end) {
1443 bzero(scan, 6);
1445 bcopy(&arpreq.arp_ha.sa_data, scan, 6);
1449 bzero(scan, 6);
1451 scan += 6;
1453 if ((scan + 26) >= scan_end) {
1457 bzero(scan, 26);
1458 scan += 26;
1460 if ((scan + 2) >= scan_end) {
1464 BE_OUT16(scan, 0); scan += 2;
1466 if ((scan + 2) >= scan_end) {
1470 BE_OUT16(scan, 0); scan += 2;
1472 if ((scan + 2) >= scan_end) {
1476 BE_OUT16(scan, 0); scan += 2;
1478 if ((scan + 2) >= scan_end) {
1482 BE_OUT16(scan, 0); scan += 2;
1484 if ((scan + 2) >= scan_end) {
1488 BE_OUT16(scan, 0); scan += 2;
1490 if ((scan + 2) >= scan_end) {
1494 BE_OUT16(scan, 0); scan += 2;
1496 if ((scan + 2) >= scan_end) {
1500 BE_OUT16(scan, 0); scan += 2;
1502 if ((scan + 2) >= scan_end) {
1506 BE_OUT16(scan, max_connections); scan += 2;
1508 if ((scan + 2) >= scan_end) {
1513 BE_OUT16(scan, 0); scan += 2;
1517 answer.rdlength = scan - data;
1584 unsigned char *scan = data;
1600 scan = data;
1605 BE_OUT16(scan, attr); scan += 2;
1607 *scan++ = ret_addr;
1608 *scan++ = ret_addr >> 8;
1609 *scan++ = ret_addr >> 16;
1610 *scan++ = ret_addr >> 24;
1721 unsigned char *scan = data;
1739 scan = data;
1743 BE_OUT16(scan, attr); scan += 2;
1745 *scan++ = ret_addr;
1746 *scan++ = ret_addr >> 8;
1747 *scan++ = ret_addr >> 16;
1748 *scan++ = ret_addr >> 24;