summaryrefslogtreecommitdiffstats
path: root/src/include/krb5/GetMyIPAddr.h
blob: 0727c3b4cbdee55a25bd90a29d4c8546364db87a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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