Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
protocol_stats.h
00001 /* 00002 * Copyright (c) 2014-2017, Arm Limited and affiliates. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 #ifndef PROROCOL_STATS_H 00018 #define PROROCOL_STATS_H 00019 00020 typedef enum { 00021 STATS_IP_RX_COUNT, 00022 STATS_IP_TX_COUNT, 00023 STATS_IP_ROUTE_UP, 00024 STATS_IP_RX_DROP, 00025 STATS_IP_NO_ROUTE, 00026 STATS_IP_CKSUM_ERROR, 00027 STATS_FRAG_RX_ERROR, 00028 STATS_FRAG_TX_ERROR, 00029 STATS_RPL_PARENT_CHANGE, 00030 STATS_RPL_ROUTELOOP, 00031 // RFC 6550 S18.5 stats 00032 STATS_RPL_MEMORY_OVERFLOW, 00033 STATS_RPL_PARENT_TX_FAIL, 00034 STATS_RPL_UNKNOWN_INSTANCE, 00035 STATS_RPL_LOCAL_REPAIR, 00036 STATS_RPL_GLOBAL_REPAIR, 00037 STATS_RPL_MALFORMED_MESSAGE, 00038 STATS_RPL_TIME_NO_NEXT_HOP, 00039 STATS_RPL_MEMORY_ALLOC, 00040 STATS_RPL_MEMORY_FREE, 00041 STATS_BUFFER_ALLOC, 00042 STATS_BUFFER_HEADROOM_REALLOC, 00043 STATS_BUFFER_HEADROOM_SHUFFLE, 00044 STATS_BUFFER_HEADROOM_FAIL, 00045 STATS_ETX_1ST_PARENT, 00046 STATS_ETX_2ND_PARENT, 00047 00048 } nwk_stats_type_t; 00049 00050 00051 extern void protocol_stats_init(void); 00052 extern void protocol_stats_update(nwk_stats_type_t type, uint16_t update_val); 00053 00054 #endif
Generated on Tue Jul 12 2022 12:45:42 by
