summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsnmpd
diff options
context:
space:
mode:
authoruqs <uqs@FreeBSD.org>2011-12-30 10:58:14 +0000
committeruqs <uqs@FreeBSD.org>2011-12-30 10:58:14 +0000
commit415a3a9b966c1522657d435a1785904f41accc78 (patch)
tree8895a44928d5c242eb33f5909e96b16aa8b19f50 /usr.sbin/bsnmpd
parentc12910138c122eb89614cb32832cc1e81e4c23a7 (diff)
downloadFreeBSD-src-415a3a9b966c1522657d435a1785904f41accc78.zip
FreeBSD-src-415a3a9b966c1522657d435a1785904f41accc78.tar.gz
Spelling fixes for usr.sbin/
Diffstat (limited to 'usr.sbin/bsnmpd')
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_bridge/bridge_addrs.c4
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_bridge/bridge_if.c2
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c4
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c4
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c2
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c4
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.h2
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c2
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_wlan/BEGEMOT-WIRELESS-MIB.txt42
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_wlan/wlan_tree.def4
-rw-r--r--usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.16
-rw-r--r--usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c12
-rwxr-xr-xusr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c18
-rw-r--r--usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.h6
14 files changed, 56 insertions, 56 deletions
diff --git a/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_addrs.c b/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_addrs.c
index 781517f..0daceec 100644
--- a/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_addrs.c
+++ b/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_addrs.c
@@ -108,7 +108,7 @@ bridge_compare_macs(const uint8_t *m1, const uint8_t *m2)
/*
* Insert an address entry in the bridge address TAILQ starting to search
* for its place from the position of the first bridge address for the bridge
- * interface. Update the first bridge address if neccessary.
+ * interface. Update the first bridge address if necessary.
*/
static void
bridge_addrs_insert_at(struct tp_entries *headp,
@@ -136,7 +136,7 @@ bridge_addrs_insert_at(struct tp_entries *headp,
}
/*
- * Find an address entry's possition in the address list
+ * Find an address entry's position in the address list
* according to bridge interface name.
*/
static struct tp_entry *
diff --git a/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_if.c b/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_if.c
index 4586e32..e5f5c50 100644
--- a/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_if.c
+++ b/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_if.c
@@ -378,7 +378,7 @@ bridge_get_time_since_tc(struct bridge_if *bif, uint32_t *ticks)
* Return:
* 1, if successful
* 0, if the interface was deleted
- * -1, error occured while fetching the info from the kernel.
+ * -1, error occurred while fetching the info from the kernel.
*/
static int
bridge_update_bif(struct bridge_if *bif)
diff --git a/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c b/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c
index fe2af04..0127cea 100644
--- a/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c
+++ b/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c
@@ -87,7 +87,7 @@ bridge_port_memif_free(struct bridge_ports *headp,
/*
* Insert a port entry in the base port TAILQ starting to search
* for its place from the position of the first bridge port for the bridge
- * interface. Update the first bridge port if neccessary.
+ * interface. Update the first bridge port if necessary.
*/
static void
bridge_port_insert_at(struct bridge_ports *headp,
@@ -119,7 +119,7 @@ bridge_port_insert_at(struct bridge_ports *headp,
}
/*
- * Find a port entry's possition in the ports list according
+ * Find a port entry's position in the ports list according
* to it's parent bridge interface name. Returns a NULL if
* we should be at the TAILQ head, otherwise the entry after
* which we should be inserted.
diff --git a/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c b/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
index 9684d68..f8644f4 100644
--- a/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
+++ b/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
@@ -1167,7 +1167,7 @@ bridge_port_find_ifstplist(uint8_t port_no, struct ifbpstpreq *buf,
/*
* Read the initial info for all members of a bridge interface.
* Returns the number of ports, 0 - if none, otherwise
- * -1 if some other error occured.
+ * -1 if some other error occurred.
*/
int
bridge_getinfo_bif_ports(struct bridge_if *bif)
@@ -1358,7 +1358,7 @@ bridge_addrs_getinfo_ifalist(struct bridge_if *bif, struct ifbareq **buf)
/*
* Read the initial info for all addresses on a bridge interface.
* Returns the number of addresses, 0 - if none, otherwise
- * -1 if some other error occured.
+ * -1 if some other error occurred.
*/
int
bridge_getinfo_bif_addrs(struct bridge_if *bif)
diff --git a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c
index 99d55ee..1741502 100644
--- a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c
+++ b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c
@@ -200,7 +200,7 @@ device_entry_create(const char *name, const char *location, const char *descr)
/*
* From here till the end of this function we reuse name_len
- * for a diferrent purpose - for device_entry::descr
+ * for a different purpose - for device_entry::descr
*/
if (name[0] != '\0')
name_len = strlen(name) + strlen(descr) +
diff --git a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
index f86334e..87b78e8 100644
--- a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
+++ b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
@@ -170,8 +170,8 @@ OS_getSystemDate(struct snmp_value *value)
/**
* Get kernel boot path. For FreeBSD it seems that no arguments are
- * present. Returns NULL if an error occured. The returned data is a
- * pointer to a global strorage.
+ * present. Returns NULL if an error occurred. The returned data is a
+ * pointer to a global storage.
*/
int
OS_getSystemInitialLoadParameters(u_char **params)
diff --git a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.h b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.h
index 567368a..04928d2 100644
--- a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.h
+++ b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.h
@@ -218,7 +218,7 @@ void fs_tbl_process_statfs_entry(const struct statfs *, int32_t);
/* Called after refreshing fs part of hrStorageTable */
void fs_tbl_post_refresh(void);
-/* Refresh the FS table if neccessary. */
+/* Refresh the FS table if necessary. */
void refresh_fs_tbl(void);
/* Finalization routine for hrFSTable. */
diff --git a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c
index 488d9f5..ee8bdcc 100644
--- a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c
+++ b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c
@@ -133,7 +133,7 @@ static const struct asn_oid OIDX_hrStorageVirtualMemory_c =
OIDX_hrStorageVirtualMemory;
/**
- * Create a new entry into the storage table and, if neccessary, an
+ * Create a new entry into the storage table and, if necessary, an
* entry into the storage map.
*/
static struct storage_entry *
diff --git a/usr.sbin/bsnmpd/modules/snmp_wlan/BEGEMOT-WIRELESS-MIB.txt b/usr.sbin/bsnmpd/modules/snmp_wlan/BEGEMOT-WIRELESS-MIB.txt
index 194ecd1..29ec005 100644
--- a/usr.sbin/bsnmpd/modules/snmp_wlan/BEGEMOT-WIRELESS-MIB.txt
+++ b/usr.sbin/bsnmpd/modules/snmp_wlan/BEGEMOT-WIRELESS-MIB.txt
@@ -82,8 +82,8 @@ WlanMgmtReasonCode ::= TEXTUAL-CONVENTION
associationLeave(8),
associationNotAuthenticated(9),
-- XXX: TODO - FIXME
- dissasocPwrcapBad(10),
- dissasocSuperchanBad(11),
+ disassocPwrcapBad(10),
+ disassocSuperchanBad(11),
ieInvalid(13),
micFailure(14),
fourWayHandshakeTimeout(15),
@@ -579,10 +579,10 @@ wlanIfaceCountryCode OBJECT-TYPE
interface is operating include all environments in the specified
country.
- 2. an ASCII 'O' character, if the country's regulastions are for
+ 2. an ASCII 'O' character, if the country's regulations are for
Outdoor environment only.
- 3. an ASCII 'I' character, if the country's regulastions are for
+ 3. an ASCII 'I' character, if the country's regulations are for
Indoor environment only."
::= { wlanIfaceConfigEntry 2 }
@@ -634,7 +634,7 @@ wlanIfaceFastFrames OBJECT-TYPE
DESCRIPTION
"The value of this object controls whether use of Atheros Fast
Frames is enabled when when communicating with another Fast
- Frames-capable station. The value is only meaningfull for
+ Frames-capable station. The value is only meaningful for
interfaces that support Atheros Fast Frames."
::= { wlanIfaceConfigEntry 7 }
@@ -645,7 +645,7 @@ wlanIfaceDturbo OBJECT-TYPE
DESCRIPTION
"The value of this object controls whether use of Atheros Dynamic
Turbo mode is enabled when when communicating with another Dynamic
- Turbo-capable station. The value is only meaningfull for interfaces
+ Turbo-capable station. The value is only meaningful for interfaces
that support Atheros Dynamic Turbo mode."
::= { wlanIfaceConfigEntry 8 }
@@ -731,7 +731,7 @@ wlanIfaceBeaconMissedThreshold OBJECT-TYPE
MAX-ACCESS read-write
STATUS current
DESCRIPTION
- "The value of this object specifies the number of consequtive missed
+ "The value of this object specifies the number of consecutive missed
beacons before an interface operating in station mode will attempt
to search for a new access point."
DEFVAL { 7 }
@@ -788,7 +788,7 @@ wlanIfaceDynamicWds OBJECT-TYPE
STATUS current
DESCRIPTION
"The value of this object specifies whether Dynamic WDS (DWDS)
- support is enabled. The value is only meaningfull for interfaces
+ support is enabled. The value is only meaningful for interfaces
that support Dynamic WDS."
::= { wlanIfaceConfigEntry 21 }
@@ -798,7 +798,7 @@ wlanIfacePowerSave OBJECT-TYPE
STATUS current
DESCRIPTION
"The value of this object specifies whether powersave operation
- is enabled. The value is only meaningfull for interfaces that
+ is enabled. The value is only meaningful for interfaces that
support powersave operation."
::= { wlanIfaceConfigEntry 22 }
@@ -809,7 +809,7 @@ wlanIfaceApBridge OBJECT-TYPE
DESCRIPTION
"The value of this object specifies whether packets between
wireless clients will be passed directly by an interface
- operating in host ap mode. Disabling it may be usefull in
+ operating in host ap mode. Disabling it may be useful in
situations when traffic between wireless clients needs to be
processed with packet filtering."
DEFVAL { true }
@@ -1308,7 +1308,7 @@ wlanIfaceChannelFrequency OBJECT-TYPE
MAX-ACCESS read-only
STATUS current
DESCRIPTION
- "The channel frequency setting in Mhz."
+ "The channel frequency setting in MHz."
::= { wlanIfaceChannelEntry 5 }
wlanIfaceChannelMaxRegPower OBJECT-TYPE
@@ -2741,7 +2741,7 @@ wlanStatsDwdsMcastDiscard OBJECT-TYPE
MAX-ACCESS read-only
STATUS current
DESCRIPTION
- "The number of multicast over DWDS frames discared by this interface."
+ "The number of multicast over DWDS frames discarded by this interface."
::= { wlanIfaceStatisticsEntry 98 }
wlanStatsHTAssocRejectNoHT OBJECT-TYPE
@@ -2759,7 +2759,7 @@ wlanStatsHTAssocDowngrade OBJECT-TYPE
MAX-ACCESS read-only
STATUS current
DESCRIPTION
- "The number of times HT was dissallowed for an association on
+ "The number of times HT was disallowed for an association on
this interface due to WEP or TKIP requested."
::= { wlanIfaceStatisticsEntry 100 }
@@ -2769,7 +2769,7 @@ wlanStatsHTAssocRateMismatch OBJECT-TYPE
MAX-ACCESS read-only
STATUS current
DESCRIPTION
- "The number of times rate mismatch occured furing HT rate set
+ "The number of times rate mismatch occurred during HT rate set
handling on this interface."
::= { wlanIfaceStatisticsEntry 101 }
@@ -2787,7 +2787,7 @@ wlanStatsAMPDUMoved OBJECT-TYPE
MAX-ACCESS read-only
STATUS current
DESCRIPTION
- "The number of time A-MPDU MSDU moved window occured for this
+ "The number of time A-MPDU MSDU moved window occurred for this
interface."
::= { wlanIfaceStatisticsEntry 103 }
@@ -2807,7 +2807,7 @@ wlanStatsADDBANoRequest OBJECT-TYPE
MAX-ACCESS read-only
STATUS current
DESCRIPTION
- "The number of received ADDBA responces frames that were discarded
+ "The number of received ADDBA responses frames that were discarded
by this interface due to no pending ADDBA."
::= { wlanIfaceStatisticsEntry 105 }
@@ -2817,7 +2817,7 @@ wlanStatsADDBABadToken OBJECT-TYPE
MAX-ACCESS read-only
STATUS current
DESCRIPTION
- "The number of received ADDBA responce frames that were discarded
+ "The number of received ADDBA response frames that were discarded
by this interface since ADDBA response caused dialogtoken mismatch."
::= { wlanIfaceStatisticsEntry 106 }
@@ -2827,7 +2827,7 @@ wlanStatsADDBABadPolicy OBJECT-TYPE
MAX-ACCESS read-only
STATUS current
DESCRIPTION
- "The number of received ADDBA responce frames that were discarded
+ "The number of received ADDBA response frames that were discarded
by this interface since ADDBA response caused policy mismatch."
::= { wlanIfaceStatisticsEntry 107 }
@@ -2877,7 +2877,7 @@ wlanLastDissasocReason OBJECT-TYPE
MAX-ACCESS read-only
STATUS current
DESCRIPTION
- "The last received dissasociate reason on this interface."
+ "The last received disassociate reason on this interface."
::= { wlanIfaceStatisticsEntry 113 }
wlanLastAuthFailReason OBJECT-TYPE
@@ -2942,7 +2942,7 @@ wlanStatsAMPDURexmtFailed OBJECT-TYPE
MAX-ACCESS read-only
STATUS current
DESCRIPTION
- "The number of A-MPDU frames for which retransmition failed on
+ "The number of A-MPDU frames for which retransmission failed on
this interface."
::= { wlanIfaceStatisticsEntry 120 }
@@ -3696,7 +3696,7 @@ wlanMeshDroppedMisaligned OBJECT-TYPE
STATUS current
DESCRIPTION
"The number of frames that were dropped by this interface due to
- bad alighment."
+ bad alignment."
::= { wlanMeshStatsEntry 11 }
-- ---------------------------------------------------------- --
diff --git a/usr.sbin/bsnmpd/modules/snmp_wlan/wlan_tree.def b/usr.sbin/bsnmpd/modules/snmp_wlan/wlan_tree.def
index 7c695c4..67301be 100644
--- a/usr.sbin/bsnmpd/modules/snmp_wlan/wlan_tree.def
+++ b/usr.sbin/bsnmpd/modules/snmp_wlan/wlan_tree.def
@@ -75,8 +75,8 @@ typedef WlanMgmtReasonCode ENUM (
7 notAssociated
8 associationLeave
9 associationNotAuthenticated
- 10 dissasocPwrcapBad
- 11 dissasocSuperchanBad
+ 10 disassocPwrcapBad
+ 11 disassocSuperchanBad
13 ieInvalid
14 micFailure
15 fourWayHandshakeTimeout
diff --git a/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.1 b/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.1
index 97ef694..18b7eb6d 100644
--- a/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.1
+++ b/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.1
@@ -102,7 +102,7 @@
and
.Nm bsnmpset
are simple tools for retrieving management information from and setting
-management information to a Simple Network Managment Protocol (SNMP) agent.
+management information to a Simple Network Management Protocol (SNMP) agent.
.Pp
Depending on the options
.Nm bsnmpget
@@ -119,7 +119,7 @@ rooted at the provided OIDs.
.Nm Bsnmpset
constructs a SMNP SetRequest packet, fills in the OIDs (object identifiers),
syntaxes and values of the objects whose values are to be set and waits for a
-responce from server.
+response from server.
.Sh OPTIONS
.Pp
The options are as follows (not all apply to all three programs):
@@ -165,7 +165,7 @@ terminal.
Retry on error.
If an error is returned in the response PDU, resend the request removing the
variable that caused the error until a valid response is received.
-This is only usefull for a GetRequest- and a GetNextRequest-PDU.
+This is only useful for a GetRequest- and a GetNextRequest-PDU.
.It Fl h
Print a short help text with default values for various options.
.It Fl I Ar options
diff --git a/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c b/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
index c05a05a..b3c57b7 100644
--- a/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
+++ b/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
@@ -248,9 +248,9 @@ snmptool_parse_options(struct snmp_toolinfo *snmptoolctx, int argc, char **argv)
/*
* Read user input OID - one of following formats:
- * 1) 1.2.1.1.2.1.0 - that is if option numeric was giveni;
+ * 1) 1.2.1.1.2.1.0 - that is if option numeric was given;
* 2) string - in such case append .0 to the asn_oid subs;
- * 3) string.1 - no additional proccessing required in such case.
+ * 3) string.1 - no additional processing required in such case.
*/
static char *
snmptools_parse_stroid(struct snmp_toolinfo *snmptoolctx,
@@ -458,7 +458,7 @@ static int
snmptool_walk(struct snmp_toolinfo *snmptoolctx)
{
struct snmp_pdu req, resp;
- struct asn_oid root; /* Keep the inital oid. */
+ struct asn_oid root; /* Keep the initial oid. */
int32_t outputs, rc;
snmp_pdu_create(&req, SNMP_PDU_GETNEXT);
@@ -1105,13 +1105,13 @@ snmptool_set(struct snmp_toolinfo *snmptoolctx)
*/
/*
* According to command line options prepare SNMP Get | GetNext | GetBulk PDU.
- * Wait for a responce and print it.
+ * Wait for a response and print it.
*/
/*
* Do a 'snmp walk' - according to command line options request for values
* lexicographically subsequent and subrooted at a common node. Send a GetNext
- * PDU requesting the value for each next variable and print the responce. Stop
- * when a Responce PDU is received that contains the value of a variable not
+ * PDU requesting the value for each next variable and print the response. Stop
+ * when a Response PDU is received that contains the value of a variable not
* subrooted at the variable the walk started.
*/
int
diff --git a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
index dbaac5b..53deff7 100755
--- a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
+++ b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
@@ -87,7 +87,7 @@ static const struct {
{ "General error", SNMP_ERR_GENERR },
{ "No access", SNMP_ERR_NO_ACCESS },
{ "Wrong type", SNMP_ERR_WRONG_TYPE },
- { "Wrong lenght", SNMP_ERR_WRONG_LENGTH },
+ { "Wrong length", SNMP_ERR_WRONG_LENGTH },
{ "Wrong encoding", SNMP_ERR_WRONG_ENCODING },
{ "Wrong value", SNMP_ERR_WRONG_VALUE },
{ "No creation", SNMP_ERR_NO_CREATION },
@@ -227,12 +227,12 @@ snmp_import_all(struct snmp_toolinfo *snmptoolctx)
}
/*
- * Add a filename to the file list - the initail idea of keeping a list with all
+ * Add a filename to the file list - the initial idea of keeping a list with all
* files to read OIDs from was that an application might want to have loaded in
* memory the OIDs from a single file only and when done with them read the OIDs
* from another file. This is not used yet but might be a good idea at some
* point. Size argument is number of bytes in string including trailing '\0',
- * not string lenght.
+ * not string length.
*/
int32_t
add_filename(struct snmp_toolinfo *snmptoolctx, const char *filename,
@@ -449,7 +449,7 @@ parse_ascii(char *ascii, uint8_t *binstr, size_t binlen)
uint32_t val;
char dptr[3];
- /* Filter 0x at the beggining */
+ /* Filter 0x at the beginning */
if ((alen = strlen(ascii)) > 2 && ascii[0] == '0' && ascii[1] == 'x')
i = 2;
else
@@ -468,7 +468,7 @@ parse_ascii(char *ascii, uint8_t *binstr, size_t binlen)
}
binstr[count] = (uint8_t) val;
if (++count >= binlen) {
- warnx("Key %s too long - truncating to %zu octest",
+ warnx("Key %s too long - truncating to %zu octets",
ascii, binlen);
break;
}
@@ -1523,10 +1523,10 @@ snmp_object_seterror(struct snmp_toolinfo *snmptoolctx,
}
/*
- * Check a PDU received in responce to a SNMP_PDU_GET/SNMP_PDU_GETBULK request
+ * Check a PDU received in response to a SNMP_PDU_GET/SNMP_PDU_GETBULK request
* but don't compare syntaxes - when sending a request PDU they must be null.
* This is a (almost) complete copy of snmp_pdu_check() - with matching syntaxes
- * checks and some other checks skiped.
+ * checks and some other checks skipped.
*/
int32_t
snmp_parse_get_resp(struct snmp_pdu *resp, struct snmp_pdu *req)
@@ -1605,7 +1605,7 @@ snmp_parse_getnext_resp(struct snmp_pdu *resp, struct snmp_pdu *req)
}
/*
- * Should be called to check a responce to get/getnext/getbulk.
+ * Should be called to check a response to get/getnext/getbulk.
*/
int32_t
snmp_parse_resp(struct snmp_pdu *resp, struct snmp_pdu *req)
@@ -1624,7 +1624,7 @@ snmp_parse_resp(struct snmp_pdu *resp, struct snmp_pdu *req)
}
if (resp->error_status != SNMP_ERR_NOERROR) {
- warnx("Error %d in responce", resp->error_status);
+ warnx("Error %d in response", resp->error_status);
return (-1);
}
diff --git a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.h b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.h
index 6e62186..ee28385 100644
--- a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.h
+++ b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.h
@@ -185,14 +185,14 @@ extern struct snmp_toolinfo snmptool;
/* Definitions for some flags' bits. */
#define OUTPUT_BITS 0x00000003 /* bits 0-1 for output type */
#define NUMERIC_BIT 0x00000004 /* bit 2 for numeric oids */
-#define RETRY_BIT 0x00000008 /* bit 3 for retry on error responce */
+#define RETRY_BIT 0x00000008 /* bit 3 for retry on error response */
#define ERRIGNORE_BIT 0x00000010 /* bit 4 for skip sanity checking */
#define ERRIGNORE_BIT 0x00000010 /* bit 4 for skip sanity checking */
#define EDISCOVER_BIT 0x00000020 /* bit 5 for SNMP Engine Discovery */
#define LOCALKEY_BIT 0x00000040 /* bit 6 for using localized key */
- /* 0x00000080 */ /* bit 7 reserverd */
+ /* 0x00000080 */ /* bit 7 reserved */
#define PDUTYPE_BITS 0x00000f00 /* bits 8-11 for pdu type */
- /* 0x0000f000 */ /* bit 12-15 reserverd */
+ /* 0x0000f000 */ /* bit 12-15 reserved */
#define MAXREP_BITS 0x00ff0000 /* bits 16-23 for max-repetit. value */
#define NONREP_BITS 0xff000000 /* bits 24-31 for non-repeaters value */
OpenPOWER on IntegriCloud