mDNS responder (Multicast DNS) More...
#include "core/net.h"#include "dns/dns_debug.h"#include "mdns/mdns_responder.h"#include "mdns/mdns_responder_misc.h"#include "dns_sd/dns_sd_responder_misc.h"#include "debug.h"Go to the source code of this file.
Macros | |
| #define | TRACE_LEVEL MDNS_TRACE_LEVEL |
Detailed Description
mDNS responder (Multicast DNS)
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2026 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version
- 2.6.0
Definition in file mdns_responder.c.
Macro Definition Documentation
◆ TRACE_LEVEL
| #define TRACE_LEVEL MDNS_TRACE_LEVEL |
Definition at line 32 of file mdns_responder.c.
Function Documentation
◆ mdnsResponderDeinit()
| void mdnsResponderDeinit | ( | MdnsResponderContext * | context | ) |
Release mDNS responder context.
- Parameters
-
[in] context Pointer to the mDNS responder context
Definition at line 640 of file mdns_responder.c.
◆ mdnsResponderGetDefaultSettings()
| void mdnsResponderGetDefaultSettings | ( | MdnsResponderSettings * | settings | ) |
Initialize settings with default values.
- Parameters
-
[out] settings Structure that contains mDNS responder settings
Definition at line 51 of file mdns_responder.c.
◆ mdnsResponderGetState()
| MdnsState mdnsResponderGetState | ( | MdnsResponderContext * | context | ) |
Retrieve current state.
- Parameters
-
[in] context Pointer to the mDNS responder context
- Returns
- Current mDNS responder state
Definition at line 188 of file mdns_responder.c.
◆ mdnsResponderInit()
| error_t mdnsResponderInit | ( | MdnsResponderContext * | context, |
| const MdnsResponderSettings * | settings | ||
| ) |
mDNS responder initialization
- Parameters
-
[in] context Pointer to the mDNS responder context [in] settings mDNS responder specific settings
- Returns
- Error code
Definition at line 72 of file mdns_responder.c.
◆ mdnsResponderLinkChangeEvent()
| void mdnsResponderLinkChangeEvent | ( | MdnsResponderContext * | context | ) |
Callback function for link change event.
- Parameters
-
[in] context Pointer to the mDNS responder context
Definition at line 613 of file mdns_responder.c.
◆ mdnsResponderSetHostname()
| error_t mdnsResponderSetHostname | ( | MdnsResponderContext * | context, |
| const char_t * | hostname | ||
| ) |
Set host name.
- Parameters
-
[in] context Pointer to the mDNS responder context [in] hostname NULL-terminated string that contains the host name
- Returns
- Error code
Definition at line 211 of file mdns_responder.c.
◆ mdnsResponderStart()
| error_t mdnsResponderStart | ( | MdnsResponderContext * | context | ) |
Start mDNS responder.
- Parameters
-
[in] context Pointer to the mDNS responder context
- Returns
- Error code
Definition at line 126 of file mdns_responder.c.
◆ mdnsResponderStartProbing()
| error_t mdnsResponderStartProbing | ( | MdnsResponderContext * | context | ) |
Restart probing process.
- Parameters
-
[in] context Pointer to the mDNS responder context
- Returns
- Error code
Definition at line 256 of file mdns_responder.c.
◆ mdnsResponderStop()
| error_t mdnsResponderStop | ( | MdnsResponderContext * | context | ) |
Stop mDNS responder.
- Parameters
-
[in] context Pointer to the mDNS responder context
- Returns
- Error code
Definition at line 157 of file mdns_responder.c.
◆ mdnsResponderTick()
| void mdnsResponderTick | ( | MdnsResponderContext * | context | ) |
mDNS responder timer handler
This routine must be periodically called by the TCP/IP stack to manage mDNS operation
- Parameters
-
[in] context Pointer to the mDNS responder context
Definition at line 373 of file mdns_responder.c.
