mirror of
https://github.com/openharmony/communication_t2stack.git
synced 2026-07-21 00:35:25 -04:00
sync to 0a7098670
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "nstackx_list.h"
|
||||
#include "nstackx_inet.h"
|
||||
|
||||
|
||||
#define TAG "LOCALDEVICE"
|
||||
enum {
|
||||
IFACE_STATE_READY,
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
#ifndef JSON_PAYLOAD_H
|
||||
#define JSON_PAYLOAD_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "nstackx.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -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" {
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user