A couple grammar fixes
This commit is contained in:
parent
a62d63d49d
commit
fbc61032b2
|
|
@ -296,7 +296,7 @@ func (m *ManagementService) logs(w http.ResponseWriter, r *http.Request) {
|
||||||
// Expect the first incoming request
|
// Expect the first incoming request
|
||||||
startEvent, ok := IntoClientEvent[EventStartStreaming](event, StartStreaming)
|
startEvent, ok := IntoClientEvent[EventStartStreaming](event, StartStreaming)
|
||||||
if !ok {
|
if !ok {
|
||||||
m.log.Warn().Msgf("expected start_streaming as first recieved event")
|
m.log.Warn().Msgf("expected start_streaming as first received event")
|
||||||
m.log.Err(c.Close(StatusInvalidCommand, reasonInvalidCommand)).Send()
|
m.log.Err(c.Close(StatusInvalidCommand, reasonInvalidCommand)).Send()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -233,7 +233,7 @@ func (r *roffRenderer) handleItem(w io.Writer, node *blackfriday.Node, entering
|
||||||
} else if node.ListFlags&blackfriday.ListTypeDefinition != 0 {
|
} else if node.ListFlags&blackfriday.ListTypeDefinition != 0 {
|
||||||
// state machine for handling terms and following definitions
|
// state machine for handling terms and following definitions
|
||||||
// since blackfriday does not distinguish them properly, nor
|
// since blackfriday does not distinguish them properly, nor
|
||||||
// does it seperate them into separate lists as it should
|
// does it separate them into separate lists as it should
|
||||||
if !r.defineTerm {
|
if !r.defineTerm {
|
||||||
out(w, arglistTag)
|
out(w, arglistTag)
|
||||||
r.defineTerm = true
|
r.defineTerm = true
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ func (l *Scanner) Next() bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
// FetchUntil fetches ItemOctet from current scanner position to first
|
// FetchUntil fetches ItemOctet from current scanner position to first
|
||||||
// occurence of the c or to the end of the underlying data.
|
// occurrence of the c or to the end of the underlying data.
|
||||||
func (l *Scanner) FetchUntil(c byte) bool {
|
func (l *Scanner) FetchUntil(c byte) bool {
|
||||||
l.resetItem()
|
l.resetItem()
|
||||||
if l.pos == len(l.data) {
|
if l.pos == len(l.data) {
|
||||||
|
|
@ -109,7 +109,7 @@ func (l *Scanner) Advance(n int) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
// Skip skips all bytes until first occurence of c.
|
// Skip skips all bytes until first occurrence of c.
|
||||||
func (l *Scanner) Skip(c byte) {
|
func (l *Scanner) Skip(c byte) {
|
||||||
if l.err {
|
if l.err {
|
||||||
return
|
return
|
||||||
|
|
@ -125,7 +125,7 @@ func (l *Scanner) Skip(c byte) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// SkipEscaped skips all bytes until first occurence of non-escaped c.
|
// SkipEscaped skips all bytes until first occurrence of non-escaped c.
|
||||||
func (l *Scanner) SkipEscaped(c byte) {
|
func (l *Scanner) SkipEscaped(c byte) {
|
||||||
if l.err {
|
if l.err {
|
||||||
return
|
return
|
||||||
|
|
|
||||||
|
|
@ -327,7 +327,7 @@ to decode. Though being versatile, in some cases this solution may be not so
|
||||||
optimal. For example, if you have only few layers faster operations may be
|
optimal. For example, if you have only few layers faster operations may be
|
||||||
provided by sparse array indexing or linear array scan.
|
provided by sparse array indexing or linear array scan.
|
||||||
|
|
||||||
To accomodate these scenarios, DecodingLayerContainer interface is introduced
|
To accommodate these scenarios, DecodingLayerContainer interface is introduced
|
||||||
along with its implementations: DecodingLayerSparse, DecodingLayerArray and
|
along with its implementations: DecodingLayerSparse, DecodingLayerArray and
|
||||||
DecodingLayerMap. You can specify a container implementation to
|
DecodingLayerMap. You can specify a container implementation to
|
||||||
DecodingLayerParser with SetDecodingLayerContainer method. Example:
|
DecodingLayerParser with SetDecodingLayerContainer method. Example:
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ function Usage {
|
||||||
USAGE: $0 [--benchmark regexp] [--root] [--gen] <git commit flags...>
|
USAGE: $0 [--benchmark regexp] [--root] [--gen] <git commit flags...>
|
||||||
|
|
||||||
--benchmark: Run benchmark comparisons against last benchmark'd commit
|
--benchmark: Run benchmark comparisons against last benchmark'd commit
|
||||||
--root: Run tests that require root priviledges
|
--root: Run tests that require root privileges
|
||||||
--gen: Generate code for MACs/ports by pulling down external data
|
--gen: Generate code for MACs/ports by pulling down external data
|
||||||
|
|
||||||
Note, some 'git commit' flags are necessary, if all else fails, pass in -a
|
Note, some 'git commit' flags are necessary, if all else fails, pass in -a
|
||||||
|
|
@ -96,7 +96,7 @@ set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
if [ ! -z "$ROOT" ]; then
|
if [ ! -z "$ROOT" ]; then
|
||||||
echo "Running SUDO to get root priviledges for root tests"
|
echo "Running SUDO to get root privileges for root tests"
|
||||||
sudo echo "have root"
|
sudo echo "have root"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -209,7 +209,7 @@ func (ip *IPv4) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error {
|
||||||
// Set up an initial guess for contents/payload... we'll reset these soon.
|
// Set up an initial guess for contents/payload... we'll reset these soon.
|
||||||
ip.BaseLayer = BaseLayer{Contents: data}
|
ip.BaseLayer = BaseLayer{Contents: data}
|
||||||
|
|
||||||
// This code is added for the following enviroment:
|
// This code is added for the following environment:
|
||||||
// * Windows 10 with TSO option activated. ( tested on Hyper-V, RealTek ethernet driver )
|
// * Windows 10 with TSO option activated. ( tested on Hyper-V, RealTek ethernet driver )
|
||||||
if ip.Length == 0 {
|
if ip.Length == 0 {
|
||||||
// If using TSO(TCP Segmentation Offload), length is zero.
|
// If using TSO(TCP Segmentation Offload), length is zero.
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ var TimestampResolutionCaptureInfo = TimestampResolutionNanosecond
|
||||||
// PacketSourceResolution is an interface for packet data sources that
|
// PacketSourceResolution is an interface for packet data sources that
|
||||||
// support reporting the timestamp resolution of the aqcuired timestamps.
|
// support reporting the timestamp resolution of the aqcuired timestamps.
|
||||||
// Returned timestamps will always have NanosecondTimestampResolution due
|
// Returned timestamps will always have NanosecondTimestampResolution due
|
||||||
// to the use of time.Time, but scaling might have occured if acquired
|
// to the use of time.Time, but scaling might have occurred if acquired
|
||||||
// timestamps have a different resolution.
|
// timestamps have a different resolution.
|
||||||
type PacketSourceResolution interface {
|
type PacketSourceResolution interface {
|
||||||
// Resolution returns the timestamp resolution of acquired timestamps before scaling to NanosecondTimestampResolution.
|
// Resolution returns the timestamp resolution of acquired timestamps before scaling to NanosecondTimestampResolution.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue