Lines Matching refs:tce
168 struct tcp_cont *tce = NULL;
176 tce = find_tcp_cont(dst_port);
177 if (tce) {
178 if (add_tcp_cont(tce, slp, fraglen)) {
179 slp = tce->msg;
180 fraglen = tce->curr_offset;
185 if (*slp == 2 || tce)
624 struct tcp_cont *tce = malloc(sizeof (*tce));
632 tce->dst_port = dst_port;
633 tce->msg = malloc(totallen);
634 memcpy(tce->msg, msg, fraglen);
635 tce->totallen = totallen;
636 tce->curr_offset = fraglen;
638 tcp_cont[current_tcp_cont++] = tce;
644 static int add_tcp_cont(struct tcp_cont *tce, char *msg, int fraglen) {
645 if ((fraglen + tce->curr_offset) > tce->totallen)
648 memcpy(tce->msg + tce->curr_offset, msg, fraglen);
649 tce->curr_offset += fraglen;