Included Files
- #include <nut/include/cfg/os.h>
- #include <nut/include/include2/stdlib.h>
- #include <nut/include/include2/string.h>
- #include <nut/include/sys/heap.h>
- #include <nut/include/sys/socket.h>
- #include <sys/sock_var.h>
- #include <nut/include/pro/wins.h>
- #include <nut/include/netinet/in.h>
typedef struct {...} WINSHEADER
struct
|
|
{
|
|
uint16_t id;
|
|
uint16_t flags;
|
|
uint16_t quests;
|
|
uint16_t answers;
|
|
uint16_t authrr;
|
|
uint16_t addrr;
|
|
uint8_t namelen;
|
|
uint8_t name[33];
|
|
uint16_t type;
|
|
uint16_t class;
|
|
uint32_t ttl;
|
|
uint16_t len_rep;
|
|
uint8_t node_flags;
|
|
uint8_t node_type;
|
|
uint32_t ip_addr;
|
|
}
|
|
int NutWinsNameQuery ( char* name, uint32_t ipaddr )