From owner-freebsd-questions Thu Mar 16 18:31:21 2000 Delivered-To: freebsd-questions@freebsd.org Received: from postfix1.free.fr (postfix1.free.fr [212.27.32.21]) by hub.freebsd.org (Postfix) with ESMTP id 342A037C2BB for ; Thu, 16 Mar 2000 18:31:00 -0800 (PST) (envelope-from usebsd@free.fr) Received: from safi (paris11-nas5-23-65.dial.proxad.net [213.228.23.65]) by postfix1.free.fr (Postfix) with SMTP id 44392284CA; Fri, 17 Mar 2000 03:30:56 +0100 (MET) From: "mouss" To: "Ali Alaoui El Hassani" <961BE653994@stud.alakhawayn.ma>, Subject: RE: Ip encapsulation Date: Fri, 17 Mar 2000 03:31:07 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" 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) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG you'll certainly have to modify ip_output.c and/or ip_input.c (if you want packets addressed to the host sent to other hosts). get yourself a copy of TCP/IP illustrated, volume 2. mainly, you need to take each mbuf corresponding to an ip packet and prepend a new mbuf containing the outer ip header. On the other hand, why do you need to encapsulate the packets? you could simply redirect them with something like ipfilter. regards, mouss > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Ali Alaoui El > Hassani > Sent: Tuesday, March 14, 2000 5:54 PM > To: freebsd-questions@FreeBSD.ORG > Subject: Ip encapsulation > > > Dear all, > I am implementing a dispatcher that takes an incoming packet and forwards > it to different server. For this purpose, I want to encapsulate the > incoming packet at the level of the dispatcher so that it has the ip > destination for the a recieving server. > do you have any deep idea? > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message