From owner-freebsd-net@FreeBSD.ORG Fri Dec 22 15:57:05 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D1C0916A505 for ; Fri, 22 Dec 2006 15:57:05 +0000 (UTC) (envelope-from fxcabral@yahoo.com.br) Received: from smtp102.mail.mud.yahoo.com (smtp102.mail.mud.yahoo.com [209.191.85.212]) by mx1.freebsd.org (Postfix) with SMTP id 83F3413C41A for ; Fri, 22 Dec 2006 15:57:05 +0000 (UTC) (envelope-from fxcabral@yahoo.com.br) Received: (qmail 63150 invoked from network); 22 Dec 2006 15:43:43 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.br; h=Received:X-YMail-OSG:Subject:From:To:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=F4gxQRSP0HkJcH4uXt//4Wz4KqtW3eNjOb6//K0KKtfK9octv1O+a8dpMn6FRroOcsMrMcmKD6eHssjZS7yNY/g8ugK+cjUJtJSgbndKovm908cZXGL05cVK/M9LhysWrzPl+L0Ar1PMcLRzRCwf1KuQTaJU3bMGXM0aGo38Qn4= ; Received: from unknown (HELO ?10.1.1.2?) (fxcabral@201.79.193.81 with login) by smtp102.mail.mud.yahoo.com with SMTP; 22 Dec 2006 15:43:42 -0000 X-YMail-OSG: aJ0DQKcVM1lbTZ_jEOC7jaH444x_O2bCUv2gyD8iPq_cvzkJ1Y.ZMZNnHj9..wWHdTEqYoBZ8.flcyTMII_FzR26r8HqAfP0.USmPpkaxMmpWKHrn_LBYzOe0EOu64W6imOV8fXLUcEP9Os- From: =?ISO-8859-1?Q?Fabr=EDcio?= Barros Cabral To: freebsd-net@freebsd.org Content-Type: text/plain Date: Fri, 22 Dec 2006 12:43:29 -0300 Message-Id: <1166802209.7642.17.camel@hades.no-ip.org> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 Content-Transfer-Encoding: 7bit Subject: Intercepting a packet, changing it and re-injecting into the network X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Dec 2006 15:57:05 -0000 Hello everybody! I'm developing a network application which needs *to intercept* a packet (not just *copy* a packet, like libpcap does), move this packet into my application (userland), do some checking in the packet and according with some heuristics, the application may change the payload and re-inject the modified packet into the network. Note that sometimes, I'll change the payload, drop the packet or just let it go. So, how can a I do that in FreeBSD? I can use 6.1, 7.1, any version. Thanks in advance, --fx _______________________________________________________ Yahoo! Mail - Sempre a melhor opção para você! Experimente já e veja as novidades. http://br.yahoo.com/mailbeta/tudonovo/