length+name (sometimes length = 0) plus 16 bytes of padding and i'm
trying to work out the rules as to when this domain name is in there.
so far:
- if request is sent to DOMAIN<1b> or
- DGRAM type is a DGRAM_GROUP (msg_type of 17)
else
{ /* A full length request */
- if (dgram_unique)
+ if ((!dgram_unique) ||
+ dgram->dest_name.name_type == 0x1b)
{
/* skip domain name */
- q += 22;
+ int dom_len = CVAL(q, 0);
+ q+= 1;
+ DEBUG(10,("domain name :%s\n", q));
+ q += dom_len;
+ q += 16;
}
ntversion = IVAL(q, 0);