Files
mbed-os/connectivity/nanostack/sal-stack-nanostack/source/NWK_INTERFACE/Include/protocol_stats.h
Beslan 0ef1717155
Some checks failed
Basic Checks / license-check (push) Has been cancelled
Basic Checks / include-check (push) Has been cancelled
Basic Checks / style-check (push) Has been cancelled
Basic Checks / docs-check (push) Has been cancelled
Basic Checks / python-tests (push) Has been cancelled
Basic Checks / pin-validation (push) Has been cancelled
Basic Checks / cmake-checks (push) Has been cancelled
Basic Checks / frozen-tools-check (push) Has been cancelled
Publish or Update docker image for head of branch / prepare-tags (push) Has been cancelled
Release or update docker image for a released mbed-os version / prepare-tags (push) Has been cancelled
Publish or Update docker image for head of branch / build-container (push) Has been cancelled
Publish or Update docker image for head of branch / test-container (linux/amd64) (push) Has been cancelled
Publish or Update docker image for head of branch / test-container (linux/arm64) (push) Has been cancelled
Publish or Update docker image for head of branch / deploy-container (push) Has been cancelled
Release or update docker image for a released mbed-os version / build-container (push) Has been cancelled
Release or update docker image for a released mbed-os version / test-container (linux/amd64) (push) Has been cancelled
Release or update docker image for a released mbed-os version / test-container (linux/arm64) (push) Has been cancelled
Release or update docker image for a released mbed-os version / deploy-container (push) Has been cancelled
Prune temporary docker images / prune-images (push) Has been cancelled
Mirror mbed-os-6.15.0
2026-07-10 18:42:39 +03:00

58 lines
1.6 KiB
C

/*
* Copyright (c) 2014-2017, 2019-2021, Pelion and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef PROROCOL_STATS_H
#define PROROCOL_STATS_H
typedef enum {
STATS_IP_RX_COUNT,
STATS_IP_TX_COUNT,
STATS_IP_ROUTE_UP,
STATS_IP_RX_DROP,
STATS_IP_NO_ROUTE,
STATS_IP_CKSUM_ERROR,
STATS_FRAG_RX_ERROR,
STATS_FRAG_TX_ERROR,
STATS_RPL_PARENT_CHANGE,
STATS_RPL_ROUTELOOP,
// RFC 6550 S18.5 stats
STATS_RPL_MEMORY_OVERFLOW,
STATS_RPL_PARENT_TX_FAIL,
STATS_RPL_UNKNOWN_INSTANCE,
STATS_RPL_LOCAL_REPAIR,
STATS_RPL_GLOBAL_REPAIR,
STATS_RPL_MALFORMED_MESSAGE,
STATS_RPL_TIME_NO_NEXT_HOP,
STATS_RPL_MEMORY_ALLOC,
STATS_RPL_MEMORY_FREE,
STATS_BUFFER_ALLOC,
STATS_BUFFER_HEADROOM_REALLOC,
STATS_BUFFER_HEADROOM_SHUFFLE,
STATS_BUFFER_HEADROOM_FAIL,
STATS_ETX_1ST_PARENT,
STATS_ETX_2ND_PARENT,
STATS_AL_TX_QUEUE_SIZE,
STATS_AL_TX_CONGESTION_DROP,
STATS_AL_TX_LATENCY
} nwk_stats_type_t;
extern void protocol_stats_init(void);
extern void protocol_stats_update(nwk_stats_type_t type, uint16_t update_val);
#endif