• Subject: Re: Retrieve IP Address using Telnet exit point
  • From: leif@xxxxxxx
  • Date: Fri, 16 Jul 1999 18:09:04 -0500

each field is a two-character hex code.
convert that to a decimal number with no leading zeroes (except if
the whole number is zero).
Move each number to a string, appending a period when needed.
set up a
----- Original Message -----
From: Evan Harris <spanner@ihug.co.nz>
To: <midrange-l@midrange.com>
Sent: Friday, July 16, 1999 4:59 PM
Subject: Retrieve IP Address using Telnet exit point


> 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 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:
Replies:

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 on our policy page. If you have questions about this, please contact [javascript protected email address].