Commit Graph

70 Commits

Author SHA1 Message Date
Meco Man ee4b7916a3 [libc标准化]脱敏dfs_select.h 由标准sys/select.h代替 2021-09-22 16:45:21 -04:00
guo 160d448660
Merge pull request #5051 from mysterywolf/be_libc
[libc标准化] 使用标准poll.h代替dfs_poll.h
2021-09-13 10:45:09 +08:00
Meco Man b35fffd659 [remove rtlibc]修复缺失的头文件导致的报错 2021-09-11 14:43:09 -04:00
Meco Man c360688714 使用poll.h代替dfs_poll.h 2021-09-11 11:56:54 -04:00
Bernard Xiong 8da9f78d72 [libc] remove rtlibc 2021-09-11 11:07:51 +08:00
Meco Man 94ed55f34d [workqueue] remove rt_delayed_work_init() 2021-08-01 17:26:01 +08:00
Meco Man 004e8bbf0f [SAL] 修复一处笔误 2021-07-23 03:52:35 +08:00
NightIsDark 247d1a50d7 git rebase commit 2021-07-01 14:06:12 +08:00
NightIsDark 550ad698e0 格式错误修订 2021-07-01 14:06:12 +08:00
NightIsDark ce7d1c6ca6 修订PR邮箱错误无法签署CLA的问题 2021-07-01 14:06:12 +08:00
NightIsDark 122f90922e Revert "多网卡应用下,accept创建的socket应该和server使用一样的网卡(默认网卡不一定正确)"
This reverts commit 05124def81684a2bf73b89513e2ffaf88a03f806.
2021-07-01 14:06:12 +08:00
NightIsDark a245403f4d 多网卡应用下,accept创建的socket应该和server使用一样的网卡(默认网卡不一定正确) 2021-07-01 14:06:12 +08:00
Meco Man a5f7635f31 remove libc_errno.h & libc_limits.h 2021-05-22 02:50:35 +08:00
liuxianliang 865e34650c [add] the function of set [internet up] status, activate the callback. 2021-04-12 18:11:37 +08:00
Meco Man 3c05a4e719 [compoenets] auto & manual formatted 2021-03-08 18:19:04 +08:00
xiangxistu 14ac354dca [update] when close auto check internet status, shield internet status information.
Signed-off-by: xiangxistu <xiangxistu@foxmail.com>
2020-12-31 14:39:08 +08:00
xiangxistu 5db412b138 [add] a new function to manage internet check.
Signed-off-by: xiangxistu <xiangxistu@foxmail.com>
2020-12-31 11:53:30 +08:00
Bernard Xiong 86756c0d4c
Merge pull request #4065 from longtengmcu/master
fix at socket and sal_socket bug
2020-12-09 17:26:47 +08:00
caixf 0f991c2e3e [sal] fix 2020-12-08 15:48:58 +08:00
longtengmcu aac5e9da4c 1、web socket请求数据从服务器回来时,服务器会关闭连接,此时AT socket在读取返回的数据时不应该判断socket为连接的状态
2、sal socket在支持多网卡时,sal_getaddrinfo从A网卡获取的地址信息,在sal_freeaddrinfo释放时必须由A网卡进行释放
2020-11-22 12:36:07 +08:00
longtengmcu d75f03e4b0 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、修改注释信息
2020-05-21 22:05:38 +08:00
longtengmcu 63950c9259 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的功能
2020-05-17 15:51:35 +08:00
luhuadong 88a02d7bd8 fixed some typos 2020-05-09 10:33:36 +08:00
Keyun-Johan 5ea637903d
Update sal_socket.c
OK
2020-04-13 17:42:37 +08:00
Keyun-Johan 63e855d78a socket_new()成功后,后续函数不成功返回-1,没有删除socket 2020-04-12 19:22:19 +08:00
HubretXie 3c2bfa2349
【修复bug】修复sal判断internet连接的隐藏bug
1、当前判断网卡是否连接Internet是通过连接rtt-thread的服务器来判断的,
2、这个月开始好像服务器挂了,不响应请求
3、这里超时用的2000秒,导致sys workqueue被卡死在这里了
2019-11-26 09:38:16 +08:00
malongwei c531fdc7ae 去除sal shut_down后释放socket导致close失败的问题 2019-11-16 12:33:09 +08:00
tanglj86 5e16a09cfb fix rt_thread_mdelay parameter error bug; 2019-10-19 15:00:15 +08:00
tangyuxin 4219eb7fc3 [components][net][sal]修复多线程访问创建相同fd的问题 2019-09-03 16:16:10 +08:00
tangyuxin 16304f14a8 [components][net] 1.网卡可卸载 2.dhcpd 服务可停止 2019-08-11 11:53:28 +08:00
chenyong 232019e8d1 [net][sal] Fix not clean event issue after poll get the error event in lwIP.
Signed-off-by: chenyong <1521761801@qq.com>
2019-07-25 11:20:40 +08:00
chenyong 7d2ffe63e9 [net][sal][netdev] Add IPv6 option configuration and feature support in SAL and netdev
Signed-off-by: chenyong <1521761801@qq.com>
2019-06-24 17:46:18 +08:00
chenyong 4608e1164c [net][sal] Improve the sal_bind() function
Signed-off-by: chenyong <1521761801@qq.com>
2019-05-28 12:04:25 +08:00
chenyong 9abdebbec9 [net][sal] Fix fcntl() function not support F_GETFL/F_SETFL operations for socketfd.
Signed-off-by: chenyong <1521761801@qq.com>
2019-05-15 14:45:31 +08:00
chenyong 4de0533a51 [net][sal][netdev] Delete the link_up status judgment in the send/recv interface
Signed-off-by: chenyong <1521761801@qq.com>
2019-05-10 15:57:58 +08:00
Bernard Xiong 955d78cd14
Merge pull request #2658 from Lawlieta/develop_sal
[net][sal] Improve ioctl interface to support socketfd operations
2019-05-08 15:26:28 +08:00
chenyong 25ebcc9c33 [net][sal] Improve ioctl interface to support for socketfd operations
Signed-off-by: chenyong <1521761801@qq.com>
2019-05-08 10:48:17 +08:00
chenyong cbe67ae354 [net][sal] Add options and types for UDP multicast traffic handling
[net][sal] Add options for level IPPROTO_IP

