From owner-freebsd-net Thu Jul 12 3:10:50 2001 Delivered-To: freebsd-net@freebsd.org Received: from hotmail.com (f265.law11.hotmail.com [64.4.16.140]) by hub.freebsd.org (Postfix) with ESMTP id 063E037B617 for ; Thu, 12 Jul 2001 03:10:42 -0700 (PDT) (envelope-from freebsdlover@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 12 Jul 2001 03:10:42 -0700 Received: from 203.200.20.3 by lw11fd.law11.hotmail.msn.com with HTTP; Thu, 12 Jul 2001 10:10:42 GMT X-Originating-IP: [203.200.20.3] From: "FreeBSDlover FreeBSDlover" To: freebsd-net@freebsd.org Subject: Tunneling! Date: Thu, 12 Jul 2001 10:10:42 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 12 Jul 2001 10:10:42.0876 (UTC) FILETIME=[E8C8E7C0:01C10ABA] 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, I am very thankful to ur suggestions.....I cheked the code and 2 places i commented #ifdef INET6 Change in /netinet/in_proto.c inetsw[] initialization struct ipprotosw inetsw[] = { .... ..... /*# ifdef INET6*/ { SOCK_RAW, &inetdomain, IPPROTO_IPV6, PR_ATOMIC|PR_ADDR, encap4_input, 0, 0, rip_ctloutput, 0, 0, 0, 0, 0, &nousrreqs }, /*#endif*/ .... ....} Change in /net/if_gif.c /*# ifdef INET6*/ case AF_INET6: ifq = &ip6intrq; isr = NETISR_IPV6; break; /*#endif*/ After commenting the #ifdef INET6 ,the tunnel is working....Though this was not a proper way....for time being i did it.because code was not able to execute since somehow INET6 was not defined(pls explian this) And one more question pls answer me.... Actually my machine(Router) has 2 following physical interfaces wb0 : fe80::280:48ff:fed6:8d38 and 192.168.2.1 ed1 : fe80::200:e8ff:fe21:412b and 192.168.3.1 Actually tunnel is being set up between 192.168.3.1 and another machine with 192.168.3.9. When I ping6 -I gif0 ff02::1 the response was from other end of the tunnel and another response from (wb0 : fe80::280:48ff:fed6:8d38 )interface of my machine.Actually I think it should come from ed1. NOTE:Both wb0 and ed1 are connected to the hub. Pls explain me..... --------- --------- --------- | | | | | | | A |----------| R |----------------- | H | | | | | tunnel | | --------- ---------- --------- A=192.1682.2 R = 192.168.3.1 H = 192.168.3.5 H = 192.168.3.5 R = 192.168.3.1 Now I want to communicate from H to A and A to H thro the tunnel.What i have to do for that? I want to ping6 to the other interface(wb0) of router which is NOT the tunnel end point.? with thanks and regds, FreeBSD Lover. _________________________________________________________________________ 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