|
In the QDCRDEVD API (display device), format DEVD0600, at position 875 for a length of 15, is the IP address of the *DSP device. It is already decoded for you. If there is no IP address (SNA device), it will be filled with nulls. Jim K > -----Original Message----- > From: Evan Harris [SMTP:spanner@ihug.co.nz] > Sent: Friday, July 16, 1999 3:00 PM > To: midrange-l@midrange.com > 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 +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.