diff options
| author | John Gilmore <gnu@toad.com> | 1995-03-29 02:12:14 +0000 |
|---|---|---|
| committer | John Gilmore <gnu@toad.com> | 1995-03-29 02:12:14 +0000 |
| commit | c2fb281de3dcbc03e65a33cbb05adaaef5b3f45a (patch) | |
| tree | e679b4874d52ef34eace0816bb210c074d4289ac /src/include/krb5/GetMyIPAddr.h | |
| parent | 87acb0f2471655640df7aaaa07ef53f27bc02f62 (diff) | |
* k5-errors.h: Rename errors.h (which duplicated a standard Mac
header name, causing a problem).
* AddressXlation.h, GetMyIPAddr.h, MacTCPCommonTypes.h, TCPPB.h,
UDPPB.h: Add MacTCP header files.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5293 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/krb5/GetMyIPAddr.h')
| -rw-r--r-- | src/include/krb5/GetMyIPAddr.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/include/krb5/GetMyIPAddr.h b/src/include/krb5/GetMyIPAddr.h new file mode 100644 index 0000000000..0727c3b4cb --- /dev/null +++ b/src/include/krb5/GetMyIPAddr.h @@ -0,0 +1,37 @@ +/* + GetMyIPAddr.h + C definitions of parameter block entries needed for IP calls + + Copyright Apple Computer, Inc. 1989 + All rights reserved + +*/ + +#ifndef __GETMYIPADDR__ +#define __GETMYIPADDR__ + +#ifndef __MACTCPCOMMONTYPES__ +#include "MacTCPCommonTypes.h" +#endif + +#define ipctlGetAddr 15 /* csCode to get our IP address */ + +#define GetIPParamBlockHeader \ + struct QElem *qLink; \ + short qType; \ + short ioTrap; \ + Ptr ioCmdAddr; \ + ProcPtr ioCompletion; \ + OSErr ioResult; \ + StringPtr ioNamePtr; \ + short ioVRefNum; \ + short ioCRefNum; \ + short csCode + +struct GetAddrParamBlock { + GetIPParamBlockHeader; /* standard I/O header */ + ip_addr ourAddress; /* our IP address */ + long ourNetMask; /* our IP net mask */ + }; + +#endif |
