mirror of
https://github.com/pvvx/RTL00_WEB.git
synced 2024-11-23 14:34:19 +00:00
34 lines
743 B
C
34 lines
743 B
C
|
#ifndef __NETBIOS_H__
|
||
|
#define __NETBIOS_H__
|
||
|
|
||
|
#include "lwip/opt.h"
|
||
|
|
||
|
/** 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
|
||
|
|
||
|
//#if LWIP_NETIF_HOSTNAME
|
||
|
extern char netbios_name[NET_IF_NUM][NETBIOS_NAME_LEN + 1]; // default netifs/interfacenum: 0 - SoftAP, 1 - Station, 2 - Ethernet
|
||
|
//#endif
|
||
|
|
||
|
// 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__ */
|