]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSMacOSX/helpermsg.defs
mDNSResponder-214.tar.gz
[apple/mdnsresponder.git] / mDNSMacOSX / helpermsg.defs
1 /* -*- Mode: C; tab-width: 4 -*-
2 *
3 * Copyright (c) 2007 Apple Inc. All rights reserved.
4 *
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
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
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.
16
17 Change History (most recent first):
18
19 $Log: helpermsg.defs,v $
20 Revision 1.17 2009/04/20 20:40:14 cheshire
21 <rdar://problem/6786150> uDNS: Running location cycling caused configd and mDNSResponder to deadlock
22 Changed mDNSPreferencesSetName (and similar) routines from MIG "routine" to MIG "simpleroutine"
23 so we don't deadlock waiting for a result that we're just going to ignore anyway
24
25 Revision 1.16 2009/03/20 22:12:28 mcguire
26 <rdar://problem/6703952> Support CFUserNotificationDisplayNotice in mDNSResponderHelper
27 Make the call to the helper a simpleroutine: don't wait for an unused return value
28
29 Revision 1.15 2009/03/20 20:52:22 cheshire
30 <rdar://problem/6703952> Support CFUserNotificationDisplayNotice in mDNSResponderHelper
31
32 Revision 1.14 2009/03/14 01:42:56 mcguire
33 <rdar://problem/5457116> BTMM: Fix issues with multiple .Mac accounts on the same machine
34
35 Revision 1.13 2009/01/22 02:14:26 cheshire
36 <rdar://problem/6515626> Sleep Proxy: Set correct target MAC address, instead of all zeroes
37
38 Revision 1.12 2009/01/14 01:38:43 mcguire
39 <rdar://problem/6492710> Write out DynamicStore per-interface SleepProxyServer info
40
41 Revision 1.11 2008/11/04 23:54:09 cheshire
42 Added routine mDNSSetARP(), used to replace an SPS client's entry in our ARP cache with
43 a dummy one, so that IP traffic to the SPS client initiated by the SPS machine can be
44 captured by our BPF filters, and used as a trigger to wake the sleeping machine.
45
46 Revision 1.10 2008/10/24 01:42:36 cheshire
47 Added mDNSPowerRequest helper routine to request a scheduled wakeup some time in the future
48
49 Revision 1.9 2008/10/20 22:01:28 cheshire
50 Made new Mach simpleroutine "mDNSRequestBPF"
51
52 Revision 1.8 2008/09/26 21:18:13 cheshire
53 Tidy up code layout
54
55 Revision 1.7 2008/08/13 23:04:06 mcguire
56 <rdar://problem/5858535> handle SIGTERM in mDNSResponderHelper
57 Preparation: rename message function, as it will no longer be called only on idle exit
58
59 Revision 1.6 2007/09/07 22:44:03 mcguire
60 <rdar://problem/5448420> Move CFUserNotification code to mDNSResponderHelper
61
62 Revision 1.5 2007/09/04 22:32:58 mcguire
63 <rdar://problem/5453633> BTMM: BTMM overwrites /etc/racoon/remote/anonymous.conf
64
65 Revision 1.4 2007/08/23 21:53:13 cheshire
66 Added $Log header
67
68 Revision 1.3 2007/08/18 01:02:03 mcguire
69 <rdar://problem/5415593> No Bonjour services are getting registered at boot
70
71 Revision 1.2 2007/08/15 23:20:28 mcguire
72 <rdar://problem/5408105> BTMM: racoon files can get corrupted if autotunnel is listening on port > 32767
73
74 Revision 1.1 2007/08/08 22:34:58 mcguire
75 <rdar://problem/5197869> Security: Run mDNSResponder as user id mdnsresponder instead of root
76 */
77
78 #include <mach/std_types.defs>
79 #include <mach/mach_types.defs>
80
81 import "helpermsg-types.h";
82
83 type v4addr_t = array [ 4] of uint8_t;
84 type ethaddr_t = array [ 6] of uint8_t;
85 type v6addr_t = array [16] of uint8_t;
86 type string_t = c_string[*:1024];
87
88 subsystem helper 1833193043;
89 serverprefix do_;
90 userprefix proxy_;
91
92 simpleroutine mDNSExit( port : mach_port_t;
93 ServerAuditToken token : audit_token_t);
94
95 simpleroutine mDNSRequestBPF( port : mach_port_t;
96 ServerAuditToken token : audit_token_t);
97
98 routine mDNSPowerRequest( port : mach_port_t;
99 key : int;
100 interval : int;
101 out err : int;
102 ServerAuditToken token : audit_token_t);
103
104 routine mDNSSetARP( port : mach_port_t;
105 ifindex : int;
106 ip : v4addr_t;
107 eth : ethaddr_t;
108 out err : int;
109 ServerAuditToken token : audit_token_t);
110
111 simpleroutine mDNSNotify( port : mach_port_t;
112 title : string_t;
113 msg : string_t;
114 ServerAuditToken token : audit_token_t);
115
116 simpleroutine mDNSDynamicStoreSetConfig(
117 port : mach_port_t;
118 key : int;
119 subkey : string_t;
120 value : pointer_t;
121 ServerAuditToken token : audit_token_t);
122
123 simpleroutine mDNSPreferencesSetName( port : mach_port_t;
124 key : int;
125 old : string_t;
126 new : string_t;
127 ServerAuditToken token : audit_token_t);
128
129 routine mDNSKeychainGetSecrets( port : mach_port_t;
130 out numsecrets : unsigned;
131 out secrets : pointer_t;
132 out err : int;
133 ServerAuditToken token : audit_token_t);
134
135 simpleroutine mDNSAutoTunnelInterfaceUpDown(
136 port : mach_port_t;
137 updown : int;
138 address : v6addr_t;
139 ServerAuditToken token : audit_token_t);
140
141 simpleroutine mDNSConfigureServer( port : mach_port_t;
142 updown : int;
143 fqdn : string_t;
144 ServerAuditToken token : audit_token_t);
145
146 routine mDNSAutoTunnelSetKeys( port : mach_port_t;
147 replacedelete : int;
148 local_inner : v6addr_t;
149 local_outer : v4addr_t;
150 local_port : uint16_t;
151 remote_inner : v6addr_t;
152 remote_outer : v4addr_t;
153 remote_port : uint16_t;
154 fqdn : string_t;
155 out err : int;
156 ServerAuditToken token : audit_token_t);