Searched defs:branchid (Results 1 - 3 of 3) sorted by relevance

/illumos-gate/usr/src/lib/libsip/common/
H A Dsip_gids.c186 * Generate branchid for a transaction
192 char *branchid; local
207 if ((branchid = (char *)malloc(SIP_BRANCHID_LEN + 1)) == NULL)
211 free(branchid);
214 (void) snprintf(branchid, SIP_BRANCHID_LEN + 1, "z9hG4bK%s",
217 return (branchid);
239 if ((branchid = malloc(len)) == NULL)
275 (void) snprintf(&branchid[2 * i], len - (2 * i), "%02x",
278 return (branchid);
H A Dsip_xaction.c294 sip_xaction_find(char *branchid, _sip_msg_t *msg, int which) argument
316 if (sip_find_md5_digest(branchid, msg, hash_index, method) != 0)
328 sip_xaction_create(sip_conn_object_t obj, _sip_msg_t *msg, char *branchid, argument
354 if (branchid == NULL) {
363 trans->sip_xaction_branch_id = (char *)malloc(strlen(branchid)
371 (void) strncpy(trans->sip_xaction_branch_id, branchid,
372 strlen(branchid));
373 trans->sip_xaction_branch_id[strlen(branchid)] = '\0';
420 if ((ret = sip_xaction_add(trans, branchid, msg, method)) != 0) {
443 char *branchid; local
571 sip_xaction_add(sip_xaction_t *trans, char *branchid, _sip_msg_t *msg, sip_method_t method) argument
[all...]
H A Dsip_hdrs_ui.c660 * adds branchid to the topmost VIA header, if a branchid already exists,
664 sip_add_branchid_to_via(sip_msg_t sip_msg, char *branchid) argument
675 * If there is already a branchid param, error?
685 plen = strlen(branchid) + strlen("branch=") + 1;
689 (void) snprintf(param, plen, "branch=%s", branchid);

Completed in 79 milliseconds