sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
mdns_domain.h
Go to the documentation of this file.
1
6
7
/*
8
* Copyright (c) 2015 Verisure Innovation AB
9
* All rights reserved.
10
*
11
* Redistribution and use in source and binary forms, with or without modification,
12
* are permitted provided that the following conditions are met:
13
*
14
* 1. Redistributions of source code must retain the above copyright notice,
15
* this list of conditions and the following disclaimer.
16
* 2. Redistributions in binary form must reproduce the above copyright notice,
17
* this list of conditions and the following disclaimer in the documentation
18
* and/or other materials provided with the distribution.
19
* 3. The name of the author may not be used to endorse or promote products
20
* derived from this software without specific prior written permission.
21
*
22
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
23
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
24
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
25
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
26
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
27
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
30
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
31
* OF SUCH DAMAGE.
32
*
33
* This file is part of the lwIP TCP/IP stack.
34
*
35
* Author: Erik Ekman <erik@kryo.se>
36
* Author: Jasper Verschueren <jasper.verschueren@apart-audio.com>
37
*
38
*/
39
40
#ifndef LWIP_HDR_APPS_MDNS_DOMAIN_H
41
#define LWIP_HDR_APPS_MDNS_DOMAIN_H
42
43
#include "
lwip/apps/mdns_opts.h
"
44
#include "
lwip/apps/mdns_priv.h
"
45
46
#ifdef __cplusplus
47
extern
"C"
{
48
#endif
49
50
#if LWIP_MDNS_RESPONDER
51
52
/* Domain methods - also visible for unit tests */
53
54
err_t mdns_domain_add_label(
struct
mdns_domain *domain,
const
char
*label, u8_t len);
55
err_t mdns_domain_add_domain(
struct
mdns_domain *domain,
struct
mdns_domain *source);
56
err_t mdns_domain_add_string(
struct
mdns_domain *domain,
const
char
*source);
57
u16_t mdns_readname(
struct
pbuf
*p, u16_t offset,
struct
mdns_domain *domain);
58
void
mdns_domain_debug_print(
struct
mdns_domain *domain);
59
int
mdns_domain_eq(
struct
mdns_domain *a,
struct
mdns_domain *b);
60
#if LWIP_IPV4
61
err_t mdns_build_reverse_v4_domain(
struct
mdns_domain *domain,
const
ip4_addr_t
*addr);
62
#endif
63
#if LWIP_IPV6
64
err_t mdns_build_reverse_v6_domain(
struct
mdns_domain *domain,
const
ip6_addr_t
*addr);
65
#endif
66
err_t mdns_build_host_domain(
struct
mdns_domain *domain,
struct
mdns_host *mdns);
67
err_t mdns_build_dnssd_domain(
struct
mdns_domain *domain);
68
err_t mdns_build_service_domain(
struct
mdns_domain *domain,
struct
mdns_service *service,
int
include_name);
69
#if LWIP_MDNS_SEARCH
70
err_t mdns_build_request_domain(
struct
mdns_domain *domain,
struct
mdns_request *
request
,
int
include_name);
71
#endif
72
u16_t mdns_compress_domain(
struct
pbuf
*
pbuf
, u16_t *offset,
struct
mdns_domain *domain);
73
err_t mdns_write_domain(
struct
mdns_outpacket *outpkt,
struct
mdns_domain *domain);
74
75
#endif
/* LWIP_MDNS_RESPONDER */
76
77
#ifdef __cplusplus
78
}
79
#endif
80
81
#endif
/* LWIP_HDR_APPS_MDNS_DOMAIN_H */
ip6_addr_t
struct ip6_addr ip6_addr_t
Definition
tcpip.h:434
mdns_opts.h
mdns_priv.h
ip4_addr_t
struct ip4_addr ip4_addr_t
Definition
ps2ip_rpc.h:41
pbuf
Definition
tcpip.h:234
request
Definition
thread.c:18
core
ps2ip
include
lwip_include
lwip
apps
mdns_domain.h
Generated by
1.18.0