From 24123492d7483374f3a4dc021cf226da415bca5f Mon Sep 17 00:00:00 2001 From: bartvanbos Date: Mon, 30 Nov 2026 20:08:53 +0100 Subject: [PATCH] deps: go-profinet v0.28.0 (v0.22.3) profinetctl's controller does not set RejectDCPsetRequests, so its Connect is unchanged. A go-profinet device under another controller's AR that set the bit now refuses name set, ip set and reset (exit 6, dcp_block_error); signal is still answered. The CIM SNMP records and dcp.SetGuard are not exposed. No command, flag, exit code or JSON change. Co-Authored-By: Claude Opus 5.5 --- RELEASE.md | 31 +++++++++++++++++++++++++++++++ go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 34 insertions(+), 3 deletions(-) diff --git a/RELEASE.md b/RELEASE.md index 5095545..be78b03 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -23,6 +23,37 @@ ending with a `---` line and no `---` line inside a section --- +## v0.22.3 + +**Date:** 2026-11-30 +**Previous release:** v0.22.2 + +Built on go-profinet v0.28.0 (was v0.27.0). No change to the commands, +flags, exit codes or JSON output of profinetctl. + +What go-profinet v0.28.0 means for profinetctl: + +- **Connect does not set RejectDCPsetRequests**: go-profinet's + controller can now ask a device to refuse DCP Set requests while the + AR runs (`controller.DeviceConfig.RejectDCPSet`, ARProperties bit 27). + profinetctl does not set it, so `connect` and the other AR commands + send the same Connect as before, and a device under an AR of + profinetctl still accepts `name set`, `ip set` and `reset`. +- **A device under another controller's AR may refuse a Set**: a + go-profinet device now honours the bit, as p-net already did. While a + controller that set it holds an AR with the device, `name set`, + `ip set` and `reset` are refused with the DCP block error "SET not + possible by local reasons" (exit 6, `dcp_block_error`), as for any + other device that refuses a Set; `signal` is still answered. A device + under a controller that does not set the bit behaves as before. +- **New in the library, not exposed by profinetctl**: the CIM SNMP + records (CIMSNMPAdjust 0x8200, CIMSNMPReal 0x8201) and their codecs, + `dcp.SetGuard` and `snmp.Agent.SetCommunities`. `record read` and + `record write` reach those records by index on a device that serves + them, as any other record. + +--- + ## v0.22.2 **Date:** 2026-11-30 diff --git a/go.mod b/go.mod index 6f5544e..f78d7ff 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/otfabric/profinetctl go 1.26 require ( - github.com/otfabric/go-profinet v0.27.0 + github.com/otfabric/go-profinet v0.28.0 github.com/spf13/cobra v1.10.2 github.com/spf13/pflag v1.0.10 ) diff --git a/go.sum b/go.sum index 44b973e..353bfe1 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/otfabric/go-profinet v0.27.0 h1:ByAeCY1ZaM8cKYY8w6OCREZQnI8cOnc2XvZpVPsaXSU= -github.com/otfabric/go-profinet v0.27.0/go.mod h1:eLxHQxabRs/OloPKSXKo/0OOgMjwjJUwnkQstdfE2wI= +github.com/otfabric/go-profinet v0.28.0 h1:d+bO5L7If/hwlSIe4r//wXgvy9Gn1pBnNQxtq5Aq1t0= +github.com/otfabric/go-profinet v0.28.0/go.mod h1:eLxHQxabRs/OloPKSXKo/0OOgMjwjJUwnkQstdfE2wI= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU= github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4=