From owner-freebsd-hackers Sun Jun 17 17: 0:41 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mta3-rme.xtra.co.nz (mta3-rme.xtra.co.nz [203.96.92.13]) by hub.freebsd.org (Postfix) with ESMTP id 538F637B403 for ; Sun, 17 Jun 2001 17:00:36 -0700 (PDT) (envelope-from davep@afterswish.com) Received: from dave.afterswish.com ([210.54.116.57]) by mta3-rme.xtra.co.nz with ESMTP id <20010618000431.VETK2485867.mta3-rme.xtra.co.nz@dave.afterswish.com> for ; Mon, 18 Jun 2001 12:04:31 +1200 Message-Id: <5.1.0.14.1.20010618114548.01ef31b0@pop.paradise.net.nz> X-Sender: dpreece@pop.paradise.net.nz X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 18 Jun 2001 12:03:09 +1200 To: freebsd-hackers@freebsd.org From: David Preece Subject: Injecting a packet with explicit route. Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Due to the wonder of IPFW and divert sockets I have been merrily catching packets, modifying them and reinjecting back in from userland to great effect for some time now. What I would like (need) to do is much the same, but being able to explicitly state which route to take (for a packet going outwards), or being able to tell which route a packet came in from (for a packet coming inwards). I suspect the necessary stunts are to have access to sufficiently low level networking to be able to capture and write a packet with layer 2 information, which probably involves netgraph? Can anyone think of another way? Oh, and if I do go to netgraph (in itself not a bad thing), do I have to use a kernel mode debugger - just too addicted to KDevelop I guess. Thanks, Dave To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message