Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Jul 2001 11:01:50 -0000
From:      "FreeBSDlover FreeBSDlover" <freebsdlover@hotmail.com>
To:        freebsd-net@freebsd.org
Message-ID:  <F45bg5XmllgYBr4BvRn000024e3@hotmail.com>

next in thread | raw e-mail | index | archive | help
Hi,
In case of configured tunneling in  ip6_output() function at what stage the 
outgoing interface is found as gif_if. I think the
following line number-646 finds the corresponding default gif_if interface 
is found.


                /*code taken from ip6_output*/

644                 if (ifp == NULL) {
645                         if (ro->ro_rt == 0) {
646      ro->ro_rt = rtalloc1((struct sockaddr *)&ro->ro_dst, 0, 0UL);
648                         }
649                         if (ro->ro_rt == 0) {
650                                 ip6stat.ip6s_noroute++;
651                                 error = EHOSTUNREACH;
652                   /* XXX in6_ifstat_inc(ifp, ifs6_out_discard) */
653                                 goto bad;
654                         }
655                         ia = ifatoia6(ro->ro_rt->rt_ifa);
656                         ifp = ro->ro_rt->rt_ifp;
657                         ro->ro_rt->rt_use++;
658                 }
--

And pls explain me when the gif_output() is called
thanks,
FreeBSDlover
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F45bg5XmllgYBr4BvRn000024e3>