Fix a grab-bag of typos.

One of these modifies a field name ("hart_ip.pt.rsp.transducer_serail_number"
in packet-hartip.c), a few are in text displayed for fields (in packet-nvme.c)
or for unknown fields (in packet-oer.c and packet-per.c), one is in a
preprocessor macro (in packet-cip.[ch]), and the rest are all in comments.

   arry -> array
   authos -> authors
   compatability -> compatibility
   contigous -> contiguous
   dispaly -> display
   erorr -> error
   filed (where it was obviously incorrect) -> field or filled
   hueristic -> heuristic
   regsiter -> register
   serail -> serial
This commit is contained in:
Darius Davis 2024-02-05 10:58:01 +10:00
parent 2735ae7219
commit 89ce06c459
29 changed files with 50 additions and 50 deletions

View File

@ -53,7 +53,7 @@ typedef struct _h225_packet_info {
guint16 h245_port;
gchar dialedDigits[129]; /* Dialed Digits in the LRQ and LCF used for voip analysis */
gboolean is_destinationInfo;
gchar frame_label[50]; /* the Frame label used by graph_analysis, what is a abreviation of cinfo */
gchar frame_label[50]; /* the Frame label used by graph_analysis, what is an abbreviation of cinfo */
} h225_packet_info;
/*

View File

@ -34,7 +34,7 @@ typedef enum _h245_msg_type {
typedef struct _h245_packet_info {
h245_msg_type msg_type; /* type of message */
gchar frame_label[50]; /* the Frame label used by graph_analysis, what is a abreviation of cinfo */
gchar frame_label[50]; /* the Frame label used by graph_analysis, what is an abbreviation of cinfo */
gchar comment[50]; /* the Frame Comment used by graph_analysis, what is a message desc */
} h245_packet_info;

View File

@ -173,7 +173,7 @@ typedef struct
guint32 unValue; // Register address
guint32 unSize; // Register size (in bytes)
const char *name; // Register name
const char *abbrev; // Abreviation for header fill
const char *abbrev; // Abbreviation for header fill
const enum ftenum ft; // Field type
gint nsWsHeaderID; // Wireshark ID for header fill
const void *pFct; // Conversion function

View File

@ -151,10 +151,10 @@ typedef struct
const guint32 reg_size; // Register size (in bytes)
const guint32 reg_type; // Register type (register, function)
const char *name; // Register name
const char *abbrev; // Abreviation base for header fill
const char *abbrev; // Abbreviation base for header fill
const enum ftenum ft; // Field type
const gint32 base; // Base display type
const guint encoding; // Filed encoding
const guint encoding; // Field encoding
gint hf_id_w; // Wireshark ID for header fill in write mode
gint hf_id_r_a; // Wireshark ID for header fill in read answer mode
const void *cf_func; // Conversion function

View File

@ -2037,7 +2037,7 @@ static int proto_bgp;
/* BGP header field initialisation */
/* global BGP header filed */
/* global BGP header field */
static int hf_bgp_marker;
static int hf_bgp_length;
@ -2063,7 +2063,7 @@ static int hf_bgp_vplsbgp_labelblock_base;
static int hf_bgp_wildcard_route_target;
static int hf_bgp_type;
/* BGP open message header filed */
/* BGP open message header field */
static int hf_bgp_open_version;
static int hf_bgp_open_myas;

View File

