Webserver+3d print

Dependents:   Nucleo

Embed: (wiki syntax)

« Back to documentation index

nbns_responder.c File Reference

nbns_responder.c File Reference

NBNS responder (NetBIOS Name Service) More...

Go to the source code of this file.

Functions

void nbnsProcessQuery (NetInterface *interface, const Ipv4PseudoHeader *pseudoHeader, const UdpHeader *udpHeader, const NbnsHeader *message, size_t length)
 Process NBNS query message.
error_t nbnsSendResponse (NetInterface *interface, const IpAddr *destIpAddr, uint16_t destPort, uint16_t id)
 Send NBNS response message.

Detailed Description

NBNS responder (NetBIOS Name Service)

License

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

Definition in file nbns_responder.c.


Function Documentation

void nbnsProcessQuery ( NetInterface *  interface,
const Ipv4PseudoHeader *  pseudoHeader,
const UdpHeader *  udpHeader,
const NbnsHeader *  message,
size_t  length 
)

Process NBNS query message.

Parameters:
[in]interfaceUnderlying network interface
[in]pseudoHeaderUDP pseudo header
[in]udpHeaderUDP header
[in]messagePointer to the NBNS query message
[in]lengthLength of the message

Definition at line 52 of file nbns_responder.c.

error_t nbnsSendResponse ( NetInterface *  interface,
const IpAddr destIpAddr,
uint16_t  destPort,
uint16_t  id 
)

Send NBNS response message.

Parameters:
[in]interfaceUnderlying network interface
[in]destIpAddrDestination IP address
[in]destPortdestination port
[in]id16-bit identifier to be used when sending NBNS query

Definition at line 109 of file nbns_responder.c.