Merge remote-tracking branch 'jsoref/spelling-src'

* jsoref/spelling-src:
  Spelling src
This commit is contained in:
Tim Wojtulewicz 2022-11-11 12:48:20 -07:00
commit 2739275b88
190 changed files with 439 additions and 433 deletions

View file

@ -102,7 +102,7 @@ public:
/**
* Adds a protocol to this analyzer's dispatcher.
*
* @param idenfitier The identifier for the protocol being added.
* @param identifier The identifier for the protocol being added.
* @param child The analyzer that will be called for the new protocol during
* forwarding.
*/

View file

@ -52,7 +52,7 @@ public:
protected:
/**
* Overriden from plugin::Component.
* Overridden from plugin::Component.
*/
void DoDescribe(ODesc* d) const override;

View file

@ -63,7 +63,7 @@ bool IPBasedAnalyzer::AnalyzePacket(size_t len, const uint8_t* data, Packet* pkt
if ( ! conn )
return false;
// If we successfuly made a connection for this packet that means it'll eventually
// If we successfully made a connection for this packet that means it'll eventually
// get logged, which means we can mark this packet as having been processed.
pkt->processed = true;

View file

@ -77,7 +77,7 @@ public:
static void SetIgnoreChecksumsNets(TableValPtr t);
/**
* Gets the interpal pointer to the script-level variable `ignore_checksums_nets`.
* Gets the internal pointer to the script-level variable `ignore_checksums_nets`.
* This is used to prevent repeated (costly) lookup of the script-level variable
* by IP-based analyzers.
*
@ -178,7 +178,7 @@ protected:
private:
// While this is storing session analyzer tags, we store it here since packet analyzers
// are persitent objects. We can't do this in the adapters because those get created
// are persistent objects. We can't do this in the adapters because those get created
// and destroyed for each connection.
using tag_set = std::set<zeek::Tag>;
using analyzer_map_by_port = std::map<uint32_t, tag_set*>;

View file

@ -45,7 +45,7 @@ public:
virtual bool IsReuse(double t, const u_char* pkt);
/**
* Pure virtual method to allow extra session analzyers to be added to this analyzer's
* Pure virtual method to allow extra session analyzers to be added to this analyzer's
* tree of children. This is used by analyzer::Manager when creating the session analyzer
* tree.
*/
@ -54,7 +54,7 @@ public:
/**
* Associates a file with the analyzer in which to record all
* analyzed input. This must only be called with derived classes that
* overide the method; the default implementation will abort.
* override the method; the default implementation will abort.
*
* @param direction One of the CONTENTS_* constants indicating which
* direction of the input stream is to be recorded.
@ -66,7 +66,7 @@ public:
/**
* Returns an associated contents file, if any. This must only be
* called with derived classes that overide the method; the default
* called with derived classes that override the method; the default
* implementation will abort.
*
* @param direction One of the CONTENTS_* constants indicating which
@ -90,7 +90,7 @@ public:
/**
* Helper to raise a \c packet_contents event.
*
* @param data The dass to pass to the event.
* @param data The data to pass to the event.
*
* @param len The length of \a data.
*/

View file

@ -85,7 +85,7 @@ protected:
*
* @param outer_pkt The packet containing the encapsulation. This packet should contain
* @param encap_index A return value for the current index into the encapsulation stack.
* This is returned to allow analzyers to know what point in the stack they were operating
* This is returned to allow analyzers to know what point in the stack they were operating
* on as the packet analysis chain unwinds as it returns.
* @param encap_stack Tracks the encapsulations as the new encapsulations are discovered
* in the inner packets.

View file

@ -908,7 +908,7 @@ void TCPSessionAdapter::UpdateInactiveState(double t, analyzer::tcp::TCP_Endpoin
else if ( flags.ACK() && peer->state == analyzer::tcp::TCP_ENDPOINT_ESTABLISHED )
{
// No SYN packet from originator but SYN/ACK from
// responder, and now a pure ACK. Problably means we
// responder, and now a pure ACK. Probably means we
// just missed that initial SYN. Let's not treat it
// as partial and instead establish the connection.
endpoint->SetState(analyzer::tcp::TCP_ENDPOINT_ESTABLISHED);
@ -1602,7 +1602,7 @@ void TCPSessionAdapter::AddExtraAnalyzers(Connection* conn)
static zeek::Tag analyzer_connsize = analyzer_mgr->GetComponentTag("CONNSIZE");
static zeek::Tag analyzer_tcpstats = analyzer_mgr->GetComponentTag("TCPSTATS");
// We have to decide whether to reassamble the stream.
// We have to decide whether to reassemble the stream.
// We turn it on right away if we already have an app-layer
// analyzer, reassemble_first_packets is true, or the user
// asks us to do so. In all other cases, reassembly may

View file

@ -100,7 +100,7 @@ protected:
// includes our pseudo-states such as TCP_ENDPOINT_PARTIAL.
//
// On return, do_close is true if we should consider the connection
// as closed, and gen_event if we shouuld generate an event about
// as closed, and gen_event if we should generate an event about
// this fact.
void UpdateStateMachine(double t, analyzer::tcp::TCP_Endpoint* endpoint,
analyzer::tcp::TCP_Endpoint* peer, uint32_t base_seq, uint32_t ack_seq,