]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSMacOSX/helpermsg.defs
mDNSResponder-379.32.1.tar.gz
[apple/mdnsresponder.git] / mDNSMacOSX / helpermsg.defs
1 /* -*- Mode: C; tab-width: 4 -*-
2 *
3 * Copyright (c) 2007-2012 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
18 #include <mach/std_types.defs>
19 #include <mach/mach_types.defs>
20
21 import "helpermsg-types.h";
22
23 type v4addr_t = array [ 4] of uint8_t;
24 type ethaddr_t = array [ 6] of uint8_t;
25 type v6addr_t = array [16] of uint8_t;
26 type string_t = c_string[*:1024];
27
28 // Mig doesn't generate the output file if I use the constant PFPortArraySize below
29 type pfArray_t = array [16] of uint16_t;
30
31 subsystem helper 1833193043;
32 serverprefix do_;
33 userprefix proxy_;
34
35 simpleroutine mDNSExit( port : mach_port_t;
36 ServerAuditToken token : audit_token_t);
37
38 simpleroutine mDNSRequestBPF( port : mach_port_t;
39 ServerAuditToken token : audit_token_t);
40
41 routine mDNSPowerRequest( port : mach_port_t;
42 key : int;
43 interval : int;
44 out err : int;
45 ServerAuditToken token : audit_token_t);
46
47 routine mDNSSetLocalAddressCacheEntry(
48 port : mach_port_t;
49 ifindex : int;
50 family : int;
51 ip : v6addr_t;
52 eth : ethaddr_t;
53 out err : int;
54 ServerAuditToken token : audit_token_t);
55
56 simpleroutine mDNSNotify( port : mach_port_t;
57 title : string_t;
58 msg : string_t;
59 ServerAuditToken token : audit_token_t);
60
61 simpleroutine mDNSDynamicStoreSetConfig(
62 port : mach_port_t;
63 key : int;
64 subkey : string_t;
65 value : pointer_t;
66 ServerAuditToken token : audit_token_t);
67
68 simpleroutine mDNSPreferencesSetName(
69 port : mach_port_t;
70 key : int;
71 old : string_t;
72 new : string_t;
73 ServerAuditToken token : audit_token_t);
74
75 routine mDNSKeychainGetSecrets( port : mach_port_t;
76 out numsecrets : unsigned;
77 out secrets : pointer_t;
78 out err : int;
79 ServerAuditToken token : audit_token_t);
80
81 simpleroutine mDNSConfigureServer(
82 port : mach_port_t;
83 updown : int;
84 id : string_t;
85 ServerAuditToken token : audit_token_t);
86
87 routine mDNSAutoTunnelSetKeys( port : mach_port_t;
88 replacedelete : int;
89 local_inner : v6addr_t;
90 local_outer : v6addr_t;
91 local_port : uint16_t; /* Port expressed as a numeric integer value */
92 remote_inner : v6addr_t;
93 remote_outer : v6addr_t;
94 remote_port : uint16_t; /* Port expressed as a numeric integer value */
95 id : string_t;
96 out err : int;
97 ServerAuditToken token : audit_token_t);
98
99 simpleroutine mDNSSendWakeupPacket(
100 port : mach_port_t;
101 ifid : unsigned;
102 eth_addr : string_t;
103 ip_addr : string_t;
104 iteration : int;
105 ServerAuditToken token : audit_token_t);
106
107 simpleroutine mDNSPacketFilterControl(
108 port : mach_port_t;
109 command : uint32_t;
110 ifname : string_t;
111 arraySize : uint32_t;
112 portArray : pfArray_t;
113 protocolArray : pfArray_t;
114 ServerAuditToken token : audit_token_t);
115
116
117 simpleroutine mDNSSendKeepalive( port : mach_port_t;
118 sadd : v6addr_t;
119 dadd : v6addr_t;
120 lport : uint16_t;
121 rport : uint16_t;
122 seq : unsigned;
123 ack : unsigned;
124 win : uint16_t;
125 ServerAuditToken token : audit_token_t);
126
127 simpleroutine mDNSInterfaceAdvtIoctl( port : mach_port_t;
128 ifname : string_t;
129 op : int;
130 ServerAuditToken token : audit_token_t);