Lines Matching defs:trans
135 struct transp *trans, *prev_trans;
181 trans = (struct transp *)malloc(sizeof (*trans));
182 if (trans == NULL) {
187 (void) memset(trans, 0, sizeof (*trans));
189 tr_head = trans;
191 prev_trans->tr_next = trans;
192 prev_trans = trans;
194 trans->tr_fd = t_open(nconf->nc_device, O_RDWR, NULL);
195 if (trans->tr_fd < 0) {
201 if (t_bind(trans->tr_fd, (struct t_bind *)NULL,
207 trans->tr_taddr =
209 (struct t_bind *)t_alloc(trans->tr_fd, T_BIND, T_ADDR);
210 if (trans->tr_taddr == (struct t_bind *)NULL) {
216 trans->tr_device = nconf->nc_device;
217 FD_SET(trans->tr_fd, &mask);
239 if (trans->tr_addrs == NULL)
240 trans->tr_addrs = a;
337 for (trans = tr_head; trans; trans = trans->tr_next) {
338 for (a = trans->tr_addrs; a; a = a->addr_next) {
366 if (t_sndudata(trans->tr_fd,
419 for (trans = tr_head; trans; trans = trans->tr_next) {
420 if (FD_ISSET(trans->tr_fd, &readfds))
423 if (trans == NULL)
427 t_rdata.addr = trans->tr_taddr->addr;
432 if (t_rcvudata(trans->tr_fd, &t_rdata, &flag) < 0) {
436 trans->tr_device);
445 trans->tr_device);
464 for (curr_addr = trans->tr_addrs; curr_addr;
508 sort_responses(trans)
509 struct transp *trans;
524 for (t = trans; t; t = t->tr_next) {
669 free_transports(trans)
670 struct transp *trans;
676 for (t = trans; t; t = tmpt) {