• Subject: Retrieve IP Address using Telnet exit point
  • From: Evan Harris <spanner@xxxxxxxxxx>
  • Date: Sat, 17 Jul 1999 09:59:52 +1200

Morning all,

I have been working on developing a telnet exit program, and have ended up
stuck at the point where I try and retrieve an IP address from the device
information returned from the exit program.

I can see the data structure that holds the address (in hex) and have been
able to calculate the address from it manually, but can't figure out how to
get it from the 4 byte hex code into decimal notation programmatocally to
allow me to do some easier compares.

At the moment I am looking to log where our Telnet connections are coming
from, but down the track I'd like to be able to be able to use a host mask
to validate who can connect, and possibly provide device masks to the
connection rather than using the QPADEV* devices.

I'm sure I saw someone mention that they had done this and wondered how
they accomplished this task. 

By the way, I have searched the archives but couldn't hit what I was after.
I also looked at the IBM exit program, but don't have a C compiler, even
though some of the ideas in it were quite useful for what I want to do down
the track.

Cheers
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact [javascript protected email address].