Fix some spelling errors

This commit is contained in:
Martin Mathieson 2024-03-18 09:20:28 +00:00
parent cd564f93e5
commit b39cd257db
21 changed files with 37 additions and 24 deletions

View File

@ -84,7 +84,7 @@ static int ain_opcode_type;
#define AIN_OPCODE_RETURN_ERROR 3
#define AIN_OPCODE_REJECT 4
/* Forvard declarations */
/* Forward declarations */
static int dissect_invokeData(proto_tree *tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_);
static int dissect_returnResultData(proto_tree *tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_);
static int dissect_returnErrorData(proto_tree *tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx);

View File

@ -360,7 +360,7 @@ dissect_ansi_tcap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, vo
}
}
if (g_ansi_tcap_HandleSRT && p_tcap_context && p_tcap_context->callback) {
/* Callback fonction for the upper layer */
/* Callback function for the upper layer */
(p_tcap_context->callback)(tvb, pinfo, stat_tree, p_tcap_context);
}
}

View File

@ -41,7 +41,7 @@ void proto_reg_handoff_pres(void);
/* Initialize the protocol and registered fields */
static int proto_pres;
/* Initialize the connectionles protocol */
/* Initialize the connectionless protocol */
static int proto_clpres;
/* pointers for acse dissector */

View File

@ -732,7 +732,7 @@ dissect_snmp_VarBind(bool implicit_tag _U_, tvbuff_t *tvb, int offset,
return dissect_unknown_ber(actx->pinfo, tvb, value_start, pt);
}
/* Now, we know where everithing is */
/* Now, we know where everything is */
/* fetch ObjectName and its relative oid_info */
oid_bytes = (guint8*)tvb_memdup(actx->pinfo->pool, tvb, name_offset, name_len);

View File

@ -1899,7 +1899,7 @@ dissect_tcap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* d
}
}
if (p_tcap_context && p_tcap_context->callback) {
/* Callback fonction for the upper layer */
/* Callback function for the upper layer */
(p_tcap_context->callback)(tvb, pinfo, tcap_stat_tree, p_tcap_context);
}
}

View File

@ -745,7 +745,7 @@ static int ain_opcode_type;
#define AIN_OPCODE_RETURN_ERROR 3
#define AIN_OPCODE_REJECT 4
/* Forvard declarations */
/* Forward declarations */
static int dissect_invokeData(proto_tree *tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_);
static int dissect_returnResultData(proto_tree *tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_);
static int dissect_returnErrorData(proto_tree *tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx);

View File

@ -1366,7 +1366,7 @@ dissect_ansi_tcap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, vo
}
}
if (g_ansi_tcap_HandleSRT && p_tcap_context && p_tcap_context->callback) {
/* Callback fonction for the upper layer */
/* Callback function for the upper layer */
(p_tcap_context->callback)(tvb, pinfo, stat_tree, p_tcap_context);
}
}

View File

