Lines Matching defs:data

776     // If RR signature is different, or data is different, then don't suppress our answer
954 // so when we announce them we'll set the kDNSClass_UniqueRRSet and clear any stale data that way.
1274 // Make sure target is not uninitialized data, or we may crash writing debugging log messages
1904 mDNSu8 *responseptr = m->omsg.data;
1922 m->omsg.data + (AllowedRRSpace(&m->omsg) - AnoninfoSpace));
2091 mDNSu8 *ptr = m->omsg.data;
2124 mDNSPlatformSendRawPacket(m->omsg.data, ptr, rr->resrec.InterfaceID);
2127 mDNSlocal mDNSu16 CheckSum(const void *const data, mDNSs32 length, mDNSu32 sum)
2129 const mDNSu16 *ptr = data;
2136 mDNSlocal mDNSu16 IPv6CheckSum(const mDNSv6Addr *const src, const mDNSv6Addr *const dst, const mDNSu8 protocol, const void *const data, const mDNSu32 length)
2149 return CheckSum(&ph, sizeof(ph), CheckSum(data, length, 0));
2157 mDNSu8 *ptr = m->omsg.data;
2244 m->omsg.data[0x13] = ptr - &m->omsg.data[0x36]; // Compute actual length
2245 checksum.NotAnInteger = ~IPv6CheckSum(spa, v6dst, 0x3A, &m->omsg.data[0x36], m->omsg.data[0x13]);
2246 m->omsg.data[0x38] = checksum.b[0];
2247 m->omsg.data[0x39] = checksum.b[1];
2249 mDNSPlatformSendRawPacket(m->omsg.data, ptr, rr->resrec.InterfaceID);
2270 // Don't try to compute the optlen until *after* we've set up the data fields
2531 mDNSu8 *responseptr = m->omsg.data;
2537 // 2. Updated records that need to retract their old data
2559 // See if we should send a courtesy "goodbye" for the old data before we replace it.
2605 TraceRecordSpace, m->omsg.data + AllowedRRSpace(&m->omsg) - OwnerRecordSpace - TraceRecordSpace);
2633 TraceRecordSpace, m->omsg.data + AllowedRRSpace(&m->omsg) - OwnerRecordSpace - TraceRecordSpace);
2638 TraceRecordSpace, m->omsg.data + AllowedRRSpace(&m->omsg) - OwnerRecordSpace - TraceRecordSpace);
2704 ptr = nsec.rdatastorage.u.data;
2745 // If we have data to send, add OWNER/TRACER/OWNER+TRACER option if necessary, then send packet
2937 const mDNSu8 *const limit = query->data + NormalMaxDNSMessageData;
2978 q->qname.c, DNSTypeName(q->qtype), newptr + forecast - query->data, query->h.numQuestions);
3327 mDNSu8 *qptr = m->omsg.data;
3328 const mDNSu8 *const limit = m->omsg.data + sizeof(m->omsg.data);
3544 mDNSu8 *queryptr = m->omsg.data;
3563 q->qname.c, DNSTypeName(q->qtype), queryptr - m->omsg.data, queryptr + answerforecast - m->omsg.data);
3612 const mDNSu8 *const limit = m->omsg.data + (m->omsg.h.numQuestions ? NormalMaxDNSMessageData : AbsoluteMaxDNSMessageData);
3634 m->omsg.data + NormalMaxDNSMessageData - OwnerRecordSpace - TraceRecordSpace);
3638 ka->resrec.name->c, DNSTypeName(ka->resrec.rrtype), queryptr - m->omsg.data, newptr - m->omsg.data);
3683 if (queryptr > m->omsg.data)
3685 // If we have data to send, add OWNER/TRACER/OWNER+TRACER option if necessary, then send packet
3710 &opt.resrec, opt.resrec.rroriginalttl, m->omsg.data + AbsoluteMaxDNSMessageData);
3716 if (queryptr > m->omsg.data + NormalMaxDNSMessageData)
3720 TraceRecordSpace ? "TRACER" : "", m->omsg.data, m->omsg.data + NormalMaxDNSMessageData, queryptr, m->omsg.h.numQuestions, m->omsg.h.numAnswers,
3800 mDNSu8 *ptr = m->omsg.data;
3817 // 0x14 Wakeup data
3823 mDNSPlatformSendRawPacket(m->omsg.data, ptr, InterfaceID);
3830 for (i=0; i<6; i++) m->omsg.data[i] = 0xFF;
3831 mDNSPlatformSendRawPacket(m->omsg.data, ptr, InterfaceID);
5744 // If the resource record has data that we allocated in a previous pass (to update MAC address),
5745 // free that memory here before copying in the new data.
5813 mDNSu8 *p = m->omsg.data;
5826 const mDNSu8 *const limit = m->omsg.data + (m->omsg.h.mDNS_numUpdates ? NormalMaxDNSMessageData : AbsoluteMaxDNSMessageData) - optspace;
5844 LogSPS("SendSPSRegistration put %s FAILED %d/%d %s", intf->ifname, p - m->omsg.data, limit - m->omsg.data, ARDisplayString(m, rr));
5871 if (!owner->HMAC.l[0]) // If no owner data,
5873 else // otherwise, use the owner data we were given
5880 p = PutResourceRecordTTLWithLimit(&m->omsg, p, &m->omsg.h.numAdditionals, &opt.resrec, opt.resrec.rroriginalttl, m->omsg.data + AbsoluteMaxDNSMessageData);
5888 mDNSVal16(m->omsg.h.id), m->omsg.h.mDNS_numUpdates, p - m->omsg.data, &intf->SPSAddr[sps], mDNSVal16(intf->SPSPort[sps]));
6768 mDNSu8 *responseptr = response->data;
6769 const mDNSu8 *const limit = response->data + sizeof(response->data);
6770 const mDNSu8 *ptr = query->data;
6846 if (ourptr >= ourend && pktptr >= pktend) return(0); // If data identical, not a conflict
6848 if (ourptr >= ourend) return(-1); // Our data ran out first; We lost
6849 if (pktptr >= pktend) return(+1); // Packet data ran out first; We won
6850 if (*pktptr > *ourptr) return(-1); // Our data is numerically lower; We lost
6851 if (*pktptr < *ourptr) return(+1); // Packet data is numerically lower; We won
7149 const rdataOPT *const e = (const rdataOPT *)&m->rec.r.resrec.rdata->u.data[m->rec.r.resrec.rdlength];
7171 ptr = query->data;
7226 // set the anonymous data which is needed below when walk the cache
7228 // may cache only the nsec3RR and not the anonymous data itself.
7700 msg->h.numAdditionals, msg->h.numAdditionals == 1 ? " " : "s", end - msg->data);
7710 msg->h.numAdditionals, msg->h.numAdditionals == 1 ? " " : "s", end - msg->data);
7857 // anonymous data in the cache record.
7916 // Certain data types need more space for in-memory storage than their in-packet rdlength would imply
8054 // For uDNS, TTL zero means: this data is true at this moment, but don't cache it.
8113 RDataBody2 *const rdb = (RDataBody2 *)newcr->smallrdatastorage.data;
8186 const mDNSu8 *ptr = response->data;
8229 const mDNSu8 *ptr = response->data;
8312 const rdataSOA *const soa = (const rdataSOA *)m->rec.r.resrec.rdata->u.data;
8663 const mDNSu8 *ptr = response->data;
8771 const mDNSu8 *ptr = response->data;
8780 response->h.numAdditionals, response->h.numAdditionals == 1 ? " " : "s", end - response->data, LLQType);
8786 // It feels wrong to be throwing away data after the network went to all the trouble of delivering it to us, but
8902 BumpDNSSECStats(m, kStatsActionSet, kStatsTypeMsgSize, (end - response->data));
8948 const rdataOPT *const e = (const rdataOPT *)&m->rec.r.resrec.rdata->u.data[m->rec.r.resrec.rdlength];
9057 RDataBody2 *const rdb = (RDataBody2 *)rr->smallrdatastorage.data;
9338 rdataRRSig *rrsig1 = (rdataRRSig *)(((RDataBody2 *)(r1->resrec.rdata->u.data))->data);
9339 rdataRRSig *rrsig2 = (rdataRRSig *)(((RDataBody2 *)(r2->resrec.rdata->u.data))->data);
9954 mDNSu8 *p = m->omsg.data;
9965 msg->h.numAdditionals, msg->h.numAdditionals == 1 ? " " : "s", end - msg->data);
9979 const rdataOPT *const e = (const rdataOPT *)&m->rec.r.resrec.rdata->u.data[m->rec.r.resrec.rdlength];
10055 mDNSPlatformMemCopy(ar->resrec.rdata->u.data, m->rec.r.resrec.rdata->u.data, RDLengthMem);
10095 p = PutResourceRecordTTLWithLimit(&m->omsg, p, &m->omsg.h.numAdditionals, &opt.resrec, opt.resrec.rroriginalttl, m->omsg.data + AbsoluteMaxDNSMessageData);
10115 const rdataOPT *const e = (const rdataOPT *)&m->rec.r.resrec.rdata->u.data[m->rec.r.resrec.rdlength];
11735 // this routine with the question list data structures in an inconsistent state.
12180 query->Answers, query->qSRV.qname.c, &answer->rdata->u.data);
12431 rr->resrec.rdlength == newrdlength && mDNSPlatformMemSame(rr->resrec.rdata->u.data, newrdata->u.data, newrdlength)))
12561 mDNSu8 *p = set->RR_HINFO.resrec.rdata->u.data;
13869 // (b) packet that contains new data and acks a sequence number higher than the one
13877 mDNSBool data = mDNSfalse;
13898 //if (end - p - 34 - ((t->tcp.offset >> 4) * 4) > 0) data = mDNStrue;
13900 if (end - ((mDNSu8 *)t + tcphlen) > 0) data = mDNStrue;
13901 wake = ((int)(pack - seq) > 0) && ((int)(pseq - ack) >= 0) && data;
13904 if ((t->tcp.flags & TH_ACK) && (data == mDNSfalse) &&
13920 // (b) packet is SYN, SYN+FIN, or plain data packet (no SYN or FIN). We won't wake for FIN alone.
13924 // except for ssh connections, where we'll wake for plain data packets too
14092 (mDNSu8 *)"", 1, // TXT data, length
14851 // Otherwise, stale data lingers for 5-10 seconds, which is not the user-experience people expect from Bonjour.
14867 // Force anything that needs to get zone data to get that information again