llmnr_responder.h File Reference

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

#include "core/net.h"
#include "core/udp.h"
#include "dns/dns_common.h"
#include "llmnr/llmnr_common.h"

Go to the source code of this file.

Macros

#define LLMNR_RESPONDER_SUPPORT   DISABLED
 

Functions

error_t llmnrResponderInit (NetInterface *interface)
 LLMNR responder initialization. More...
 
void llmnrProcessQuery (NetInterface *interface, const IpPseudoHeader *pseudoHeader, const UdpHeader *udpHeader, const NetBuffer *buffer, size_t offset, void *param)
 Process LLMNR query message. More...
 
error_t llmnrSendResponse (NetInterface *interface, const IpAddr *destIpAddr, uint16_t destPort, uint16_t id, uint16_t qtype, uint16_t qclass)
 Send LLMNR response message. More...
 

Detailed Description

LLMNR responder (Link-Local Multicast Name Resolution)

License

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

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

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
1.9.4

Definition in file llmnr_responder.h.

Macro Definition Documentation

◆ LLMNR_RESPONDER_SUPPORT

#define LLMNR_RESPONDER_SUPPORT   DISABLED

Definition at line 42 of file llmnr_responder.h.

Function Documentation

◆ llmnrProcessQuery()

void llmnrProcessQuery ( NetInterface interface,
const IpPseudoHeader pseudoHeader,
const UdpHeader udpHeader,
const NetBuffer buffer,
size_t  offset,
void *  param 
)

Process LLMNR query message.

Parameters
[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]paramCallback function parameter (not used)

Definition at line 93 of file llmnr_responder.c.

◆ llmnrResponderInit()

error_t llmnrResponderInit ( NetInterface interface)

LLMNR responder initialization.

Parameters
[in]interfaceUnderlying network interface
Returns
Error code

Definition at line 51 of file llmnr_responder.c.

◆ llmnrSendResponse()

error_t llmnrSendResponse ( NetInterface interface,
const IpAddr destIpAddr,
uint16_t  destPort,
uint16_t  id,
uint16_t  qtype,
uint16_t  qclass 
)

Send LLMNR response message.

Parameters
[in]interfaceUnderlying network interface
[in]destIpAddrDestination IP address
[in]destPortdestination port
[in]id16-bit identifier to be used when sending LLMNR query
[in]qtypeResource record type
[in]qclassResource record class

Definition at line 233 of file llmnr_responder.c.