提交 470b1071 编写于 作者: M maosiping

蓝牙网络代理

Signed-off-by: Nmaosiping <maosiping@huawei.com>
上级 4ee67658
......@@ -1235,7 +1235,8 @@ lwip_recvfrom(int s, void *mem, size_t len, int flags,
}
ssize_t
lwip_recvfrom_internal(int s, void *mem, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen)
lwip_recvfrom_internal(int s, void *mem, size_t len, int flags,
struct sockaddr *from, socklen_t *fromlen)
{
#endif
struct lwip_sock *sock;
......
......@@ -60,7 +60,7 @@ static int try_connect_to_local_tcp_server(u16_t tcp_port)
(void)lwip_close_internal(sock);
return ret;
}
#endif
#endif /* LWIP_DISTRIBUTED_NET_TRY_CONNECT */
void set_distributed_net_socket(int sock)
{
......@@ -101,7 +101,7 @@ u16_t get_local_udp_server_port(void)
u8_t is_distributed_net_enabled(void)
{
sys_mutex_lock(&g_mutex);
u16_t ret = g_is_distributed_net_enabled;
u8_t ret = g_is_distributed_net_enabled;
sys_mutex_unlock(&g_mutex);
return ret;
}
......@@ -121,7 +121,7 @@ int enable_distributed_net(u16_t tcp_port, u16_t udp_port)
if (try_connect_to_local_tcp_server(tcp_port) < 0) {
return -1;
}
#endif
#endif /* LWIP_DISTRIBUTED_NET_TRY_CONNECT */
sys_mutex_lock(&g_mutex);
g_is_distributed_net_enabled = 1;
......
......@@ -37,9 +37,9 @@
#include "lwip/distributed_net/distributed_net.h"
#include "lwip/sockets.h"
#define MAX_UDP_PAYLOAD_LEN 2048
#define MAX_UDP_PAYLOAD_LEN 1024
#define MAX_IOV_NUM 2048
#define MAX_IOV_NUM 32
#define UDP_PAYLOAD_LEN(send_len) ((send_len) - (ssize_t)sizeof(udp_data))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册