Commit Graph

719 Commits

Author SHA1 Message Date
hanzhijian c00f13005b [lwip-dhcpd] Fix pbuf leak for oversized requests 2026-08-12 10:55:20 +08:00
Old-Ding b6cdae57d4 net: lwip: fix mDNS test buffer fill size
Fill the mDNS domain name buffers with their array size instead of the size of the MDNS_DOMAIN_MAXLEN constant. This preserves the test intent of leaving different trailing bytes after equal names are encoded.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-20 09:39:17 +08:00
Old-Ding cfd6f0ec9e lwip: fix trailing whitespace in TLS config 2026-07-05 15:48:09 +08:00
Old-Ding 2c797c358c lwip: require TLS certificate verification when CA is configured 2026-07-05 15:48:09 +08:00
Old-Ding b5b85006d4 lwip: constrain ping address resolution to IPv4 2026-06-29 18:04:51 +08:00
orbisai0security 49f985e0f6 fix: V-001 security vulnerability
Automated security fix generated by Orbis Security AI
2026-05-25 10:15:11 +08:00
Evlers e583b6c774 [lwip][ppp]: replace strncpy with rt_strncpy 2026-05-24 12:06:38 +08:00
Evlers c191ad8cd4 [lwip][ppp]: fix the risk of name member contamination in the ppp netif 2026-05-24 12:06:38 +08:00
Evlers 3345bbc423
fix(lwip): fix build error with PPP enabled#11403 2026-05-20 14:25:06 +08:00
AFWEF_147 ebe65849db fix(at): clamp formatted output length 2026-04-01 22:56:37 +08:00
CYFS 737ae54878
[bsp][gd32]:gd32vw553h-eval add wifi support#11175 2026-03-04 18:07:10 +08:00
CYFS 25b6953501 [components][lwip]: fix ping timeout handling and support LWIP_SO_SNDRCVTIMEO_NONSTANDARD 2026-02-05 17:08:37 +08:00
蒙蒙plus 6ab057be41 🐞 fix(at_socket):修复socket 在开启server下的connect连接
修复accept在错误执行过程中返回无效socket问题
2025-11-21 17:23:54 +08:00
CYFS 6a9a1df437
[components]:utilize the clang-format-ignore mechanism (#10860) 2025-10-28 15:17:04 +08:00
Yuqiang Wang c8f0a26a5f
feat:[sal][utest] added test cases for the sal api (#10720)
* feat:[sal][utest] added test cases for the sal api

* improve[net][utestcase]: standardize script construction

* ci[auto utest run]: standardize naming and add sal testcases

* add sal utest auto run configure and standard Information
2025-10-23 09:56:30 +08:00
Chen Wang c1363c77d6 utest: Improve the strings displayed in the menu
Use "Test" instead of "Unit Testcases" to make string shorter.
Use uppercase to make it look more eye-catching.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-16 18:34:43 +08:00
Yuqiang Wang 2e45b9b340 format: format sal socket code 2025-10-04 09:03:25 +08:00
Yuqiang Wang 326e65f6ed feat:[sal][utest] added test cases for the sal api 2025-10-04 09:03:25 +08:00
Chen Wang 495c8cfc25 utest: remove RT_UTEST_USING_ALL_CASES
Many modules' utests currently don't support enabling all
tests at once. Furthermore, some modules' tests are complex,
for example due to their numerous dependencies on other
modules. This makes it nearly impossible to enable all
tests with a single global switch. Consequently, the
previously defined `RT_UTEST_USING_ALL_CASES` has lost
its original meaning.

We recommend deprecating this configuration switch. If a
module needs to enable a group of functional tests through
its own configuration, this local enable all switch should
be implemented by the module itself, and a global RTT enable
switch will no longer be provided.

If such a requirement arises in the future, we recommend
careful design, especially considering how to ensure that
turning on a single switch enables all dependencies for
all involved modules for ease of use.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-09-26 09:57:54 +08:00
Rbb666 d7dded112e [utest][netdev]add netdev api testcases. 2025-09-18 22:27:34 +08:00
Rbb666 1e81571256 [net/netdev]Fixed compilation errors when enabling IPv6 and IPv4 dual-stack support. 2025-09-15 11:21:34 +08:00
R b b666 ff26c0c4b3
[netdev]Fixed netdev_unregister missing correct return value. (#10693) 2025-09-14 11:35:20 +08:00
Rbb666 4832f0482a [utest][lwip]add lwip api testcase. 2025-09-10 15:22:39 +08:00
Rbb666 b525d2c535 [fix][ci]Fixed CI compilation failure in sal/src/sal_socket.c 2025-09-09 16:42:16 +08:00
maosql 9567564e86 fix: warnings generated by Kconfig. 2025-09-01 11:50:41 +08:00
RyanCW a1a8bc5422
[component][net][at] at_client增加deInit接口 (#10598)
* [component][net][at] at_client增加deInit接口

* [component][net][at] at_client优化serial_v2适配
2025-08-21 18:49:35 +08:00
jianbaoshan 542d65bc8a fix #4286,fifx memory leak when sal_socket failed 2025-07-17 13:24:30 +08:00
Kinte 29033ab500 [refact](netdev): Expose netdev_set_dns and netdev_set_if
[Descriptions]:
    1. Make these functions public to avoid code duplication and allow direct usage by other components.
    2. Fix ifdef's error note.
[Root Cause]:NA
[Side Effects]:NA
2025-07-10 08:26:43 +08:00
ryancw ac8fba0129 [drivers][serial_v2]允许阻塞接收超过rx缓冲区大小的数据、增加超时时间、flush、获取缓冲区数据长度命令、数据溢出逻辑修复、稳定性细节优化、添加更多serial_v2测试用例
[components][serial_v2] 优化txflush逻辑、对tx的activated做中断保护

[components][at] at_client适配新版serial_v2

[components][at] at_server适配新版serial_v2

[components][serial_v2] 测试用例增加循环调用,format测试用例

[components][serial_v2] poll模式判断逻辑错误

[components][serial_v2] 测试用例去掉一些非必要延时

[components][serial_v2] 测试例程使用menuconfig进行配置,更新readme

[components][at_client] at_client_getchar返回值错误、at_client解析线程优先级错误设置

[components][at] 错误码应该返回负值

[components][serial_v2] TCFLSH和FIONREAD完善、control函数增加错误返回值

[components][serial_v2] RT_SERIAL_CTRL_GET_RX_DATA_LEN更改为RT_SERIAL_CTRL_GET_UNREAD_BYTES_COUNT

[utest][serial_v2] TC_UART_SEND_TIMES替换为RT_SERIAL_TC_SEND_ITERATIONS

[components][serial_v2] FIONREAD参数应该是无符号类型

[utest][serial_v2] 完善测试用例

[components][serial_v2] 避免使用三目运算符

[components][serial_v2] 使用clang-format格式化代码

[components][serial_v2] 添加get超时时间命令

[components][serial_v2] 完善posix接口

[components][serial_v2] 阻塞接口添加阻塞时间为0时的处理逻辑、优化RX阻塞接收逻辑

[components][serial_v2] 设置超时时间命令的参数改为指针形式

[components][serial_v2] nbuf发送添加超时时间为0时的逻辑

[components][serial_v2] 完善添加测试用例

[utest][serial_v2] 修复依赖关系

[components][serial_v2] 非阻塞模式下tx_flush错误修复

[components][serial_v2] activated使用原子API

[components][serial_v2] 优化DMA逻辑、没使能DMA时屏蔽DMA逻辑节约资源

[components][serial_v2] 提供写满时丢弃新数据和覆盖旧数据策略,写满丢弃策略效率更高

[components][serial_v2] 部分平台适配写满时两种策略功能

[components][serial_v2] DMA模式暂不支持丢弃新数据策略

[utest][serial_v2] 优化测试代码

[components][serial_v2] DMA模式下使用乒乓缓冲、DMA模式支持丢弃新数据策略

[utest][serial_v2] 适配DMA乒乓缓冲

[bsp][serial_v2] 部分bsp适配DMA下乒乓缓冲

[components][serial_v2] 使用spinlock替换中断,对部分结构体变量使用原子操作

[utest][serial_v2] 更新测试用例

[components][at] 适配new serialv2不再判断RTT版本号

[components][at] 删除多余的中文注释

[utest][serial_v2] 添加交叉echo示例,qemu环境下专用

[bsp][qemu] 适配串口v2并开启fifo

[components][at] 修复合并导致的错误

[bsp][n32] 适配serial_v2,没有经过测试

[components][serial_v2] 格式化代码

[utest][serial_v2] 删除无意义的打印
2025-05-16 09:42:11 +08:00
1078249029 9d3ee51107 [components][at] Add formatting message function for at client
It will be useful for quiting transmission mode of some chips like esp8266.

Signed-off-by: 1078249029 <1078249029@qq.com>
2025-03-12 20:48:07 -04:00
Evlers 45bb1ddac9 [components][netdev] add statistics and more inupt parameters to ping command 2025-01-20 16:55:40 +08:00
dongly b81a44bf74
[AT] AT_Device 适配 SERIAL_V2 (#9860)
AT_Device 适配 SERIAL_V2
2025-01-03 13:00:33 +08:00
Evlers 0932e31ca3 add support for independent dns services for multiple network devices 2024-12-25 18:22:00 +08:00
Meco Man 443ade4c29 [sscanf] use rt_sscanf to replace sscanf 2024-11-27 10:59:15 +08:00
zhujiale 48fca91817 add ofw api to of net,driver writer can use this api get phy modes or get mac address 2024-11-18 13:53:25 +08:00
zhujiale 6e78474998 pci 2024-11-18 13:53:25 +08:00
ligr ac1df96ec9 [net][sal]add comments for BSD socket APIs. 2024-11-15 21:04:27 -05:00
yangpeng f98f772a84 [components/net/at]修复大数据量传输socket断开后可能丢数据的问题 2024-11-05 22:36:33 -05:00
kurisaw ee052245d3 Specification submission 2024-11-05 09:43:57 +08:00
kurisaw 13a6c5201d [net][lwip] lwip hook functions are provided to provide greater flexibility for unknown Ethernet protocols 2024-11-05 09:43:57 +08:00
yangpeng a939e8e4ea [components/net/at]修复at socket信号量释放异常 2024-11-04 17:52:59 -05:00
zms123456 9a010bb71b
[components][sal]add netdev ifindex feature 2024-10-11 00:10:21 -04:00
zms123456 906d1caea6
[component][sal]add netgetdev api 2024-10-10 22:40:24 -04:00
zhao maosheng 992e79a0f8 optimize sal_bind 2024-09-19 21:15:52 +08:00
zms123456 379aece6dc
[components][sal]delay getting sal_proto_family in sal_ioctlsocket 2024-09-14 13:52:40 -04:00
zms123456 accd616e17
[component][sal]delete netdev_lo
netdev_lo无需单独处理,可以根据协议去找对应的网络设备
2024-09-14 01:49:25 -04:00
zms123456 140ca0d2ff
[components][sal]replace netdev's spin_lock_irqsave to spin_lock
netdev的函数不会在中断中调用,无需关中断
2024-09-13 17:32:35 -04:00
zms123456 f2dc4f13cb
[components][lwip]fix lwip poll macro conflict 2024-09-13 17:29:08 -04:00
ryancw 9de975fa93 [components][sal][at] _gethostbyname_by_device 添加注释 2024-09-09 18:07:41 -04:00
ryancw e9711d5640 [components][sal][at] netdb添加at_gethostbyname_r 2024-09-09 18:07:41 -04:00