sync to 0a7098670

This commit is contained in:
Agrant
2026-01-19 17:54:49 +08:00
parent b1493c4801
commit 57a494c8fa
5 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -912,7 +912,8 @@ static int32_t CheckInterfaceInfo(const NSTACKX_InterfaceInfo *ifaces, uint32_t
{
for (uint32_t i = 0; i < count; ++i) {
if (!IsNetworkNameValid(ifaces[i].networkName, sizeof(ifaces[i].networkName)) ||
!IsIpAddressValid(ifaces[i].networkIpAddr, sizeof(ifaces[i].networkIpAddr))) {
!IsIpAddressValid(ifaces[i].networkIpAddr, sizeof(ifaces[i].networkIpAddr)) ||
!IsNetworkNameValid(ifaces[i].serviceData, sizeof(ifaces[i].serviceData))) {
DFINDER_LOGE(TAG, "invalid network name or ip address of No.%u local iface", i);
return NSTACKX_EINVAL;
}
+1
View File
@@ -26,6 +26,7 @@
#include "nstackx_list.h"
#include "nstackx_inet.h"
#define TAG "LOCALDEVICE"
enum {
IFACE_STATE_READY,
-1
View File
@@ -16,7 +16,6 @@
#ifndef JSON_PAYLOAD_H
#define JSON_PAYLOAD_H
#include <stdint.h>
#include "nstackx.h"
#ifdef __cplusplus
+1 -1
View File
@@ -16,8 +16,8 @@
#ifndef NSTACKX_DEVICE_LOCAL_H
#define NSTACKX_DEVICE_LOCAL_H
#include "nstackx_device.h"
#include "coap_app.h"
#ifdef __cplusplus
extern "C" {
+1
View File
@@ -20,6 +20,7 @@
#include <stddef.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif