Documentation
¶
Index ¶
Constants ¶
const ( FuncConfirm = 0 FuncRead = 1 FuncWrite = 2 FuncSelect = 3 FuncOperate = 4 FuncDirectOperate = 5 FuncDirectOperateNoAck = 6 FuncImmediateFreeze = 7 FuncImmediateFreezeNoAck = 8 FuncFreezeAndClear = 9 FuncFreezeAndClearNoAck = 10 FuncFreezeAtTime = 11 FuncFreezeAtTimeNoAck = 12 FuncColdRestart = 13 FuncWarmRestart = 14 FuncInitData = 15 FuncInitApplication = 16 FuncStartApplication = 17 FuncStopApplication = 18 FuncSaveConfiguration = 19 FuncEnableUnsolicited = 20 FuncDisableUnsolicited = 21 FuncAssignClass = 22 FuncDelayMeasurement = 23 FuncRecordCurrentTime = 24 FuncOpenFile = 25 FuncCloseFile = 26 FuncDeleteFile = 27 FuncGetFileInfo = 28 FuncAuthenticateFile = 29 FuncAbortFile = 30 FuncActivateConfig = 31 FuncAuthenticateReq = 32 FuncAuthenticateReqNoAck = 33 FuncResponse = 129 FuncUnsolicitedResponse = 130 FuncAuthenticateResp = 131 )
Application layer function codes, IEEE 1815 Table 4-1.
const LinkHeaderLen = linkHeaderLen
LinkHeaderLen is the size of the IEEE 1815 data link header.
Variables ¶
var Decoder = &decoder.StreamDecoder{ Type: types.Type_NC_DNP3, Name: serviceDNP3, Description: "Distributed Network Protocol 3 (DNP3) is used for ICS/SCADA communications", PostInit: func(d *decoder.StreamDecoder) error { var err error dnp3Log, _, err = logging.InitZapLogger( decoderconfig.Instance.Out, "dnp3", decoderconfig.Instance.Debug, ) return err }, Specificity: core.SpecificityValidated, CanDecode: func(client, server []byte) bool { return hasFrame(client) || hasFrame(server) }, DeInit: func(sd *decoder.StreamDecoder) error { return dnp3Log.Sync() }, Factory: &dnp3Reader{}, Typ: core.TCP, }
Decoder for protocol analysis and writing audit records to disk.
Functions ¶
func FrameLen ¶
FrameLen is the exported form of frameLen, for the IEC 62351 decoder's DNP3 Secure Authentication path. One implementation of this arithmetic is enough: the duplicate in that decoder was the version this one was fixed from.
func UserDataLen ¶
UserDataLen is the exported form of userDataLen.
Types ¶
This section is empty.