<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/components/net/sal, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/components/net/sal?h=master</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/components/net/sal?h=master'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2026-10-03T04:59:43Z</updated>
<entry>
<title>[lwip] add lwIP 2.2.1 as a selectable version alongside 1.4.1/2.0.3/2.1.2</title>
<updated>2026-10-03T04:59:43Z</updated>
<author>
<name>Tim Wang</name>
<email>tim.wang@nxp.com</email>
</author>
<published>2026-09-11T07:42:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=f1cc628cf27cd1435d14fab77ffeabedb602969b'/>
<id>urn:sha1:f1cc628cf27cd1435d14fab77ffeabedb602969b</id>
<content type='text'>
  - Kconfig: RT_USING_LWIP221 choice, RT_USING_LWIP_VER_NUM=0x20201
  - SConscript for lwip-2.2.1 (acd.c, mdns split files, tftp.c)
  - replay RTT patch set from lwip-2.1.2 onto 2.2.1
  - import RTT ping.c and tftp_port.c (adapted to 2.2.x TFTP API)
  - SAL: version-gated netconn socket accessor (callback_arg union &gt;= 2.2.0)
  - lwipopts: DHCP ACD (RFC 5227) and MEMP_NUM_SYS_TIMEOUT version gates
</content>
</entry>
<entry>
<title>[components][sal] Fix SIOCGIFCONF buffer overflow</title>
<updated>2026-09-07T06:53:09Z</updated>
<author>
<name>zhangyuyang</name>
<email>zhangyuyang821@163.com</email>
</author>
<published>2026-08-30T07:44:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=7fa651bd298ddd6cc99d60043f6472f196608825'/>
<id>urn:sha1:7fa651bd298ddd6cc99d60043f6472f196608825</id>
<content type='text'>
</content>
</entry>
<entry>
<title>style: format code with clang-format [skip ci]</title>
<updated>2026-09-01T01:05:36Z</updated>
<author>
<name>wyf-777</name>
<email>203830680+wyf-777@users.noreply.github.com</email>
</author>
<published>2026-08-27T09:39:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=f4da5cf14c059d1cdf32f1275880eddfafe4c159'/>
<id>urn:sha1:f4da5cf14c059d1cdf32f1275880eddfafe4c159</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[net][sal] Free DFS v2 vnode when socket creation fails</title>
<updated>2026-09-01T01:05:36Z</updated>
<author>
<name>wyf-777</name>
<email>wyf-777@users.noreply.github.com</email>
</author>
<published>2026-08-27T08:45:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=cfba23f4d1580e301954f9f723e7f94364d3db2c'/>
<id>urn:sha1:cfba23f4d1580e301954f9f723e7f94364d3db2c</id>
<content type='text'>
When sal_socket() rejects a request, DFS v2 descriptor cleanup destroys the dfs_file but leaves its separately allocated vnode behind.

Destroy the vnode before releasing the failed descriptor and add a regression test that verifies repeated failures do not consume heap.

Fixes #11710

