1 /* -*- Mode: C; tab-width: 4 -*-
3 * Copyright (c) 2007-2012 Apple 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.
18 #include <mach/std_types.defs>
19 #include <mach/mach_types.defs>
21 import "helpermsg-types.h";
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];
28 // Mig doesn't generate the output file if I use the constant PFPortArraySize below
29 type pfArray_t = array [16] of uint16_t;
31 subsystem helper 1833193043;
35 simpleroutine mDNSExit( port : mach_port_t;
36 ServerAuditToken token : audit_token_t);
38 simpleroutine mDNSRequestBPF( port : mach_port_t;
39 ServerAuditToken token : audit_token_t);
41 routine mDNSPowerRequest( port : mach_port_t;
45 ServerAuditToken token : audit_token_t);
47 routine mDNSSetLocalAddressCacheEntry(
54 ServerAuditToken token : audit_token_t);
56 simpleroutine mDNSNotify( port : mach_port_t;
59 ServerAuditToken token : audit_token_t);
61 simpleroutine mDNSPreferencesSetName(
66 ServerAuditToken token : audit_token_t);
68 routine mDNSKeychainGetSecrets( port : mach_port_t;
69 out numsecrets : unsigned;
70 out secrets : pointer_t;
72 ServerAuditToken token : audit_token_t);
74 simpleroutine mDNSConfigureServer(
78 ServerAuditToken token : audit_token_t);
80 routine mDNSAutoTunnelSetKeys( port : mach_port_t;
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 */
90 ServerAuditToken token : audit_token_t);
92 simpleroutine mDNSSendWakeupPacket(
98 ServerAuditToken token : audit_token_t);
100 simpleroutine mDNSPacketFilterControl(
104 arraySize : uint32_t;
105 portArray : pfArray_t;
106 protocolArray : pfArray_t;
107 ServerAuditToken token : audit_token_t);
110 simpleroutine mDNSSendKeepalive( port : mach_port_t;
118 ServerAuditToken token : audit_token_t);
120 routine mDNSRetrieveTCPInfo(
130 out intfid : int32_t;
131 ServerAuditToken token : audit_token_t);
133 routine mDNSGetRemoteMAC( port : mach_port_t;
137 ServerAuditToken token : audit_token_t);
139 simpleroutine mDNSStoreSPSMACAddress( port : mach_port_t;
143 ServerAuditToken token : audit_token_t);