summaryrefslogtreecommitdiffstats
path: root/mDNSResponder/mDNSMacOSX/helpermsg.defs
blob: 58363082b99fb6d9aa777c098c39c68c248cfec2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/* -*- Mode: C; tab-width: 4 -*-
 *
 * Copyright (c) 2007-2012 Apple Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <mach/std_types.defs>
#include <mach/mach_types.defs>

import "helpermsg-types.h";

type v4addr_t  = array [ 4] of uint8_t;
type ethaddr_t = array [ 6] of uint8_t;
type v6addr_t  = array [16] of uint8_t;
type string_t = c_string[*:1024];

// Mig doesn't generate the output file if I use the constant PFPortArraySize below
type pfArray_t  = array [16] of uint16_t;

subsystem helper 1833193043;
serverprefix do_;
userprefix proxy_;

simpleroutine mDNSExit(			port			: mach_port_t;
		ServerAuditToken		token			: audit_token_t);

simpleroutine mDNSRequestBPF(	port			: mach_port_t;
		ServerAuditToken		token			: audit_token_t);

routine mDNSPowerRequest(		port			: mach_port_t;
								key				: int;
								interval		: int;
		out						err				: int;
		ServerAuditToken		token			: audit_token_t);

routine mDNSSetLocalAddressCacheEntry(
								port			: mach_port_t;
								ifindex			: int;
								family			: int;
								ip				: v6addr_t;
								eth				: ethaddr_t;
		out						err				: int;
		ServerAuditToken		token			: audit_token_t);

simpleroutine mDNSNotify(		port			: mach_port_t;
								title			: string_t;
								msg				: string_t;
		ServerAuditToken		token			: audit_token_t);

simpleroutine mDNSPreferencesSetName(
								port			: mach_port_t;
								key				: int;
								old				: string_t;
								new				: string_t;
		ServerAuditToken		token			: audit_token_t);

routine mDNSKeychainGetSecrets( port			: mach_port_t;
		out						numsecrets		: unsigned;
		out						secrets			: pointer_t;
		out						err				: int;
		ServerAuditToken		token			: audit_token_t);

simpleroutine mDNSConfigureServer(
								port			: mach_port_t;
								updown			: int;
								id				: string_t;
		ServerAuditToken		token			: audit_token_t);

routine mDNSAutoTunnelSetKeys(	port			: mach_port_t;
								replacedelete	: int;
								local_inner		: v6addr_t;
								local_outer		: v6addr_t;
								local_port		: uint16_t;		/* Port expressed as a numeric integer value */
								remote_inner	: v6addr_t;
								remote_outer	: v6addr_t;
								remote_port		: uint16_t;		/* Port expressed as a numeric integer value */
								id				: string_t;
		out						err				: int;
		ServerAuditToken		token			: audit_token_t);

simpleroutine mDNSSendWakeupPacket(
								port			: mach_port_t;
								ifid			: unsigned;
								eth_addr		: string_t;
								ip_addr			: string_t;
								iteration		: int;
		ServerAuditToken		token			: audit_token_t);

simpleroutine mDNSPacketFilterControl(
								port			: mach_port_t;
								command			: uint32_t;
								ifname			: string_t;
								arraySize		: uint32_t;
								portArray		: pfArray_t;
								protocolArray	: pfArray_t;
		ServerAuditToken		token			: audit_token_t);


simpleroutine mDNSSendKeepalive( port		: mach_port_t;
								sadd			: v6addr_t;
								dadd			: v6addr_t;
								lport			: uint16_t;
								rport			: uint16_t;
								seq				: unsigned;
								ack				: unsigned;
								win				: uint16_t;
		ServerAuditToken		token			: audit_token_t);

routine mDNSRetrieveTCPInfo(
								port			: mach_port_t;
								family			: int;
								laddr			: v6addr_t;
								lport			: uint16_t;
								raddr			: v6addr_t;
								rport			: uint16_t;
						 out	seq				: uint32_t;
						 out	ack				: uint32_t;
						 out	win				: uint16_t;
						 out	intfid			: int32_t;
		ServerAuditToken		token			: audit_token_t);

routine mDNSGetRemoteMAC(		port			: mach_port_t;
								family			: int;
								raddr			: v6addr_t;
		out						eth				: ethaddr_t;
		ServerAuditToken		token			: audit_token_t);

simpleroutine mDNSStoreSPSMACAddress(	port			: mach_port_t;
								family			: int;
								spsaddr			: v6addr_t;
								ifname			: string_t;
		ServerAuditToken		token			: audit_token_t);