lwip_2.1.2 for idf_4.0

This commit is contained in:
xueyunfei
2019-06-27 17:13:44 +08:00
committed by bot
parent 138c941fad
commit fa02598b5c
21 changed files with 129 additions and 198 deletions
+5 -5
View File
@@ -49,23 +49,23 @@ static void *lwip_get_socket_select_semaphore()
static int lwip_fcntl_r_wrapper(int fd, int cmd, int arg)
{
return lwip_fcntl_r(fd, cmd, arg);
return lwip_fcntl(fd, cmd, arg);
}
static int lwip_ioctl_r_wrapper(int fd, int cmd, va_list args)
{
return lwip_ioctl_r(fd, cmd, va_arg(args, void *));
return lwip_ioctl(fd, cmd, va_arg(args, void *));
}
void esp_vfs_lwip_sockets_register()
{
esp_vfs_t vfs = {
.flags = ESP_VFS_FLAG_DEFAULT,
.write = &lwip_write_r,
.write = &lwip_write,
.open = NULL,
.fstat = NULL,
.close = &lwip_close_r,
.read = &lwip_read_r,
.close = &lwip_close,
.read = &lwip_read,
.fcntl = &lwip_fcntl_r_wrapper,
.ioctl = &lwip_ioctl_r_wrapper,
.socket_select = &lwip_select,