source: trunk/third/cns/src/include/GetMyIPAddr.h @ 8789

Revision 8789, 758 bytes checked in by ghudson, 28 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r8788, which included commits to RCS files with non-trunk default branches.
Line 
1/*
2        GetMyIPAddr.h   
3        C definitions of parameter block entries needed for IP calls
4
5    Copyright Apple Computer, Inc. 1989
6    All rights reserved
7       
8*/
9
10#ifndef __GETMYIPADDR__
11#define __GETMYIPADDR__
12
13#ifndef __MACTCPCOMMONTYPES__
14#include "MacTCPCommonTypes.h"
15#endif
16
17#define ipctlGetAddr            15                      /* csCode to get our IP address */
18
19#define GetIPParamBlockHeader   \
20        struct QElem *qLink;    \
21        short qType;                    \
22        short ioTrap;                   \
23        Ptr ioCmdAddr;                  \
24        ProcPtr ioCompletion;   \
25        OSErr ioResult;                 \
26        StringPtr ioNamePtr;    \
27        short ioVRefNum;                \
28        short ioCRefNum;                \
29        short csCode
30
31struct GetAddrParamBlock {
32        GetIPParamBlockHeader;          /* standard I/O header */
33        ip_addr ourAddress;                     /* our IP address */
34        long    ourNetMask;                     /* our IP net mask */
35        };
36
37#endif
Note: See TracBrowser for help on using the repository browser.