Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Sep 1997 22:25:32 +1000 (EST)
From:      "Daniel O'Callaghan" <danny@panda.hilink.com.au>
To:        doconnor@ist.flinders.edu.au
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Divert sockets..
Message-ID:  <Pine.BSF.3.91.970907222409.818S@panda.hilink.com.au>
In-Reply-To: <199709070853.SAA03149@holly.rd.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sun, 7 Sep 1997, Daniel J. O'Connor wrote:

> Hi,
> I was wondering if its possible to write a program which would do
> 'dial on demand', by grabbing packets, and seeing if they are destined
> to go out of the system, and if so, run a script(which would cause a
> dialup). I know ijppp can do this, but I have problems with ijppp =)
> The only problem I can see is that since a default route wouldn't be
> established yet(since you aren't dialed up), the packets would be
> killed off before they pass through a divert socket.(I don't know much
> about how that stuff works :)

You could do it with divert(4) - divert an incoming packet, rather than 
an outgoing packet, and only put it back into the kernel if the link is up.

/*  Daniel O'Callaghan                                                     */
/*  HiLink Internet <http://www.hilink.com.au/>;       danny@hilink.com.au  */
/*  FreeBSD - works hard, plays hard...                 danny@freebsd.org  */





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970907222409.818S>