Lines Matching refs:tunnel
50 void add_payload_hdr (struct tunnel *t, struct call *c, struct buffer *buf)
220 * entire tunnel
224 for this tunnel. That means Hello's and any reminaing
232 if ((((struct buffer *) se->data)->tunnel == c->container)
233 || ((struct tunnel *) se->data == c->container))
241 if ((struct tunnel *) se->data != c->container)
249 if ((struct tunnel *) se->data != c->container)
264 /* Really close this tunnel, as our
267 log (LOG_DEBUG, "%s: Actually closing tunnel %d\n", __FUNCTION__,
303 log (LOG_DEBUG, "%s: enqueing close message for tunnel\n",
482 struct call *new_call (struct tunnel *parent)
570 struct call *get_tunnel (int tunnel, unsigned int addr, int port)
572 struct tunnel *st;
573 if (tunnel)
578 if (st->ourtid == tunnel)
587 struct call *get_call (int tunnel, int call, unsigned int addr, int port)
591 * If we have tunnel and call ID's then they are unique.
592 * Otherwise, if the tunnel is 0, look for an existing connection
593 * or create a new tunnel.
595 struct tunnel *st;
597 if (tunnel)
602 if (st->ourtid == tunnel)
613 log (LOG_DEBUG, "%s: can't find call %d in tunnel %d\n",
614 __FUNCTION__, call, tunnel);
624 log (LOG_DEBUG, "%s:can't find tunnel %d\n", __FUNCTION__, tunnel);
633 a tunnel silly! */
638 "%s: call ID specified, but no tunnel ID specified. tossing.\n",
643 * Well, nothing appropriate... Let's add a new tunnel, if
649 "%s: allocating new tunnel for host %s, port %d.\n",
655 "%s: unable to allocate new tunnel for host %s, port %d.\n",