• PPPx, LANx activity.

    From Ferdinand Grassmann@2:2411/627 to Ian Moote on Thu Nov 22 23:30:06 2001
    Hi Ian!

    Thursday November 22 2001 08:16, you wrote to ALL:

    Distributed.Net's RC5 client (usually) knows when the ppp0 (for example) connection is alive so that it can exchange packets with its server.
    How?

    Hmm, don't know. :-/

    And along the same lines: Injoy knows when a client wants access to the Internet. Again, how?

    IIRC InJoy sets the default route to a fake IP that is "assigned" to the serial
    device it uses for connecting to the Internet. If a program wants to access a computer that has an IP address not existing in your (sub-)net, the request is forwarded to this IP (111.222.111.222 IIRC), and triggers the InJoy DoD feature. So this is simply a question of routing.

    Bye fgrassmann@gmx.net The Unknown/TVC
    BBS (OS/2): This machine's uptime is 0d 9h 46m 30s 623ms.
    Those who can, do. Those who can't, supervise!
    ---
    * Origin: Haben Sie etwas GEGEN MultiTasking? Ja, Win95! (2:2411/627)
  • From David Calafrancesco@1:2624/306 to Ferdinand Grassmann on Fri Nov 23 15:16:26 2001
    Ferdinand Grassmann wrote in a message to Ian Moote:

    Thursday November 22 2001 08:16, you wrote to ALL:

    Distributed.Net's RC5 client (usually) knows when the ppp0 (for example) connection is alive so that it can exchange packets with its server.
    How?

    Hmm, don't know. :-/

    The same way that tools like netstat -a figure it out. There are things that are affected everytime you bring a network adapter online. It has been a real long time since I looked into those types of things. A very simple test would be `netstat -a | grep -i 'PPP0 IP addy' && echo PPP0 is up` wrap it in a wait loop with some sleeps and it can look every xx seconds.

    And along the same lines: Injoy knows when a client wants access to the Internet. Again, how?

    IIRC InJoy sets the default route to a fake IP that is "assigned"
    to the serial device it uses for connecting to the Internet. If a
    program wants to access a computer that has an IP address not
    existing in your (sub-)net, the request is forwarded to this IP (111.222.111.222 IIRC), and triggers the InJoy DoD feature. So this
    is simply a question of routing.

    InJoy installs itself as tcpip network driver and ties into the TCPIP stack. When DoD is active, it simulates the normal connection state as far as the rest
    of the system is concerned and caches the requests and when it sees requests for the external network, dials the connection and sends the packets.

    Dave Calafrancesco, Team OS/2
    dave@drakkar.org

    ... They got the library at Alexandria, they're not getting mine!
    ---
    * Origin: Druid's Grove BBS - (914)/876-2237 (1:2624/306)