From owner-freebsd-net Wed Jan 16 15:57: 4 2002 Delivered-To: freebsd-net@freebsd.org Received: from web20204.mail.yahoo.com (web20204.mail.yahoo.com [216.136.226.59]) by hub.freebsd.org (Postfix) with SMTP id B054337B402 for ; Wed, 16 Jan 2002 15:56:55 -0800 (PST) Message-ID: <20020116235654.3630.qmail@web20204.mail.yahoo.com> Received: from [128.114.49.49] by web20204.mail.yahoo.com via HTTP; Wed, 16 Jan 2002 15:56:54 PST Date: Wed, 16 Jan 2002 15:56:54 -0800 (PST) From: radhika sinha Subject: urgent question regarding IP-in-IP encapsulation To: freebsd-hackers@FreeBSD.org Cc: freebsd-net@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 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