mikroSDK Reference Manual
nbns_responder.h
Go to the documentation of this file.
1
31#ifndef _NBNS_RESPONDER_H
32#define _NBNS_RESPONDER_H
33
34//Dependencies
35#include "core/net.h"
36#include "core/udp.h"
37#include "dns/dns_common.h"
38#include "netbios/nbns_common.h"
39
40//NBNS responder support
41#ifndef NBNS_RESPONDER_SUPPORT
42 #define NBNS_RESPONDER_SUPPORT ENABLED
43#elif (NBNS_RESPONDER_SUPPORT != ENABLED && NBNS_RESPONDER_SUPPORT != DISABLED)
44 #error NBNS_RESPONDER_SUPPORT parameter is not valid
45#endif
46
47//C++ guard
48#ifdef __cplusplus
49extern "C" {
50#endif
51
52//NBNS related functions
53void nbnsProcessQuery(NetInterface *interface, const Ipv4PseudoHeader *pseudoHeader,
54 const UdpHeader *udpHeader, const NbnsHeader *message, size_t length);
55
56error_t nbnsSendResponse(NetInterface *interface,
57 const IpAddr *destIpAddr, uint16_t destPort, uint16_t id);
58
59//C++ guard
60#ifdef __cplusplus
61}
62#endif
63
64#endif
Common DNS routines.
error_t
Error codes.
Definition error.h:43
Definitions common to NBNS client and NBNS responder.
TCP/IP stack core.
IP network address.
Definition ip.h:72
UDP (User Datagram Protocol)