opcua

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2026 License: BSD-3-Clause, GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Discovery Services
	ServiceFindServers          = 422
	ServiceFindServersOnNetwork = 12208
	ServiceGetEndpoints         = 428
	ServiceRegisterServer       = 437
	ServiceRegisterServer2      = 12211

	// SecureChannel Services
	ServiceOpenSecureChannel  = 446
	ServiceCloseSecureChannel = 452

	// Session Services
	ServiceCreateSession   = 461
	ServiceActivateSession = 467
	ServiceCloseSession    = 473
	ServiceCancel          = 479

	// Node Management Services
	ServiceAddNodes         = 488
	ServiceAddReferences    = 494
	ServiceDeleteNodes      = 500
	ServiceDeleteReferences = 506

	// View Services
	ServiceBrowse                        = 527
	ServiceBrowseNext                    = 533
	ServiceTranslateBrowsePathsToNodeIds = 554

	// Query Services
	ServiceQueryFirst = 615
	ServiceQueryNext  = 621

	// Attribute Services
	ServiceRead          = 631
	ServiceHistoryRead   = 664
	ServiceWrite         = 673
	ServiceHistoryUpdate = 700

	// Method Services
	ServiceCall = 712

	// MonitoredItem Services
	ServiceCreateMonitoredItems = 751
	ServiceModifyMonitoredItems = 763
	ServiceSetMonitoringMode    = 769
	ServiceSetTriggering        = 775
	ServiceDeleteMonitoredItems = 781

	// Subscription Services
	ServiceCreateSubscription    = 787
	ServiceModifySubscription    = 793
	ServiceSetPublishingMode     = 799
	ServicePublish               = 826
	ServiceRepublish             = 832
	ServiceTransferSubscriptions = 841
	ServiceDeleteSubscriptions   = 847
)

OPC UA Service IDs (subset of commonly used services)

View Source
const (
	SecurityModeInvalid        = 0
	SecurityModeNone           = 1
	SecurityModeSign           = 2
	SecurityModeSignAndEncrypt = 3
)

OPC UA Security Modes

Variables

View Source
var Decoder = &decoder.StreamDecoder{
	Type:        types.Type_NC_OPCUA,
	Name:        serviceOPCUA,
	Description: "OPC Unified Architecture (OPC UA) is used for ICS/SCADA machine-to-machine communication",
	PostInit: func(d *decoder.StreamDecoder) error {
		var err error
		opcuaLog, _, err = logging.InitZapLogger(
			decoderconfig.Instance.Out,
			"opcua",
			decoderconfig.Instance.Debug,
		)
		return err
	},
	CanDecode: func(client, server []byte) bool {

		return canDecodeOPCUA(client) || canDecodeOPCUA(server)
	},
	DeInit: func(sd *decoder.StreamDecoder) error {
		return opcuaLog.Sync()
	},
	Factory: &opcuaReader{},
	Typ:     core.TCP,
}

Decoder for protocol analysis and writing audit records to disk.

Functions

This section is empty.

Types

type NodeId

type NodeId struct {
	EncodingType uint8
	Namespace    uint16
	NumericId    uint32
	StringId     string
}

NodeId represents an OPC UA NodeId.

func (*NodeId) String

func (n *NodeId) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL