1 /* -*- Mode: C; tab-width: 4 -*-
3 * Copyright (c) 2007 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 subsystem helper 1833193043;
32 simpleroutine mDNSExit( port : mach_port_t;
33 ServerAuditToken token : audit_token_t);
35 simpleroutine mDNSRequestBPF( port : mach_port_t;
36 ServerAuditToken token : audit_token_t);
38 routine mDNSPowerRequest( port : mach_port_t;
42 ServerAuditToken token : audit_token_t);
44 routine mDNSSetLocalAddressCacheEntry(
51 ServerAuditToken token : audit_token_t);
53 simpleroutine mDNSNotify( port : mach_port_t;
56 ServerAuditToken token : audit_token_t);
58 simpleroutine mDNSDynamicStoreSetConfig(
63 ServerAuditToken token : audit_token_t);
65 simpleroutine mDNSPreferencesSetName(
70 ServerAuditToken token : audit_token_t);
72 routine mDNSKeychainGetSecrets( port : mach_port_t;
73 out numsecrets : unsigned;
74 out secrets : pointer_t;
76 ServerAuditToken token : audit_token_t);
78 simpleroutine mDNSAutoTunnelInterfaceUpDown(
82 ServerAuditToken token : audit_token_t);
84 simpleroutine mDNSConfigureServer(
88 ServerAuditToken token : audit_token_t);
90 routine mDNSAutoTunnelSetKeys( port : mach_port_t;
92 local_inner : v6addr_t;
93 local_outer : v6addr_t;
94 local_port : uint16_t; /* Port expressed as a numeric integer value */
95 remote_inner : v6addr_t;
96 remote_outer : v6addr_t;
97 remote_port : uint16_t; /* Port expressed as a numeric integer value */
100 ServerAuditToken token : audit_token_t);
102 simpleroutine mDNSSendWakeupPacket(
108 ServerAuditToken token : audit_token_t);
110 simpleroutine mDNSPacketFilterControl(
114 servicePort : uint16_t;
116 ServerAuditToken token : audit_token_t);