Searched refs:newrd (Results 1 - 2 of 2) sorted by relevance
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | uds_daemon.c | 1467 RData *newrd = mallocL("RData/update_record", sizeof(RData) - sizeof(RDataBody) + rdsize); local 1468 if (!newrd) FatalError("ERROR: malloc"); 1469 newrd->MaxRDLength = (mDNSu16) rdsize; 1470 mDNSPlatformMemCopy(&newrd->u, rdata, rdlen); 1475 if (rr->resrec.rrtype == kDNSType_TXT && rdlen == 0) { rdlen = 1; newrd->u.txt.c[0] = 0; } 1479 result = mDNS_Update(&mDNSStorage, rr, ttl, rdlen, newrd, update_callback); 1480 if (result) { LogMsg("update_record: Error %d for %s", (int)result, ARDisplayString(&mDNSStorage, rr)); freeL("RData/update_record", newrd); }
|
H A D | mDNS.c | 5760 RData *newrd; local 5819 newrd = mDNSPlatformMemAllocate(sizeof(RData) - sizeof(RDataBody) + rdsize); 5820 if (!newrd) { LogMsg("UpdateKeepaliveRData: ptr NULL"); return mStatus_NoMemoryErr; } 5822 newrd->MaxRDLength = (mDNSu16) rdsize; 5823 mDNSPlatformMemCopy(&newrd->u, txt.c, newrdlength); 5834 SetNewRData(&rr->resrec, newrd, newrdlength); // Update our rdata
|
Completed in 104 milliseconds