Home
last modified time | relevance | path

Searched refs:msgLen (Results 1 – 5 of 5) sorted by relevance

/titanic_50/usr/src/lib/libslp/clib/
H A DSLPReg.c197 size_t msgLen, tmplen, len = 0; in packSrvReg() local
213 msgLen = in packSrvReg()
227 if (!(m = calloc(msgLen, 1))) { in packSrvReg()
247 if ((err = slp_add_header(hp->locale, m, msgLen, SRVREG, 0, &len)) in packSrvReg()
256 if ((err = slp_add_sht(m, msgLen, lifetime, &len)) != SLP_OK) in packSrvReg()
263 if ((err = slp_add_string(m, msgLen, url, &len)) != SLP_OK) in packSrvReg()
281 if ((err = slp_add_string(m, msgLen, type, &len)) != SLP_OK) in packSrvReg()
283 if ((err = slp_add_string(m, msgLen, scope, &len)) != SLP_OK) in packSrvReg()
290 if ((err = slp_add_string(m, msgLen, attrs, &len)) != SLP_OK) in packSrvReg()
306 msgLen += (*msg)->msgiov[SLP_URL_AUTH].iov_len; in packSrvReg()
[all …]
H A DSLPFindSrvs.c332 size_t len, msgLen, tmplen; in slp_packSrvRqst() local
361 msgLen = 2 + /* prlist length */ in slp_packSrvRqst()
367 if (!(msg->msg = calloc(1, msgLen))) { in slp_packSrvRqst()
394 err = slp_add_string(msg->msg, msgLen, type, &len); in slp_packSrvRqst()
404 err = slp_add_string(msg->msg, msgLen, filter, &len); in slp_packSrvRqst()
408 err = slp_add_string(msg->msg, msgLen, spi, &len); in slp_packSrvRqst()
435 size_t len, msgLen; in slp_packSrvRqst_single() local
437 msgLen = in slp_packSrvRqst_single()
444 if (!(*msg = calloc(msgLen, 1))) { in slp_packSrvRqst_single()
451 err = slp_add_header(lang, *msg, msgLen, SRVRQST, msgLen, &len); in slp_packSrvRqst_single()
[all …]
H A DSLPFindAttrs.c303 size_t len, tmplen, msgLen; in slp_packAttrRqst() local
332 msgLen = 2 + /* prlist length */ in slp_packAttrRqst()
338 if (!(msg->msg = calloc(1, msgLen))) { in slp_packAttrRqst()
365 err = slp_add_string(msg->msg, msgLen, url, &len); in slp_packAttrRqst()
375 err = slp_add_string(msg->msg, msgLen, ids, &len); in slp_packAttrRqst()
381 err = slp_add_string(msg->msg, msgLen, spi, &len); in slp_packAttrRqst()
404 size_t len, msgLen; in slp_packAttrRqst_single() local
406 msgLen = in slp_packAttrRqst_single()
413 if (!(*msg = calloc(msgLen, 1))) { in slp_packAttrRqst_single()
419 err = slp_add_header(lang, *msg, msgLen, ATTRRQST, msgLen, &len); in slp_packAttrRqst_single()
[all …]
H A DSLPFindSrvTypes.c136 size_t len, nalen, msgLen, tmplen; in slp_packSrvTypeRqst() local
164 msgLen = 2 + /* prlist length */ in slp_packSrvTypeRqst()
168 if (!(msg->msg = calloc(1, msgLen))) { in slp_packSrvTypeRqst()
196 err = slp_add_sht(msg->msg, msgLen, 0xffff, &len); in slp_packSrvTypeRqst()
198 err = slp_add_string(msg->msg, msgLen, na, &len); in slp_packSrvTypeRqst()
H A Dslp_net.c640 size_t msgLen, off; in make_header() local
646 msgLen = slp_hdrlang_length(hp); in make_header()
648 hp->msg.iov[0].iov_len = msgLen; /* now the length of the hdr */ in make_header()
651 hp->msg.prlist->iov_base = header + msgLen; in make_header()
654 msgLen += hp->msg.iov[i].iov_len; in make_header()
656 msgLen += slen; in make_header()
660 hp->fid, msgLen, &off)) != SLP_OK) in make_header()