]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSMacOSX/helpermsg.defs
mDNSResponder-320.16.tar.gz
[apple/mdnsresponder.git] / mDNSMacOSX / helpermsg.defs
1 /* -*- Mode: C; tab-width: 4 -*-
2 *
3 * Copyright (c) 2007 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 subsystem helper 1833193043;
29 serverprefix do_;
30 userprefix proxy_;
31
32 simpleroutine mDNSExit( port : mach_port_t;
33 ServerAuditToken token : audit_token_t);
34
35 simpleroutine mDNSRequestBPF( port : mach_port_t;
36 ServerAuditToken token : audit_token_t);
37
38 routine mDNSPowerRequest( port : mach_port_t;
39 key : int;
40 interval : int;
41 out err : int;
42 ServerAuditToken token : audit_token_t);
43
44 routine mDNSSetLocalAddressCacheEntry(
45 port : mach_port_t;
46 ifindex : int;
47 family : int;
48 ip : v6addr_t;
49 eth : ethaddr_t;
50 out err : int;
51 ServerAuditToken token : audit_token_t);
52
53 simpleroutine mDNSNotify( port : mach_port_t;
54 title : string_t;
55 msg : string_t;
56 ServerAuditToken token : audit_token_t);
57
58 simpleroutine mDNSDynamicStoreSetConfig(
59 port : mach_port_t;
60 key : int;
61 subkey : string_t;
62 value : pointer_t;
63 ServerAuditToken token : audit_token_t);
64
65 simpleroutine mDNSPreferencesSetName(
66 port : mach_port_t;
67 key : int;
68 old : string_t;
69 new : string_t;
70 ServerAuditToken token : audit_token_t);
71
72 routine mDNSKeychainGetSecrets( port : mach_port_t;
73 out numsecrets : unsigned;
74 out secrets : pointer_t;
75 out err : int;
76 ServerAuditToken token : audit_token_t);
77
78 simpleroutine mDNSAutoTunnelInterfaceUpDown(
79 port : mach_port_t;
80 updown : int;
81 address : v6addr_t;
82 ServerAuditToken token : audit_token_t);
83
84 simpleroutine mDNSConfigureServer(
85 port : mach_port_t;
86 updown : int;
87 id : string_t;
88 ServerAuditToken token : audit_token_t);
89
90 routine mDNSAutoTunnelSetKeys( port : mach_port_t;
91 replacedelete : int;
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 */
98 id : string_t;
99 out err : int;
100 ServerAuditToken token : audit_token_t);
101
102 simpleroutine mDNSSendWakeupPacket(
103 port : mach_port_t;
104 ifid : unsigned;
105 eth_addr : string_t;
106 ip_addr : string_t;
107 iteration : int;
108 ServerAuditToken token : audit_token_t);
109
110 simpleroutine mDNSPacketFilterControl(
111 port : mach_port_t;
112 command : uint32_t;
113 ifname : string_t;
114 servicePort : uint16_t;
115 protocol : uint16_t;
116 ServerAuditToken token : audit_token_t);