open-ameba/RTL00_SDKV35a/component/common/network/netbios/netbios.h

34 lines
743 B
C
Raw Normal View History

2016-12-22 13:27:32 +00:00
#ifndef __NETBIOS_H__
#define __NETBIOS_H__
2017-03-11 03:10:30 +00:00
#include "lwip/opt.h"
2016-12-22 13:27:32 +00:00
/** default port number for "NetBIOS Name service */
#define NETBIOS_PORT 137
/** size of a NetBIOS name */
#define NETBIOS_NAME_LEN 16
#ifndef NET_IF_NUM
#define NET_IF_NUM 2
#endif
#ifdef __cplusplus
extern "C" {
#endif
2017-03-11 03:10:30 +00:00
//#if LWIP_NETIF_HOSTNAME
2016-12-22 13:27:32 +00:00
extern char netbios_name[NET_IF_NUM][NETBIOS_NAME_LEN + 1]; // default netifs/interfacenum: 0 - SoftAP, 1 - Station, 2 - Ethernet
2017-03-11 03:10:30 +00:00
//#endif
2016-12-22 13:27:32 +00:00
// struct udp_pcb * netbios_pcb(void);
void netbios_init(void);
bool netbios_set_name(unsigned char interfacenum, char * name); // default netifs/interfacenum: 0 - SoftAP, 1 - Station, 2 - Ethernet
bool netbios_off(void);
#ifdef __cplusplus
}
#endif
#endif /* __NETBIOS_H__ */