source: rtems-libbsd/mDNSResponder/mDNSMacOSX/helpermsg.defs @ f761b29

55-freebsd-126-freebsd-12
Last change on this file since f761b29 was f761b29, checked in by Sebastian Huber <sebastian.huber@…>, on 09/19/18 at 06:52:21

mDNSResponder: Update to v625.41.2

The sources can be obtained via:

https://opensource.apple.com/tarballs/mDNSResponder/mDNSResponder-625.41.2.tar.gz

Update #3522.

  • Property mode set to 100644
File size: 4.3 KB
Line 
1/* -*- Mode: C; tab-width: 4 -*-
2 *
3 * Copyright (c) 2007-2013 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
21import "helpermsg-types.h";
22
23type v4addr_t  = array [ 4] of uint8_t;
24type ethaddr_t = array [ 6] of uint8_t;
25type v6addr_t  = array [16] of uint8_t;
26type string_t = c_string[*:1024];
27
28// Mig doesn't generate the output file if I use the constant PFPortArraySize below
29type pfArray_t  = array [16] of uint16_t;
30
31subsystem helper 1833193043;
32serverprefix do_;
33userprefix proxy_;
34
35simpleroutine mDNSExit(                 port                    : mach_port_t;
36                ServerAuditToken                token                   : audit_token_t);
37
38simpleroutine mDNSRequestBPF(   port                    : mach_port_t;
39                ServerAuditToken                token                   : audit_token_t);
40
41routine mDNSPowerRequest(               port                    : mach_port_t;
42                                                                key                             : int;
43                                                                interval                : int;
44                out                                             err                             : int;
45                ServerAuditToken                token                   : audit_token_t);
46
47routine mDNSSetLocalAddressCacheEntry(
48                                                                port                    : mach_port_t;
49                                                                ifindex                 : int;
50                                                                family                  : int;
51                                                                ip                              : v6addr_t;
52                                                                eth                             : ethaddr_t;
53                out                                             err                             : int;
54                ServerAuditToken                token                   : audit_token_t);
55
56simpleroutine mDNSNotify(               port                    : mach_port_t;
57                                                                title                   : string_t;
58                                                                msg                             : string_t;
59                ServerAuditToken                token                   : audit_token_t);
60
61simpleroutine mDNSPreferencesSetName(
62                                                                port                    : mach_port_t;
63                                                                key                             : int;
64                                                                old                             : string_t;
65                                                                new                             : string_t;
66                ServerAuditToken                token                   : audit_token_t);
67
68routine mDNSKeychainGetSecrets( port                    : mach_port_t;
69                out                                             numsecrets              : unsigned;
70                out                                             secrets                 : pointer_t;
71                out                                             err                             : int;
72                ServerAuditToken                token                   : audit_token_t);
73
74simpleroutine mDNSConfigureServer(
75                                                                port                    : mach_port_t;
76                                                                updown                  : int;
77                                                                id                              : string_t;
78                ServerAuditToken                token                   : audit_token_t);
79
80routine mDNSAutoTunnelSetKeys(  port                    : mach_port_t;
81                                                                replacedelete   : int;
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 */
88                                                                id                              : string_t;
89                out                                             err                             : int;
90                ServerAuditToken                token                   : audit_token_t);
91
92simpleroutine mDNSSendWakeupPacket(
93                                                                port                    : mach_port_t;
94                                                                ifid                    : unsigned;
95                                                                eth_addr                : string_t;
96                                                                ip_addr                 : string_t;
97                                                                iteration               : int;
98                ServerAuditToken                token                   : audit_token_t);
99
100simpleroutine mDNSPacketFilterControl(
101                                                                port                    : mach_port_t;
102                                                                command                 : uint32_t;
103                                                                ifname                  : string_t;
104                                                                arraySize               : uint32_t;
105                                                                portArray               : pfArray_t;
106                                                                protocolArray   : pfArray_t;
107                ServerAuditToken                token                   : audit_token_t);
108
109
110simpleroutine mDNSSendKeepalive( port           : mach_port_t;
111                                                                sadd                    : v6addr_t;
112                                                                dadd                    : v6addr_t;
113                                                                lport                   : uint16_t;
114                                                                rport                   : uint16_t;
115                                                                seq                             : unsigned;
116                                                                ack                             : unsigned;
117                                                                win                             : uint16_t;
118                ServerAuditToken                token                   : audit_token_t);
119
120routine mDNSRetrieveTCPInfo(
121                                                                port                    : mach_port_t;
122                                                                family                  : int;
123                                                                laddr                   : v6addr_t;
124                                                                lport                   : uint16_t;
125                                                                raddr                   : v6addr_t;
126                                                                rport                   : uint16_t;
127                                                 out    seq                             : uint32_t;
128                                                 out    ack                             : uint32_t;
129                                                 out    win                             : uint16_t;
130                                                 out    intfid                  : int32_t;
131                ServerAuditToken                token                   : audit_token_t);
132
133routine mDNSGetRemoteMAC(               port                    : mach_port_t;
134                                                                family                  : int;
135                                                                raddr                   : v6addr_t;
136                out                                             eth                             : ethaddr_t;
137                ServerAuditToken                token                   : audit_token_t);
138
139simpleroutine mDNSStoreSPSMACAddress(   port                    : mach_port_t;
140                                                                family                  : int;
141                                                                spsaddr                 : v6addr_t;
142                                                                ifname                  : string_t;
143                ServerAuditToken                token                   : audit_token_t);
Note: See TracBrowser for help on using the repository browser.