From owner-freebsd-net Thu Jan 17 0:53:52 2002 Delivered-To: freebsd-net@freebsd.org Received: from smtp014.mail.yahoo.com (smtp014.mail.yahoo.com [216.136.173.58]) by hub.freebsd.org (Postfix) with SMTP id 8F00F37B402 for ; Thu, 17 Jan 2002 00:53:48 -0800 (PST) Received: from unknown (HELO kshitij1) (203.124.128.243) by smtp.mail.vip.sc5.yahoo.com with SMTP; 17 Jan 2002 08:53:46 -0000 From: "Kshitij Gunjikar" To: Subject: RE: urgent question regarding IP-in-IP encapsulation Date: Thu, 17 Jan 2002 14:33:54 +0530 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20020116235654.3630.qmail@web20204.mail.yahoo.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 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 Radhika, It's not clear what is not working correctly. The encapsulation, the forwarding ? Also, please ensure that the interface you are forwarding to supports multicasting and you put the source address of the outgoing interface. Regards Kshitij -----Original Message----- From: owner-freebsd-net@freebsd.org [mailto:owner-freebsd-net@freebsd.org]On Behalf Of radhika sinha Sent: Thursday, January 17, 2002 5:27 AM To: freebsd-hackers@freebsd.org Cc: freebsd-net@freebsd.org Subject: urgent question regarding IP-in-IP encapsulation Hi, I have a question regarding Ip-in-IP encapsulation in freeBSD. In my implementation, I want a multicast router to encapsulate multicast packets destined for certain groups with an extra IP header before forwarding them out. I am giving below some of the code: if(IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) { struct in_multi *inm; if(ip_mrouter){ 1) Check if the destination address belongs to the group of packets that need to be encapsulated 2)calls my encapsulation function which returns an MBUF with the extra header 3)The encapsulated packet is then sent to ip_mforward } For some reason this does not seem to be working correctly, I would appreciate if someone can point out the mistake I am making here. Thanks a lot, Radhika __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message