Assisted-by: OpenAI Codex:GPT-5
</content>
</entry>
<entry>
<title>Add AF_UNIX sockets implementation (#11681)</title>
<updated>2026-08-17T09:15:34Z</updated>
<author>
<name>Bernard Xiong</name>
<email>bernard.xiong@gmail.com</email>
</author>
<published>2026-08-17T09:15:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=991f0ffca6ca475adcffc7833876bb8151f16e9c'/>
<id>urn:sha1:991f0ffca6ca475adcffc7833876bb8151f16e9c</id>
<content type='text'>
* components/dfs: support unix socket nodes

AF_UNIX pathname binding and descriptor passing require DFSv2 socket
nodes and retained open file descriptions across fd tables.

Add socket-node creation for tmpfs and devtmpfs, fd reference helpers,
and socket F_SETFL forwarding.

Impact: DFSv2 socket nodes and descriptor reference handling.
Validation: git diff --cached --check.

* components/net/sal: support local protocol providers

Local IPC protocol families do not have a backing network device.
Store the selected provider in each SAL socket and add a local provider
registry while preserving netdev checks for Internet sockets.

Handle DFSv2 close semantics, socketpair flags, and MSG_CTRUNC for
AF_UNIX integration.

Impact: SAL protocol dispatch for all socket families.
Validation: git diff --cached --check.

* components/lwp: support unix socket messages

Musl AF_UNIX addresses and ancillary data require explicit ABI and
user-memory conversion at the LWP syscall boundary.

Add the musl msghdr layout, bounded address and message copying,
control-message level conversion, and MSG_CTRUNC translation. Correct
receive buffer allocation and copy lengths while handling messages.

Impact: LWP socket syscalls when SAL is enabled.
Validation: git diff --cached --check.

* components/net/af_unix: add local sockets

Add an opt-in AF_UNIX provider for pathname-based local IPC without
a synthetic network device.

Support datagram and stream sockets, blocking and nonblocking I/O,
timeouts, poll, socketpair, and SCM_RIGHTS descriptor passing. Include
bounded Kconfig settings, component documentation, and utest coverage.

Impact: enabled only by RT_USING_AF_UNIX and requires SAL POSIX with
DFSv2.
Validation: git diff --cached --check.

* Fix AF_UNIX CI checks

Apply the repository clang-format rules to the affected source lines.
Suppress the cppcheck false positive for the devtmpfs list iterator.

No functional behavior is changed.

* components/lwp: preserve NULL optional msghdr buffers

When msg_name or msg_control is NULL, keep the kernel pointer NULL
instead of substituting an uninitialized buffer. Reject a NULL control
buffer with a nonzero length as EFAULT.

Impact: LWP sendmsg/recvmsg conversion on MMU targets.
Validation: git diff --cached --check.

* components/net/af_unix: fix poll UAF, namespace leak, and SCM_RIGHTS cycles

Poll only the local wait queue and wake writers from the receiver.
Free namespace entries on detach, and reject AF_UNIX descriptors in
SCM_RIGHTS until cycle collection exists.

Impact: AF_UNIX poll, bind lifetime, and descriptor passing.
Validation: git diff --cached --check.

* components/dfs: add DFSv2 AF_UNIX utest suite

Add opt-in tests under dfs/utest/v2/af_unix for socket nodes, IPC,
poll peer-close, namespace cleanup, and SCM_RIGHTS rejection.

Sources are built only when RT_UTEST_TC_USING_DFS_V2_AF_UNIX and the
selected test groups are enabled.

Impact: DFS utest menu and build; no production AF_UNIX behavior change.
Validation: git diff --cached --check.</content>
</entry>
<entry>
<title>format: format sal socket code</title>
<updated>2025-10-04T01:03:25Z</updated>
<author>
<name>Yuqiang Wang</name>
<email>yifang.wangyq@foxmail.com</email>
</author>
<published>2025-09-30T03:18:02Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=2e45b9b340d99f9c8348e6b6df62fae5845ebc8c'/>
<id>urn:sha1:2e45b9b340d99f9c8348e6b6df62fae5845ebc8c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat:[sal][utest] added test cases for the sal api</title>
<updated>2025-10-04T01:03:25Z</updated>
<author>
<name>Yuqiang Wang</name>
<email>yifang.wangyq@foxmail.com</email>
</author>
<published>2025-09-30T03:16:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=326e65f6ed30ffd420380f374b5692f730ad20cf'/>
<id>urn:sha1:326e65f6ed30ffd420380f374b5692f730ad20cf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[fix][ci]Fixed CI compilation failure in sal/src/sal_socket.c</title>
<updated>2025-09-09T08:42:16Z</updated>
<author>
<name>Rbb666</name>
<email>zhangbingru@rt-thread.com</email>
</author>
<published>2025-09-09T07:19:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=b525d2c535470f010ea14ecb637b3da5395a6ff5'/>
<id>urn:sha1:b525d2c535470f010ea14ecb637b3da5395a6ff5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix #4286,fifx memory leak when sal_socket failed</title>
<updated>2025-07-17T05:24:30Z</updated>
<author>
<name>jianbaoshan</name>
<email>1943515313@qq.com</email>
</author>
<published>2025-07-14T07:27:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=542d65bc8a1f995d45daadb0115a612acb593a1d'/>
<id>urn:sha1:542d65bc8a1f995d45daadb0115a612acb593a1d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[net][sal]add comments for BSD socket APIs.</title>
<updated>2024-11-16T02:04:27Z</updated>
<author>
<name>ligr</name>
<email>liguorui1213@163.com</email>
</author>
<published>2024-11-14T07:52:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=ac1df96ec976ac88898e60969e40dfdb90efdbcb'/>
<id>urn:sha1:ac1df96ec976ac88898e60969e40dfdb90efdbcb</id>
<content type='text'>
</content>
</entry>
</feed>
