Date: Thu, 12 Jul 2001 10:10:42 -0000 From: "FreeBSDlover FreeBSDlover" <freebsdlover@hotmail.com> To: freebsd-net@freebsd.org Subject: Tunneling! Message-ID: <F265zW3l1GM3h3vLgAu00000b42@hotmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F265zW3l1GM3h3vLgAu00000b42>