]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSMacOSX/helpermsg.defs
mDNSResponder-522.92.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 mDNSPreferencesSetName(
62 port : mach_port_t;
63 key : int;
64 old : string_t;
65 new : string_t;
66 ServerAuditToken token : audit_token_t);
67
68 routine mDNSKeychainGetSecrets( port : mach_port_t;
69 out numsecrets : unsigned;
70 out secrets : pointer_t;
71 out err : int;
72 ServerAuditToken token : audit_token_t);
73
74 simpleroutine mDNSConfigureServer(
75 port : mach_port_t;
76 updown : int;
77 id : string_t;
78 ServerAuditToken token : audit_token_t);
79
80 routine mDNSAutoTunnelSetKeys( port : mach_port_t;
81 replacedelete : int;
82 local_inner : v6addr_t;
83 local_outer : v6addr_t;
84 local_port : uint16_t; /* Port expressed as a numeric integer value */
85 remote_inner : v6addr_t;
86 remote_outer : v6addr_t;
87 remote_port : uint16_t; /* Port expressed as a numeric integer value */
88 id : string_t;
89 out err : int;
90 ServerAuditToken token : audit_token_t);
91
92 simpleroutine mDNSSendWakeupPacket(
93 port : mach_port_t;
94 ifid : unsigned;
95 eth_addr : string_t;
96 ip_addr : string_t;
97 iteration : int;
98 ServerAuditToken token : audit_token_t);
99
100 simpleroutine mDNSPacketFilterControl(
101 port : mach_port_t;
102 command : uint32_t;
103 ifname : string_t;
104 arraySize : uint32_t;
105 portArray : pfArray_t;
106 protocolArray : pfArray_t;
107 ServerAuditToken token : audit_token_t);
108
109
110 simpleroutine mDNSSendKeepalive( port : mach_port_t;
111 sadd : v6addr_t;
112 dadd : v6addr_t;
113 lport : uint16_t;
114 rport : uint16_t;
115 seq : unsigned;
116 ack : unsigned;
117 win : uint16_t;
118 ServerAuditToken token : audit_token_t);
119
120 routine mDNSRetrieveTCPInfo(
121 port : mach_port_t;
122 family : int;
123 laddr : v6addr_t;
124 lport : uint16_t;
125 raddr : v6addr_t;
126 rport : uint16_t;
127 out seq : uint32_t;
128 out ack : uint32_t;
129 out win : uint16_t;
130 out intfid : int32_t;
131 ServerAuditToken token : audit_token_t);
132
133 routine mDNSGetRemoteMAC( port : mach_port_t;
134 family : int;
135 raddr : v6addr_t;
136 out eth : ethaddr_t;
137 ServerAuditToken token : audit_token_t);
138
139 simpleroutine mDNSStoreSPSMACAddress( port : mach_port_t;
140 family : int;
141 spsaddr : v6addr_t;
142 ifname : string_t;
143 ServerAuditToken token : audit_token_t);