- T( trace(T_TUNNEL, "tunnel: attached interface %s to peer `%s'",
- tun_ifname(t), p_name(p)); )
- return (0);
-}
-
-/* --- @tun_ifname@ --- *
- *
- * Arguments: @tunnel *t@ = pointer to tunnel block
- *
- * Returns: A pointer to the tunnel's interface name.
- */
-
-const char *tun_ifname(tunnel *t)
-{
- static char buf[8];
- sprintf(buf, "tun%u", t->n);
- return (buf);
+ T( trace(T_TUNNEL, "tun-bsd: attached interface %s to peer `%s'",
+ t_ifname(t), p_name(p)); )
+ return (t);