From owner-freebsd-net Mon Jul 9 4: 1:53 2001 Delivered-To: freebsd-net@freebsd.org Received: from hotmail.com (f45.law11.hotmail.com [64.4.17.45]) by hub.freebsd.org (Postfix) with ESMTP id 9AE3737B401 for ; Mon, 9 Jul 2001 04:01:50 -0700 (PDT) (envelope-from freebsdlover@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 9 Jul 2001 04:01:50 -0700 Received: from 203.200.20.3 by lw11fd.law11.hotmail.msn.com with HTTP; Mon, 09 Jul 2001 11:01:50 GMT X-Originating-IP: [203.200.20.3] From: "FreeBSDlover FreeBSDlover" To: freebsd-net@freebsd.org Date: Mon, 09 Jul 2001 11:01:50 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 09 Jul 2001 11:01:50.0552 (UTC) FILETIME=[8E05DD80:01C10866] Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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