From owner-freebsd-net@FreeBSD.ORG Thu Mar 20 11:13:27 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F956106564A for ; Thu, 20 Mar 2008 11:13:27 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 530EC8FC1C for ; Thu, 20 Mar 2008 11:13:27 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JcIi1-0007F2-M0 for freebsd-net@freebsd.org; Thu, 20 Mar 2008 11:13:21 +0000 Received: from 195.208.174.178 ([195.208.174.178]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Mar 2008 11:13:21 +0000 Received: from vadim_nuclight by 195.208.174.178 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Mar 2008 11:13:21 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-net@freebsd.org From: Vadim Goncharov Date: Thu, 20 Mar 2008 11:13:08 +0000 (UTC) Organization: Nuclear Lightning @ Tomsk, TPU AVTF Hostel Lines: 26 Message-ID: References: X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 195.208.174.178 X-Comment-To: Alireza Torabi User-Agent: slrn/0.9.8.1 (FreeBSD) Sender: news Subject: Re: bpf packet capture and SOCK_STREAM socket redirects... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vadim_nuclight@mail.ru List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2008 11:13:27 -0000 Hi Alireza Torabi! On Thu, 20 Mar 2008 10:57:39 +0000; Alireza Torabi wrote about 'Re: bpf packet capture and SOCK_STREAM socket redirects...': > That's sort of the problem. I've got a data link capture of the packet > (bpf) and let say I redirect this packet to a SOCK_STREAM on another > machine and the whole thing will work fine (OK after rewritting some > mac and ip and checksums...). > I just need to do this on the SOCK_STREAM of the same machine. If I > try to put it in another way: > Is it possible to do a bpf write of a packet that can be seen by the > interface the bpf is bound to? AFAIK, no. > This means that the interface does it's normal work and the packet > will be deliverd to SOCK_STREAM bound to it. What exactly is your task? May be it is worth consider some other ways if additional details are known. -- WBR, Vadim Goncharov. ICQ#166852181 mailto:vadim_nuclight@mail.ru [Moderator of RU.ANTI-ECOLOGY][FreeBSD][http://antigreen.org][LJ:/nuclight]