Lines Matching refs:reass

132 	sip_reass_entry_t	*reass;  in sip_get_tcp_msg()  local
165 reass = pvt_data->sip_conn_obj_reass; in sip_get_tcp_msg()
166 assert(reass != NULL); in sip_get_tcp_msg()
167 if (reass->sip_reass_msg == NULL) { in sip_get_tcp_msg()
168 assert(reass->sip_reass_msglen == 0); in sip_get_tcp_msg()
180 reass->sip_reass_msg = msg; in sip_get_tcp_msg()
181 reass->sip_reass_msglen = *msglen; in sip_get_tcp_msg()
182 if (value != -1 && value < reass->sip_reass_msglen) in sip_get_tcp_msg()
190 int newlen = reass->sip_reass_msglen + *msglen; in sip_get_tcp_msg()
193 assert(strlen(reass->sip_reass_msg) == reass->sip_reass_msglen); in sip_get_tcp_msg()
202 (void) strncpy(newmsg, reass->sip_reass_msg, in sip_get_tcp_msg()
203 reass->sip_reass_msglen); in sip_get_tcp_msg()
204 newmsg[reass->sip_reass_msglen] = '\0'; in sip_get_tcp_msg()
208 reass->sip_reass_msglen = newlen; in sip_get_tcp_msg()
210 free(reass->sip_reass_msg); in sip_get_tcp_msg()
211 reass->sip_reass_msg = newmsg; in sip_get_tcp_msg()
213 value = sip_get_msglen(reass->sip_reass_msg, reass->sip_reass_msglen); in sip_get_tcp_msg()
214 if (value == -1 || value > reass->sip_reass_msglen) { in sip_get_tcp_msg()
219 if (value == reass->sip_reass_msglen) { in sip_get_tcp_msg()
220 msg = reass->sip_reass_msg; in sip_get_tcp_msg()
221 *msglen = reass->sip_reass_msglen; in sip_get_tcp_msg()
222 reass->sip_reass_msg = NULL; in sip_get_tcp_msg()
223 reass->sip_reass_msglen = 0; in sip_get_tcp_msg()
227 splitlen = reass->sip_reass_msglen - value; in sip_get_tcp_msg()
238 (void) strncpy(msg, reass->sip_reass_msg, value); in sip_get_tcp_msg()
240 (void) strncpy(splitbuf, reass->sip_reass_msg + value, splitlen); in sip_get_tcp_msg()
242 free(reass->sip_reass_msg); in sip_get_tcp_msg()
243 reass->sip_reass_msg = splitbuf; in sip_get_tcp_msg()
244 reass->sip_reass_msglen = splitlen; in sip_get_tcp_msg()