Fix some more spelling errors

This commit is contained in:
Martin Mathieson 2024-02-06 10:46:08 +00:00
parent 600de02805
commit 714e568f66
26 changed files with 57 additions and 52 deletions

View File

@ -1477,7 +1477,7 @@ main(int argc, char *argv[])
int choplen = 0, chopoff = 0;
switch (sscanf(ws_optarg, "%d:%d", &chopoff, &choplen)) {
case 1: /* only the chop length was specififed */
case 1: /* only the chop length was specified */
choplen = chopoff;
chopoff = 0;
break;

View File

@ -341,11 +341,11 @@ static int fc_len(void)
******************************************************************************/
/* FC Network Header Network Address Authority Identifiers */
#define FC_NH_NAA_IEEE 1 /* IEEE 802.1a */
#define FC_NH_NAA_IEEE_E 2 /* IEEE Exteneded */
#define FC_NH_NAA_IEEE_E 2 /* IEEE Extended */
#define FC_NH_NAA_LOCAL 3
#define FC_NH_NAA_IP 4 /* 32-bit IP address */
#define FC_NH_NAA_IEEE_R 5 /* IEEE Registered */
#define FC_NH_NAA_IEEE_R_E 6 /* IEEE Registered Exteneded */
#define FC_NH_NAA_IEEE_R_E 6 /* IEEE Registered Extended */
/* according to FC-PH 3 draft these are now reclaimed and reserved */
#define FC_NH_NAA_CCITT_INDV 12 /* CCITT 60 bit individual address */
#define FC_NH_NAA_CCITT_GRP 14 /* CCITT 60 bit group address */

View File

@ -43,7 +43,7 @@ typedef struct {
*/
typedef struct {
char *name; /* heuristic short name */
gboolean enabled; /* heuristc enabled */
gboolean enabled; /* heuristic enabled */
} heur_protocol_def;
/*

View File

@ -578,7 +578,7 @@ expert_set_info_vformat(packet_info *pinfo, proto_item *pi, int group, int sever
* to write.
*/
if (pos >= ITEM_LABEL_LENGTH) {
/* Truncation occured. It might have split a UTF-8 character. */
/* Truncation occurred. It might have split a UTF-8 character. */
ws_utf8_truncate(formatted, ITEM_LABEL_LENGTH - 1);
}

View File

@ -1356,7 +1356,7 @@ void dissector_add_uint_range_with_preference(const char *name, const char* rang
with a particular pattern. */
/* NOTE: this doesn't use the dissector call variable. It is included to */
/* be consistant with the dissector_add_uint and more importantly to be used */
/* be consistent with the dissector_add_uint and more importantly to be used */
/* if the technique of adding a temporary dissector is implemented. */
/* If temporary dissectors are deleted, then the original dissector must */
/* be available. */
@ -1766,7 +1766,7 @@ dissector_add_string(const char *name, const gchar *pattern,
with a particular pattern. */
/* NOTE: this doesn't use the dissector call variable. It is included to */
/* be consistant with the dissector_add_string and more importantly to */
/* be consistent with the dissector_add_string and more importantly to */
/* be used if the technique of adding a temporary dissector is */
/* implemented. */
/* If temporary dissectors are deleted, then the original dissector must */
@ -3317,7 +3317,7 @@ find_dissector(const char *name)
return (dissector_handle_t)g_hash_table_lookup(registered_dissectors, name);
}
/** Find a dissector by name and add parent protocol as a depedency*/
/** Find a dissector by name and add parent protocol as a dependency*/
dissector_handle_t find_dissector_add_dependency(const char *name, const int parent_proto)
{
dissector_handle_t handle = (dissector_handle_t)g_hash_table_lookup(registered_dissectors, name);

View File

@ -7190,7 +7190,7 @@ proto_custom_set(proto_tree* tree, GSList *field_ids, gint occurrence,
continue;
}
/* Calculate single index or set outer bounderies */
/* Calculate single index or set outer boundaries */
if (occurrence < 0) {
i = occurrence + len + prev_len;
last = i;
@ -7339,7 +7339,7 @@ proto_custom_get_filter(epan_dissect_t* edt, GSList *field_ids, gint occurrence)
continue;
}
/* Calculate single index or set outer bounderies */
/* Calculate single index or set outer boundaries */
if (occurrence < 0) {
i = occurrence + len + prev_len;
last = i;

View File

@ -109,7 +109,7 @@ pbl_reinit_descriptor_pool(pbl_descriptor_pool_t** ppool, const char** directori
*ppool = p;
}
/* free all memory used by this protocol buffers languange pool */
/* free all memory used by this protocol buffers language pool */
void
pbl_free_pool(pbl_descriptor_pool_t* pool)
{

View File

@ -678,7 +678,7 @@ fragment_add_seq_offset(reassembly_table *table, const packet_info *pinfo, const
if (!fd_head)
return;
/* Reseting the offset is not allowed */
/* Resetting the offset is not allowed */
if ( fd_head->fragment_nr_offset != 0 )
return;
@ -3309,7 +3309,7 @@ reassemble_streaming_data_and_call_subdissector(
}
frame_ptr = (guint64*)wmem_memdup(wmem_file_scope(), &cur_frame_num, sizeof(guint64));
wmem_map_insert(reassembly_info->frame_num_frag_offset_map, frame_ptr, GUINT_TO_POINTER(frag_offset));
/* This payload contains the data of previous msp, so we point to it. That may be overriden late. */
/* This payload contains the data of previous msp, so we point to it. That may be overridden late. */
wmem_map_insert(reassembly_info->multisegment_pdus, frame_ptr, reassembly_info->last_msp);
}
} else {
@ -3399,7 +3399,7 @@ reassemble_streaming_data_and_call_subdissector(
"Subdissector MUST NOT set pinfo->desegment_offset(%d) in previous or next part of MSP, must between (%d, %d).",
pinfo->desegment_offset, reassembly_info->last_msp->length, reassembly_info->last_msp->length + bytes_belong_to_prev_msp));
/* shorten the bytes_belong_to_prev_msp and just truncate the ressembled tvb */
/* shorten the bytes_belong_to_prev_msp and just truncate the reassembled tvb */
bytes_belong_to_prev_msp = pinfo->desegment_offset - reassembly_info->last_msp->length;
fragment_truncate(&streaming_reassembly_table, pinfo, reassembly_id, NULL, pinfo->desegment_offset);
found_BoMSP = TRUE;

View File

@ -109,7 +109,7 @@ typedef struct {
guint32 valueBase;
} zgfx_token_t;
static const zgfx_token_t ZGFX_LITTERAL_TABLE[] = {
static const zgfx_token_t ZGFX_LITERAL_TABLE[] = {
// prefixLength prefixCode valueBits valueBase
{ 5, 24, 0, 0x00 }, // 11000
{ 5, 25, 0, 0x01 }, // 11001
@ -173,7 +173,7 @@ zgfx_context_t *zgfx_context_new(wmem_allocator_t *allocator) {
}
static void
zgfx_write_history_litteral(zgfx_context_t *zgfx, guint8 c)
zgfx_write_history_literal(zgfx_context_t *zgfx, guint8 c)
{
zgfx->historyBuffer[zgfx->historyIndex] = c;
zgfx->historyIndex = (zgfx->historyIndex + 1) % zgfx->historyBufferSize;
@ -234,14 +234,14 @@ zgfx_write_history_buffer(zgfx_context_t *zgfx, const guint8 *src, guint32 count
static gboolean
zgfx_write_litteral(zgfx_context_t *zgfx, guint8 c)
zgfx_write_literal(zgfx_context_t *zgfx, guint8 c)
{
if (zgfx->outputCount == 65535)
return FALSE;
zgfx->outputSegment[zgfx->outputCount++] = c;
zgfx_write_history_litteral(zgfx, c);
zgfx_write_history_literal(zgfx, c);
return TRUE;
}
@ -362,16 +362,16 @@ rdp8_decompress_segment(zgfx_context_t *zgfx, tvbuff_t *tvb)
if (!ok)
return FALSE;
// 0 - litteral
// 0 - literal
if (bits_val == 0) {
bits_val = bitstream_getbits(&bitstream, 8, &ok);
if (!zgfx_write_litteral(zgfx, bits_val))
if (!zgfx_write_literal(zgfx, bits_val))
return FALSE;
continue;
}
// 1x - match or litteral branch
// 1x - match or literal branch
bits_val = bitstream_getbits(&bitstream, 1, &ok);
if (bits_val == 0) {
// 10 - match
@ -380,10 +380,10 @@ rdp8_decompress_segment(zgfx_context_t *zgfx, tvbuff_t *tvb)
ntokens = sizeof(ZGFX_MATCH_TABLE) / sizeof(ZGFX_MATCH_TABLE[0]);
inPrefix = 2;
} else {
// 11 - litteral
// 11 - literal
ismatch = false;
tokens = ZGFX_LITTERAL_TABLE;
ntokens = sizeof(ZGFX_LITTERAL_TABLE) / sizeof(ZGFX_LITTERAL_TABLE[0]);
tokens = ZGFX_LITERAL_TABLE;
ntokens = sizeof(ZGFX_LITERAL_TABLE) / sizeof(ZGFX_LITERAL_TABLE[0]);
inPrefix = 3;
}
@ -460,9 +460,9 @@ rdp8_decompress_segment(zgfx_context_t *zgfx, tvbuff_t *tvb)
return FALSE;
}
} else {
/* Litteral */
/* literal */
bits_val = tokens[i].valueBase;
if (!zgfx_write_litteral(zgfx, bits_val))
if (!zgfx_write_literal(zgfx, bits_val))
return FALSE;
}
}

2
file.c
View File

@ -1236,7 +1236,7 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf,
prime_epan_dissect_with_postdissector_wanted_hfids(edt);
}
/* Intitialize passed_dfilter here so that dissectors can hide packets. */
/* Initialize passed_dfilter here so that dissectors can hide packets. */
/* XXX We might want to add a separate "visible" bit to frame_data instead. */
fdata->passed_dfilter = 1;

View File

@ -1,3 +1,3 @@
This codec plugin serves a dual purpose.
First it is to add L16 codec suppport to Wireshark.
First it is to add L16 codec support to Wireshark.
Second it is an illustration of a basic codec plugin module.

View File

@ -3511,7 +3511,7 @@ void proto_register_ecat(void)
FT_BOOLEAN, 8, TFS(&tfs_local_true_false), 0x10, NULL, HFILL }
},
{ &hf_ecat_reg_dc_activation_stimecheck,
{"Start time chheck", "ecat.reg.dc.activation.stimecheck",
{"Start time check", "ecat.reg.dc.activation.stimecheck",
FT_BOOLEAN, 8, TFS(&tfs_local_true_false), 0x20, NULL, HFILL }
},
{ &hf_ecat_reg_dc_activation_hlfrange,

View File

@ -606,7 +606,7 @@ fd_tap_listener(void *tapdata, packet_info *pinfo,
guint32 get_fd_stream_count(void)
{
// This effectively desables the "streams" dropdown, which is we don't really care about for the moment in logray.
// This effectively disables the "streams" dropdown, which is we don't really care about for the moment in logray.
return 1;
}

View File

@ -825,7 +825,7 @@ extern void merge_avpl(AVPL* dst, AVPL* src, gboolean copy_avps) {
}
}
// if there are remaing source AVPs while there are no more destination
// if there are remaining source AVPs while there are no more destination
// AVPs (cd now represents the NULL item, after the last item), append
// all remaining source AVPs to the end
while (cs->avp) {

View File

@ -499,7 +499,7 @@ static int dissect_opcua_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *
guint16 src_port = pinfo->srcport;
range_t *port_range;
bool from_server = false;
bool decrypted = false; /* succesfully decrypted secure message */
bool decrypted = false; /* successfully decrypted secure message */
enum ua_message_mode mode = UA_MessageMode_None;
uint8_t sig_len = 0;
struct ua_metadata metadata;

View File

@ -1435,7 +1435,7 @@ dissect_PNDCP_Suboption_Control(tvbuff_t *tvb, int offset, packet_info *pinfo,
}
/* dissect the "deviceinitaitve" suboption */
/* dissect the "deviceinitiatve" suboption */
static int
dissect_PNDCP_Suboption_DeviceInitiative(tvbuff_t *tvb, int offset, packet_info *pinfo,
proto_tree *tree, proto_item *block_item, proto_item *dcp_item,

View File

@ -348,7 +348,7 @@ dissect_pn_rta_remaining_user_data_bytes(tvbuff_t *tvb, int offset, packet_info
/* reassembling completed? */
if (fd_reass != NULL) {
/* is this the packet to show the reassembed payload in? */
/* is this the packet to show the reassembled payload in? */
if (pinfo->fd->num == fd_reass->reassembled_in) {
next_tvb = process_reassembled_data(tvb, 0, pinfo,
"Reassembled PN IO RSI packet", fd_reass, &pn_rsi_frag_items, &update_col_info, tree);

View File

@ -280,7 +280,7 @@ IsDFP_Frame(tvbuff_t *tvb, packet_info *pinfo, guint16 u16FrameID)
gint tvb_len = 0;
unsigned char virtualFramebuffer[16];
/* try to build a temporaray buffer for generating this CRC */
/* try to build a temporary buffer for generating this CRC */
if (!pinfo->src.data || !pinfo->dst.data ||
pinfo->dst.type != AT_ETHER || pinfo->src.type != AT_ETHER) {
/* if we don't have src/dst mac addresses then we assume it's not
@ -447,11 +447,11 @@ dissect_CSF_SDU_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *
}
/* for reasemble processing we need some inits.. */
/* for reassemble processing we need some inits.. */
/* Register PNIO defrag table init routine. */
static reassembly_table pdu_reassembly_table;
static GHashTable *reasembled_frag_table = NULL;
static GHashTable *reassembled_frag_table = NULL;
static dissector_table_t ethertype_subdissector_table;
@ -464,13 +464,13 @@ pnio_defragment_init(void)
guint32 i;
for (i=0; i < 16; i++) /* init the reasemble help array */
start_frag_OR_ID[i] = 0;
reasembled_frag_table = g_hash_table_new(NULL, NULL);
reassembled_frag_table = g_hash_table_new(NULL, NULL);
}
static void
pnio_defragment_cleanup(void)
{
g_hash_table_destroy(reasembled_frag_table);
g_hash_table_destroy(reassembled_frag_table);
}
/* possibly dissect a FRAG_PDU related PN-RT packet */
@ -547,12 +547,12 @@ dissect_FRAG_PDU_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void
if (pdu_frag && !bMoreFollows) /* PDU is complete! and last fragment */
{ /* store this fragment as the completed fragment in hash table */
g_hash_table_insert(reasembled_frag_table, GUINT_TO_POINTER(pinfo->num), pdu_frag);
g_hash_table_insert(reassembled_frag_table, GUINT_TO_POINTER(pinfo->num), pdu_frag);
start_frag_OR_ID[u32FragID] = 0; /* reset the starting frame counter */
}
if (!bMoreFollows) /* last fragment */
{
pdu_frag = (fragment_head *)g_hash_table_lookup(reasembled_frag_table, GUINT_TO_POINTER(pinfo->num));
pdu_frag = (fragment_head *)g_hash_table_lookup(reassembled_frag_table, GUINT_TO_POINTER(pinfo->num));
if (pdu_frag) /* found a matching fragment; dissect it */
{
guint16 type;

View File

@ -432,7 +432,7 @@ dissect_PNIO_C_SDU_RTC1(tvbuff_t *tvb, int offset,
{
proto_tree *data_tree = NULL;
/* Count & offset for comparation of the arrays */
/* Count & offset for comparison of the arrays */
guint16 frameOffset;
guint32 objectCounter;
gboolean inputFlag;

View File

@ -302,7 +302,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_fb_type, tvb, offset, 3, ENC_BIG_ENDIAN);
/* Decode and display the FBSSI */
proto_tree_add_item(ti_tree, hf_mac_header_type_1_fbssi, tvb, offset, 3, ENC_BIG_ENDIAN);
/* Decode and display the Prreferred-period */
/* Decode and display the Preferred-period */
proto_tree_add_item(ti_tree, hf_mac_header_type_1_period, tvb, offset, 3, ENC_BIG_ENDIAN);
/* 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);

View File

@ -624,7 +624,7 @@ static int dissect_mac_header_type_2_decoder(tvbuff_t *tvb, packet_info *pinfo,
/* Decode and display the Long-term precoding feedback */
/* Feedback of index */
proto_tree_add_item(ti_tree, hf_mac_header_type_2_lt_id_fb, tvb, offset, 2, ENC_BIG_ENDIAN);
/* rank of prrecoding codebook */
/* rank of precoding codebook */
proto_tree_add_item(ti_tree, hf_mac_header_type_2_lt_rank, tvb, offset, 2, ENC_BIG_ENDIAN);
/* EFC and QAM feedback */
proto_tree_add_item(ti_tree, hf_mac_header_type_2_lt_fec_qam, tvb, offset, 2, ENC_BIG_ENDIAN);

View File

@ -101,7 +101,7 @@ static expert_field ei_wimaxasncp_length_bad;
/* Header size, up to, but not including, the TLV fields. */
#define WIMAXASNCP_HEADER_SIZE 20
/* Offset to end of the length field in the headder. */
/* Offset to end of the length field in the header. */
#define WIMAXASNCP_HEADER_LENGTH_END 6
#define WIMAXASNCP_BIT32(n) (1U << (31 - (n)))
@ -402,7 +402,7 @@ static const ver_value_string wimaxasncp_ms_state_msg_vals[] =
/* ------------------------------------------------------------------------- */
/* note - function type 10-im_operation, was once used for re-authrntication */
/* note - function type 10-im_operation, was once used for re-authentication */
static const ver_value_string wimaxasncp_im_operations_msg_vals[] =
{
{0, { 1, "AR_EAP_Start"}},

View File

@ -246,6 +246,7 @@ chan1
chan2
changelog
channelisation
channelised
channelized
channelmap
channelseq
@ -528,6 +529,7 @@ dstport
dtwin
dumpcap
duple
duplications
durations
dword
dwords
@ -550,6 +552,7 @@ elided
elink
ellipsoid
emlsr
emulates
encap
encaps
encapsulating
@ -1442,6 +1445,7 @@ reconfigures
reconfirm
reconfrqst
reconnection
recurse
recursively
redelivered
redelivery
@ -1487,6 +1491,7 @@ representable
reproducible
reprogrammable
reprogramming
republish
requester
requestor
requeue
@ -1918,6 +1923,7 @@ unconfirm
unconstrained
uncontended
uncorrectable
uncorrected
undecidable
undecipherable
undecodable
@ -1931,6 +1937,7 @@ underrun
undisposed
undissected
unduplicated
unencoded
unencrypted
unescaped
unescaping
@ -2136,5 +2143,3 @@ zeroes
zigbee
zugtyp
zürich
channelised
uncorrected

View File

@ -6799,7 +6799,7 @@ static const struct supported_option_type packet_block_options_supported[] = {
{ OPT_CUSTOM_BIN_NO_COPY, MULTIPLE_OPTIONS_SUPPORTED }
};
/* Options for file-type-sepcific reports. */
/* Options for file-type-specific reports. */
static const struct supported_option_type ft_specific_report_block_options_supported[] = {
{ OPT_COMMENT, MULTIPLE_OPTIONS_SUPPORTED },
{ OPT_CUSTOM_STR_COPY, MULTIPLE_OPTIONS_SUPPORTED },
@ -6808,7 +6808,7 @@ static const struct supported_option_type ft_specific_report_block_options_suppo
{ OPT_CUSTOM_BIN_NO_COPY, MULTIPLE_OPTIONS_SUPPORTED }
};
/* Options for file-type-sepcific event. */
/* Options for file-type-specific event. */
static const struct supported_option_type ft_specific_event_block_options_supported[] = {
{ OPT_COMMENT, MULTIPLE_OPTIONS_SUPPORTED },
{ OPT_CUSTOM_STR_COPY, MULTIPLE_OPTIONS_SUPPORTED },

View File

@ -96,7 +96,7 @@ struct visual_atm_hdr
guint8 category; /* indicates type of traffic. 4 bits of status + 4 bits of type */
guint16 cell_count; /* number of cells that make up this pdu */
guint32 data_length; /* PDU data length for AAL-5 PDUs, all others - cellcount * 48 */
guint32 ts_secs; /* seonds value of sysUpTime when the last cell of this PDU was captured */
guint32 ts_secs; /* seconds value of sysUpTime when the last cell of this PDU was captured */
guint32 ts_nsec; /* nanoseonds value of sysUpTime when the last cell of this PDU was captured */
};

View File

@ -479,7 +479,7 @@
#define vVW510021_W_PREAMBLE_OFF vVW510021_W_L1P_1_OFF
#define vVW510021_W_RSSI_TXPOWER_OFF 2 /* RSSI (NOTE: RSSI must be negated!) */
#define vVW510021_W_MSDU_LENGTH_OFF 3 /* 7:0 of length, next byte 11:8 in top 4 bits */
#define vVW510021_W_BVCV_VALID_OFF 4 /* BV,CV Determine validaity of bssid and txpower */
#define vVW510021_W_BVCV_VALID_OFF 4 /* BV,CV Determine validity of bssid and txpower */
#define vVW510021_W_VCID_OFF 6 /* offset of VC (client) ID */
#define vVW510021_W_PLCP_LENGTH_OFF 12 /* LENGTH field in the plcp header */