Go to the documentation of this file.
31 #ifndef _NBNS_CLIENT_H
32 #define _NBNS_CLIENT_H
43 #ifndef NBNS_CLIENT_SUPPORT
44 #define NBNS_CLIENT_SUPPORT ENABLED
45 #elif (NBNS_CLIENT_SUPPORT != ENABLED && NBNS_CLIENT_SUPPORT != DISABLED)
46 #error NBNS_CLIENT_SUPPORT parameter is not valid
50 #ifndef NBNS_CLIENT_MAX_RETRIES
51 #define NBNS_CLIENT_MAX_RETRIES 3
52 #elif (NBNS_CLIENT_MAX_RETRIES < 1)
53 #error NBNS_CLIENT_MAX_RETRIES parameter is not valid
57 #ifndef NBNS_CLIENT_INIT_TIMEOUT
58 #define NBNS_CLIENT_INIT_TIMEOUT 1000
59 #elif (NBNS_CLIENT_INIT_TIMEOUT < 1000)
60 #error NBNS_CLIENT_INIT_TIMEOUT parameter is not valid
64 #ifndef NBNS_CLIENT_MAX_TIMEOUT
65 #define NBNS_CLIENT_MAX_TIMEOUT 1000
66 #elif (NBNS_CLIENT_MAX_TIMEOUT < 1000)
67 #error NBNS_CLIENT_MAX_TIMEOUT parameter is not valid
71 #ifndef NBNS_MAX_LIFETIME
72 #define NBNS_MAX_LIFETIME 60000
73 #elif (NBNS_MAX_LIFETIME < 1000)
74 #error NBNS_MAX_LIFETIME parameter is not valid
error_t nbnsSendQuery(DnsCacheEntry *entry)
Send a NBNS query message.
Definitions common to NBNS client and NBNS responder.
void nbnsProcessResponse(NetInterface *interface, const Ipv4PseudoHeader *pseudoHeader, const UdpHeader *udpHeader, const NbnsHeader *message, size_t length)
Process NBNS response message.
error_t nbnsResolve(NetInterface *interface, const char_t *name, IpAddr *ipAddr)
Resolve a host name using NBNS.
UDP (User Datagram Protocol)