From owner-freebsd-hackers Mon Dec 8 13:21:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA12303 for hackers-outgoing; Mon, 8 Dec 1997 13:21:10 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA12280 for ; Mon, 8 Dec 1997 13:21:01 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id NAA22860; Mon, 8 Dec 1997 13:14:47 -0800 (PST) Received: from UNKNOWN(), claiming to be "current1.whistle.com" via SMTP by alpo.whistle.com, id smtpd022855; Mon Dec 8 13:14:37 1997 Message-ID: <348C62A9.64880EEB@whistle.com> Date: Mon, 08 Dec 1997 13:12:09 -0800 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: Ruslan Ermilov CC: Feiyi Wang , hackers@freebsd.org Subject: Re: help: divert sockets question References: <199712081612.SAA11172@relay.ucb.crimea.ua> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Ruslan Ermilov wrote: > > Hi! > > I did it the same way. It doesn't work for me ;-( > > In general, I have a packet received trhu udp from remote machine, > and I need to write it as incoming on a local machine. > > Usually, you read the packet from divert socket first using recvfrom(), > then optionally modify it, and then write it back using sendto(). > > My case is differ, because I just need to write a packet as incoming, > not reading it from divert socket first. > > what versions are you using?