Commit Graph

2099 Commits

Author SHA1 Message Date
zhangbo56 6e696499bd rexec: import kernel_module_headers for rexec
Signed-off-by: zhangbo56 <zhangbo56@xiaomi.com>
2026-04-20 15:20:23 +08:00
wenquan1 03e9ea8edc netlib: support checkipconnectivity when use reslov.conf
Signed-off-by: wenquan1 <wenquan1@xiaomi.com>
2026-04-20 15:20:22 +08:00
yangjianqing ac26aa59f6 nng:Fix the issue of nng testcase CMake compilation error
Signed-off-by: yangjianqing <yangjianqing@xiaomi.com>
2026-04-20 15:20:21 +08:00
yangjianqing 96e74fa62a paho_mqtt:Fix the issue of compiler options overriding each other.
Signed-off-by: yangjianqing <yangjianqing@xiaomi.com>
2026-04-20 15:20:21 +08:00
meijian 04a357a460 nng/testcase: add defconfig and makefile for nng testcase
Signed-off-by: meijian <meijian@xiaomi.com>
2026-04-20 15:20:20 +08:00
daichuan 307c0052d8 rpmsg_tun: modify for coverity error
Signed-off-by: daichuan <daichuan@xiaomi.com>
2026-04-20 15:20:20 +08:00
daichuan 16abab8a55 dhcpc: need set ipaddr wait receive dhcp ack
With RFC2131 3.1, The client receives one or more DHCPOFFER messages from one or more servers. The client may choose to wait for multiple responses. so the ipaddr need set after receive dhcp ack.

Signed-off-by: daichuan <daichuan@xiaomi.com>
2026-04-20 15:20:20 +08:00
yangjianqing 94a45e9c3f apps/netutils:Added 10 new libwebsockets testcases
Signed-off-by: yangjianqing <yangjianqing@xiaomi.com>
2026-04-20 15:20:20 +08:00
yangjianqing 774458315c apps/netutils: Modify the libwebsockets compilation file to enable libwebsockets testing
Signed-off-by: yangjianqing <yangjianqing@xiaomi.com>
2026-04-20 15:20:20 +08:00
v-tangmeng 5a73092f30 iperf: fix the compile error
error: variable 'opt' is uninitialized when passed as a const pointer argument here

setsockopt(listen_socket, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt));

Signed-off-by: v-tangmeng <v-tangmeng@xiaomi.com>
2026-04-20 15:20:19 +08:00
daichuan e07a4e3904 rpmsg_tun: Android server bring-up, SELinux policy add allow necessary socket ops with decnet_socket
Signed-off-by: daichuan <daichuan@xiaomi.com>
2026-04-20 15:20:18 +08:00
daichuan 1ab700ff1f rpmsg_tun: modify for android support rpmsg_tun_server install rpmsg_tun_client
Signed-off-by: daichuan <daichuan@xiaomi.com>
2026-04-20 15:20:18 +08:00
daichuan 74bfb7113b rpmsg_tun: add netcard wait_running with rpmsg_tun_client
Signed-off-by: daichuan <daichuan@xiaomi.com>
2026-04-20 15:20:18 +08:00
daichuan dc500b36f8 rpmsg_tun_client: Add kernel_modules_headers header file dependencies.
Signed-off-by: daichuan <daichuan@xiaomi.com>
2026-04-20 15:20:18 +08:00
zhanghongyu d08ba3403d netutils/dhcp6c: fix printf-style format strings build warning
apps/netutils/dhcp6c/dhcp6c.c: In function ‘dhcp6c_command’:
apps/netutils/dhcp6c/dhcp6c.c:865:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘ssize_t’ {aka ‘long int’} [-Wformat=]
  865 |               ninfo("%s[type:%d] recv len[%d]\n", __func__, type, len);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~                  ~~~
      |                                                                   |
      |                                                                   ssize_t {aka long int}
apps/netutils/dhcp6c/dhcp6c.c:865:44: note: format string is defined here
  865 |               ninfo("%s[type:%d] recv len[%d]\n", __func__, type, len);
      |                                           ~^
      |                                            |
      |                                            int
      |                                           %ld

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 15:20:17 +08:00
gaohedong 6660e78d69 net/ethernet: add netlib api to get/set driver channels info
add netlib api to get/set driver channels info

