Fix many spelling errors

This commit is contained in:
Роман Донченко 2020-10-11 02:42:05 +03:00 committed by Wireshark GitLab Utility
parent d3f2fa4019
commit 69e1aa860b
30 changed files with 56 additions and 56 deletions

View File

@ -3,11 +3,11 @@ AMC: Wireless Analyzer Captured Data (AirMagnet)
This is just a braindump from looking at some Airmagnet capture files,
in one case having a look at a decoded display in Airmagnet itself.
Lots of things are still unknown.
This is NOT the intention to write a file importer in the forseeable
This is NOT the intention to write a file importer in the foreseeable
future.
Exact timestamp decoding still unknown:
From a diffrent decoded examplefile:
From a different decoded example file:
06 51 49 1b Timestamp (105990427) = 03:30:27.497544
06 51 4a cd Timestamp (105990861) = 03:30:27.497978 (+434)
06 51 4b ce Timestamp (105991118) = 03:30:27.498235 (+257)

View File

@ -136,7 +136,7 @@ XMIT-Max7:20: (task "_brouterControlTask" at 0xb094ac20, time: 1481.51) 20 octet
1) White space is added before "(task".
2) Task has a name, indicated by a subsequent string surrounded by a
double-quote.
3) Address expressed in hex number has a preceeding "0x".
3) Address expressed in hex number has a preceding "0x".
4) Hex numbers are in lower case.
5) There is a character display corresponding to hex data in each line.

View File

