NBNS responder (NetBIOS Name Service) More...
#include "core/net.h"
#include "core/udp.h"
#include "dns/dns_common.h"
#include "netbios/nbns_common.h"
Go to the source code of this file.
Macros | |
#define | NBNS_RESPONDER_SUPPORT ENABLED |
Functions | |
void | nbnsProcessQuery (NetInterface *interface, const Ipv4PseudoHeader *pseudoHeader, const UdpHeader *udpHeader, const NbnsHeader *message, size_t length) |
Process NBNS query message. More... | |
error_t | nbnsSendResponse (NetInterface *interface, const IpAddr *destIpAddr, uint16_t destPort, uint16_t id) |
Send NBNS response message. More... | |
Detailed Description
NBNS responder (NetBIOS Name Service)
License
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.
- Version
- 2.4.4
Definition in file nbns_responder.h.
Macro Definition Documentation
◆ NBNS_RESPONDER_SUPPORT
#define NBNS_RESPONDER_SUPPORT ENABLED |
Definition at line 42 of file nbns_responder.h.
Function Documentation
◆ nbnsProcessQuery()
void nbnsProcessQuery | ( | NetInterface * | interface, |
const Ipv4PseudoHeader * | pseudoHeader, | ||
const UdpHeader * | udpHeader, | ||
const NbnsHeader * | message, | ||
size_t | length | ||
) |
Process NBNS query message.
- Parameters
-
[in] interface Underlying network interface [in] pseudoHeader UDP pseudo header [in] udpHeader UDP header [in] message Pointer to the NBNS query message [in] length Length of the message
Definition at line 54 of file nbns_responder.c.
◆ nbnsSendResponse()
error_t nbnsSendResponse | ( | NetInterface * | interface, |
const IpAddr * | destIpAddr, | ||
uint16_t | destPort, | ||
uint16_t | id | ||
) |
Send NBNS response message.
- Parameters
-
[in] interface Underlying network interface [in] destIpAddr Destination IP address [in] destPort destination port [in] id 16-bit identifier to be used when sending NBNS query
Definition at line 111 of file nbns_responder.c.