Date: 01 Nov 2005 09:20:21 -0500 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: Aniruddha Bohra <bohra@cs.rutgers.edu> Cc: freebsd-questions@freebsd.org Subject: Re: Writing raw PPP packets Message-ID: <443bmgqwka.fsf@be-well.ilk.org> In-Reply-To: <436681DD.2070001@cs.rutgers.edu> References: <436681DD.2070001@cs.rutgers.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Aniruddha Bohra <bohra@cs.rutgers.edu> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?443bmgqwka.fsf>