Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/google/gopacket
/ SetErrorLayer
Method
SetErrorLayer
packet.go:157–161 ·
view source on GitHub ↗
(l ErrorLayer)
Source
from the content-addressed store, hash-verified
155
}
156
157
func
(p *packet) SetErrorLayer(l ErrorLayer) {
158
if
p.failure == nil {
159
p.failure = l
160
}
161
}
162
163
func
(p *packet) AddLayer(l Layer) {
164
p.layers = append(p.layers, l)
Callers
1
addFinalDecodeError
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected