From owner-freebsd-questions@FreeBSD.ORG Tue Nov 1 14:20:23 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C795116A41F for ; Tue, 1 Nov 2005 14:20:23 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail22.sea5.speakeasy.net (mail22.sea5.speakeasy.net [69.17.117.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A19D43D48 for ; Tue, 1 Nov 2005 14:20:23 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 19332 invoked from network); 1 Nov 2005 14:20:22 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail22.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 1 Nov 2005 14:20:22 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 04DBA2841D; Tue, 1 Nov 2005 09:20:21 -0500 (EST) Sender: lowell@be-well.ilk.org To: Aniruddha Bohra References: <436681DD.2070001@cs.rutgers.edu> From: Lowell Gilbert Date: 01 Nov 2005 09:20:21 -0500 In-Reply-To: <436681DD.2070001@cs.rutgers.edu> Message-ID: <443bmgqwka.fsf@be-well.ilk.org> Lines: 22 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Writing raw PPP packets X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Nov 2005 14:20:23 -0000 Aniruddha Bohra writes: > From the bpf(4) manpage : > > A packet can be sent out on the network by writing to a bpf file descrip- > tor. The writes are unbuffered, meaning only one packet can be > processed > per write. Currently, only writes to Ethernets and SLIP links are sup- > ported. > > > Is it possible to direct IP packets to the PPP interface without > the kernel > routing the packets? This is for a case where the default address to a > host is over another interface and I want to force some packets > through the PPP > interface. Sure, you can do it that way. But (if I remember correctly; it's not my usual IP implementation) normal socket operations should let you bind to an interface anyway. Via its address, maybe.