Writing raw PPP packets
freebsd-questions-local at be-well.ilk.org
Tue Nov 1 06:20:23 PST 2005
Aniruddha Bohra <bohra at 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
> per write. Currently, only writes to Ethernets and SLIP links are sup-
> 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
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.
More information about the freebsd-questions