Lines Matching defs:primary

133 	request_state *primary;			// If this operation is on a shared socket, pointer to primary
140 // Note: On a shared connection these fields in the primary structure, including hdr, are re-used
321 // Now, if this request_state is not subordinate to some other primary, close file descriptor and discard replies
322 if (!req->primary)
386 // If our request is sharing a connection, then we append our reply_state onto the primary's list
389 request_state *r = req->primary ? req->primary : req;
944 if ((*req)->primary == request)
948 if (tmp->primary == tmp) LogMsg("connection_termination ERROR (*req)->primary == *req for %p %d", tmp, tmp->sd);
980 if ((*req)->primary == request &&
1085 if (req->primary == request &&
1163 // 1. We have updated the primary TXT record of the service
3806 newreq->primary = req;
3866 if (req->primary) req->primary->errsd = req->primary->sd;
3871 if (req->primary) req = req->primary;
4128 if (req->primary) mDNS_snprintf(prefix, sizeof(prefix), " -> ");
4141 for (r = req->next; r; r=r->next) if (r->primary == req) num_ops++;
4147 for (r = req->next; r; r=r->next) if (r->primary == req) LogClientInfo(m, r);
4420 if (req->primary) // If this is a subbordinate operation, check that the parent is in the list
4422 for (r = all_requests; r && r != req; r=r->next) if (r == req->primary) goto foundparent;
4576 if (req->primary == req)
4577 LogMemCorruption("UDS request list: req->primary should not point to self %p/%d", req, req->sd);
4579 if (req->primary && req->replies)
4581 req, req->sd, req->primary && req->replies);
4583 p = req->primary;
4585 LogMemCorruption("UDS request list: req %p primary %p is misaligned (%d)", req, p, req->sd);
4587 LogMemCorruption("UDS request list: req %p primary %p is garbage (%d)", req, p, p->sd);
4685 // Note: Only primary req's have reply lists, not subordinate req's.