nmb               435 src/vfs/smbfs/helpers/include/nameserv.h         struct nmb_packet nmb;
nmb                51 src/vfs/smbfs/helpers/libsmb/namequery.c     struct nmb_packet *nmb = &p.packet.nmb;
nmb                63 src/vfs/smbfs/helpers/libsmb/namequery.c     nmb->header.name_trn_id = name_trn_id;
nmb                64 src/vfs/smbfs/helpers/libsmb/namequery.c     nmb->header.opcode = 0;
nmb                65 src/vfs/smbfs/helpers/libsmb/namequery.c     nmb->header.response = False;
nmb                66 src/vfs/smbfs/helpers/libsmb/namequery.c     nmb->header.nm_flags.bcast = bcast;
nmb                67 src/vfs/smbfs/helpers/libsmb/namequery.c     nmb->header.nm_flags.recursion_available = False;
nmb                68 src/vfs/smbfs/helpers/libsmb/namequery.c     nmb->header.nm_flags.recursion_desired = recurse;
nmb                69 src/vfs/smbfs/helpers/libsmb/namequery.c     nmb->header.nm_flags.trunc = False;
nmb                70 src/vfs/smbfs/helpers/libsmb/namequery.c     nmb->header.nm_flags.authoritative = False;
nmb                71 src/vfs/smbfs/helpers/libsmb/namequery.c     nmb->header.rcode = 0;
nmb                72 src/vfs/smbfs/helpers/libsmb/namequery.c     nmb->header.qdcount = 1;
nmb                73 src/vfs/smbfs/helpers/libsmb/namequery.c     nmb->header.ancount = 0;
nmb                74 src/vfs/smbfs/helpers/libsmb/namequery.c     nmb->header.nscount = 0;
nmb                75 src/vfs/smbfs/helpers/libsmb/namequery.c     nmb->header.arcount = 0;
nmb                77 src/vfs/smbfs/helpers/libsmb/namequery.c     make_nmb_name (&nmb->question.question_name, name, name_type);
nmb                79 src/vfs/smbfs/helpers/libsmb/namequery.c     nmb->question.question_type = 0x20;
nmb                80 src/vfs/smbfs/helpers/libsmb/namequery.c     nmb->question.question_class = 0x1;
nmb               111 src/vfs/smbfs/helpers/libsmb/namequery.c             struct nmb_packet *nmb2 = &p2->packet.nmb;
nmb               114 src/vfs/smbfs/helpers/libsmb/namequery.c             if (nmb->header.name_trn_id != nmb2->header.name_trn_id || !nmb2->header.response)
nmb               115 src/vfs/smbfs/helpers/libsmb/nmblib.c     struct nmb_packet *nmb = &p->packet.nmb;
nmb               121 src/vfs/smbfs/helpers/libsmb/nmblib.c                  nmb->header.name_trn_id,
nmb               122 src/vfs/smbfs/helpers/libsmb/nmblib.c                  lookup_opcode_name (nmb->header.opcode),
nmb               123 src/vfs/smbfs/helpers/libsmb/nmblib.c                  nmb->header.opcode, BOOLSTR (nmb->header.response));
nmb               125 src/vfs/smbfs/helpers/libsmb/nmblib.c                  BOOLSTR (nmb->header.nm_flags.bcast),
nmb               126 src/vfs/smbfs/helpers/libsmb/nmblib.c                  BOOLSTR (nmb->header.nm_flags.recursion_available),
nmb               127 src/vfs/smbfs/helpers/libsmb/nmblib.c                  BOOLSTR (nmb->header.nm_flags.recursion_desired),
nmb               128 src/vfs/smbfs/helpers/libsmb/nmblib.c                  BOOLSTR (nmb->header.nm_flags.trunc),
nmb               129 src/vfs/smbfs/helpers/libsmb/nmblib.c                  BOOLSTR (nmb->header.nm_flags.authoritative));
nmb               131 src/vfs/smbfs/helpers/libsmb/nmblib.c                  nmb->header.rcode,
nmb               132 src/vfs/smbfs/helpers/libsmb/nmblib.c                  nmb->header.qdcount,
nmb               133 src/vfs/smbfs/helpers/libsmb/nmblib.c                  nmb->header.ancount, nmb->header.nscount, nmb->header.arcount);
nmb               136 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->header.qdcount)
nmb               139 src/vfs/smbfs/helpers/libsmb/nmblib.c                       nmb_namestr (&nmb->question.question_name),
nmb               140 src/vfs/smbfs/helpers/libsmb/nmblib.c                       nmb->question.question_type, nmb->question.question_class));
nmb               143 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->answers && nmb->header.ancount)
nmb               145 src/vfs/smbfs/helpers/libsmb/nmblib.c         debug_nmb_res_rec (nmb->answers, "answers");
nmb               147 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->nsrecs && nmb->header.nscount)
nmb               149 src/vfs/smbfs/helpers/libsmb/nmblib.c         debug_nmb_res_rec (nmb->nsrecs, "nsrecs");
nmb               151 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->additional && nmb->header.arcount)
nmb               153 src/vfs/smbfs/helpers/libsmb/nmblib.c         debug_nmb_res_rec (nmb->additional, "additional");
nmb               480 src/vfs/smbfs/helpers/libsmb/nmblib.c parse_nmb (char *inbuf, int length, struct nmb_packet *nmb)
nmb               484 src/vfs/smbfs/helpers/libsmb/nmblib.c     memset ((char *) nmb, '\0', sizeof (*nmb));
nmb               490 src/vfs/smbfs/helpers/libsmb/nmblib.c     nmb->header.name_trn_id = RSVAL (inbuf, 0);
nmb               492 src/vfs/smbfs/helpers/libsmb/nmblib.c     DEBUG (10, ("parse_nmb: packet id = %d\n", nmb->header.name_trn_id));
nmb               494 src/vfs/smbfs/helpers/libsmb/nmblib.c     nmb->header.opcode = (CVAL (inbuf, 2) >> 3) & 0xF;
nmb               495 src/vfs/smbfs/helpers/libsmb/nmblib.c     nmb->header.response = ((CVAL (inbuf, 2) >> 7) & 1) ? True : False;
nmb               497 src/vfs/smbfs/helpers/libsmb/nmblib.c     nmb->header.nm_flags.bcast = (nm_flags & 1) ? True : False;
nmb               498 src/vfs/smbfs/helpers/libsmb/nmblib.c     nmb->header.nm_flags.recursion_available = (nm_flags & 8) ? True : False;
nmb               499 src/vfs/smbfs/helpers/libsmb/nmblib.c     nmb->header.nm_flags.recursion_desired = (nm_flags & 0x10) ? True : False;
nmb               500 src/vfs/smbfs/helpers/libsmb/nmblib.c     nmb->header.nm_flags.trunc = (nm_flags & 0x20) ? True : False;
nmb               501 src/vfs/smbfs/helpers/libsmb/nmblib.c     nmb->header.nm_flags.authoritative = (nm_flags & 0x40) ? True : False;
nmb               502 src/vfs/smbfs/helpers/libsmb/nmblib.c     nmb->header.rcode = CVAL (inbuf, 3) & 0xF;
nmb               503 src/vfs/smbfs/helpers/libsmb/nmblib.c     nmb->header.qdcount = RSVAL (inbuf, 4);
nmb               504 src/vfs/smbfs/helpers/libsmb/nmblib.c     nmb->header.ancount = RSVAL (inbuf, 6);
nmb               505 src/vfs/smbfs/helpers/libsmb/nmblib.c     nmb->header.nscount = RSVAL (inbuf, 8);
nmb               506 src/vfs/smbfs/helpers/libsmb/nmblib.c     nmb->header.arcount = RSVAL (inbuf, 10);
nmb               508 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->header.qdcount)
nmb               510 src/vfs/smbfs/helpers/libsmb/nmblib.c         offset = parse_nmb_name (inbuf, 12, length, &nmb->question.question_name);
nmb               516 src/vfs/smbfs/helpers/libsmb/nmblib.c         nmb->question.question_type = RSVAL (inbuf, 12 + offset);
nmb               517 src/vfs/smbfs/helpers/libsmb/nmblib.c         nmb->question.question_class = RSVAL (inbuf, 12 + offset + 2);
nmb               527 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->header.ancount &&
nmb               528 src/vfs/smbfs/helpers/libsmb/nmblib.c         !parse_alloc_res_rec (inbuf, &offset, length, &nmb->answers, nmb->header.ancount))
nmb               531 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->header.nscount &&
nmb               532 src/vfs/smbfs/helpers/libsmb/nmblib.c         !parse_alloc_res_rec (inbuf, &offset, length, &nmb->nsrecs, nmb->header.nscount))
nmb               535 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->header.arcount &&
nmb               536 src/vfs/smbfs/helpers/libsmb/nmblib.c         !parse_alloc_res_rec (inbuf, &offset, length, &nmb->additional, nmb->header.arcount))
nmb               549 src/vfs/smbfs/helpers/libsmb/nmblib.c     struct nmb_packet *nmb;
nmb               567 src/vfs/smbfs/helpers/libsmb/nmblib.c     nmb = &packet->packet.nmb;
nmb               568 src/vfs/smbfs/helpers/libsmb/nmblib.c     copy_nmb = &pkt_copy->packet.nmb;
nmb               576 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->answers)
nmb               579 src/vfs/smbfs/helpers/libsmb/nmblib.c              malloc (nmb->header.ancount * sizeof (struct res_rec))) == NULL)
nmb               581 src/vfs/smbfs/helpers/libsmb/nmblib.c         memcpy ((char *) copy_nmb->answers, (char *) nmb->answers,
nmb               582 src/vfs/smbfs/helpers/libsmb/nmblib.c                 nmb->header.ancount * sizeof (struct res_rec));
nmb               584 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->nsrecs)
nmb               587 src/vfs/smbfs/helpers/libsmb/nmblib.c              malloc (nmb->header.nscount * sizeof (struct res_rec))) == NULL)
nmb               589 src/vfs/smbfs/helpers/libsmb/nmblib.c         memcpy ((char *) copy_nmb->nsrecs, (char *) nmb->nsrecs,
nmb               590 src/vfs/smbfs/helpers/libsmb/nmblib.c                 nmb->header.nscount * sizeof (struct res_rec));
nmb               592 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->additional)
nmb               595 src/vfs/smbfs/helpers/libsmb/nmblib.c              malloc (nmb->header.arcount * sizeof (struct res_rec))) == NULL)
nmb               597 src/vfs/smbfs/helpers/libsmb/nmblib.c         memcpy ((char *) copy_nmb->additional, (char *) nmb->additional,
nmb               598 src/vfs/smbfs/helpers/libsmb/nmblib.c                 nmb->header.arcount * sizeof (struct res_rec));
nmb               660 src/vfs/smbfs/helpers/libsmb/nmblib.c free_nmb_packet (struct nmb_packet *nmb)
nmb               662 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->answers)
nmb               663 src/vfs/smbfs/helpers/libsmb/nmblib.c         free (nmb->answers);
nmb               664 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->nsrecs)
nmb               665 src/vfs/smbfs/helpers/libsmb/nmblib.c         free (nmb->nsrecs);
nmb               666 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->additional)
nmb               667 src/vfs/smbfs/helpers/libsmb/nmblib.c         free (nmb->additional);
nmb               674 src/vfs/smbfs/helpers/libsmb/nmblib.c free_dgram_packet (struct dgram_packet *nmb)
nmb               677 src/vfs/smbfs/helpers/libsmb/nmblib.c     (void) nmb;
nmb               689 src/vfs/smbfs/helpers/libsmb/nmblib.c         free_nmb_packet (&packet->packet.nmb);
nmb               728 src/vfs/smbfs/helpers/libsmb/nmblib.c         ok = parse_nmb (buf, length, &packet->packet.nmb);
nmb               738 src/vfs/smbfs/helpers/libsmb/nmblib.c                     packet->packet.nmb.header.name_trn_id));
nmb               863 src/vfs/smbfs/helpers/libsmb/nmblib.c     struct nmb_packet *nmb = &p->packet.nmb;
nmb               868 src/vfs/smbfs/helpers/libsmb/nmblib.c     RSSVAL (ubuf, offset, nmb->header.name_trn_id);
nmb               869 src/vfs/smbfs/helpers/libsmb/nmblib.c     ubuf[offset + 2] = (nmb->header.opcode & 0xF) << 3;
nmb               870 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->header.response)
nmb               872 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->header.nm_flags.authoritative && nmb->header.response)
nmb               874 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->header.nm_flags.trunc)
nmb               876 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->header.nm_flags.recursion_desired)
nmb               878 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->header.nm_flags.recursion_available && nmb->header.response)
nmb               880 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->header.nm_flags.bcast)
nmb               882 src/vfs/smbfs/helpers/libsmb/nmblib.c     ubuf[offset + 3] |= (nmb->header.rcode & 0xF);
nmb               884 src/vfs/smbfs/helpers/libsmb/nmblib.c     RSSVAL (ubuf, offset + 4, nmb->header.qdcount);
nmb               885 src/vfs/smbfs/helpers/libsmb/nmblib.c     RSSVAL (ubuf, offset + 6, nmb->header.ancount);
nmb               886 src/vfs/smbfs/helpers/libsmb/nmblib.c     RSSVAL (ubuf, offset + 8, nmb->header.nscount);
nmb               887 src/vfs/smbfs/helpers/libsmb/nmblib.c     RSSVAL (ubuf, offset + 10, nmb->header.arcount);
nmb               890 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->header.qdcount)
nmb               893 src/vfs/smbfs/helpers/libsmb/nmblib.c         offset += put_nmb_name ((char *) ubuf, offset, &nmb->question.question_name);
nmb               894 src/vfs/smbfs/helpers/libsmb/nmblib.c         RSSVAL (ubuf, offset, nmb->question.question_type);
nmb               895 src/vfs/smbfs/helpers/libsmb/nmblib.c         RSSVAL (ubuf, offset + 2, nmb->question.question_class);
nmb               899 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->header.ancount)
nmb               900 src/vfs/smbfs/helpers/libsmb/nmblib.c         offset += put_res_rec ((char *) ubuf, offset, nmb->answers, nmb->header.ancount);
nmb               902 src/vfs/smbfs/helpers/libsmb/nmblib.c     if (nmb->header.nscount)
nmb               903 src/vfs/smbfs/helpers/libsmb/nmblib.c         offset += put_res_rec ((char *) ubuf, offset, nmb->nsrecs, nmb->header.nscount);
nmb               912 src/vfs/smbfs/helpers/libsmb/nmblib.c     if ((nmb->header.response == False) &&
nmb               913 src/vfs/smbfs/helpers/libsmb/nmblib.c         ((nmb->header.opcode == NMB_NAME_REG_OPCODE) ||
nmb               914 src/vfs/smbfs/helpers/libsmb/nmblib.c          (nmb->header.opcode == NMB_NAME_RELEASE_OPCODE) ||
nmb               915 src/vfs/smbfs/helpers/libsmb/nmblib.c          (nmb->header.opcode == NMB_NAME_REFRESH_OPCODE_8) ||
nmb               916 src/vfs/smbfs/helpers/libsmb/nmblib.c          (nmb->header.opcode == NMB_NAME_REFRESH_OPCODE_9) ||
nmb               917 src/vfs/smbfs/helpers/libsmb/nmblib.c          (nmb->header.opcode == NMB_NAME_MULTIHOMED_REG_OPCODE)) && (nmb->header.arcount == 1))
nmb               920 src/vfs/smbfs/helpers/libsmb/nmblib.c         offset += put_compressed_name_ptr (ubuf, offset, nmb->additional, 12);
nmb               923 src/vfs/smbfs/helpers/libsmb/nmblib.c     else if (nmb->header.arcount)
nmb               925 src/vfs/smbfs/helpers/libsmb/nmblib.c         offset += put_res_rec ((char *) ubuf, offset, nmb->additional, nmb->header.arcount);