From 8d9a0d68ea37d57c5c46520ebeb4e666f438858a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD=20=D0=9F=D0=B0=D0=BB=D0=B0?= =?UTF-8?q?=D1=83=D0=B7=D0=BE=D0=B2?= Date: Sat, 17 Dec 2022 14:20:38 +0200 Subject: [PATCH] snmpstats: typos --- src/modules/snmpstats/doc/snmpstats_admin.xml | 2 +- src/modules/snmpstats/kamailioNet.c | 8 ++++---- src/modules/snmpstats/mibs/KAMAILIO-TC | 2 +- src/modules/snmpstats/snmpSIPStatusCodesTable.c | 2 +- src/modules/snmpstats/snmp_statistics.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/modules/snmpstats/doc/snmpstats_admin.xml b/src/modules/snmpstats/doc/snmpstats_admin.xml index 331f14d2b25..b14721bbf24 100644 --- a/src/modules/snmpstats/doc/snmpstats_admin.xml +++ b/src/modules/snmpstats/doc/snmpstats_admin.xml @@ -266,7 +266,7 @@ - registrarServer, redirectServer, proxyServer, userAgent, edgeproxyServer, sipcaptureServer,other + registrarServer, redirectServer, proxyServer, userAgent, edgeproxyServer, sipcaptureServer, other diff --git a/src/modules/snmpstats/kamailioNet.c b/src/modules/snmpstats/kamailioNet.c index 4b97c9693d2..15a0d8f21c8 100644 --- a/src/modules/snmpstats/kamailioNet.c +++ b/src/modules/snmpstats/kamailioNet.c @@ -297,7 +297,7 @@ int handle_kamailioNetTcpConnEstablished(netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) { - /* We are never called for a GETNEXT if it's registered as a + /* We are never called for a GETNEXT if it's registered as an "instance", as it's "magically" handled for us. */ /* an instance handler also only hands us one request at a time, so @@ -448,7 +448,7 @@ int handle_kamailioNetTcpConnReject(netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) { - /* We are never called for a GETNEXT if it's registered as a + /* We are never called for a GETNEXT if it's registered as an "instance", as it's "magically" handled for us. */ /* an instance handler also only hands us one request at a time, so @@ -477,7 +477,7 @@ int handle_kamailioNetTcpEnabled(netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) { - /* We are never called for a GETNEXT if it's registered as a + /* We are never called for a GETNEXT if it's registered as an "instance", as it's "magically" handled for us. */ /* an instance handler also only hands us one request at a time, so @@ -540,7 +540,7 @@ int handle_kamailioNetTcpAsync(netsnmp_mib_handler *handler, tcp_options_get(&t); value = t.async; - /* We are never called for a GETNEXT if it's registered as a + /* We are never called for a GETNEXT if it's registered as an "instance", as it's "magically" handled for us. */ /* an instance handler also only hands us one request at a time, so diff --git a/src/modules/snmpstats/mibs/KAMAILIO-TC b/src/modules/snmpstats/mibs/KAMAILIO-TC index d43b4575d9d..4240460a09c 100644 --- a/src/modules/snmpstats/mibs/KAMAILIO-TC +++ b/src/modules/snmpstats/mibs/KAMAILIO-TC @@ -108,7 +108,7 @@ KamailioSIPMethodIdentifier ::= TEXTUAL-CONVENTION MAY return/accept a method identifier value other than those defined by IANA. That system MUST ensure no collisions with officially assigned - method identifier values and MUST provide a + method identifier values and MUST provide an identifier to method name mapping via a mechanism like sipMethodSupportedTable." SYNTAX Unsigned32 (1..4294967295) diff --git a/src/modules/snmpstats/snmpSIPStatusCodesTable.c b/src/modules/snmpstats/snmpSIPStatusCodesTable.c index f68eaaa44af..ff01449c917 100644 --- a/src/modules/snmpstats/snmpSIPStatusCodesTable.c +++ b/src/modules/snmpstats/snmpSIPStatusCodesTable.c @@ -303,7 +303,7 @@ kamailioSIPStatusCodesTable_context *kamailioSIPStatusCodesTable_create_row( if(!ctx) return NULL; - /* The *_extract_index funtion already validates the indices, so we + /* The *_extract_index function already validates the indices, so we * don't need to do any further evaluations here. */ if(kamailioSIPStatusCodesTable_extract_index(ctx, hdr)) { if(NULL != ctx->index.oids) diff --git a/src/modules/snmpstats/snmp_statistics.c b/src/modules/snmpstats/snmp_statistics.c index ffba4a1bb94..503d16d43b2 100644 --- a/src/modules/snmpstats/snmp_statistics.c +++ b/src/modules/snmpstats/snmp_statistics.c @@ -269,7 +269,7 @@ static int parse_proc_net_line(char *line, int *ipAddress, int *rx_queue) /* strtol()'s specifications specify that the second parameter * is set to the first parameter when a number couldn't be - * parsed out. This means the parse was unsuccesful. */ + * parsed out. This means the parse was unsuccessful. */ if(nextNonNumericalChar == currColonLocation) { return 0; }