39#ifndef NBNS_DEFAULT_RESOURCE_RECORD_TTL
40 #define NBNS_DEFAULT_RESOURCE_RECORD_TTL 120
41#elif (NBNS_DEFAULT_RESOURCE_RECORD_TTL < 1)
42 #error NBNS_DEFAULT_RESOURCE_RECORD_TTL parameter is not valid
49#define NBNS_ENCODE_H(c) ('A' + (((c) >> 4) & 0x0F))
50#define NBNS_ENCODE_L(c) ('A' + ((c) & 0x0F))
64 NBNS_ONT_BNODE = 0x0000,
65 NBNS_ONT_PNODE = 0x2000,
66 NBNS_ONT_MNODE = 0x4000,
67 NBNS_G_UNIQUE = 0x0000,
73#if defined(__CWCC__) || defined(_WIN32)
85#if defined(_CPU_BIG_ENDIAN) && !defined(__ICCRX__)
126#if defined(__CWCC__) || defined(_WIN32)
131error_t nbnsInit(NetInterface *interface);
133void nbnsProcessMessage(NetInterface *interface,
135 const NetBuffer *buffer,
size_t offset,
const NetRxAncillary *ancillary,
138size_t nbnsEncodeName(
const char_t *src, uint8_t *dest);
140size_t nbnsParseName(
const NbnsHeader *message,
141 size_t length,
size_t pos, char_t *dest);
143bool_t nbnsCompareName(
const NbnsHeader *message,
144 size_t length,
size_t pos,
const char_t *name);
error_t
Error codes.
Definition error.h:43
uint32_t Ipv4Addr
IPv4 network address.
Definition ipv4.h:267
DnsFlags
NBNS flags.
Definition nbns_common.h:63
typedef __packed_struct
NBNS message header.
Definition nbns_common.h:83
Structure describing a buffer that spans multiple chunks.
Definition net_mem.h:89