1 /* -*- Mode: C; tab-width: 4 -*-
3 * Copyright (c) 2002-2003 Apple Computer, Inc. All rights reserved.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 Change History (most recent first):
19 $Log: mDNSMacOS9.h,v $
20 Revision 1.11 2006/08/14 23:24:29 cheshire
21 Re-licensed mDNSResponder daemon source code under Apache License, Version 2.0
23 Revision 1.10 2004/03/12 21:30:26 cheshire
24 Build a System-Context Shared Library from mDNSCore, for the benefit of developers
25 like Muse Research who want to be able to use mDNS/DNS-SD from GPL-licensed code.
27 Revision 1.9 2004/02/09 23:25:35 cheshire
28 Need to set TTL 255 to interoperate with peers that check TTL (oops!)
30 Revision 1.8 2003/08/12 19:56:24 cheshire
35 // ***************************************************************************
36 // Classic Mac (Open Transport) structures
38 //#include <Files.h> // OpenTransport.h requires this
39 #include <OpenTransport.h>
40 #include <OpenTptInternet.h>
41 #include <OpenTptClient.h>
45 mOT_Closed
= 0, // We got kOTProviderIsClosed message
46 mOT_Reset
, // We got xOTStackWasLoaded message
47 mOT_Start
, // We've called OTAsyncOpenEndpoint
48 mOT_ReusePort
, // Have just done kReusePortOption
49 mOT_RcvDestAddr
, // Have just done kRcvDestAddrOption
50 mOT_SetUTTL
, // Have just done kSetUnicastTTLOption
51 mOT_SetMTTL
, // Have just done kSetMulticastTTLOption
52 mOT_LLScope
, // Have just done kAddLinkMulticastOption
53 // mOT_AdminScope, // Have just done kAddAdminMulticastOption
54 mOT_Bind
, // We've just called OTBind
55 mOT_Ready
// Got T_BINDCOMPLETE; Interface is registered and active
58 typedef struct { TOptionHeader h
; mDNSv4Addr multicastGroupAddress
; mDNSv4Addr InterfaceAddress
; } TIPAddMulticastOption
;
59 typedef struct { TOptionHeader h
; UInt8 val
; } TSetByteOption
;
60 typedef struct { TOptionHeader h
; UInt32 flag
; } TSetBooleanOption
;
62 // TOptionBlock is a union of various types.
63 // What they all have in common is that they all start with a TOptionHeader.
64 typedef union { TOptionHeader h
; TIPAddMulticastOption m
; TSetByteOption i
; TSetBooleanOption b
; } TOptionBlock
;
66 struct mDNS_PlatformSupport_struct
69 UInt32 mOTstate
; // mOT_State enum
70 TOptionBlock optBlock
;
74 NetworkInterfaceInfo interface
;