llmnr_common.c File Reference

Definitions common to LLMNR client and responder. More...

#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "core/net.h"
#include "llmnr/llmnr_client.h"
#include "llmnr/llmnr_responder.h"
#include "llmnr/llmnr_common.h"
#include "dns/dns_debug.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define TRACE_LEVEL   LLMNR_TRACE_LEVEL
 

Functions

error_t llmnrInit (NetInterface *interface)
 LLMNR related initialization. More...
 
void llmnrProcessMessage (NetInterface *interface, const IpPseudoHeader *pseudoHeader, const UdpHeader *udpHeader, const NetBuffer *buffer, size_t offset, void *param)
 Process incoming LLMNR message. More...
 

Variables

const Ipv6Addr LLMNR_IPV6_MULTICAST_ADDR
 

Detailed Description

Definitions common to LLMNR client and responder.

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.2

Definition in file llmnr_common.c.

Macro Definition Documentation

◆ TRACE_LEVEL

#define TRACE_LEVEL   LLMNR_TRACE_LEVEL

Definition at line 32 of file llmnr_common.c.

Function Documentation

◆ llmnrInit()

error_t llmnrInit ( NetInterface interface)

LLMNR related initialization.

Parameters
[in]interfaceUnderlying network interface
Returns
Error code

Definition at line 59 of file llmnr_common.c.

◆ llmnrProcessMessage()

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

Process incoming LLMNR 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 101 of file llmnr_common.c.

Variable Documentation

◆ LLMNR_IPV6_MULTICAST_ADDR

const Ipv6Addr LLMNR_IPV6_MULTICAST_ADDR
Initial value:
=
IPV6_ADDR(0xFF02, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, 0x0003)
#define IPV6_ADDR(a, b, c, d, e, f, g, h)
Definition: ipv6.h:112

Definition at line 49 of file llmnr_common.c.