@ -78,7 +78,7 @@ static gboolean parse_dbs_etherwatch_packet(FILE_T fh, wtap_rec *rec,
Buffer* buf, int *err, gchar **err_info);
static guint parse_single_hex_dump_line(char* rec, guint8 *buf,
int byte_offset);
static guint parse_hex_dump(char* dump, guint8 *buf, char seperator, char end);
static guint parse_hex_dump(char* dump, guint8 *buf, char separator, char end);
/* Seeks to the beginning of the next packet, and returns the
byte offset. Returns -1 on failure, and sets "*err" to the error
@ -237,7 +237,7 @@ Protocol 08-00 00 00-00-00-00-00, 50 byte buffer at 10-OCT-2001 10:20:45.17
#define PID_LENGTH 5 /* Length PID */
#define PID_POS 18 /* Position PID */
#define LENGTH_POS 33 /* Position length */
#define HEX_HDR_SPR '-' /* Seperator char header hex values */
#define HEX_HDR_SPR '-' /* Separator char header hex values */
#define HEX_HDR_END ' ' /* End char hdr. hex val. except PID */
#define HEX_PID_END ',' /* End char PID hex value */
#define IEEE802_LEN_LEN 2 /* Length of the IEEE 802 len. field */
@ -518,7 +518,7 @@ parse_dbs_etherwatch_packet(FILE_T fh, wtap_rec *rec, Buffer* buf,
#define COUNT_POS_HEX 1 /* Count position HEX type */
#define COUNT_SIZE 5 /* Length counter */
#define HEX_DUMP_START '[' /* Start char */
#define HEX_DUMP_SPR ' ' /* Seperator char */
#define HEX_DUMP_SPR ' ' /* Separator char */
#define HEX_DUMP_END ']' /* End char */
/* Take a string representing one line from a hex dump and converts the
@ -592,7 +592,7 @@ parse_single_hex_dump_line(char* rec, guint8 *buf, int byte_offset) {
/* Parse a hex dump */
static guint
parse_hex_dump(char* dump, guint8 *buf, char seperator, char end) {
parse_hex_dump(char* dump, guint8 *buf, char separator, char end) {
int pos, count;
/* Parse the hex dump */
@ -618,8 +618,8 @@ parse_hex_dump(char* dump, guint8 *buf, char seperator, char end) {
}
pos++;
count++;
/* Skip the seperator characters */
while(dump[pos] == seperator) {
/* Skip the separator characters */
while(dump[pos] == separator) {
pos++;
}
}

View File

@ -1612,8 +1612,8 @@ static gboolean erf_write_anchor_meta_update_phdr(wtap_dumper *wdh, erf_dump_t *
* implicit Host ID. */
/* 2. AnchorID exthdr with 'unique' per-host Anchor ID assigned by this host
* (in this case Wireshark). Anchor defintion flag set to 1 to indicate this
* record contains a defintion of the ID, in this case a comment on a single
* (in this case Wireshark). Anchor definition flag set to 1 to indicate this
* record contains a definition of the ID, in this case a comment on a single
* packet. Tied to above extension header by ordering like a list */
erf_append_ext_hdr_to_list(anchor_id_hdr | ERF_EHDR_ANCHOR_ID_DEFINITION_MASK, meta_ehdrs);
@ -1913,7 +1913,7 @@ static gboolean erf_dump(
} else { /* don't want to insert a new metadata record while looking at another */
if (dump_priv->prev_erf_type == ERF_TYPE_META && dump_priv->last_meta_periodic) {
/* Last frame was a periodic (non-comment) metadata record (and this frame is not), check if we
* need to insert one to update metdata. */
* need to insert one to update metadata. */
if(dump_priv->write_next_extra_meta) {
if (!dump_priv->periodic_sections) {
@ -2192,7 +2192,7 @@ static int erf_update_anchors_from_header(erf_t *erf_priv, wtap_rec *rec, union
anchor_id_current = hdr & ERF_EHDR_ANCHOR_ID_MASK;
if (!(ERF_ANCHOR_ID_IS_DEFINITION(hdr))) {
/*
* Anchor definiton flag is 0, attempt to associate a comment with this record
* Anchor definition flag is 0, attempt to associate a comment with this record
* XXX: currently the comment count may be wrong on the first pass!
*/
/* We may not have found the implicit Host ID yet, if so we are unlikely to find anything */

View File

@ -794,7 +794,7 @@ gz_head(FILE_T state)
*
* 2) we only read the first byte into the buffer with
* the first ws_read (e.g., because we're reading from
* a pipe and only the first byte had been writen to
* a pipe and only the first byte had been written to
* the pipe at that point), and read the second byte
* into the buffer after the first byte in the
* fill_in_buffer call, so we now have two bytes in

View File

@ -104,7 +104,7 @@ ipfix_read_message_header(ipfix_message_header_t *pfx_hdr, FILE_T fh, int *err,
if (!wtap_read_bytes_or_eof(fh, pfx_hdr, IPFIX_MSG_HDR_SIZE, err, err_info))
return FALSE;
/* fix endianess, because IPFIX files are always big-endian */
/* fix endianness, because IPFIX files are always big-endian */
pfx_hdr->version = g_ntohs(pfx_hdr->version);
pfx_hdr->message_length = g_ntohs(pfx_hdr->message_length);
pfx_hdr->export_time_secs = g_ntohl(pfx_hdr->export_time_secs);

View File

@ -20,7 +20,7 @@
* 1. Object protocol = ETHERNET (Default)
* 2. ASCII or Unicode file formats.
*
* The above can be acheived by passing option ASCII(*YES) with the trace command
* The above can be achieved by passing option ASCII(*YES) with the trace command
*
*/
@ -58,7 +58,7 @@
* identifying the packet number, direction, size, timestamp,
* source/destination MAC addresses and packet type.
*
* Thereafter there will be a formated display of the headers above
* Thereafter there will be a formatted display of the headers above
* the link layer, such as ARP, IP, TCP, UDP, and ICMP (all but
* ICMP have either been seen in captures or on pages such as the ones
* at
@ -76,7 +76,7 @@
* "TCP Header :", "UDP Header :", and (presumably) "ICMP Header:".
*
* If the packet contains data this is displayed as 4 groups of 16 hex digits
* followed by an ASCII representaion of the data line.
* followed by an ASCII representation of the data line.
*
* Information from the packet header line, higher-level headers and, if
* available, data lines are extracted by the module for displaying.
@ -320,7 +320,7 @@ iseries_open (wtap * wth, int *err, gchar ** err_info)
/*
* Do some basic sanity checking to ensure we can handle the
* contents of this trace by checking the header page for
* requisit requirements and additional information.
* requisite requirements and additional information.
*/
static gboolean
iseries_check_file_type (wtap * wth, int *err, gchar **err_info, int format)

View File

@ -798,7 +798,7 @@ generate_merged_idbs(merge_in_file_t *in_files, const guint in_file_count, const
merge_debug("merge::generate_merged_idbs: mode NONE set or did not find a duplicate");
/*
* This IDB does not match a previous (or we want to save all IDBs),
* so add the IDB to the merge file, and add a map of the indeces.
* so add the IDB to the merge file, and add a map of the indices.
*/
merged_index = add_idb_to_merged_file(merged_idb_list, input_file_idb);
add_idb_index_map(&in_files[i], itf_count, merged_index);

View File

@ -470,7 +470,7 @@ wtap_open_return_val netmon_open(wtap *wth, int *err, gchar **err_info)
wth->subtype_close = netmon_close;
/* NetMon capture file formats v2.1+ use per-packet encapsulation types. NetMon 3 sets the value in
* the header to 1 (Ethernet) for backwards compability. */
* the header to 1 (Ethernet) for backwards compatibility. */
if((hdr.ver_major == 2 && hdr.ver_minor >= 1) || hdr.ver_major > 2)
wth->file_encap = WTAP_ENCAP_PER_PACKET;
else
@ -1209,7 +1209,7 @@ netmon_process_record(wtap *wth, FILE_T fh, wtap_rec *rec,
netmon->version_major > 2) {
if (netmon->version_major > 2) {
/*
* Asssume 2.3 format, for now.
* Assume 2.3 format, for now.
*/
trlr_size = (int)sizeof (struct netmonrec_2_3_trlr);
} else {

View File

@ -66,7 +66,7 @@
/* The high resolution relative time format.
** The MS 2 bits of the high resoltion time is defined as follows:
** The MS 2 bits of the high resolution time is defined as follows:
** 00 : time value is in seconds
** 01 : time value is in milliseconds
** 10 : time value is in microseconds

View File

@ -810,7 +810,7 @@ nettrace_parse_address(char* curr_pos, char* next_pos, gboolean is_src_addr/*SRC
}
/*
* Opens an .xml file with Trace data formated according to 3GPP TS 32.423 and converts it to
* Opens an .xml file with Trace data formatted according to 3GPP TS 32.423 and converts it to
* an "Exported PDU type file with the entire xml file as the first "packet" appending the
* raw messages as subsequent packages to be dissected by wireshark.
*/
@ -1021,7 +1021,7 @@ create_temp_pcapng_file(wtap *wth, int *err, gchar **err_info, nettrace_3gpp_32_
char *raw_msg_pos;
char* start_msg_tag_cont;
/* Clear for each itteration */
/* Clear for each iteration */
exported_pdu_info.precense_flags = 0;
exported_pdu_info.ptype = OLD_PT_NONE;
@ -1067,7 +1067,7 @@ create_temp_pcapng_file(wtap *wth, int *err, gchar **err_info, nettrace_3gpp_32_
*/
ms = 0;
curr_pos = strstr(start_msg_tag_cont, "changeTime");
/* Check if we have the tag or if we pased the end of the current message */
/* Check if we have the tag or if we passed the end of the current message */
if ((curr_pos) && (curr_pos < next_msg_pos)) {
curr_pos = curr_pos + 12;
scan_found = sscanf(curr_pos, "%u.%u", &second, &ms);
@ -1105,7 +1105,7 @@ create_temp_pcapng_file(wtap *wth, int *err, gchar **err_info, nettrace_3gpp_32_
* It might contain an address
*/
curr_pos = strstr(start_msg_tag_cont, "<initiator");
/* Check if we have the tag or if we pased the end of the current message */
/* Check if we have the tag or if we passed the end of the current message */
if ((curr_pos) && (curr_pos < next_msg_pos)) {
curr_pos = curr_pos + 10;
next_pos = strstr(curr_pos, "</initiator>");
@ -1121,7 +1121,7 @@ create_temp_pcapng_file(wtap *wth, int *err, gchar **err_info, nettrace_3gpp_32_
* It might contain an address
*/
curr_pos = strstr(start_msg_tag_cont, "<target");
/* Check if we have the tag or if we pased the end of the current message */
/* Check if we have the tag or if we passed the end of the current message */
if ((curr_pos) && (curr_pos < next_msg_pos)) {
curr_pos = curr_pos + 7;
next_pos = strstr(curr_pos, "</target>");

View File

@ -300,7 +300,7 @@ typedef struct _ATMSaveInfo {
*
* For AAL types other than AAL5, the packet data is presumably for a
* single cell, not a reassembled frame, as the ATM Sniffer manual says
* it dosn't reassemble cells other than AAL5 cells.
* it doesn't reassemble cells other than AAL5 cells.
*/
#define ATT_AALTYPE 0x0F /* AAL type: */
#define ATT_AAL_UNKNOWN 0x00 /* Unknown AAL */

View File

@ -563,7 +563,7 @@ static const struct {
* We treat 13 as WTAP_ENCAP_ENC on all systems except those
* that define DLT_ATM_RFC1483 as 13 - presumably only
* BSD/OS does so - so that, on BSD/OS systems, we still
* treate 13 as WTAP_ENCAP_ATM_RFC1483, but, on all other
* treat 13 as WTAP_ENCAP_ATM_RFC1483, but, on all other
* systems, we can read OpenBSD DLT_ENC captures.
*/
#if defined(__bsdi__) /* BSD/OS */

View File

@ -33,7 +33,7 @@
/* CREDITS
*
* This file decoder could not have been writen without examining how
* This file decoder could not have been written without examining how
* tcptrace (http://www.tcptrace.org/) handles EtherPeek files.
*/

View File

@ -29,7 +29,7 @@
/* CREDITS
*
* This file decoder could not have been writen without examining
* This file decoder could not have been written without examining
* http://www.varsanofiev.com/inside/airopeekv9.htm, the help from
* Martin Regner and Guy Harris, and the etherpeek.c file (as it
* was called before renaming it to peekclassic.c).

View File

@ -19,7 +19,7 @@
#include <string.h>
/* 128 bytes should be enough to contain any line. Strictly speaking, 64 is
enough, but we provide some leeway to accomodate nonconformant producers and
enough, but we provide some leeway to accommodate nonconformant producers and
trailing whitespace. The 2 extra bytes are for the trailing newline and NUL
terminator. */
#define MAX_LINE_LENGTH (128 + 2)

View File

@ -104,7 +104,7 @@ static gboolean snoop_dump(wtap_dumper *wdh, const wtap_rec *rec,
* http://mrpink.lerc.nasa.gov/118x/support.html
*
* had links to modified versions of "tcpdump" and "libpcap" for SUNatm
* DLPI support; they suggested that the 3.0 verson of SUNatm uses those
* DLPI support; they suggested that the 3.0 version of SUNatm uses those
* values. The Wayback Machine archived that page, but not the stuff
* to which it linked, unfortunately.
*

View File

@ -60,7 +60,7 @@ struct visual_file_hdr
guint16 file_version; /* Version number of this file format */
guint32 media_speed; /* ifSpeed of packet source in bits/sec. */
guint16 media_param; /* Media-specific extra parameter. */
char RESERVED_[102]; /* MUST BE ALL ZEROS FOR FUTURE COMPATABILITY */
char RESERVED_[102]; /* MUST BE ALL ZEROS FOR FUTURE COMPATIBILITY */
char description[64]; /* File description (null terminated) */
};

View File

@ -94,7 +94,7 @@
The only difference between the utilities is the Packet header line, primarily
the utility identifier and the packet sequence formats.
There appear to be 2 formats for packet seqencing
There appear to be 2 formats for packet sequencing
Format 1:

View File

@ -242,7 +242,7 @@
* 4 octets - errors
*/
/* Size of Layer-1, PLCP, and Layer-2/4 header incase of OCTO version FPGA */
/* Size of Layer-1, PLCP, and Layer-2/4 header in case of OCTO version FPGA */
#define OCTO_LAYER1TO4_LEN (2+14+16+23)
/*
@ -270,7 +270,7 @@
/* Size of RF header with the fields we do supply */
#define OCTO_MODIFIED_RF_LEN 76 /* 24 bytes of RF are not displayed*/
/*Offset of differnt parameters of RF header for port-1*/
/*Offset of different parameters of RF header for port-1*/
#define RF_PORT_1_NOISE_OFF 4
#define RF_PORT_1_SNR_OFF 6
#define RF_PORT_1_PFE_OFF 8
@ -1889,7 +1889,7 @@ static gboolean vwr_read_s3_W_rec(vwr_t *vwr, wtap_rec *record,
/* Also get a bunch of fields from the stats blocks */
/* 'stats_offset' variable is use to locate the exact offset.
* When a RX frame contrains RF,
* the postion of Stats, Layer 1-4, PLCP parameters are shifted to
* the position of Stats, Layer 1-4, PLCP parameters are shifted to
* + OCTO_RF_MOD_ACTUAL_LEN bytes
*/
if (IS_TX == 4) /*IS_TX =4, i.e., command type is RF-RX Modified*/
@ -2249,7 +2249,7 @@ static gboolean vwr_read_s3_W_rec(vwr_t *vwr, wtap_rec *record,
/*** Time Collapsible header ends ***/
}
/*** RF Collapsable header starts***/
/*** RF Collapsible header starts***/
if (IS_TX == 3 || IS_TX == 4) {
phtole8(&data_ptr[bytes_written], rf_id);
bytes_written += 1;
@ -2426,7 +2426,7 @@ static gboolean vwr_read_s3_W_rec(vwr_t *vwr, wtap_rec *record,
}
***/
}
/*** RF Collapsable header ends***/
/*** RF Collapsible header ends***/
if (IS_TX != 3) {
/*
@ -2497,7 +2497,7 @@ static gboolean vwr_read_s3_W_rec(vwr_t *vwr, wtap_rec *record,
phtolel(&data_ptr[bytes_written], pntoh32(&s_trail_ptr[24])); /*** 4 bytes for Payload Decode ***/
bytes_written += 4;
/*** Incase of RX, Info has 3 bytes of data, whereas for TX, 2 bytes ***/
/*** In case of RX, Info has 3 bytes of data, whereas for TX, 2 bytes ***/
if (IS_TX == 0 || IS_TX == 4) {
phtoles(&data_ptr[bytes_written], info);
bytes_written += 2;

View File

@ -682,7 +682,7 @@ struct ieee_802_11a {
* http://wifi-insider.com/atheros/turbo.htm
*/
#define PHDR_802_11A_TURBO_TYPE_NORMAL 0
#define PHDR_802_11A_TURBO_TYPE_TURBO 1 /* If we don't know wehther it's static or dynamic */
#define PHDR_802_11A_TURBO_TYPE_TURBO 1 /* If we don't know whether it's static or dynamic */
#define PHDR_802_11A_TURBO_TYPE_DYNAMIC_TURBO 2
#define PHDR_802_11A_TURBO_TYPE_STATIC_TURBO 3
@ -1264,7 +1264,7 @@ union wtap_pseudo_header {
* They may have a time stamp, and should be dissected and displayed
* just as packets are.
*
* We distingiush between "events" and "reports" so that, for example,
* We distinguish between "events" and "reports" so that, for example,
* the packet display can show the delta between a packet and an event
* but not show the delta between a packet and a report, as the time
* stamp of a report may not correspond to anything interesting on
@ -1544,7 +1544,7 @@ typedef struct hashipv6 {
} hashipv6_t;
/** A struct with lists of resolved addresses.
* Used when writing name resoultion blocks (NRB)
* Used when writing name resolutions blocks (NRB)
*/
typedef struct addrinfo_lists {
GList *ipv4_addr_list; /**< A list of resolved hashipv4_t*/
@ -2289,7 +2289,7 @@ void wtap_deregister_file_type_subtype(const int file_type_subtype);
WS_DLL_PUBLIC
int wtap_register_encap_type(const char *description, const char *name);
/*** Cleanup the interal library structures */
/*** Cleanup the internal library structures */
WS_DLL_PUBLIC
void wtap_cleanup(void);

View File

@ -98,7 +98,7 @@ extern "C" {
* the timestamps stored in the packet must be considered absolute
* timestamps. The time zone of the offset can be specified with the
* option if_tzone. TODO: won't a if_tsoffset_low for fractional
* second offsets be useful for highly syncronized capture systems?
* second offsets be useful for highly synchronized capture systems?
*/
#define OPT_IDB_HARDWARE 15 /**< A UTF-8 string containing the description
* of the hardware of the device used
@ -374,7 +374,7 @@ wtap_block_get_ipv6_option_value(wtap_block_t block, guint option_id, ws_in6_add
WS_DLL_PUBLIC wtap_opttype_return_val
wtap_block_add_string_option(wtap_block_t block, guint option_id, const char *value, gsize value_length);
/** Add a string option to a block witha printf-formatted string as its value
/** Add a string option to a block with a printf-formatted string as its value
*
* @param[in] block Block to which to add the option
* @param[in] option_id Identifier value for option

View File

@ -1666,7 +1666,7 @@ create_persconffile_profile(const char *profilename, char **pf_dir_path_return)
* Something with that pathname exists; if it's not
* a directory, we'll get an error if we try to put
* something in it, so we don't fail here, we wait
* for that attempt fo fail.
* for that attempt to fail.
*/
ret = 0;
}

View File

@ -162,7 +162,7 @@ WS_DLL_PUBLIC int create_persconffile_profile(const char *profilename,
char **pf_dir_path_return);
/*
* Returns the list of known profile config filesnames
* Returns the list of known profile config filenames
*/
WS_DLL_PUBLIC const GHashTable * allowed_profile_filenames(void);

View File

@ -57,7 +57,7 @@ gboolean nstime_is_unset(const nstime_t *nstime)
}
/** funcion: nstime_copy
/** function: nstime_copy
*
* a = b
*/

View File

@ -90,7 +90,7 @@ rsa_load_pem_key(FILE *fp, char **err)
{
/* gnutls makes our work much harder, since we have to work internally with
* s-exp formatted data, but PEM loader exports only in "gnutls_datum_t"
* format, and a datum -> s-exp convertion function does not exist.
* format, and a datum -> s-exp conversion function does not exist.
*/
gnutls_x509_privkey_t priv_key;
gnutls_datum_t key;

View File

@ -283,7 +283,7 @@ strptime_internal (rp, fmt, tm, decided, era_cnt)
}
/* Any character but `%' must be matched by the same character
in the iput string. */
in the input string. */
if (*fmt != '%')
{
match_char (*fmt++, *rp++);

View File

@ -232,7 +232,7 @@ BOOL win32_create_process(const char *application_name, const char *command_line
// e.g. if we're running under "Run As", ConEmu, or Visual Studio. On Windows
// <= 7 our child process needs to break away from it so that we can cleanly
// call AssignProcessToJobObject on *our* job.
// Windows >= 8 supports nested jobs so this isn't neccessary there.
// Windows >= 8 supports nested jobs so this isn't necessary there.
// https://blogs.msdn.microsoft.com/winsdk/2014/09/22/job-object-insanity/
//
if (! IsWindowsVersionOrGreater(6, 2, 0)) { // Windows 8

View File

@ -47,7 +47,7 @@ static gboolean
ws_cpuid(guint32 *CPUInfo _U_, int selector _U_)
{
/*
* TODO: need a test if older proccesors have the cpuid instruction.
* TODO: need a test if older processors have the cpuid instruction.
*
* The correct way to test for this, according to the Intel64/IA-32
* documentation from Intel, in section 17.1 "USING THE CPUID

View File

@ -124,7 +124,7 @@ ws_mempbrk_sse42_exec(const char *haystack, size_t haystacklen, const ws_mempbrk
if (idx < 16 - offset)
{
/* found NUL @ 'idx', need to switch to slower mempbrk */
return ws_mempbrk_portable_exec(haystack + idx + 1, haystacklen - idx - 1, pattern, found_needle); /* haystacklen is bigger than 16 & idx < 16 so no undeflow here */
return ws_mempbrk_portable_exec(haystack + idx + 1, haystacklen - idx - 1, pattern, found_needle); /* haystacklen is bigger than 16 & idx < 16 so no underflow here */
}
aligned += 16;
haystacklen -= (16 - offset);