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 mDNSDynamicStoreSetConfig(
66 ServerAuditToken token : audit_token_t);
68 simpleroutine mDNSPreferencesSetName(
73 ServerAuditToken token : audit_token_t);
75 routine mDNSKeychainGetSecrets( port : mach_port_t;
76 out numsecrets : unsigned;
77 out secrets : pointer_t;
79 ServerAuditToken token : audit_token_t);
81 simpleroutine mDNSConfigureServer(
85 ServerAuditToken token : audit_token_t);
87 routine mDNSAutoTunnelSetKeys( port : mach_port_t;
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 */
97 ServerAuditToken token : audit_token_t);
99 simpleroutine mDNSSendWakeupPacket(
105 ServerAuditToken token : audit_token_t);
107 simpleroutine mDNSPacketFilterControl(
111 arraySize : uint32_t;
112 portArray : pfArray_t;
113 protocolArray : pfArray_t;
114 ServerAuditToken token : audit_token_t);
117 simpleroutine mDNSSendKeepalive( port : mach_port_t;
125 ServerAuditToken token : audit_token_t);
127 simpleroutine mDNSInterfaceAdvtIoctl( port : mach_port_t;
130 ServerAuditToken token : audit_token_t);