@ -1384,7 +1384,7 @@ static const value_string cip_pccc_gs_st_vals[] = {
{ PCCC_GS_ADDRESSING_ERROR, "Addressing problem or memory protect rungs" },
{ PCCC_GS_CMD_PROTECTION, "Function not allowed due to command protection selection" },
{ PCCC_GS_PROGRAM_MODE, "Processor is in Program mode" },
{ PCCC_GS_MISSING_COMPATABILITY_FILE, "Compatibility mode file missing or communication zone problem" },
{ PCCC_GS_MISSING_COMPATIBILITY_FILE, "Compatibility mode file missing or communication zone problem" },
{ PCCC_GS_BUFFER_FULL_1, "Remote node cannot buffer command" },
{ PCCC_GS_WAIT_ACK, "Wait ACK (1775-KA buffer full)" },
{ PCCC_GS_REMOTE_DOWNLOAD_ERROR, "Remote node problem due to download" },

View File

@ -151,7 +151,7 @@
#define PCCC_GS_ADDRESSING_ERROR 0x50
#define PCCC_GS_CMD_PROTECTION 0x60
#define PCCC_GS_PROGRAM_MODE 0x70
#define PCCC_GS_MISSING_COMPATABILITY_FILE 0x80
#define PCCC_GS_MISSING_COMPATIBILITY_FILE 0x80
#define PCCC_GS_BUFFER_FULL_1 0x90
#define PCCC_GS_WAIT_ACK 0xA0
#define PCCC_GS_REMOTE_DOWNLOAD_ERROR 0xB0

View File

@ -2451,7 +2451,7 @@ dissect_dpt_trailer_noise_low(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre
tfs_get_string(ingress, &f5tfs_ing));
if (ver > 2) {
/* The old ingress field is now a flag field. Leave the old ingress field
* for backward compatability for users that are accustomed to using
* for backward compatibility for users that are accustomed to using
* "f5ethtrailer.ingress" but mark it as generated to indicate that that
* field no longer really exists. */
proto_item_set_generated(pi);

View File

@ -58,7 +58,7 @@ typedef struct _h225_packet_info {
guint16 h245_port;
gchar dialedDigits[129]; /* Dialed Digits in the LRQ and LCF used for voip analysis */
gboolean is_destinationInfo;
gchar frame_label[50]; /* the Frame label used by graph_analysis, what is a abreviation of cinfo */
gchar frame_label[50]; /* the Frame label used by graph_analysis, what is an abbreviation of cinfo */
} h225_packet_info;
/*

View File

@ -39,7 +39,7 @@ typedef enum _h245_msg_type {
typedef struct _h245_packet_info {
h245_msg_type msg_type; /* type of message */
gchar frame_label[50]; /* the Frame label used by graph_analysis, what is a abreviation of cinfo */
gchar frame_label[50]; /* the Frame label used by graph_analysis, what is an abbreviation of cinfo */
gchar comment[50]; /* the Frame Comment used by graph_analysis, what is a message desc */
} h245_packet_info;

View File

@ -1433,7 +1433,7 @@ static int
dissect_hartip_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
void *data)
{
/* Simple hueristic check*/
/* Simple heuristic check*/
const gchar * msg_str = try_val_to_str(tvb_get_guint8(tvb, 1), hartip_message_type_values);
if (!msg_str) {
return 0;
@ -1455,7 +1455,7 @@ dissect_hartip_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
{
gint offset = 0;
/* Simple hueristic check*/
/* Simple heuristic check*/
const gchar * msg_str = try_val_to_str(tvb_get_guint8(tvb, 1), hartip_message_type_values);
if (!msg_str) {
return 0;
@ -2004,7 +2004,7 @@ proto_register_hartip(void)
/* command 14 */
{ &hf_hartip_pt_rsp_transducer_serial_number,
{ "Transducer Serail Number", "hart_ip.pt.rsp.transducer_serail_number",
{ "Transducer Serial Number", "hart_ip.pt.rsp.transducer_serial_number",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},

View File

@ -114,7 +114,7 @@ static const value_string apci_types [] = {
{ 0, NULL }
};
/* Constants relative to the filed, independent of the field position in the byte */
/* Constants relative to the field, independent of the field position in the byte */
/* U (Unnumbered) constants */
#define U_STARTDT_ACT 0x01
#define U_STARTDT_CON 0x02

View File

@ -1137,7 +1137,7 @@ static guint dissect_lbmsrs_sir_ser(tvbuff_t * tvb, proto_tree * tree, guint off
guint total_payload_len = tvb_captured_length(tvb);
guint start_offset = offset;
/*first filed is OTID, check if that many bytes are left to process*/
/*first field is OTID, check if that many bytes are left to process*/
if ((total_payload_len - offset) < L_LBM_SRS_SRC_INFO_INFO_T_OTID)
{
/*stop processing in case not available*/
@ -1372,7 +1372,7 @@ static guint dissect_lbmsrs_sdr(tvbuff_t * tvb, proto_tree * tree, guint offset,
guint total_payload_len = tvb_captured_length(tvb);
guint start_offset = offset;
/*first filed is OTID, check if that many bytes are left to process*/
/*first field is OTID, check if that many bytes are left to process*/
if ((total_payload_len - offset) < L_LBM_SRS_SRC_INFO_INFO_T_OTID)
{
/*stop processing in case not available*/
@ -1387,7 +1387,7 @@ static guint dissect_lbmsrs_sdr(tvbuff_t * tvb, proto_tree * tree, guint offset,
proto_tree_add_item(sdr_tree, hf_lbmsrs_message_id, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
/*first filed is OTID, check if that many bytes are left to process*/
/*first field is OTID, check if that many bytes are left to process*/
if ((total_payload_len - offset) < L_LBM_SRS_SRC_INFO_INFO_T_OTID)
{
/*stop processing in case not available*/
@ -2073,7 +2073,7 @@ static guint dissect_lbmsrs_sli(tvbuff_t * tvb, proto_tree * tree, guint offset
guint total_payload_len = tvb_captured_length(tvb);
guint start_offset = offset;
/*first filed is OTID, check if that many bytes are left to process*/
/*first field is OTID, check if that many bytes are left to process*/
if ((total_payload_len - offset) < L_LBM_SRS_SRC_LEAVE_INFO_T_OTID)
{
/*stop processing in case not available*/

View File

@ -279,7 +279,7 @@ static int hf_dsmcc_un_sess_rsrc_client_ca_info_data;
static int hf_dsmcc_un_sess_rsrc_service_group;
/* user defined 0xf001-0xf007 - end */
/* table 6-1 compatabilityDescriptor - start */
/* table 6-1 compatibilityDescriptor - start */
static int hf_compat_desc_length;
static int hf_compat_desc_count;
static int hf_desc_type;
@ -291,7 +291,7 @@ static int hf_desc_version;
static int hf_desc_sub_desc_count;
static int hf_desc_sub_desc_type;
static int hf_desc_sub_desc_len;
/* table 6-1 compatabilityDescriptor - end */
/* table 6-1 compatibilityDescriptor - end */
/* table 7-3 dsmccDownloadDataHeader - start */
static int hf_dsmcc_dd_download_id;
@ -2990,7 +2990,7 @@ proto_register_dsmcc(void)
} },
/* User defined 0xf001-0xf007 - end */
/* table 6-1 compatabilityDescriptor - start */
/* table 6-1 compatibilityDescriptor - start */
{ &hf_compat_desc_length, {
"Compatibility Descriptor Length", "mpeg_dsmcc.dii.compat_desc_len",
FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL
@ -3045,7 +3045,7 @@ proto_register_dsmcc(void)
"Length", "mpeg_dsmcc.dii.compat.sub_len",
FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
} },
/* table 6-1 compatabilityDescriptor - end */
/* table 6-1 compatibilityDescriptor - end */
/* table 7-3 dsmccDownloadDataHeader - start */
{ &hf_dsmcc_dd_download_id, {

View File

@ -84,7 +84,7 @@ packet_mpeg_sect_header_extra(tvbuff_t *tvb, guint offset, proto_tree *tree,
proto_item **items);
/*
* Used to process the mpeg CRC information & report erorrs found with it.
* Used to process the mpeg CRC information & report errors found with it.
*/
extern guint
packet_mpeg_sect_crc(tvbuff_t *tvb, packet_info *pinfo,

View File

@ -1432,7 +1432,7 @@ static int dissect_mqtt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi
Disconnect), and the maximum size is 256MB. Hence minimum fixed
length should be 2 bytes for tcp_dissect_pdu.
If the length filed is spread across two TCP segments, then we have a
If the length field is spread across two TCP segments, then we have a
problem, because exception will be raised. So long as MQTT length
field(although spread over 4 bytes) is present within single TCP
segment we shouldn't have any issue by calling tcp_dissect_pdu with

View File

@ -4451,7 +4451,7 @@ void
proto_register_nvme(void)
{
static hf_register_info hf[] = {
/* NVMeOF Fabric Command Fileds */
/* NVMeOF Fabric Command Fields */
{ &hf_nvmeof_cmd,
{ "Cmd", "nvme.fabrics.cmd",
FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL}
@ -6639,7 +6639,7 @@ proto_register_nvme(void)
FT_BOOLEAN, 16, NULL, 0x8, NULL, HFILL}
},
{ &hf_nvme_identify_ctrl_oncs[5],
{ "Supports non-zero Save Filed in Set/Get Features", "nvme.cmd.identify.ctrl.oncs.nzfs",
{ "Supports non-zero Save Field in Set/Get Features", "nvme.cmd.identify.ctrl.oncs.nzfs",
FT_BOOLEAN, 16, NULL, 0x10, NULL, HFILL}
},
{ &hf_nvme_identify_ctrl_oncs[6],
@ -7521,7 +7521,7 @@ proto_register_nvme(void)
FT_BOOLEAN, 8, NULL, 0x2, NULL, HFILL}
},
{ &hf_nvme_get_logpage_selftest_res_vdi[3],
{ "Status Code Type (SCT) Filed Valid", "nvme.cmd.get_logpage.selftest.res.vdi.sct",
{ "Status Code Type (SCT) Field Valid", "nvme.cmd.get_logpage.selftest.res.vdi.sct",
FT_BOOLEAN, 8, NULL, 0x4, NULL, HFILL}
},
{ &hf_nvme_get_logpage_selftest_res_vdi[4],

View File

@ -96,7 +96,7 @@ index_get_optional_name(const oer_sequence_t *sequence, int idx)
if ((sequence[i].extension != ASN1_NOT_EXTENSION_ROOT) && (sequence[i].optional == ASN1_OPTIONAL)) {
if (idx == 0) {
hfi = proto_registrar_get_nth(*sequence[i].p_id);
return (hfi) ? hfi->name : "<unknown filed>";
return (hfi) ? hfi->name : "<unknown field>";
}
idx--;
}
@ -111,7 +111,7 @@ index_get_field_name(const oer_sequence_t *sequence, int idx)
header_field_info *hfi;
hfi = proto_registrar_get_nth(*sequence[idx].p_id);
return (hfi) ? hfi->name : "<unknown filed>";
return (hfi) ? hfi->name : "<unknown field>";
}

View File

@ -1872,7 +1872,7 @@ index_get_optional_name(const per_sequence_t *sequence, int idx)
if((sequence[i].extension!=ASN1_NOT_EXTENSION_ROOT)&&(sequence[i].optional==ASN1_OPTIONAL)){
if (idx == 0) {
hfi = proto_registrar_get_nth(*sequence[i].p_id);
return (hfi) ? hfi->name : "<unknown filed>";
return (hfi) ? hfi->name : "<unknown field>";
}
idx--;
}
@ -1891,7 +1891,7 @@ index_get_extension_name(const per_sequence_t *sequence, int idx)
if (idx == 0) {
if (*sequence[i].p_id == -1 || *sequence[i].p_id == 0) return "extension addition group";
hfi = proto_registrar_get_nth(*sequence[i].p_id);
return (hfi) ? hfi->name : "<unknown filed>";
return (hfi) ? hfi->name : "<unknown field>";
}
idx--;
}

View File

@ -36,9 +36,9 @@
/* IGS Functions values */
static const value_string sapigs_function_lst[] = {
{ 1, "ADM:REGPW"}, /* Register a PortWatcher */
{ 2, "ADM:UNREGPW"}, /* Unregsiter a PortWatcher */
{ 2, "ADM:UNREGPW"}, /* Unregister a PortWatcher */
{ 3, "ADM:REGIP"}, /* Register an Interpreter */
{ 4, "ADM:UNREGIP"}, /* Unregsiter an Interpreter */
{ 4, "ADM:UNREGIP"}, /* Unregister an Interpreter */
{ 5, "ADM:FREEIP"}, /* Inform than Interpreter is free */
{ 6, "ADM:ILLBEBACK"}, /* Call back function */
{ 7, "ADM:ABORT"}, /* Abort Interpreter work */

View File

@ -2781,7 +2781,7 @@ static const value_string usb_hid_medical_instrument_usage_page_vals[] = {
{0xA1, "Soft Control Adjust"},
{0, NULL}
};
static const value_string usb_hid_braille_dispaly_usage_page_vals[] = {
static const value_string usb_hid_braille_display_usage_page_vals[] = {
{0x000, "Undefined"},
{0x001, "Braille Display"},
{0x002, "Braille Row"},
@ -4044,7 +4044,7 @@ get_usage_page_item_string(wmem_allocator_t *pool, guint32 usage_page, guint32 i
str = try_val_to_str(id, usb_hid_medical_instrument_usage_page_vals);
break;
case BRAILLE_DISPLAY_PAGE:
str = try_val_to_str(id, usb_hid_braille_dispaly_usage_page_vals);
str = try_val_to_str(id, usb_hid_braille_display_usage_page_vals);
break;
case LIGHTING_AND_ILLUMINATION_PAGE:
str = try_val_to_str(id, usb_hid_lighting_and_illumination_usage_page_vals);

View File

@ -424,7 +424,7 @@ write_fields_proto_tree(output_fields_t* fields, epan_dissect_t *edt, column_inf
/* Indent to the correct level */
static void print_indent(int level, FILE *fh)
{
/* Use a buffer pre-filed with spaces */
/* Use a buffer pre-filled with spaces */
#define MAX_INDENT 2048
static char spaces[MAX_INDENT];
static gboolean inited = FALSE;

View File

@ -3418,7 +3418,7 @@ WS_DLL_PUBLIC proto_item *
proto_tree_add_ascii_7bits_item(proto_tree *tree, const int hfindex, tvbuff_t *tvb,
const guint bit_offset, const gint no_of_chars);
/** Add a checksum filed to a proto_tree.
/** Add a checksum field to a proto_tree.
This standardizes the display of a checksum field as well as any
status and expert info supporting it.
@param tree the tree to append this item to
@ -3440,7 +3440,7 @@ proto_tree_add_checksum(proto_tree *tree, tvbuff_t *tvb, const guint offset,
const int hf_checksum, const int hf_checksum_status, struct expert_field* bad_checksum_expert,
packet_info *pinfo, guint32 computed_checksum, const guint encoding, const guint flags);
/** Add a checksum bytes arry filed to a proto_tree.
/** Add a checksum bytes array field to a proto_tree.
This standardizes the display of a checksum field as well as any
status and expert info supporting it.
@param tree the tree to append this item to

View File

@ -66,7 +66,7 @@ typedef struct _fragment_head {
struct _fragment_item *first_gap; /**< pointer to last fragment before first gap.
* NULL if there is no fragment starting at offset 0 */
guint ref_count; /**< reference count in reassembled_table */
guint32 contiguous_len; /**< contigous length from head up to first gap */
guint32 contiguous_len; /**< contiguous length from head up to first gap */
guint32 frame; /**< maximum of all frame numbers added to reassembly */
guint32 len; /**< When flags&FD_BLOCKSEQUENCE and FD_DEFRAGMENTED
* are set, the number of bytes of the full datagram.

View File

@ -64,7 +64,7 @@ static const char *type1_subtype_abbrv[TYPE_I_SUBTYPE_MAX] =
#define WIMAX_MAC_HEADER_TYPE_1_SUB_TYPE_MASK 0x38
/* WIMAX MAC HEADER TYPE I FILEDS */
/* WIMAX MAC HEADER TYPE I FIELDS */
/* 1st to 3rd bytes */
/* Common Fields */
#define WIMAX_MAC_HEADER_TYPE_1_HT 0x800000
@ -260,7 +260,7 @@ static int dissect_mac_header_type_1_decoder(tvbuff_t *tvb, packet_info *pinfo,
proto_tree_add_item(ti_tree, hf_mac_header_type_1_ultxpwr, tvb, offset, 3, ENC_BIG_ENDIAN);
/* Decode and display the UL Headroom */
proto_tree_add_item(ti_tree, hf_mac_header_type_1_ulhdrm, tvb, offset, 3, ENC_BIG_ENDIAN);
/* Decode and display the reserved filed */
/* Decode and display the reserved field */
proto_tree_add_item(ti_tree, hf_mac_header_type_1_rsv_2, tvb, offset, 3, ENC_BIG_ENDIAN);
break;
case BR_WITH_UL_TX_POWER_REPORT:
@ -284,7 +284,7 @@ static int dissect_mac_header_type_1_decoder(tvbuff_t *tvb, packet_info *pinfo,
proto_tree_add_item(ti_tree, hf_mac_header_type_1_pscid, tvb, offset, 3, ENC_BIG_ENDIAN);
/* Decode and display the Operation */
proto_tree_add_item(ti_tree, hf_mac_header_type_1_op, tvb, offset, 3, ENC_BIG_ENDIAN);
/* Decode and display the reserved filed */
/* Decode and display the reserved field */
proto_tree_add_item(ti_tree, hf_mac_header_type_1_rsv_5, tvb, offset, 3, ENC_BIG_ENDIAN);
break;
case SN_REPORT:
@ -304,7 +304,7 @@ static int dissect_mac_header_type_1_decoder(tvbuff_t *tvb, packet_info *pinfo,
proto_tree_add_item(ti_tree, hf_mac_header_type_1_fbssi, tvb, offset, 3, ENC_BIG_ENDIAN);
/* Decode and display the Prreferred-period */
proto_tree_add_item(ti_tree, hf_mac_header_type_1_period, tvb, offset, 3, ENC_BIG_ENDIAN);
/* Decode and display the reserved filed */
/* Decode and display the reserved field */
proto_tree_add_item(ti_tree, hf_mac_header_type_1_rsv_7, tvb, offset, 3, ENC_BIG_ENDIAN);
break;
}

View File

@ -1031,7 +1031,7 @@ class Item:
def check_bit(self, value, n):
return (value & (0x1 << n)) != 0
# Output a warning if non-contigous bits are found in the mask (guint64).
# Output a warning if non-contiguous bits are found in the mask (guint64).
# Note that this legimately happens in several dissectors where multiple reserved/unassigned
# bits are conflated into one field.
# - there is probably a cool/efficient way to check this (+1 => 1-bit set?)

View File

@ -29,7 +29,7 @@ def get_git_authors():
'''
GIT_LINE_REGEX = r"^\s*\d+\s+([^<]*)\s*<([^>]*)>"
cmd = "git --no-pager shortlog --email --summary HEAD".split(' ')
# check_output is used for Python 3.4 compatability
# check_output is used for Python 3.4 compatibility
git_cmd_output = subprocess.check_output(cmd, universal_newlines=True, encoding='utf-8')
git_authors = []
@ -107,7 +107,7 @@ def generate_git_contributors_text(contributors_emails, git_authors_emails):
return "\n".join(output_lines)
# Read authos file until we find gitlog entries, then stop
# Read authors file until we find gitlog entries, then stop
def read_authors(parsed_args):
lines = []
with open(parsed_args.authors[0], 'r', encoding='utf-8') as fh:

View File

@ -28,7 +28,7 @@ from scapy import all as scapy
class AnonymizedField:
'''
The Anonymization field object specifying anonymization
:filed arg: field name
:field arg: field name
:type arg: anonymization type [0 masking 0xff, 1 anonymization shake_256]
:start arg: If specified, the anonymization starts at given byte number
:end arg: If specified, the anonymization ends at given byte number

View File

@ -479,7 +479,7 @@ wmem_block_pop_master(wmem_block_allocator_t *allocator)
/* CHUNK HELPERS */
/* Takes a free chunk and checks the chunks to its immediate right and left in
* the block. If they are also free, the contigous free chunks are merged into
* the block. If they are also free, the contiguous free chunks are merged into
* a single free chunk. The resulting chunk ends up in either the master list or
* the recycler, depending on where the merged chunks were originally.
*/