Signed-off-by: gaohedong <gaohedong@xiaomi.com>
2026-04-20 15:20:17 +08:00
dongjiuzhu 015ab24597 netutils/ptp: add debug info about ptp adjust time state
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 15:20:16 +08:00
wangchen 5e37aa5709 netlib_getifstatistics.c:The issue of ymodem pull failure was resolved by switching the exception printing interface from fprintf to nerr
Signed-off-by: wangchen <wangchen41@xiaomi.com>
2026-04-20 15:20:16 +08:00
yangjianqing 7c50b8d94d paho_mqtt: add marco to control stack trace function
Signed-off-by: yangjianqing <yangjianqing@xiaomi.com>
2026-04-20 15:20:16 +08:00
zhanghongyu d9405a2fb1 libwebsockets: add depends on NET_TCPPROTO_OPTIONS to support TCP_NODELAY
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 15:20:15 +08:00
v-tangmeng 0f5b502859 sched: fix the compile error
error: implicit declaration of function 'sched_lock'
error: implicit declaration of function 'sched_unlock'

Signed-off-by: v-tangmeng <v-tangmeng@xiaomi.com>
2026-04-20 15:20:13 +08:00
hujun5 2fc983e2a8 fix compile error
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-20 15:20:13 +08:00
v-tangmeng 690fc1e0c3 fix the compilation error caused by CONFIG_DISABLE_SIGNALS
The commit 'add support for CONFIG_DISABLE_SIGNALS' led to:

undefined reference to `signal'
undefined reference to `sigaction'

Signed-off-by: v-tangmeng <v-tangmeng@xiaomi.com>
2026-04-20 15:20:13 +08:00
v-tangmeng 7d3eba6534 fix the compilation error
error: implicit declaration of function 'DEBUGASSERT' [-Werror=implicit-function-declaration]

Signed-off-by: v-tangmeng <v-tangmeng@xiaomi.com>
2026-04-20 15:20:13 +08:00
Yongrong Wang bb18671101 iperf_main.c: iperf parameter cid supports string type.
Signed-off-by: Yongrong Wang <wangyongrong@xiaomi.com>
2026-04-20 15:20:13 +08:00
guoshichao 79604fc78b ptpd: support on signal disabled
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2026-04-20 15:20:12 +08:00
guoshichao 5a53b85b2f netutils: make the net tools can work with signal disabled
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2026-04-20 15:20:12 +08:00
yangjianqing a0bcabd170 paho_mqtt:add thread stacksize config when utils mqtt disable
Signed-off-by: yangjianqing <yangjianqing@xiaomi.com>
2026-04-20 15:20:09 +08:00
zhangkai25 20f949653c Iperf:Increase the priority of the report thread to ensure it is not blocked by the iperf thread, preventing iperf from completing.
Signed-off-by: zhangkai25 <zhangkai25@xiaomi.com>
2026-04-20 15:19:53 +08:00
dongjiuzhu1 d03b188956 netutils/ptpd: fix coverity issue about event_socket is negative value
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 15:19:53 +08:00
zhangshuai39 f0d02a8bba mqtt: Cmake parallel compilation may cause file overwriting problems
Signed-off-by: zhangshuai39 <zhangshuai39@xiaomi.com>
2026-04-20 15:19:53 +08:00
yangjianqing 61f63d2c0f paho_mqtt:fix cmakelist format issue
Signed-off-by: yangjianqing <yangjianqing@xiaomi.com>
2026-04-20 15:19:50 +08:00
yangjianqing 99d4fc7eb7 paho_mqtt:add thread stacksize config when utils mqtt disable
Signed-off-by: yangjianqing <yangjianqing@xiaomi.com>
2026-04-20 15:19:50 +08:00
makejian d0e1f3ff13 mqtt: export macro with openssl and ssl
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-20 15:19:50 +08:00
zhangshuai39 0be7610b82 netutils/pahp_mqtt: Fix link error when compiling specific product
Signed-off-by: zhangshuai39 <zhangshuai39@xiaomi.com>
2026-04-20 15:19:50 +08:00
zhangshuai39 b5ea387e78 paho_mqtt: Add mqtt compilation files
Signed-off-by: zhangshuai39 <zhangshuai39@xiaomi.com>
2026-04-20 15:19:50 +08:00
zhangshuai39 cd12cf8ecb dhcpd: Increase dhcpd_stop's dependency on CONFIG_SCHED_WAITPID
dhcpd_stop is not supported when CONFIG_SCHED_WAITPID is not enabled