@ -4353,7 +4353,7 @@ static guint8 parseHexField(struct parseCtx *ctx)
{
if (PARSECTX_PEEK_NEXT_CHAR_OID(ctx) == '}')
{
/* no seperator after byte block */
/* no separator after byte block */
return 1;
}
PARSECTX_STEP_OID(ctx, 1);
@ -4476,7 +4476,7 @@ static guint8 parseOIDClass(struct parseCtx *ctx)
{
if (PARSECTX_PEEK_NEXT_CHAR_OID(ctx) == '}')
{
/* no seperator after byte block */
/* no separator after byte block */
return 1;
}
PARSECTX_STEP_OID(ctx, 1);
@ -8338,7 +8338,7 @@ static int dissect_oap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void
else
offset = oap_1_tree_add_binding(oap_tree, pinfo, tvb, offset);
/* Read the miniumum delta. */
/* Read the minimum delta. */
{
gint delta_len;
guint16 delta;

View File

@ -246,7 +246,7 @@ static const value_string socket_state_vals[] = {
{ 0, NULL }
};
/* Geneirc */
/* Generic */
static int
_tvb_check_if_zeros(tvbuff_t *tvb, int offset, int len)

View File

@ -46,7 +46,7 @@ void proto_reg_handoff_pres(void);
/* Initialize the protocol and registered fields */
static int proto_pres;
/* Initialize the connectionles protocol */
/* Initialize the connectionless protocol */
static int proto_clpres;
/* pointers for acse dissector */

View File

@ -3803,7 +3803,7 @@ dissect_rsvp_eth_tspec_tlv(proto_item *ti, packet_info* pinfo, proto_tree *rsvp_
case 0:
case 1:
/*case 2: ethernet bandwidth profile accordig to RFC 6003*/
/*case 2: ethernet bandwidth profile according to RFC 6003*/
case 2:
rsvp_ethspec_subtree = proto_tree_add_subtree_format(rsvp_object_tree, tvb,
offset+tlv_off, tlv_len, subtree_type, NULL,
@ -8055,7 +8055,7 @@ dissect_rsvp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolea
rsvph = wmem_new0(pinfo->pool, rsvp_conversation_info);
/* Copy over the source and destination addresses from the pinfo strucutre */
/* Copy over the source and destination addresses from the pinfo structure */
set_address(&rsvph->source, pinfo->src.type, pinfo->src.len, pinfo->src.data);
set_address(&rsvph->destination, pinfo->dst.type, pinfo->dst.len, pinfo->dst.data);

View File

@ -819,7 +819,7 @@ dissect_snmp_VarBind(bool implicit_tag _U_, tvbuff_t *tvb, int offset,
return dissect_unknown_ber(actx->pinfo, tvb, value_start, pt);
}
/* Now, we know where everithing is */
/* Now, we know where everything is */
/* fetch ObjectName and its relative oid_info */
oid_bytes = (guint8*)tvb_memdup(actx->pinfo->pool, tvb, name_offset, name_len);

View File

@ -3142,7 +3142,7 @@ dissect_tcap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* d
}
}
if (p_tcap_context && p_tcap_context->callback) {
/* Callback fonction for the upper layer */
/* Callback function for the upper layer */
(p_tcap_context->callback)(tvb, pinfo, tcap_stat_tree, p_tcap_context);
}
}

View File

@ -1267,7 +1267,7 @@ static const value_string wassp_tlv_types[] =
{ EID_MU_TUNNEL_PRIVATE_GROUP_ID_STRING, "MU Tunnel Private Group ID String"},
{ EID_MU_USER_ID_STRING, "MU User ID String"},
{ EID_MU_DEFENDED_STATE, "MU Defended State"},
{ EID_MU_MOD_MASK, "MU Modulation Maske"},
{ EID_MU_MOD_MASK, "MU Modulation Mask"},
{ EID_LOCATOR_TRACKED, "Locator Tracked"},
{ EID_PORT, "Port"},
{ EID_RETRIES_COUNT, "Retries Count"},

View File

@ -14379,7 +14379,7 @@ dissect_zcl_gp_proxy_sink_table_request(proto_tree *tree, tvbuff_t *tvb, guint *
*offset += 4;
}
else if (app_id == ZBEE_ZCL_GP_APP_ID_ZGP) {
/* App_id = 010: MAC address + Endoint */
/* App_id = 010: MAC address + Endpoint */
proto_tree_add_item(tree, hf_zbee_gp_ieee, tvb, *offset, 8, ENC_LITTLE_ENDIAN);
*offset += 8;
proto_tree_add_item(tree, hf_zbee_gp_endpoint, tvb, *offset, 1, ENC_NA);

View File

@ -586,7 +586,7 @@ proto_reg_handoff_zbee_zcl_met_idt(void)
/* Alert structure masks */
#define ZBEE_ZCL_APPL_EVTALT_ALERT_ID_MASK 0x0000FF /* Alerts Id : [0..7] */
#define ZBEE_ZCL_APPL_EVTALT_CATEGORY_MASK 0x000F00 /* Cetegory : [8..11] */
#define ZBEE_ZCL_APPL_EVTALT_CATEGORY_MASK 0x000F00 /* Category : [8..11] */
#define ZBEE_ZCL_APPL_EVTALT_STATUS_MASK 0x003000 /* Presence / Recovery: [12..13] */
#define ZBEE_ZCL_APPL_EVTALT_RESERVED_MASK 0x00C000 /* Reserved : [14..15] */
#define ZBEE_ZCL_APPL_EVTALT_PROPRIETARY_MASK 0xFF0000 /* Non-Standardized / Proprietary : [16..23] */

View File

@ -89,7 +89,7 @@
#define ZBEE_ZCL_ATTR_ID_THERMOSTAT_SETPOINT_CHANGE_SOURCE 0x0030
#define ZBEE_ZCL_ATTR_ID_THERMOSTAT_SETPOINT_CHANGE_AMOUNT 0x0031
#define ZBEE_ZCL_ATTR_ID_THERMOSTAT_SETPOINT_CHANGE_TIME 0x0032
/* Air Conditioning Atrributes. */
/* Air Conditioning Attributes. */
#define ZBEE_ZCL_ATTR_ID_THERMOSTAT_AC_TYPE 0x0040
#define ZBEE_ZCL_ATTR_ID_THERMOSTAT_AC_CAPACITY 0x0041
#define ZBEE_ZCL_ATTR_ID_THERMOSTAT_AC_REFRIGERANT_TYPE 0x0042

View File

@ -1757,7 +1757,7 @@ static void dissect_zcl_read_attr_struct(tvbuff_t* tvb, packet_info* pinfo _U_,
gboolean client_attr = direction == ZBEE_ZCL_FCF_TO_CLIENT;
tvb_len = tvb_captured_length(tvb);
while (*offset < tvb_len && i < ZBEE_ZCL_NUM_SEL_ETT) {
/* Create subtree for aelector field */
/* Create subtree for selector field */
sub_tree = proto_tree_add_subtree(tree, tvb, *offset, 0, ett_zbee_zcl_sel[i], NULL, "Selector");
i++;
/* Dissect the attribute identifier */
@ -1789,7 +1789,7 @@ static void dissect_zcl_write_attr_struct(tvbuff_t* tvb, packet_info* pinfo _U_,
gboolean client_attr = direction == ZBEE_ZCL_FCF_TO_CLIENT;
tvb_len = tvb_captured_length(tvb);
while(*offset < tvb_len && i < ZBEE_ZCL_NUM_ATTR_ETT){
/* Create subtree for aelector field */
/* Create subtree for selector field */
sub_tree = proto_tree_add_subtree(tree, tvb, *offset, 0, ett_zbee_zcl_attr[i], NULL, "Attribute Record");
sub_tree_1 = proto_tree_add_subtree(sub_tree, tvb, *offset, 0, ett_zbee_zcl_attr[i], NULL, "Selector");
i++;

View File

@ -3042,7 +3042,7 @@ static const value_string pn_io_f_crc_seed[] = {
{ 0, NULL }
};
/* F_Block_ID dissection due to ver2.6 specifikation of PI */
/* F_Block_ID dissection due to ver2.6 specification of PI */
static const value_string pn_io_f_block_id[] = {
{ 0x00, "No F_WD_Time_2, no F_iPar_CRC" },
{ 0x01, "No F_WD_Time_2, F_iPar_CRC" },

View File

@ -80,6 +80,7 @@ class TypoSourceDocumentParser(HTMLParser):
print('Fetching Wikipedia\'s list of common misspellings.')
req_headers = { 'User-Agent': 'Wireshark check-wikipedia-typos' }
req = urllib.request.Request('https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines', headers=req_headers)
wiki_db = dict()
try:
response = urllib.request.urlopen(req)
content = response.read()
@ -417,6 +418,9 @@ def isGeneratedFile(filename):
if filename.endswith('pci-ids.c') or filename.endswith('services-data.c') or filename.endswith('manuf-data.c'):
return True
if filename.endswith('packet-woww.c'):
return True
# Open file
f_read = open(os.path.join(filename), 'r', encoding="utf8")
for line_no,line in enumerate(f_read):
@ -496,7 +500,7 @@ parser.add_argument('--folder', action='append',
parser.add_argument('--glob', action='store', default='',
help='specify glob to test - should give in "quotes"')
parser.add_argument('--no-recurse', action='store_true', default='',
help='do not recurse inside chosen folder')
help='do not recurse inside chosen folder(s)')
parser.add_argument('--commits', action='store',
help='last N commits to check')
parser.add_argument('--open', action='store_true',

View File

@ -83,6 +83,7 @@ append
apphdr
appid
appkey
applctrl
applicability
appset
arbitrated
@ -362,6 +363,7 @@ copycss
copyfile
corba
corosync
correlator
corrigendum
couchbase
coverity
@ -587,6 +589,7 @@ encodings
encrypt
encrypting
encryptionkey
encrypts
endace
endian
endianness
@ -646,6 +649,7 @@ executables
exflags
exocet
expansions
extapp
extattr
extcap
extensibility
@ -731,6 +735,7 @@ getnext
getopt
getsetinfo
getter
getters
gidaddr
gigabit
gigamon
@ -991,6 +996,7 @@ logout
logray
lookups
loopback
loran
lossy
lscap
lucent
@ -1024,6 +1030,7 @@ mbsfn
mbytes
mcaal
mcast
mcinfo
mcmemberrecord
mcptt
mcsset
@ -1707,6 +1714,7 @@ signaal
signaling
signon
simulcast
singulation
sistemas
sizeof
skippable
@ -1749,6 +1757,7 @@ spoofing
spooled
sqlwarn
srbid
srcdst
srcip
srcport
srtcp