summaryrefslogtreecommitdiff
path: root/components/dfs
diff options
context:
space:
mode:
authorlongtengmcu <[email protected]>2020-05-21 22:05:38 +0800
committerlongtengmcu <[email protected]>2020-05-21 22:05:38 +0800
commitd75f03e4b03be4c72c5155cc0b00683da31ae74b (patch)
treeea553553e0f70188944faebb6bc3730561feea31 /components/dfs
parent63950c9259cb099c4182e29fef3d27b929d66258 (diff)
1、解决do_pollfd函数中处理底层网络设备返回错误-1的情况,返回-1时select函数也要返回-1 …
2、网卡设备调用关闭dhcp时,底层要调用dhcp_stop函数来关闭dhcp功能,打开时再调用dhcp_start,否则再次打开dhcp时无法获取ip地址或者出现在使用静态ip地址会在dhcp租约到期时自动再获取ip地址。 3、sal_socket.c程序中的sal_accept函数增加判断网卡up,down的功能 4、修改注释信息
Diffstat (limited to 'components/dfs')
-rw-r--r--components/dfs/src/poll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/dfs/src/poll.c b/components/dfs/src/poll.c
index 3996fdf580..fc48eca758 100644
--- a/components/dfs/src/poll.c
+++ b/components/dfs/src/poll.c
@@ -138,7 +138,7 @@ static int do_pollfd(struct pollfd *pollfd, rt_pollreq_t *req)
mask = f->fops->poll(f, req);
- /* dealwith the device return error -1 zhaoshimin 20200509*/
+ /* dealwith the device return error -1*/
if (mask < 0)
{
fd_put(f);
@@ -180,7 +180,7 @@ static int poll_do(struct pollfd *fds, nfds_t nfds, struct rt_poll_table *pt, in
ret = do_pollfd(pf, &pt->req);
if(ret < 0)
{
- /*dealwith the device return error -1 zhaoshimin 20200509*/
+ /*dealwith the device return error -1 */
pt->req._proc = RT_NULL;
return ret;
}