Signed-off-by: zhangshuai39 <zhangshuai39@xiaomi.com>
2026-04-20 15:19:49 +08:00
zhangshuai39 5bd73b209c dhcpd: Using macros CONFIG_BUILD_KERNEL to control dhcpd_start compilation
Signed-off-by: zhangshuai39 <zhangshuai39@xiaomi.com>
2026-04-20 15:19:49 +08:00
zhanghongyu 41e2400107 netlib_setarp.c: add ATF_PERM to mark arp entry as permanent
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 15:19:48 +08:00
zhangshuai39 0f28917b9c dhcpd: Enable kernel mode support for dhcpd_stop
Signed-off-by: zhangshuai39 <zhangshuai39@xiaomi.com>
2026-04-20 15:19:48 +08:00
zhanghongyu e2af20a395 Revert "netlib_iptables.c: do not use SOCK_CTRL to set/getsockopt"
This reverts commit 556150973cbba410c6a59366f8d622e3768acc0f.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 15:19:47 +08:00
yangjianqing b8f85c712f libwebsockets:add the config of default ca filepath
Signed-off-by: yangjianqing <yangjianqing@xiaomi.com>
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-20 15:19:46 +08:00
zhanghongyu 3a68df01ba netlib_iptables.c: do not use SOCK_CTRL to set/getsockopt
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 15:19:45 +08:00
haopengxiang 8c95656b1e apps/netutils/paho_mqtt: add paho_mqtt repo in apps .gitignore
Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2026-04-20 15:19:43 +08:00
yangjianqing a880461a4d libwebsocket:enable foreign loop function so that libwebsocket can join the foreign uv_loop
Signed-off-by: yangjianqing <yangjianqing@xiaomi.com>
2026-04-20 15:19:42 +08:00
yangjianqing 8d0ac0ceeb libwebsockets:Fix the issue of not finding the same-level header file when compiling qemu
Signed-off-by: yangjianqing <yangjianqing@xiaomi.com>
2026-04-20 15:19:42 +08:00
dongjiuzhu1 44896c31bb netutils/ptpd: add NET_PKT to enable PTP
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 15:19:42 +08:00
v-zhoufuyin 466a21a75a Netutils/ping: Fix ICMP_FILTER setsockopt failure on NuttX
NuttX's icmp_setsockopt() does not implement ICMP_FILTER handling
for IPPROTO_ICMP sockets, which causes:
icmp_setsockopt: ERROR: Unrecognized ICMP option: 1
and leads to ping failures (100% packet loss) even when pinging
the device's own IP.

Switch setsockopt() call from IPPROTO_ICMP to SOL_RAW so that
ICMP_FILTER is processed by raw_setsockopt(), which supports this
option.

Fixes: ping self-test failures in test_nuttx_ping_self_ip

Signed-off-by: v-zhoufuyin <v-zhoufuyin@xiaomi.com>
2026-04-20 15:19:41 +08:00
v-tangmeng 74de32fa6e netutils/ping: fix complie error
icmp_ping.c:(.text.icmp_ping+0xae): undefined reference to `setsockopt'

icmp_ping.c used setsockopt, adds Kconfig depend to fix compile errors.

Signed-off-by: v-tangmeng <v-tangmeng@xiaomi.com>
2026-04-20 15:19:41 +08:00
zhanghongyu c1e53b662b MQTT-C: compile tests only if no with_mbedtls is enabled
tests only supports tests in non-encrypted mode. when we open tests
compilation in other modes, there will be many compilation warning
with mismatched parameter types, and it will not run correctly.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 15:19:41 +08:00