llmnr_client.c File Reference

LLMNR client (Link-Local Multicast Name Resolution) More...

#include "core/net.h"
#include "ipv4/ipv4_misc.h"
#include "llmnr/llmnr_client.h"
#include "dns/dns_debug.h"
#include "debug.h"

Go to the source code of this file.




error_t llmnrResolve (NetInterface *interface, const char_t *name, HostType type, IpAddr *ipAddr)
 Resolve a host name using LLMNR. More...
error_t llmnrSendQuery (DnsCacheEntry *entry)
 Send a LLMNR query message. More...
void llmnrProcessResponse (NetInterface *interface, const IpPseudoHeader *pseudoHeader, const UdpHeader *udpHeader, const NetBuffer *buffer, size_t offset, const NetRxAncillary *ancillary, void *param)
 Process LLMNR response message. More...

Detailed Description

LLMNR client (Link-Local Multicast Name Resolution)


SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2024 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.

Oryx Embedded SARL (www.oryx-embedded.com)

Definition in file llmnr_client.c.

Macro Definition Documentation



Definition at line 32 of file llmnr_client.c.

Function Documentation

◆ llmnrProcessResponse()

void llmnrProcessResponse ( NetInterface interface,
const IpPseudoHeader pseudoHeader,
const UdpHeader udpHeader,
const NetBuffer buffer,
size_t  offset,
const NetRxAncillary ancillary,
void *  param 

Process LLMNR response message.

[in]interfaceUnderlying network interface
[in]pseudoHeaderUDP pseudo header
[in]udpHeaderUDP header
[in]bufferMulti-part buffer containing the incoming LLMNR message
[in]offsetOffset to the first byte of the LLMNR message
[in]ancillaryAdditional options passed to the stack along with the packet
[in]paramCallback function parameter (not used)

Definition at line 350 of file llmnr_client.c.

◆ llmnrResolve()

error_t llmnrResolve ( NetInterface interface,
const char_t name,
HostType  type,
IpAddr ipAddr 

Resolve a host name using LLMNR.

[in]interfaceUnderlying network interface
[in]nameName of the host to be resolved
[in]typeHost type (IPv4 or IPv6)
[out]ipAddrIP address corresponding to the specified host name

Definition at line 53 of file llmnr_client.c.

◆ llmnrSendQuery()

error_t llmnrSendQuery ( DnsCacheEntry entry)

Send a LLMNR query message.

[in]entryPointer to a valid DNS cache entry
Error code

Definition at line 214 of file llmnr_client.c.