xref: /titanic_51/usr/src/cmd/cmd-inet/usr.lib/mdnsd/anonymous.h (revision d040c7642a81e4878a822db25cce20beb93585b4)
1 /* -*- Mode: C; tab-width: 4 -*-
2  *
3  * Copyright (c) 2012 Apple Computer, 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 #ifndef __ANONYMOUS_H_
19 #define __ANONYMOUS_H_
20 
21 extern void ReInitAnonInfo(AnonymousInfo **si, const domainname *name);
22 extern AnonymousInfo *AllocateAnonInfo(const domainname *service, const mDNSu8 *AnonData, int len, const ResourceRecord *rr);
23 extern void FreeAnonInfo(AnonymousInfo *ai);
24 extern void SetAnonData(DNSQuestion *q, ResourceRecord *rr, mDNSBool ForQuestion);
25 extern int AnonInfoAnswersQuestion(const ResourceRecord *const rr, const DNSQuestion *const q);
26 extern void InitializeAnonInfoForCR(mDNS *const m, CacheRecord **McastNSEC3Records, CacheRecord *cr);
27 extern void InitializeAnonInfoForQuestion(mDNS *const m, CacheRecord **McastNSEC3Records, DNSQuestion *q);
28 extern void CopyAnonInfoForCR(mDNS *const m, CacheRecord *crto, CacheRecord *crfrom);
29 extern mDNSBool IdenticalAnonInfo(AnonymousInfo *a1, AnonymousInfo *a2);
30 
31 #endif
32