]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSMacOS9/mDNSMacOS9.h
mDNSResponder-58.8.tar.gz
[apple/mdnsresponder.git] / mDNSMacOS9 / mDNSMacOS9.h
1 /*
2 * Copyright (c) 2002-2003 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22
23 Change History (most recent first):
24
25 $Log: mDNSMacOS9.h,v $
26 Revision 1.8 2003/08/12 19:56:24 cheshire
27 Update to APSL 2.0
28
29 */
30
31 // ***************************************************************************
32 // Classic Mac (Open Transport) structures
33
34 #include <OpenTransport.h>
35 #include <OpenTptInternet.h>
36 #include <OpenTptClient.h>
37
38 typedef enum
39 {
40 mOT_Reset = 0,
41 mOT_Start,
42 mOT_ReusePort,
43 mOT_RcvDestAddr,
44 mOT_LLScope,
45 mOT_AdminScope,
46 mOT_Bind,
47 mOT_Ready
48 } mOT_State;
49
50 typedef struct { TOptionHeader h; mDNSv4Addr multicastGroupAddress; mDNSv4Addr InterfaceAddress; } TIPAddMulticastOption;
51 typedef struct { TOptionHeader h; UInt32 flag; } TSetBooleanOption;
52
53 // TOptionBlock is a union of various types.
54 // What they all have in common is that they all start with a TOptionHeader.
55 typedef union { TOptionHeader h; TIPAddMulticastOption m; TSetBooleanOption b; } TOptionBlock;
56
57 struct mDNS_PlatformSupport_struct
58 {
59 EndpointRef ep;
60 UInt32 mOTstate; // mOT_State enum
61 TOptionBlock optBlock;
62 TOptMgmt optReq;
63 long OTTimerTask;
64 UInt32 nesting;
65 NetworkInterfaceInfo interface;
66 };