Signed-off-by: chenyong <1521761801@qq.com>
2019-05-07 17:24:11 +08:00
chenyong 7424e44e20 [net][netdev] Add default netdev automatic change features configuration
Signed-off-by: chenyong <1521761801@qq.com>
2019-05-05 20:35:01 +08:00
chenyong 9752dd7889 [net][sal] Delete the judgment of the default network interface device when socket is created
Signed-off-by: chenyong <1521761801@qq.com>
2019-05-05 14:50:29 +08:00
HubretXie fd05ad76d6
Update sal_socket.c
格式化代码
2019-04-28 15:26:52 +08:00
HubretXie f7e5f4cd50
Update sal_socket.c
创建sock时,默认网卡联网时才优先使用
2019-04-28 15:21:19 +08:00
chenyong c9bea68240 [net][lwip] Fix open the netdev and the lwip component, ping command export error issue
Signed-off-by: chenyong <1521761801@qq.com>
2019-04-28 00:53:58 +08:00
chenyong 2721e7189a [net][netdev] Fix netdev link_down status, socket create failed issue
Signed-off-by: chenyong <1521761801@qq.com>
2019-04-27 17:24:58 +08:00
chenyong 6f732ebb7f [net][sal] fix sockfd initialize error problem
Signed-off-by: chenyong <1521761801@qq.com>
2019-04-24 00:11:04 +08:00
EvalZero 3ada52e353 [components][net]synchronize delayed work changes. 2019-04-22 11:50:39 +08:00
chenyong 9df6313537 [net][sal] fix delay_work timer not detach problem
Signed-off-by: chenyong <1521761801@qq.com>
2019-04-17 18:42:10 +08:00
chenyong 3d6e0ea374 [net][netdev]add network interface device components, SAL component adaptation netdev change 2019-04-16 18:24:55 +08:00
armink fa4d4ab7cf Update all of debug log definition to DBG_TAG and DBG_LVL. 2019-04-12 10:18:57 +08:00
Bernard Xiong ce2cbb42ec
Merge pull request #2388 from armink/fix_rtdbg
Remove the DBG_COLOR and DBG_ENABLE definition.
2019-03-07 17:03:23 +08:00