From owner-freebsd-net Mon Jun 11 13:33:13 2001 Delivered-To: freebsd-net@freebsd.org Received: from superconductor.rush.net (superconductor.rush.net [208.9.155.8]) by hub.freebsd.org (Postfix) with ESMTP id 963CF37B403 for ; Mon, 11 Jun 2001 13:33:09 -0700 (PDT) (envelope-from bright@superconductor.rush.net) Received: (from bright@localhost) by superconductor.rush.net (8.11.2/8.11.2) id f5BKX8D00177 for net@freebsd.org; Mon, 11 Jun 2001 16:33:08 -0400 (EDT) Date: Mon, 11 Jun 2001 16:33:07 -0400 From: Alfred Perlstein To: net@freebsd.org Subject: finding ifp from inpcb Message-ID: <20010611163307.O1832@superconductor.rush.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0us X-all-your-base: are belong to us. Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org If I have an inpcb and an packet what's the best way to send out the packet via the inpcb's interface? I think I want to call ether_output_frame, but I can't figure out how to get the ifp from the inpcb. I'm pretty sure I have to use the routeing code to do so, however it's not very clear to me what I should be calling and with what parameters. -- -Alfred Perlstein [alfred@freebsd.org] Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message