diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b89700..b5e2d7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,21 @@ ## [Unreleased] +### Fixed — UDP interoperability audit (2026-11-13) + +- 按 RFC 7252 严格拒绝截断头、Token、option、无 payload 的 marker 和非法 Empty/type/code 组合;修复版本自比较,格式失败后的 decoder 保持失败状态。可辨识的畸形 CON 使用匹配 MID 的 RST,ACK/RST、未知版本和短头不反射回复。 +- 单播响应同时匹配完整 Token 和远端地址/端口,piggybacked ACK 另外校验 MID;空 ACK/RST 也绑定远端。保留组播的显式例外,不宣称完整组播实现。 +- 端点键与比较统一规范化 IPv4-mapped IPv6,保留端口、原生 IPv6 ScopeId 与自定义 EndPoint 语义;避免有效响应/空 ACK/RST 因地址表示不同被丢弃。 +- 修复 Option.IsCritical() 永远返回 false 的位掩码比较,奇数 option 为 critical、偶数为 elective;已知 option 长度和未知 critical 的 endpoint 策略仍由 #28 单独验收。 +- 修复 Block1 无状态空引用、错误后继续上传、重复/乱序确认及中途降低块大小的偏移计算。保留 RFC 7959 的合法逐块 2.xx/M=0 模式;矛盾的原子响应、非法 Block2 组合和最后块 Continue 取消传输,不报告部分上传成功。 +- 中间逐块响应附带 Block2 时只推进上传,不并发启动另一次取回或报告最终成功;已匹配的非法 NUM/SZX 明确取消并通知调用方,真正旧 MID/duplicate 保留忽略。无状态的非最终 Block1 成功被拒绝,手工 Block1 与合法 4.13 大小提示保持可用。 +- CoapClient.SendAsync 将取消通知给失败回调与 Error 事件,追加 FailReason.Cancelled=2,保留 Rejected=0、TimedOut=1;同一请求的重复取消只通知一次。 +- 吸纳上游 PR64 的停止日志修正和 PR80 的测试计数隔离思路,保留现有 ILogger 与测试框架。 + +### Documentation + +- 新增[CoAP 标准与上游调查](docs/coap-standards-roadmap.md),记录 65 个上游 issue、17 个 PR、可见 fork 分支清单、跨语言实现比较、正式 RFC/IANA 边界和 #20~#31 逐项实现队列。单元测试、真实 peer、AOT、包与现场验收分别记录。 + ### Changed - 准备 `3.0.1` 补丁候选,统一核心、ASP.NET Core adapter 和 source generator 的包版本,并将包仓库地址对齐当前正式仓库。 diff --git a/CoAP.NET/CoapClient.cs b/CoAP.NET/CoapClient.cs index c86de62..34a72bd 100644 --- a/CoAP.NET/CoapClient.cs +++ b/CoAP.NET/CoapClient.cs @@ -391,9 +391,15 @@ public Response Send(Request request) public void SendAsync(Request request, Action done = null, Action fail = null) { + Int32 cancellationReported = 0; request.Respond += (o, e) => Deliver(done, e); request.Rejected += (o, e) => Fail(fail, FailReason.Rejected); request.TimedOut += (o, e) => Fail(fail, FailReason.TimedOut); + request.Cancelled += (o, e) => + { + if (System.Threading.Interlocked.Exchange(ref cancellationReported, 1) == 0) + Fail(fail, FailReason.Cancelled); + }; Prepare(request).Send(); } @@ -534,7 +540,11 @@ public enum FailReason /// /// The request has been timed out. /// - TimedOut + TimedOut, + /// + /// 请求已取消,包括协议层拒绝不合法的传输响应。 + /// + Cancelled } /// diff --git a/CoAP.NET/Codec/DatagramReader.cs b/CoAP.NET/Codec/DatagramReader.cs index 6b33583..7c897dd 100644 --- a/CoAP.NET/Codec/DatagramReader.cs +++ b/CoAP.NET/Codec/DatagramReader.cs @@ -41,6 +41,12 @@ public DatagramReader(Byte[] buffer) /// An integer containing the bits read public Int32 Read(Int32 numBits) { + if (numBits < 0 || numBits > 32) + throw new ArgumentOutOfRangeException("numBits", "The number of bits must be between 0 and 32."); + + if ((long)numBits > RemainingBits) + throw new EndOfStreamException("The datagram ended before the requested bits were available."); + Int32 bits = 0; // initialize all bits to zero for (Int32 i = numBits - 1; i >= 0; i--) { @@ -75,6 +81,9 @@ public Byte[] ReadBytes(Int32 count) if (count < 0) count = (Int32)(_stream.Length - _stream.Position); + if (count > 0 && (long)count * 8L > RemainingBits) + throw new EndOfStreamException("The datagram ended before the requested bytes were available."); + Byte[] bytes = new Byte[count]; // are there bits left to read in buffer? @@ -125,11 +134,21 @@ private void ReadCurrentByte() if (val >= 0) _currentByte = (Byte)val; else - // EOF - _currentByte = 0; + throw new EndOfStreamException("The datagram ended while reading a byte."); // reset current bit index _currentBitIndex = 7; } + + private long RemainingBits + { + get + { + long remaining = (_stream.Length - _stream.Position) * 8L; + if (_currentBitIndex >= 0) + remaining += _currentBitIndex + 1L; + return remaining; + } + } } } diff --git a/CoAP.NET/Codec/MessageDecoder.cs b/CoAP.NET/Codec/MessageDecoder.cs index f86ce2c..7b47eed 100644 --- a/CoAP.NET/Codec/MessageDecoder.cs +++ b/CoAP.NET/Codec/MessageDecoder.cs @@ -10,6 +10,7 @@ */ using System; +using System.IO; namespace CoAP.Codec { @@ -18,6 +19,8 @@ namespace CoAP.Codec /// public abstract class MessageDecoder : IMessageDecoder { + private Boolean _decodeFailed; + /// /// the bytes reader /// @@ -107,39 +110,43 @@ public Int32 ID /// public Request DecodeRequest() { + ThrowIfDecodeFailed(); System.Diagnostics.Debug.Assert(IsRequest); Request request = new Request((Method)m_code); request.Type = m_type; request.ID = m_id; - ParseMessage(request); + ParseMessageGuarded(request); return request; } /// public Response DecodeResponse() { + ThrowIfDecodeFailed(); System.Diagnostics.Debug.Assert(IsResponse); Response response = new Response((StatusCode)m_code); response.Type = m_type; response.ID = m_id; - ParseMessage(response); + ParseMessageGuarded(response); return response; } /// public EmptyMessage DecodeEmptyMessage() { + ThrowIfDecodeFailed(); System.Diagnostics.Debug.Assert(!IsRequest && !IsResponse); EmptyMessage message = new EmptyMessage(m_type); message.Type = m_type; message.ID = m_id; - ParseMessage(message); + ParseMessageGuarded(message); return message; } /// public Message Decode() { + ThrowIfDecodeFailed(); if (IsRequest) return DecodeRequest(); else if (IsResponse) @@ -150,6 +157,29 @@ public Message Decode() return null; } + private void ParseMessageGuarded(Message message) + { + try + { + ParseMessage(message); + } + catch (Exception exception) when (exception is ArgumentException || + exception is FormatException || exception is InvalidOperationException || + exception is EndOfStreamException) + { + // A failed parse may already have consumed bytes. It cannot be + // retried from that partial position as a different message. + _decodeFailed = true; + throw; + } + } + + private void ThrowIfDecodeFailed() + { + if (_decodeFailed) + throw new FormatException("The CoAP decoder cannot be reused after a message format error."); + } + /// /// Parses the rest data other than protocol headers into the given message. /// diff --git a/CoAP.NET/Net/CoAPEndPoint.cs b/CoAP.NET/Net/CoAPEndPoint.cs index cf235b0..4ada59d 100644 --- a/CoAP.NET/Net/CoAPEndPoint.cs +++ b/CoAP.NET/Net/CoAPEndPoint.cs @@ -10,6 +10,7 @@ */ using System; +using System.IO; using CoAP.Channel; using CoAP.Codec; using Microsoft.Extensions.Logging; @@ -232,7 +233,28 @@ private void ReceiveData(Object sender, DataReceivedEventArgs e) private void ReceiveData(DataReceivedEventArgs e) { - IMessageDecoder decoder = Spec.NewMessageDecoder(e.Data); + IMessageDecoder decoder; + try + { + decoder = Spec.NewMessageDecoder(e.Data); + } + catch (Exception ex) when (IsMessageFormatException(ex)) + { + // A datagram without a complete fixed header does not provide + // enough information to construct a safe reply. Drop it. + if (Log.IsEnabled(LogLevel.Warning)) + Log.LogWarning("Ignoring malformed CoAP datagram from " + e.EndPoint); + return; + } + + if (!decoder.IsWellFormed) + { + if (Log.IsEnabled(LogLevel.Warning)) + Log.LogWarning("Ignoring malformed CoAP header from " + e.EndPoint); + HandleMalformedDatagram(decoder, e); + return; + } + if (decoder.IsRequest) { Request request; @@ -240,27 +262,9 @@ private void ReceiveData(DataReceivedEventArgs e) { request = decoder.DecodeRequest(); } - catch (Exception) + catch (Exception ex) when (IsMessageFormatException(ex)) { - if (decoder.IsReply) - { - if (Log.IsEnabled(LogLevel.Warning)) - Log.LogWarning("Message format error caused by " + e.EndPoint); - } - else - { - // manually build RST from raw information - EmptyMessage rst = new EmptyMessage(MessageType.RST); - rst.Destination = e.EndPoint; - rst.ID = decoder.ID; - - Fire(SendingEmptyMessage, rst); - - _channel.Send(Serialize(rst), rst.Destination); - - if (Log.IsEnabled(LogLevel.Warning)) - Log.LogWarning("Message format error caused by " + e.EndPoint + " and reseted."); - } + HandleMalformedDatagram(decoder, e); return; } @@ -280,7 +284,18 @@ private void ReceiveData(DataReceivedEventArgs e) } else if (decoder.IsResponse) { - Response response = decoder.DecodeResponse(); + Response response; + try + { + response = decoder.DecodeResponse(); + } + catch (Exception ex) when (IsMessageFormatException(ex)) + { + // Reject a malformed CON with RST, while ACK/RST and NON + // are silently discarded without reaching the matcher. + HandleMalformedDatagram(decoder, e); + return; + } response.Source = e.EndPoint; Fire(ReceivingResponse, response); @@ -304,7 +319,18 @@ private void ReceiveData(DataReceivedEventArgs e) } else if (decoder.IsEmpty) { - EmptyMessage message = decoder.DecodeEmptyMessage(); + EmptyMessage message; + try + { + message = decoder.DecodeEmptyMessage(); + } + catch (Exception ex) when (IsMessageFormatException(ex)) + { + // Empty messages must contain no token, options, or + // payload. Apply the same message-format error handling. + HandleMalformedDatagram(decoder, e); + return; + } message.Source = e.EndPoint; Fire(ReceivingEmptyMessage, message); @@ -335,6 +361,36 @@ private void ReceiveData(DataReceivedEventArgs e) } } + private void HandleMalformedDatagram(IMessageDecoder decoder, DataReceivedEventArgs e) + { + if (Log.IsEnabled(LogLevel.Warning)) + Log.LogWarning("Message format error caused by " + e.EndPoint); + + // RFC 7252 section 4.2 requires a reset for a malformed + // Confirmable message when its version, type, and message ID are + // known. Never reflect a reset to NON, ACK, RST, or an invalid + // fixed header. + if (e.Data == null || e.Data.Length < 4 || decoder.Version != 1 || + ((e.Data[0] >> 4) & 0x03) != (Int32)MessageType.CON) + return; + + EmptyMessage rst = new EmptyMessage(MessageType.RST) + { + Destination = e.EndPoint, + ID = decoder.ID + }; + + Fire(SendingEmptyMessage, rst); + if (!rst.IsCancelled) + _channel.Send(Serialize(rst), rst.Destination); + } + + private static Boolean IsMessageFormatException(Exception exception) + { + return exception is ArgumentException || exception is FormatException || + exception is InvalidOperationException || exception is EndOfStreamException; + } + private void Reject(Message message) { EmptyMessage rst = EmptyMessage.NewRST(message); diff --git a/CoAP.NET/Net/Matcher.cs b/CoAP.NET/Net/Matcher.cs index cbfa078..c448aaf 100644 --- a/CoAP.NET/Net/Matcher.cs +++ b/CoAP.NET/Net/Matcher.cs @@ -90,7 +90,7 @@ public void SendRequest(Exchange exchange, Request request) // the MID is from the local namespace -- use blank address Exchange.KeyID keyID = new Exchange.KeyID(request.ID, null); - Exchange.KeyToken keyToken = new Exchange.KeyToken(request.Token); + Exchange.KeyToken keyToken = new TokenKey(request.Token, request.Multicast ? null : request.Destination); exchange.Completed += OnExchangeCompleted; @@ -301,10 +301,8 @@ public Exchange ReceiveResponse(Response response) // remote namespace keyId = new Exchange.KeyID(response.ID, response.Source); - Exchange.KeyToken keyToken = new Exchange.KeyToken(response.Token); - Exchange exchange; - if (_exchangesByToken.TryGetValue(keyToken, out exchange)) + if (TryGetResponseExchange(response, out exchange)) { // There is an exchange with the given token Exchange prev = _deduplicator.FindPrevious(keyId, exchange); @@ -323,13 +321,6 @@ public Exchange ReceiveResponse(Response response) _exchangesByID.Remove(keyId); } - if (response.Type == MessageType.ACK && exchange.CurrentRequest.ID != response.ID) - { - // The token matches but not the MID. This is a response for an older exchange - if (Log.IsEnabled(LogLevel.Warning)) - Log.LogWarning("Possible MID reuse before lifetime end: " + response.TokenString + " expected MID " + exchange.CurrentRequest.ID + " but received " + response.ID); - } - return exchange; } else @@ -339,7 +330,7 @@ public Exchange ReceiveResponse(Response response) { // only act upon separate responses Exchange prev = _deduplicator.Find(keyId); - if (prev != null) + if (prev != null && IsResponseMatch(response, prev)) { if (Log.IsEnabled(LogLevel.Information)) Log.LogInformation("Duplicate response for completed exchange: " + response); @@ -365,6 +356,12 @@ public Exchange ReceiveEmptyMessage(EmptyMessage message) Exchange exchange; if (_exchangesByID.TryGetValue(keyID, out exchange)) { + System.Net.EndPoint destination = exchange.Origin == Origin.Local + ? exchange.CurrentRequest.Destination + : exchange.CurrentResponse.Destination; + if (!EndPointsEqual(destination, message.Source)) + return null; + if (Log.IsEnabled(LogLevel.Debug)) Log.LogDebug("Exchange got reply: Cleaning up " + keyID); _exchangesByID.Remove(keyID); @@ -412,7 +409,9 @@ private void OnExchangeCompleted(Object sender, EventArgs e) { // this endpoint created the Exchange by issuing a request Exchange.KeyID keyID = new Exchange.KeyID(exchange.CurrentRequest.ID, null); - Exchange.KeyToken keyToken = new Exchange.KeyToken(exchange.CurrentRequest.Token); + Exchange.KeyToken keyToken = new TokenKey( + exchange.CurrentRequest.Token, + exchange.CurrentRequest.Multicast ? null : exchange.CurrentRequest.Destination); if (Log.IsEnabled(LogLevel.Debug)) Log.LogDebug("Exchange completed: Cleaning up " + keyToken); @@ -453,5 +452,106 @@ private void OnExchangeCompleted(Object sender, EventArgs e) } } } + + private Boolean TryGetResponseExchange(Response response, out Exchange exchange) + { + exchange = null; + + if (response.Token == null) + return false; + + // A unicast response must come from the endpoint addressed by the + // request. The endpoint is part of the token key so that equal + // tokens used by different peers cannot cross-match. + if (response.Source != null && + _exchangesByToken.TryGetValue(new TokenKey(response.Token, response.Source), out exchange)) + { + if (IsResponseMatch(response, exchange)) + return true; + + exchange = null; + return false; + } + + // Multicast requests intentionally accept responses from multiple + // source endpoints. They are stored under a null endpoint key and + // still require the request/response token (and ACK MID, if any). + if (_exchangesByToken.TryGetValue(new TokenKey(response.Token, null), out exchange) && + exchange.CurrentRequest != null && exchange.CurrentRequest.Multicast && + IsResponseMatch(response, exchange)) + { + return true; + } + + exchange = null; + return false; + } + + private static Boolean IsResponseMatch(Response response, Exchange exchange) + { + Request request = exchange.CurrentRequest; + if (request == null || exchange.Origin != Origin.Local || + !ByteArrayUtils.Equals(request.Token, response.Token)) + return false; + + if (!request.Multicast && !EndPointsEqual(request.Destination, response.Source)) + return false; + + // Piggybacked responses are matched by both the request MID and + // token. Separate CON/NON responses use the token and endpoint; + // their MID is a new server-side message identifier. + return response.Type != MessageType.ACK || response.ID == request.ID; + } + + private static Boolean EndPointsEqual(System.Net.EndPoint first, System.Net.EndPoint second) + { + return Object.Equals(NormalizeEndPoint(first), NormalizeEndPoint(second)); + } + + private static System.Net.EndPoint NormalizeEndPoint(System.Net.EndPoint endpoint) + { + System.Net.IPEndPoint ipEndpoint = endpoint as System.Net.IPEndPoint; + if (ipEndpoint != null && ipEndpoint.Address.IsIPv4MappedToIPv6) + return new System.Net.IPEndPoint(ipEndpoint.Address.MapToIPv4(), ipEndpoint.Port); + + // Native IPv6 addresses keep their ScopeId, and custom endpoints + // keep their own equality semantics. + return endpoint; + } + + private sealed class TokenKey : Exchange.KeyToken + { + private readonly Byte[] _token; + private readonly System.Net.EndPoint _endpoint; + private readonly Int32 _hash; + + public TokenKey(Byte[] token, System.Net.EndPoint endpoint) + : base(token) + { + if (token == null) + throw new ArgumentNullException("token"); + + _token = token; + _endpoint = NormalizeEndPoint(endpoint); + unchecked + { + _hash = ByteArrayUtils.ComputeHash(token) * 31 + + (_endpoint == null ? 0 : _endpoint.GetHashCode()); + } + } + + public override Int32 GetHashCode() + { + return _hash; + } + + public override Boolean Equals(Object obj) + { + TokenKey other = obj as TokenKey; + return other != null && + Object.Equals(_endpoint, other._endpoint) && + ByteArrayUtils.Equals(_token, other._token); + } + } } } diff --git a/CoAP.NET/Option.cs b/CoAP.NET/Option.cs index c8d20fe..23e9f2d 100644 --- a/CoAP.NET/Option.cs +++ b/CoAP.NET/Option.cs @@ -437,7 +437,7 @@ public static OptionFormat GetFormatByType(OptionType type) /// true if the option is critical public static Boolean IsCritical(OptionType type) { - return ((Int32)type & 1) > 1; + return ((Int32)type & 1) != 0; } /// diff --git a/CoAP.NET/Server/CoapServer.cs b/CoAP.NET/Server/CoapServer.cs index e92fb0d..b30227b 100644 --- a/CoAP.NET/Server/CoapServer.cs +++ b/CoAP.NET/Server/CoapServer.cs @@ -193,7 +193,7 @@ public void Start() public void Stop() { if (Log.IsEnabled(LogLevel.Debug)) - Log.LogDebug("Starting CoAP server"); + Log.LogDebug("Stopping CoAP server"); _endpoints.ForEach(ep => ep.Stop()); } diff --git a/CoAP.NET/Spec.cs b/CoAP.NET/Spec.cs index f696506..1ce498e 100644 --- a/CoAP.NET/Spec.cs +++ b/CoAP.NET/Spec.cs @@ -15,6 +15,7 @@ using System; using System.Collections.Generic; +using System.IO; using CoAP.Codec; using Microsoft.Extensions.Logging; using CoAP.Util; @@ -1654,15 +1655,35 @@ protected override void Serialize(DatagramWriter writer, Message msg, Int32 code class MessageDecoder18 : MessageDecoder { + private Boolean _headerComplete; + public MessageDecoder18(Byte[] data) : base(data) { - ReadProtocol(); + try + { + ReadProtocol(); + _headerComplete = true; + } + catch (EndOfStreamException) + { + // A truncated fixed header is not a decodable message. Keep + // the decoder object available so the endpoint can silently + // discard it without reflecting an RST to an unknown peer. + _headerComplete = false; + } } public override Boolean IsWellFormed { - get { return m_version == Version; } + // MessageDecoder.Version is an inherited property, so an + // unqualified Version here would compare m_version to itself. + get + { + Int32 codeClass = m_code >> 5; + return _headerComplete && m_version == 1 && m_tokenLength <= 8 && + (codeClass == 0 || codeClass == 2 || codeClass == 4 || codeClass == 5); + } } protected override void ReadProtocol() @@ -1677,6 +1698,23 @@ protected override void ReadProtocol() protected override void ParseMessage(Message msg) { + if (!IsWellFormed) + throw new FormatException("The CoAP message header is malformed."); + + if (m_type == MessageType.RST && m_code != Code.Empty || + m_type == MessageType.ACK && IsRequest) + throw new FormatException("The CoAP message type does not allow its code."); + + if (m_code == Code.Empty) + { + if (m_type == MessageType.NON) + throw new FormatException("A non-confirmable CoAP message must contain a request or response."); + if (m_tokenLength != 0 || m_reader.BytesAvailable) + throw new FormatException("An empty CoAP message must not contain a token, options, or payload."); + msg.Token = CoapConstants.EmptyToken; + return; + } + // read token if (m_tokenLength > 0) msg.Token = m_reader.ReadBytes(m_tokenLength); diff --git a/CoAP.NET/Stack/BlockwiseLayer.cs b/CoAP.NET/Stack/BlockwiseLayer.cs index 0df2c5c..c7f7983 100644 --- a/CoAP.NET/Stack/BlockwiseLayer.cs +++ b/CoAP.NET/Stack/BlockwiseLayer.cs @@ -118,7 +118,7 @@ public override void ReceiveRequest(INextLayer nextLayer, Exchange exchange, Req Response error = Response.CreateResponse(request, StatusCode.RequestEntityIncomplete); error.AddOption(new BlockOption(OptionType.Block1, block1.NUM, block1.SZX, block1.M)); error.SetPayload("Changed Content-Format"); - + exchange.CurrentResponse = error; base.SendResponse(nextLayer, exchange, error); return; @@ -226,7 +226,7 @@ public override void SendResponse(INextLayer nextLayer, Exchange exchange, Respo BlockwiseStatus status = FindResponseBlockStatus(exchange, response); Response block = GetNextResponseBlock(response, status); - + if (block1 != null) // in case we still have to ack the last block1 block.SetOption(block1); if (block.Token == null) @@ -263,6 +263,11 @@ public override void SendResponse(INextLayer nextLayer, Exchange exchange, Respo /// public override void ReceiveResponse(INextLayer nextLayer, Exchange exchange, Response response) { + // The matcher/reliability layers normally consume duplicates before + // this layer. Never let an explicitly marked duplicate end an upload. + if (response.Duplicate) + return; + // do not continue fetching blocks if canceled if (exchange.Request.IsCancelled) { @@ -289,38 +294,96 @@ public override void ReceiveResponse(INextLayer nextLayer, Exchange exchange, Re BlockOption block1 = response.Block1; if (block1 != null) { - // TODO: What if request has not been sent blockwise (server error) if (Log.IsEnabled(LogLevel.Debug)) Log.LogDebug("Response acknowledges block " + block1); BlockwiseStatus status = exchange.RequestBlockStatus; - if (!status.Complete) + if (status != null && block1.SZX == 7) + { + // Reliability has already acknowledged this current response; + // abandoning it without a terminal signal would strand upload. + if (Log.IsEnabled(LogLevel.Warning)) + Log.LogWarning("Cancelling upload after Block1 response with reserved SZX 7."); + CancelBlockwiseUpload(exchange); + return; + } + + // Old message IDs and duplicates are filtered below this layer. + // A response matched to the outstanding message but acknowledging + // a different block is a protocol error, not a pending response. + if (status != null && Code.IsSuccess(response.Code) + && block1.NUM != status.CurrentNUM) + { + if (Log.IsEnabled(LogLevel.Warning)) + Log.LogWarning("Cancelling upload after Block1 response for block " + block1.NUM + + "; expected " + status.CurrentNUM + "."); + CancelBlockwiseUpload(exchange); + return; + } + + // A normal request cannot complete with an unsolicited non-final + // Block1 success. Explicit Block1 requests are managed by callers; + // error responses such as 4.13 with a size hint remain deliverable. + if (status == null && !exchange.Request.HasOption(OptionType.Block1) + && Code.IsSuccess(response.Code) + && (response.StatusCode == StatusCode.Continue || block1.M)) + { + CancelBlockwiseUpload(exchange); + return; + } + + // A collecting server must not include Block2, and its + // non-final successes must be Continue. Conversely, Continue + // cannot be the final outcome after the last request block. + // Never report any of these protocol errors as upload success. + if (block1.M && response.HasOption(OptionType.Block2) || + status != null && Code.IsSuccess(response.Code) && + (block1.M && response.StatusCode != StatusCode.Continue || + status.Complete && response.StatusCode == StatusCode.Continue)) + { + if (Log.IsEnabled(LogLevel.Warning)) + Log.LogWarning("Cancelling upload after an invalid Block1 response: " + + response.CodeString + " " + block1); + CancelBlockwiseUpload(exchange); + return; + } + + // RFC 7959 sections 2.3 and 2.5: atomic uploads use 2.31 + // Continue; a server acting on individual blocks may instead + // return another success code with its Block1 M bit cleared. + if (status == null || status.Complete || !Code.IsSuccess(response.Code)) + { + exchange.RequestBlockStatus = null; + ClearBlockCleanup(exchange); + if (!response.HasOption(OptionType.Block2)) + { + exchange.Response = response; + base.ReceiveResponse(nextLayer, exchange, response); + return; + } + // A final response can combine a Block1 acknowledgement + // with a Block2 response body. Continue reassembly below. + } + else { - // TODO: the response code should be CONTINUE. Otherwise deliver // Send next block Int32 currentSize = 1 << (4 + status.CurrentSZX); - Int32 nextNum = status.CurrentNUM + currentSize / block1.Size; + Int32 nextSZX = Math.Min(status.CurrentSZX, block1.SZX); + Int32 nextSize = 1 << (4 + nextSZX); + Int32 nextNum = (status.CurrentNUM + 1) * currentSize / nextSize; if (Log.IsEnabled(LogLevel.Debug)) Log.LogDebug("Send next block num = " + nextNum); status.CurrentNUM = nextNum; - status.CurrentSZX = block1.SZX; + status.CurrentSZX = nextSZX; Request nextBlock = GetNextRequestBlock(exchange.Request, status); if (nextBlock.Token == null) nextBlock.Token = response.Token; // reuse same token exchange.CurrentRequest = nextBlock; base.SendRequest(nextLayer, exchange, nextBlock); - // do not deliver response - } - else if (!response.HasOption(OptionType.Block2)) - { - // All request block have been acknowledged and we receive a piggy-backed - // response that needs no blockwise transfer. Thus, deliver it. - base.ReceiveResponse(nextLayer, exchange, response); - } - else - { - if (Log.IsEnabled(LogLevel.Debug)) - Log.LogDebug("Response has Block2 option and is therefore sent blockwise"); + // The high-level operation returns the final upload result. + // An optional intermediate per-block response body must not + // start Block2 retrieval alongside the next Block1 request. + return; } } @@ -417,6 +480,15 @@ public override void ReceiveResponse(INextLayer nextLayer, Exchange exchange, Re } } + private void CancelBlockwiseUpload(Exchange exchange) + { + exchange.RequestBlockStatus = null; + exchange.ResponseBlockStatus = null; + ClearBlockCleanup(exchange); + exchange.Complete = true; + exchange.Request.Cancel(); + } + private void EarlyBlock2Negotiation(Exchange exchange, Request request) { // Call this method when a request has completely arrived (might have diff --git a/CoAP.Test/BlockwiseProtocolRegressionTest.cs b/CoAP.Test/BlockwiseProtocolRegressionTest.cs new file mode 100644 index 0000000..7c27197 --- /dev/null +++ b/CoAP.Test/BlockwiseProtocolRegressionTest.cs @@ -0,0 +1,518 @@ +using System; +using NUnit.Framework; +using CoAP.Net; +using CoAP.Stack; + +namespace CoAP +{ + [TestFixture] + public sealed class BlockwiseProtocolRegressionTest + { + [Test] + public void ManuallyManagedBlock1ResponseWithoutRequestStatus_IsForwarded() + { + Request request = Request.NewPost(); + request.AddOption(new BlockOption(OptionType.Block1, 0, 0, true)); + Exchange exchange = new Exchange(request, Origin.Local) + { + Request = request + }; + Response response = Response.CreateResponse(request, StatusCode.Continue); + response.AddOption(new BlockOption(OptionType.Block1, 0, 0, true)); + RecordingLayer next = new RecordingLayer(); + + BlockwiseLayer layer = new BlockwiseLayer(new CoapConfig()); + + Assert.DoesNotThrow(() => layer.ReceiveResponse(next, exchange, response)); + Assert.That(next.ReceivedResponses, Is.EqualTo(1)); + Assert.That(next.SentRequests, Is.EqualTo(0)); + Assert.That(request.IsCancelled, Is.False); + } + + [TestCase(StatusCode.Continue, false)] + [TestCase(StatusCode.Continue, true)] + [TestCase(StatusCode.Changed, true)] + public void UnsolicitedNonFinalBlock1SuccessForOrdinaryGet_CancelsWithoutReportingSuccess(StatusCode code, bool more) + { + Request request = Request.NewGet(); + Exchange exchange = new Exchange(request, Origin.Local) { Request = request }; + Response response = Response.CreateResponse(request, code); + response.AddOption(new BlockOption(OptionType.Block1, 0, 0, more)); + RecordingLayer next = new RecordingLayer(); + BlockwiseLayer layer = new BlockwiseLayer(new CoapConfig()); + + layer.ReceiveResponse(next, exchange, response); + + Assert.That(next.ReceivedResponses, Is.EqualTo(0)); + Assert.That(next.SentRequests, Is.EqualTo(0)); + Assert.That(request.IsCancelled, Is.True); + Assert.That(exchange.Complete, Is.True); + } + + [Test] + public void InitialRequestEntityTooLargeWithBlock1Hint_IsDelivered() + { + Request request = Request.NewPut(); + request.SetPayload("payload", MediaType.TextPlain); + Exchange exchange = new Exchange(request, Origin.Local) { Request = request }; + Response response = Response.CreateResponse(request, StatusCode.RequestEntityTooLarge); + response.AddOption(new BlockOption(OptionType.Block1, 0, 0, false)); + RecordingLayer next = new RecordingLayer(); + BlockwiseLayer layer = new BlockwiseLayer(new CoapConfig()); + + layer.ReceiveResponse(next, exchange, response); + + Assert.That(next.ReceivedResponses, Is.EqualTo(1)); + Assert.That(next.LastResponse, Is.SameAs(response)); + Assert.That(next.SentRequests, Is.EqualTo(0)); + Assert.That(request.IsCancelled, Is.False); + } + + [TestCase(StatusCode.BadRequest)] + [TestCase(StatusCode.RequestEntityIncomplete)] + [TestCase(StatusCode.RequestEntityTooLarge)] + [TestCase(StatusCode.InternalServerError)] + public void Block1ErrorResponse_DoesNotContinueUpload(StatusCode statusCode) + { + Request request = Request.NewPost(); + request.SetPayload(new byte[32], MediaType.ApplicationOctetStream); + Exchange exchange = new Exchange(request, Origin.Local) + { + Request = request + }; + RecordingLayer next = new RecordingLayer(); + BlockwiseLayer layer = new BlockwiseLayer(new CoapConfig + { + MaxMessageSize = 16, + DefaultBlockSize = 16 + }); + + layer.SendRequest(next, exchange, request); + Assert.That(next.SentRequests, Is.EqualTo(1)); + + Response response = Response.CreateResponse(request, statusCode); + response.AddOption(new BlockOption(OptionType.Block1, 0, 0, true)); + + layer.ReceiveResponse(next, exchange, response); + + Assert.That(next.SentRequests, Is.EqualTo(1)); + Assert.That(next.ReceivedResponses, Is.EqualTo(1)); + Assert.That(next.LastResponse, Is.SameAs(response)); + Assert.That(exchange.RequestBlockStatus, Is.Null); + } + + [TestCase(1, 0)] + [TestCase(2, 0)] + [TestCase(0, 7)] + public void InvalidBlock1Acknowledgement_CancelsUpload(int number, int szx) + { + Request request = Request.NewPost(); + request.SetPayload(new byte[48], MediaType.ApplicationOctetStream); + Exchange exchange = new Exchange(request, Origin.Local) + { + Request = request + }; + RecordingLayer next = new RecordingLayer(); + BlockwiseLayer layer = new BlockwiseLayer(new CoapConfig + { + MaxMessageSize = 16, + DefaultBlockSize = 16 + }); + + layer.SendRequest(next, exchange, request); + BlockwiseStatus status = exchange.RequestBlockStatus; + Assert.That(status, Is.Not.Null); + Assert.That(status.CurrentNUM, Is.EqualTo(0)); + + Response response = Response.CreateResponse(request, StatusCode.Continue); + response.AddOption(new BlockOption(OptionType.Block1, number, szx, true)); + layer.ReceiveResponse(next, exchange, response); + + Assert.That(next.SentRequests, Is.EqualTo(1)); + Assert.That(status.CurrentNUM, Is.EqualTo(0)); + Assert.That(next.ReceivedResponses, Is.EqualTo(0)); + Assert.That(request.IsCancelled, Is.True); + Assert.That(exchange.Complete, Is.True); + Assert.That(exchange.RequestBlockStatus, Is.Null); + } + + [Test] + public void ContinueForCurrentBlock_SendsOnlyNextBlock() + { + Request request = Request.NewPost(); + request.SetPayload(new byte[48], MediaType.ApplicationOctetStream); + Exchange exchange = new Exchange(request, Origin.Local) + { + Request = request + }; + RecordingLayer next = new RecordingLayer(); + BlockwiseLayer layer = new BlockwiseLayer(new CoapConfig + { + MaxMessageSize = 16, + DefaultBlockSize = 16 + }); + + layer.SendRequest(next, exchange, request); + Response response = Response.CreateResponse(request, StatusCode.Continue); + response.AddOption(new BlockOption(OptionType.Block1, 0, 0, true)); + + layer.ReceiveResponse(next, exchange, response); + + Assert.That(next.SentRequests, Is.EqualTo(2)); + Assert.That(next.LastRequest, Is.Not.Null); + Assert.That(next.LastRequest.Block1.NUM, Is.EqualTo(1)); + Assert.That(exchange.RequestBlockStatus.CurrentNUM, Is.EqualTo(1)); + } + + [TestCase(StatusCode.Created)] + [TestCase(StatusCode.Changed)] + public void PerBlockSuccessWithMoreBitCleared_ContinuesUpload(StatusCode statusCode) + { + Request request = Request.NewPost(); + request.SetPayload(new byte[48], MediaType.ApplicationOctetStream); + Exchange exchange = new Exchange(request, Origin.Local) { Request = request }; + RecordingLayer next = new RecordingLayer(); + BlockwiseLayer layer = new BlockwiseLayer(new CoapConfig + { + MaxMessageSize = 16, + DefaultBlockSize = 16 + }); + layer.SendRequest(next, exchange, request); + Response response = Response.CreateResponse(request, statusCode); + response.AddOption(new BlockOption(OptionType.Block1, 0, 0, false)); + + layer.ReceiveResponse(next, exchange, response); + + Assert.That(next.SentRequests, Is.EqualTo(2)); + Assert.That(next.LastRequest.Block1.NUM, Is.EqualTo(1)); + Assert.That(next.ReceivedResponses, Is.EqualTo(0)); + } + + [TestCase(false)] + [TestCase(true)] + public void IntermediateBlock2Body_DoesNotAdvanceOrCompleteTheUpload(bool more) + { + Request request = Request.NewPost(); + request.SetPayload(new byte[48], MediaType.ApplicationOctetStream); + Exchange exchange = new Exchange(request, Origin.Local) { Request = request }; + RecordingLayer next = new RecordingLayer(); + BlockwiseLayer layer = new BlockwiseLayer(new CoapConfig + { + MaxMessageSize = 16, + DefaultBlockSize = 16 + }); + layer.SendRequest(next, exchange, request); + Response response = Response.CreateResponse(request, StatusCode.Changed); + response.SetPayload("0123456789abcdef", MediaType.TextPlain); + response.AddOption(new BlockOption(OptionType.Block1, 0, 0, false)); + response.AddOption(new BlockOption(OptionType.Block2, 0, 0, more)); + + layer.ReceiveResponse(next, exchange, response); + + Assert.That(next.SentRequests, Is.EqualTo(2)); + Assert.That(next.LastRequest.Block1, Is.Not.Null); + Assert.That(next.LastRequest.Block1.NUM, Is.EqualTo(1)); + Assert.That(exchange.CurrentRequest, Is.SameAs(next.LastRequest)); + Assert.That(exchange.ResponseBlockStatus, Is.Null); + Assert.That(next.ReceivedResponses, Is.EqualTo(0)); + Assert.That(request.IsCancelled, Is.False); + } + + [TestCase(StatusCode.Created)] + [TestCase(StatusCode.Changed)] + public void AtomicSuccessWithoutContinue_CancelsUploadWithoutReportingSuccess(StatusCode statusCode) + { + Request request = Request.NewPost(); + request.SetPayload(new byte[48], MediaType.ApplicationOctetStream); + Exchange exchange = new Exchange(request, Origin.Local) { Request = request }; + RecordingLayer next = new RecordingLayer(); + BlockwiseLayer layer = new BlockwiseLayer(new CoapConfig + { + MaxMessageSize = 16, + DefaultBlockSize = 16 + }); + layer.SendRequest(next, exchange, request); + Response response = Response.CreateResponse(request, statusCode); + response.AddOption(new BlockOption(OptionType.Block1, 0, 0, true)); + + layer.ReceiveResponse(next, exchange, response); + + Assert.That(next.SentRequests, Is.EqualTo(1)); + Assert.That(next.ReceivedResponses, Is.EqualTo(0)); + Assert.That(request.IsCancelled, Is.True); + Assert.That(exchange.Complete, Is.True); + Assert.That(request.WaitForResponse(0), Is.Null); + Assert.That(exchange.RequestBlockStatus, Is.Null); + } + + [TestCase(StatusCode.Continue)] + [TestCase(StatusCode.Changed)] + public void AtomicBlock1ResponseWithBlock2_CancelsBeforeSendingAnotherRequest(StatusCode statusCode) + { + Request request = Request.NewPost(); + request.SetPayload(new byte[48], MediaType.ApplicationOctetStream); + Exchange exchange = new Exchange(request, Origin.Local) { Request = request }; + RecordingLayer next = new RecordingLayer(); + BlockwiseLayer layer = new BlockwiseLayer(new CoapConfig + { + MaxMessageSize = 16, + DefaultBlockSize = 16 + }); + layer.SendRequest(next, exchange, request); + Response response = Response.CreateResponse(request, statusCode); + response.SetPayload("0123456789abcdef", MediaType.TextPlain); + response.AddOption(new BlockOption(OptionType.Block1, 0, 0, true)); + response.AddOption(new BlockOption(OptionType.Block2, 0, 0, true)); + + layer.ReceiveResponse(next, exchange, response); + + Assert.That(next.SentRequests, Is.EqualTo(1)); + Assert.That(next.ReceivedResponses, Is.EqualTo(0)); + Assert.That(request.IsCancelled, Is.True); + Assert.That(exchange.Complete, Is.True); + Assert.That(exchange.RequestBlockStatus, Is.Null); + Assert.That(exchange.ResponseBlockStatus, Is.Null); + } + + [Test] + public void ContinueWithReservedBlockSize_CancelsUpload() + { + Request request = Request.NewPost(); + request.SetPayload(new byte[48], MediaType.ApplicationOctetStream); + Exchange exchange = new Exchange(request, Origin.Local) { Request = request }; + RecordingLayer next = new RecordingLayer(); + BlockwiseLayer layer = new BlockwiseLayer(new CoapConfig + { + MaxMessageSize = 16, + DefaultBlockSize = 16 + }); + layer.SendRequest(next, exchange, request); + Response response = Response.CreateResponse(request, StatusCode.Continue); + response.AddOption(new BlockOption(OptionType.Block1, 0, 7, true)); + + layer.ReceiveResponse(next, exchange, response); + + Assert.That(next.SentRequests, Is.EqualTo(1)); + Assert.That(exchange.RequestBlockStatus, Is.Null); + Assert.That(request.IsCancelled, Is.True); + Assert.That(exchange.Complete, Is.True); + Assert.That(next.ReceivedResponses, Is.EqualTo(0)); + } + + [Test] + public void DuplicateBlock1Response_DoesNotSkipTheOutstandingBlock() + { + Request request = Request.NewPost(); + request.SetPayload(new byte[48], MediaType.ApplicationOctetStream); + Exchange exchange = new Exchange(request, Origin.Local) { Request = request }; + RecordingLayer next = new RecordingLayer(); + BlockwiseLayer layer = new BlockwiseLayer(new CoapConfig + { + MaxMessageSize = 16, + DefaultBlockSize = 16 + }); + layer.SendRequest(next, exchange, request); + Response first = Response.CreateResponse(request, StatusCode.Continue); + first.AddOption(new BlockOption(OptionType.Block1, 0, 0, true)); + layer.ReceiveResponse(next, exchange, first); + + first.Duplicate = true; + layer.ReceiveResponse(next, exchange, first); + + Assert.That(next.SentRequests, Is.EqualTo(2)); + Assert.That(exchange.RequestBlockStatus.CurrentNUM, Is.EqualTo(1)); + Assert.That(next.LastRequest.Block1.NUM, Is.EqualTo(1)); + } + + [Test] + public void DuplicateContinueWhileFinalBlockIsOutstanding_DoesNotFinishUpload() + { + Request request = Request.NewPost(); + request.SetPayload(new byte[32], MediaType.ApplicationOctetStream); + Exchange exchange = new Exchange(request, Origin.Local) { Request = request }; + RecordingLayer next = new RecordingLayer(); + BlockwiseLayer layer = new BlockwiseLayer(new CoapConfig + { + MaxMessageSize = 16, + DefaultBlockSize = 16 + }); + layer.SendRequest(next, exchange, request); + Response first = Response.CreateResponse(request, StatusCode.Continue); + first.AddOption(new BlockOption(OptionType.Block1, 0, 0, true)); + layer.ReceiveResponse(next, exchange, first); + BlockwiseStatus status = exchange.RequestBlockStatus; + Assert.That(status.Complete, Is.True); + + first.Duplicate = true; + layer.ReceiveResponse(next, exchange, first); + + Assert.That(next.SentRequests, Is.EqualTo(2)); + Assert.That(next.ReceivedResponses, Is.EqualTo(0)); + Assert.That(exchange.RequestBlockStatus, Is.SameAs(status)); + + Response final = Response.CreateResponse(request, StatusCode.Changed); + final.AddOption(new BlockOption(OptionType.Block1, 1, 0, false)); + layer.ReceiveResponse(next, exchange, final); + + Assert.That(next.ReceivedResponses, Is.EqualTo(1)); + Assert.That(next.LastResponse, Is.SameAs(final)); + Assert.That(exchange.RequestBlockStatus, Is.Null); + } + + [TestCase(false)] + [TestCase(true)] + public void ContinueForFinalBlock_CancelsUploadWithoutReportingSuccess(bool more) + { + Request request = Request.NewPost(); + request.SetPayload(new byte[32], MediaType.ApplicationOctetStream); + Exchange exchange = new Exchange(request, Origin.Local) { Request = request }; + RecordingLayer next = new RecordingLayer(); + BlockwiseLayer layer = new BlockwiseLayer(new CoapConfig + { + MaxMessageSize = 16, + DefaultBlockSize = 16 + }); + layer.SendRequest(next, exchange, request); + Response first = Response.CreateResponse(request, StatusCode.Continue); + first.AddOption(new BlockOption(OptionType.Block1, 0, 0, true)); + layer.ReceiveResponse(next, exchange, first); + Response invalidFinal = Response.CreateResponse(request, StatusCode.Continue); + invalidFinal.AddOption(new BlockOption(OptionType.Block1, 1, 0, more)); + + layer.ReceiveResponse(next, exchange, invalidFinal); + + Assert.That(next.SentRequests, Is.EqualTo(2)); + Assert.That(next.ReceivedResponses, Is.EqualTo(0)); + Assert.That(request.IsCancelled, Is.True); + Assert.That(exchange.Complete, Is.True); + Assert.That(request.WaitForResponse(0), Is.Null); + Assert.That(exchange.RequestBlockStatus, Is.Null); + } + + [Test] + public void ContinueWithSmallerBlockSize_PreservesTheByteOffset() + { + Request request = Request.NewPost(); + byte[] payload = new byte[96]; + for (int i = 0; i < payload.Length; i++) + payload[i] = (byte)i; + request.SetPayload(payload, MediaType.ApplicationOctetStream); + Exchange exchange = new Exchange(request, Origin.Local) { Request = request }; + RecordingLayer next = new RecordingLayer(); + BlockwiseLayer layer = new BlockwiseLayer(new CoapConfig + { + MaxMessageSize = 32, + DefaultBlockSize = 32 + }); + layer.SendRequest(next, exchange, request); + Response first = Response.CreateResponse(request, StatusCode.Continue); + first.AddOption(new BlockOption(OptionType.Block1, 0, 1, true)); + layer.ReceiveResponse(next, exchange, first); + + Response smaller = Response.CreateResponse(request, StatusCode.Continue); + smaller.AddOption(new BlockOption(OptionType.Block1, 1, 0, true)); + layer.ReceiveResponse(next, exchange, smaller); + + Assert.That(next.SentRequests, Is.EqualTo(3)); + Assert.That(next.LastRequest.Block1.NUM, Is.EqualTo(4)); + Assert.That(next.LastRequest.Payload, Is.EqualTo(new byte[] + { + 64, 65, 66, 67, 68, 69, 70, 71, + 72, 73, 74, 75, 76, 77, 78, 79 + })); + } + + [Test] + public void FinalBlock1ResponseWithBlock2_AssemblesTheResponseBody() + { + Request request = Request.NewPost(); + Exchange exchange = new Exchange(request, Origin.Local) + { + Request = request, + RequestBlockStatus = new BlockwiseStatus(MediaType.ApplicationOctetStream, 1, 0) + { + Complete = true + } + }; + RecordingLayer next = new RecordingLayer(); + BlockwiseLayer layer = new BlockwiseLayer(new CoapConfig()); + Response first = Response.CreateResponse(request, StatusCode.Changed); + first.SetPayload("0123456789abcdef", MediaType.TextPlain); + first.AddOption(new BlockOption(OptionType.Block1, 1, 0, false)); + first.AddOption(new BlockOption(OptionType.Block2, 0, 0, true)); + + layer.ReceiveResponse(next, exchange, first); + + Assert.That(next.ReceivedResponses, Is.EqualTo(0)); + Assert.That(next.SentRequests, Is.EqualTo(1)); + Assert.That(next.LastRequest.Block2.NUM, Is.EqualTo(1)); + + Response last = Response.CreateResponse(request, StatusCode.Changed); + last.SetPayload("ghijkl", MediaType.TextPlain); + last.AddOption(new BlockOption(OptionType.Block2, 1, 0, false)); + layer.ReceiveResponse(next, exchange, last); + + Assert.That(next.ReceivedResponses, Is.EqualTo(1)); + Assert.That(next.LastResponse.PayloadString, Is.EqualTo("0123456789abcdefghijkl")); + } + + [Test] + public void ContinueWithLargerBlockPreference_DoesNotResendPreviousBytes() + { + Request request = Request.NewPost(); + request.SetPayload(new byte[48], MediaType.ApplicationOctetStream); + Exchange exchange = new Exchange(request, Origin.Local) { Request = request }; + RecordingLayer next = new RecordingLayer(); + BlockwiseLayer layer = new BlockwiseLayer(new CoapConfig + { + MaxMessageSize = 16, + DefaultBlockSize = 16 + }); + layer.SendRequest(next, exchange, request); + + Response response = Response.CreateResponse(request, StatusCode.Continue); + response.AddOption(new BlockOption(OptionType.Block1, 0, 1, true)); + layer.ReceiveResponse(next, exchange, response); + + Assert.That(next.SentRequests, Is.EqualTo(2)); + Assert.That(next.LastRequest.Block1.NUM, Is.EqualTo(1)); + Assert.That(next.LastRequest.Block1.Size, Is.EqualTo(16)); + } + + private sealed class RecordingLayer : INextLayer + { + public int SentRequests { get; private set; } + public int ReceivedResponses { get; private set; } + public Request LastRequest { get; private set; } + public Response LastResponse { get; private set; } + + public void SendRequest(Exchange exchange, Request request) + { + SentRequests++; + LastRequest = request; + } + + public void SendResponse(Exchange exchange, Response response) + { + } + + public void SendEmptyMessage(Exchange exchange, EmptyMessage message) + { + } + + public void ReceiveRequest(Exchange exchange, Request request) + { + } + + public void ReceiveResponse(Exchange exchange, Response response) + { + ReceivedResponses++; + LastResponse = response; + } + + public void ReceiveEmptyMessage(Exchange exchange, EmptyMessage message) + { + } + } + } +} diff --git a/CoAP.Test/CoapClientProtocolFailureTest.cs b/CoAP.Test/CoapClientProtocolFailureTest.cs new file mode 100644 index 0000000..ab0791c --- /dev/null +++ b/CoAP.Test/CoapClientProtocolFailureTest.cs @@ -0,0 +1,306 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using CoAP.Channel; +using CoAP.Net; +using CoAP.Threading; +using NUnit.Framework; +using NetworkEndPoint = System.Net.EndPoint; + +namespace CoAP +{ + [TestFixture] + public sealed class CoapClientProtocolFailureTest + { + private static readonly IPEndPoint Peer = new IPEndPoint(IPAddress.Loopback, 5683); + + [Test] + public void InvalidAtomicBlock1Response_CancelsAndNotifiesAsyncCaller() + { + RecordingChannel channel = new RecordingChannel(); + CoapConfig config = CreateConfig(); + using (CoAPEndPoint endpoint = new CoAPEndPoint(channel, config) { Executor = Executors.NoThreading }) + { + endpoint.Start(); + CoapClient client = new CoapClient(new Uri("coap://127.0.0.1:5683/upload"), config) { EndPoint = endpoint }; + Request request = Request.NewPost(); + request.SetPayload(new Byte[48], MediaType.ApplicationOctetStream); + Int32 successes = 0; + List failures = new List(); + List errors = new List(); + client.Error += (sender, e) => errors.Add(e.Reason); + client.SendAsync(request, response => successes++, reason => failures.Add(reason)); + + Request first = (Request)Spec.Decode(channel.Sent[0]); + Response invalid = Response.CreateResponse(first, StatusCode.Changed); + invalid.Type = MessageType.ACK; + invalid.ID = first.ID; + invalid.SetBlock1(0, true, 0); + channel.Emit(Spec.Encode(invalid), Peer); + + Assert.That(request.IsCancelled, Is.True); + Assert.That(request.WaitForResponse(0), Is.Null); + Assert.That(channel.Sent.Count, Is.EqualTo(1), "An invalid atomic response must not advance the upload."); + Assert.That(successes, Is.Zero, "A partial upload must never be reported as success."); + Assert.That(failures, Is.EqualTo(new[] { CoapClient.FailReason.Cancelled })); + Assert.That(errors, Is.EqualTo(failures)); + } + } + + [TestCase(true)] + [TestCase(false)] + public void WrongPeerOrToken_CannotAdvanceBlock1ButCorrectResponseCan(Boolean wrongPeer) + { + RecordingChannel channel = new RecordingChannel(); + CoapConfig config = CreateConfig(); + using (CoAPEndPoint endpoint = new CoAPEndPoint(channel, config) { Executor = Executors.NoThreading }) + { + endpoint.Start(); + CoapClient client = new CoapClient(new Uri("coap://127.0.0.1:5683/upload"), config) { EndPoint = endpoint }; + Request request = Request.NewPost(); + request.SetPayload(new Byte[48], MediaType.ApplicationOctetStream); + client.SendAsync(request); + Request first = (Request)Spec.Decode(channel.Sent[0]); + Response invalid = Response.CreateResponse(first, StatusCode.Continue); + invalid.Type = MessageType.ACK; + invalid.ID = first.ID; + invalid.SetBlock1(0, true, 0); + if (!wrongPeer) + { + invalid.Token = first.Token.ToArray(); + invalid.Token[0] ^= 0xff; + } + + channel.Emit(Spec.Encode(invalid), wrongPeer ? new IPEndPoint(Peer.Address, Peer.Port + 1) : Peer); + Assert.That(channel.Sent.Count, Is.EqualTo(1)); + + Response valid = Response.CreateResponse(first, StatusCode.Continue); + valid.Type = MessageType.ACK; + valid.ID = first.ID; + valid.SetBlock1(0, true, 0); + channel.Emit(Spec.Encode(valid), Peer); + + Assert.That(channel.Sent.Count, Is.EqualTo(2)); + Request second = (Request)Spec.Decode(channel.Sent[1]); + Assert.That(second.Block1.NUM, Is.EqualTo(1)); + Assert.That(second.Payload, Is.EqualTo(request.Payload.Skip(16).Take(16).ToArray())); + request.Cancel(); + } + } + + [Test] + public void SendAsync_ExplicitCancel_ReportsAppendedFailureReason() + { + RecordingChannel channel = new RecordingChannel(); + CoapConfig config = CreateConfig(); + using (CoAPEndPoint endpoint = new CoAPEndPoint(channel, config) { Executor = Executors.NoThreading }) + { + endpoint.Start(); + CoapClient client = new CoapClient(new Uri("coap://127.0.0.1:5683/value"), config) { EndPoint = endpoint }; + Request request = Request.NewGet(); + List failures = new List(); + client.SendAsync(request, response => Assert.Fail("Cancelled request delivered a response."), reason => failures.Add(reason)); + request.Cancel(); + request.Cancel(); + + Assert.That(failures, Is.EqualTo(new[] { CoapClient.FailReason.Cancelled })); + Assert.That((Int32)CoapClient.FailReason.Rejected, Is.EqualTo(0)); + Assert.That((Int32)CoapClient.FailReason.TimedOut, Is.EqualTo(1)); + Assert.That((Int32)CoapClient.FailReason.Cancelled, Is.EqualTo(2)); + } + } + + + [TestCase(false)] + [TestCase(true)] + public void PerBlockResponseWithBlock2_ContinuesUploadBeforeFinalDelivery(Boolean moreResponseBlocks) + { + RecordingChannel channel = new RecordingChannel(); + CoapConfig config = CreateConfig(); + using (CoAPEndPoint endpoint = new CoAPEndPoint(channel, config) { Executor = Executors.NoThreading }) + { + endpoint.Start(); + CoapClient client = new CoapClient(new Uri("coap://127.0.0.1:5683/upload"), config) { EndPoint = endpoint }; + Request request = Request.NewPost(); + request.SetPayload(Enumerable.Range(0, 48).Select(value => (Byte)value).ToArray(), MediaType.ApplicationOctetStream); + List responses = new List(); + client.SendAsync(request, response => responses.Add(response), reason => Assert.Fail(reason.ToString())); + + Request first = (Request)Spec.Decode(channel.Sent[0]); + Response partial = CreateAck(first, StatusCode.Changed); + partial.SetBlock1(0, false, 0); + partial.SetBlock2(0, moreResponseBlocks, 0); + partial.SetPayload(new Byte[moreResponseBlocks ? 16 : 1], MediaType.ApplicationOctetStream); + channel.Emit(Spec.Encode(partial), Peer); + + Assert.That(responses, Is.Empty, "A per-block response is not completion of the entire upload."); + Assert.That(channel.Sent.Count, Is.EqualTo(2), "Only one next request may be outstanding."); + Request second = (Request)Spec.Decode(channel.Sent[1]); + Assert.That(second.Block1.NUM, Is.EqualTo(1)); + Assert.That(second.Block2, Is.Null, "The upload must not fork into a response-body download."); + Response continued = CreateAck(second, StatusCode.Continue); + continued.SetBlock1(0, true, 1); + channel.Emit(Spec.Encode(continued), Peer); + Assert.That(channel.Sent.Count, Is.EqualTo(3)); + Request last = (Request)Spec.Decode(channel.Sent[2]); + Assert.That(last.Block1.NUM, Is.EqualTo(2)); + Assert.That(last.Block1.M, Is.False); + Response finished = CreateAck(last, StatusCode.Changed); + finished.SetBlock1(0, false, 2); + finished.SetPayload("done", MediaType.TextPlain); + channel.Emit(Spec.Encode(finished), Peer); + + Assert.That(responses.Count, Is.EqualTo(1)); + Assert.That(responses[0].PayloadString, Is.EqualTo("done")); + Assert.That(request.IsCancelled, Is.False); + } + } + + [TestCase(7, 0, false)] + [TestCase(0, 1, false)] + [TestCase(0, 0, true)] + public void InvalidCurrentBlock1Acknowledgement_NotifiesFailure(Int32 szx, Int32 number, Boolean advanceFirst) + { + RecordingChannel channel = new RecordingChannel(); + CoapConfig config = CreateConfig(); + using (CoAPEndPoint endpoint = new CoAPEndPoint(channel, config) { Executor = Executors.NoThreading }) + { + endpoint.Start(); + CoapClient client = new CoapClient(new Uri("coap://127.0.0.1:5683/upload"), config) { EndPoint = endpoint }; + Request request = Request.NewPost(); + request.SetPayload(new Byte[48], MediaType.ApplicationOctetStream); + List responses = new List(); + List failures = new List(); + client.SendAsync(request, response => responses.Add(response), reason => failures.Add(reason)); + Request current = (Request)Spec.Decode(channel.Sent[0]); + if (advanceFirst) + { + Response firstAck = CreateAck(current, StatusCode.Continue); + firstAck.SetBlock1(0, true, 0); + channel.Emit(Spec.Encode(firstAck), Peer); + current = (Request)Spec.Decode(channel.Sent[1]); + } + Int32 sentBeforeInvalid = channel.Sent.Count; + Response invalid = CreateAck(current, StatusCode.Continue); + invalid.SetBlock1(szx, true, number); + channel.Emit(Spec.Encode(invalid), Peer); + + Assert.That(request.IsCancelled, Is.True); + Assert.That(request.WaitForResponse(0), Is.Null); + Assert.That(failures, Is.EqualTo(new[] { CoapClient.FailReason.Cancelled })); + Assert.That(responses, Is.Empty); + Assert.That(channel.Sent.Count, Is.EqualTo(sentBeforeInvalid)); + } + } + + [Test] + public void DuplicateOldAcknowledgement_DoesNotCancelCurrentUpload() + { + RecordingChannel channel = new RecordingChannel(); + CoapConfig config = CreateConfig(); + using (CoAPEndPoint endpoint = new CoAPEndPoint(channel, config) { Executor = Executors.NoThreading }) + { + endpoint.Start(); + CoapClient client = new CoapClient(new Uri("coap://127.0.0.1:5683/upload"), config) { EndPoint = endpoint }; + Request request = Request.NewPost(); + request.SetPayload(new Byte[48], MediaType.ApplicationOctetStream); + List failures = new List(); + client.SendAsync(request, fail: reason => failures.Add(reason)); + Request first = (Request)Spec.Decode(channel.Sent[0]); + Response firstAck = CreateAck(first, StatusCode.Continue); + firstAck.SetBlock1(0, true, 0); + channel.Emit(Spec.Encode(firstAck), Peer); + Assert.That(channel.Sent.Count, Is.EqualTo(2)); + channel.Emit(Spec.Encode(firstAck), Peer); + Assert.That(channel.Sent.Count, Is.EqualTo(2)); + Assert.That(request.IsCancelled, Is.False); + Assert.That(failures, Is.Empty); + + Request second = (Request)Spec.Decode(channel.Sent[1]); + Response secondAck = CreateAck(second, StatusCode.Continue); + secondAck.SetBlock1(0, true, 1); + channel.Emit(Spec.Encode(secondAck), Peer); + Assert.That(channel.Sent.Count, Is.EqualTo(3)); + request.Cancel(); + } + } + + [Test] + public void UnsolicitedBlock1ContinueToGet_IsProtocolFailure() + { + RecordingChannel channel = new RecordingChannel(); + CoapConfig config = CreateConfig(); + using (CoAPEndPoint endpoint = new CoAPEndPoint(channel, config) { Executor = Executors.NoThreading }) + { + endpoint.Start(); + CoapClient client = new CoapClient(new Uri("coap://127.0.0.1:5683/value"), config) { EndPoint = endpoint }; + Request request = Request.NewGet(); + List responses = new List(); + List failures = new List(); + client.SendAsync(request, response => responses.Add(response), reason => failures.Add(reason)); + Request sent = (Request)Spec.Decode(channel.Sent[0]); + Response invalid = CreateAck(sent, StatusCode.Continue); + invalid.SetBlock1(0, true, 0); + channel.Emit(Spec.Encode(invalid), Peer); + + Assert.That(request.IsCancelled, Is.True); + Assert.That(responses, Is.Empty); + Assert.That(failures, Is.EqualTo(new[] { CoapClient.FailReason.Cancelled })); + } + } + + [TestCase(true)] + [TestCase(false)] + public void ManualBlock1AndEntityTooLargeHint_AreDelivered(Boolean manualBlock1) + { + RecordingChannel channel = new RecordingChannel(); + CoapConfig config = CreateConfig(); + using (CoAPEndPoint endpoint = new CoAPEndPoint(channel, config) { Executor = Executors.NoThreading }) + { + endpoint.Start(); + CoapClient client = new CoapClient(new Uri("coap://127.0.0.1:5683/upload"), config) { EndPoint = endpoint }; + Request request = Request.NewPost(); + request.SetPayload(new Byte[manualBlock1 ? 16 : 8], MediaType.ApplicationOctetStream); + if (manualBlock1) + request.SetBlock1(0, true, 0); + List responses = new List(); + client.SendAsync(request, response => responses.Add(response), reason => Assert.Fail(reason.ToString())); + Request sent = (Request)Spec.Decode(channel.Sent[0]); + Response reply = CreateAck(sent, manualBlock1 ? StatusCode.Continue : StatusCode.RequestEntityTooLarge); + reply.SetBlock1(0, manualBlock1, 0); + channel.Emit(Spec.Encode(reply), Peer); + + Assert.That(request.IsCancelled, Is.False); + Assert.That(responses.Count, Is.EqualTo(1)); + Assert.That(responses[0].StatusCode, Is.EqualTo(reply.StatusCode)); + Assert.That(channel.Sent.Count, Is.EqualTo(1)); + } + } + + private static Response CreateAck(Request request, StatusCode code) + { + Response response = Response.CreateResponse(request, code); + response.Type = MessageType.ACK; + response.ID = request.ID; + return response; + } + + private static CoapConfig CreateConfig() + { + return new CoapConfig { MaxMessageSize = 16, DefaultBlockSize = 16 }; + } + + private sealed class RecordingChannel : IChannel + { + public event EventHandler DataReceived; + public List Sent { get; } = new List(); + public NetworkEndPoint LocalEndPoint { get; } = new IPEndPoint(IPAddress.Loopback, 10000); + public void Start() { } + public void Stop() { } + public void Dispose() { } + public void Send(Byte[] data, NetworkEndPoint destination) { Sent.Add(data.ToArray()); } + public void Emit(Byte[] data, NetworkEndPoint source) { DataReceived?.Invoke(this, new DataReceivedEventArgs(data, source)); } + } + } +} diff --git a/CoAP.Test/CoapClientTest.cs b/CoAP.Test/CoapClientTest.cs index 90f1098..1c5a1e2 100644 --- a/CoAP.Test/CoapClientTest.cs +++ b/CoAP.Test/CoapClientTest.cs @@ -37,6 +37,7 @@ public class CoapClientTest [TestInitialize] public void SetupServer() { + _notifications = 0; CreateServer(); } @@ -49,7 +50,6 @@ public void ShutdownServer() [TestMethod] public void TestSynchronousCall() { - _notifications = 0; Uri uri = new Uri("coap://localhost:" + _serverPort + "/" + TARGET); CoapClient client = new CoapClient(uri); diff --git a/CoAP.Test/CriticalOptionClassificationTest.cs b/CoAP.Test/CriticalOptionClassificationTest.cs new file mode 100644 index 0000000..8b95959 --- /dev/null +++ b/CoAP.Test/CriticalOptionClassificationTest.cs @@ -0,0 +1,33 @@ +using System; +using NUnit.Framework; + +namespace CoAP.Protocol +{ + [TestFixture] + public sealed class CriticalOptionClassificationTest + { + [TestCase(1)] + [TestCase(11)] + [TestCase(19)] + [TestCase(31)] + [TestCase(205)] + [TestCase(65001)] + public void OddOptionNumbersAreCriticalAndNotElective(Int32 number) + { + Assert.That(Option.IsCritical((OptionType)number), Is.True); + Assert.That(Option.IsElective((OptionType)number), Is.False); + } + + [TestCase(0)] + [TestCase(4)] + [TestCase(12)] + [TestCase(28)] + [TestCase(204)] + [TestCase(65000)] + public void EvenOptionNumbersAreElectiveAndNotCritical(Int32 number) + { + Assert.That(Option.IsCritical((OptionType)number), Is.False); + Assert.That(Option.IsElective((OptionType)number), Is.True); + } + } +} diff --git a/CoAP.Test/DecoderFailureStateTest.cs b/CoAP.Test/DecoderFailureStateTest.cs new file mode 100644 index 0000000..af8311d --- /dev/null +++ b/CoAP.Test/DecoderFailureStateTest.cs @@ -0,0 +1,44 @@ +using System; +using System.IO; +using CoAP.Codec; +using NUnit.Framework; + +namespace CoAP.Protocol +{ + [TestFixture] + public sealed class DecoderFailureStateTest + { + [TestCase("4001000111", true)] + [TestCase("4045000111", false)] + public void TypedDecodeFailureCannotBeRetriedThroughAnyEntryPoint(String hex, Boolean isRequest) + { + IMessageDecoder decoder = Spec.NewMessageDecoder(Convert.FromHexString(hex)); + + if (isRequest) + Assert.Throws(() => decoder.DecodeRequest()); + else + Assert.Throws(() => decoder.DecodeResponse()); + + AssertFailedAcrossEntryPoints(decoder); + } + + [TestCase("4001000111")] + [TestCase("4045000111")] + public void GenericDecodeFailureCannotBeRetriedThroughTypedEntryPoints(String hex) + { + IMessageDecoder decoder = Spec.NewMessageDecoder(Convert.FromHexString(hex)); + + Assert.Throws(() => decoder.Decode()); + + AssertFailedAcrossEntryPoints(decoder); + } + + private static void AssertFailedAcrossEntryPoints(IMessageDecoder decoder) + { + Assert.Throws(() => decoder.Decode()); + Assert.Throws(() => decoder.DecodeRequest()); + Assert.Throws(() => decoder.DecodeResponse()); + Assert.Throws(() => decoder.DecodeEmptyMessage()); + } + } +} diff --git a/CoAP.Test/MalformedDatagramTest.cs b/CoAP.Test/MalformedDatagramTest.cs new file mode 100644 index 0000000..6b24e40 --- /dev/null +++ b/CoAP.Test/MalformedDatagramTest.cs @@ -0,0 +1,296 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using CoAP.Channel; +using CoAP.Codec; +using CoAP.Net; +using CoAP.Threading; +using NUnit.Framework; +using NetworkEndPoint = System.Net.EndPoint; + +namespace CoAP.Protocol +{ + [TestFixture] + public sealed class MalformedDatagramTest + { + private static readonly IPEndPoint Remote = new IPEndPoint(IPAddress.Loopback, 56830); + + [TestCase("")] + [TestCase("40")] + [TestCase("4001")] + [TestCase("400100")] + [TestCase("41010001")] + [TestCase("42010001aa")] + [TestCase("48010001aabbcc")] + [TestCase("49010001")] + [TestCase("4f010001")] + [TestCase("00010001")] + [TestCase("80010001")] + [TestCase("c0010001")] + [TestCase("40010001d0")] + [TestCase("40010001e000")] + [TestCase("40010001bd")] + [TestCase("40010001be00")] + [TestCase("4001000111")] + [TestCase("40010001f0")] + [TestCase("400100010f")] + [TestCase("40010001ff")] + [TestCase("6000000100")] + [TestCase("61000001aa")] + [TestCase("60000001ffaa")] + [TestCase("50000001")] + [TestCase("70010001")] + [TestCase("60010001")] + [TestCase("70450001")] + public void MalformedWireMessagesCannotDecode(String hex) + { + Assert.That(() => Spec.Decode(Convert.FromHexString(hex)), Throws.Exception); + } + + [Test] + public void EightByteTokenAndZeroLengthOptionDecodeWithoutPadding() + { + Request request = (Request)Spec.Decode(Convert.FromHexString("48010001000102030405060700")); + + Assert.That(request.Token, Is.EqualTo(Convert.FromHexString("0001020304050607"))); + Assert.That(request.GetFirstOption(OptionType.Reserved).RawValue, Is.Empty); + } + + [Test] + public void TruncatedFixedHeaderIsNotWellFormed() + { + IMessageDecoder decoder = Spec.NewMessageDecoder(new Byte[] { 0x40, 0x01 }); + + Assert.That(decoder.IsWellFormed, Is.False); + Assert.That(() => decoder.DecodeRequest(), Throws.Exception); + } + + [Test] + public void TokenLengthGreaterThanEightIsNotWellFormed() + { + IMessageDecoder decoder = Spec.NewMessageDecoder(new Byte[] { 0x49, 0x01, 0x00, 0x01 }); + + Assert.That(decoder.IsWellFormed, Is.False); + Assert.That(() => decoder.DecodeRequest(), Throws.Exception); + } + + [Test] + public void TruncatedOptionValueIsRejected() + { + // GET / with option delta 1 and length 1, but no value byte. + IMessageDecoder decoder = Spec.NewMessageDecoder(new Byte[] + { + 0x40, 0x01, 0x00, 0x01, 0x11 + }); + + Assert.That(decoder.IsWellFormed, Is.True); + Assert.That(() => decoder.DecodeRequest(), Throws.Exception); + } + + [Test] + public void TrailingPayloadMarkerIsRejected() + { + IMessageDecoder decoder = Spec.NewMessageDecoder(new Byte[] + { + 0x40, 0x01, 0x00, 0x01, 0xff + }); + + Assert.That(decoder.IsWellFormed, Is.True); + Assert.That(() => decoder.DecodeRequest(), Throws.Exception); + } + + [Test] + public void InvalidVersionIsNotWellFormed() + { + IMessageDecoder decoder = Spec.NewMessageDecoder(new Byte[] { 0x00, 0x01, 0x00, 0x01 }); + + Assert.That(decoder.IsWellFormed, Is.False); + } + + [Test] + public void EmptyMessageWithPayloadIsRejectedButValidEmptyMessageDecodes() + { + IMessageDecoder malformed = Spec.NewMessageDecoder(new Byte[] + { + 0x60, 0x00, 0x00, 0x01, 0xff, 0x01 + }); + Assert.That(malformed.IsWellFormed, Is.True); + Assert.That(() => malformed.DecodeEmptyMessage(), Throws.Exception); + + IMessageDecoder valid = Spec.NewMessageDecoder(new Byte[] { 0x60, 0x00, 0x00, 0x01 }); + Assert.That(valid.IsWellFormed, Is.True); + Assert.That(valid.DecodeEmptyMessage(), Is.Not.Null); + } + + [Test] + public void UnknownElectiveOptionIsRetained() + { + // Option number 204 is unknown to this version and elective (even). + IMessageDecoder decoder = Spec.NewMessageDecoder(new Byte[] + { + 0x40, 0x01, 0x00, 0x01, 0xd1, 0xbf, 0x7f + }); + + Request request = decoder.DecodeRequest(); + Option option = request.GetFirstOption((OptionType)204); + Assert.That(option, Is.Not.Null); + Assert.That(option.RawValue, Is.EqualTo(new Byte[] { 0x7f })); + } + + [Test] + public void MalformedConfirmableRequestGetsOneReset() + { + RecordingChannel channel = new RecordingChannel(); + using (CoAPEndPoint endpoint = new CoAPEndPoint(channel, CoapConfig.Default) + { + Executor = Executors.NoThreading + }) + { + endpoint.Start(); + channel.Emit(new Byte[] { 0x40, 0x01, 0x00, 0x2a, 0x11 }, Remote); + } + + Assert.That(channel.Sent, Has.Count.EqualTo(1)); + Assert.That(channel.Sent[0].Data, Is.EqualTo(new Byte[] { 0x70, 0x00, 0x00, 0x2a })); + Assert.That(channel.Sent[0].EndPoint, Is.EqualTo(Remote)); + } + + [TestCase("4145002a")] + [TestCase("4000002aff01")] + [TestCase("4901002a")] + [TestCase("4020002a")] + public void IdentifiableMalformedConfirmableMessageGetsMatchingReset(String hex) + { + RecordingChannel channel = new RecordingChannel(); + using (CoAPEndPoint endpoint = new CoAPEndPoint(channel, CoapConfig.Default) + { + Executor = Executors.NoThreading + }) + { + endpoint.Start(); + channel.Emit(Convert.FromHexString(hex), Remote); + } + + Assert.That(channel.Sent, Has.Count.EqualTo(1)); + Assert.That(channel.Sent[0].Data, Is.EqualTo(new Byte[] { 0x70, 0x00, 0x00, 0x2a })); + Assert.That(channel.Sent[0].EndPoint, Is.EqualTo(Remote)); + } + + [Test] + public void MalformedNonConfirmableRequestDoesNotGetReset() + { + RecordingChannel channel = new RecordingChannel(); + using (CoAPEndPoint endpoint = new CoAPEndPoint(channel, CoapConfig.Default) + { + Executor = Executors.NoThreading + }) + { + endpoint.Start(); + channel.Emit(new Byte[] { 0x50, 0x01, 0x00, 0x2a, 0x11 }, Remote); + } + + Assert.That(channel.Sent, Is.Empty); + } + + [Test] + public void ShortHeadersAndUnsupportedVersionsAreSilentlyDropped() + { + RecordingChannel channel = new RecordingChannel(); + using (CoAPEndPoint endpoint = new CoAPEndPoint(channel, CoapConfig.Default) + { + Executor = Executors.NoThreading + }) + { + endpoint.Start(); + endpoint.ReceivingRequest += (sender, e) => + { + Assert.Fail("Malformed fixed header reached the request pipeline."); + }; + channel.Emit(new Byte[] { 0x40, 0x01 }, Remote); + channel.Emit(new Byte[] { 0x00, 0x01, 0x00, 0x01 }, Remote); + channel.Emit(new Byte[] { 0x80, 0x01, 0x00, 0x01 }, Remote); + } + + Assert.That(channel.Sent, Is.Empty); + } + + [Test] + public void CancelledMalformedMessageResetIsNotSent() + { + RecordingChannel channel = new RecordingChannel(); + using (CoAPEndPoint endpoint = new CoAPEndPoint(channel, CoapConfig.Default) + { + Executor = Executors.NoThreading + }) + { + endpoint.Start(); + endpoint.SendingEmptyMessage += (sender, e) => e.Message.IsCancelled = true; + channel.Emit(new Byte[] { 0x40, 0x01, 0x00, 0x2a, 0x11 }, Remote); + } + + Assert.That(channel.Sent, Is.Empty); + } + + [Test] + public void MalformedResponseAndEmptyMessageAreDroppedWithoutReset() + { + RecordingChannel channel = new RecordingChannel(); + using (CoAPEndPoint endpoint = new CoAPEndPoint(channel, CoapConfig.Default) + { + Executor = Executors.NoThreading + }) + { + endpoint.Start(); + // ACK response declares a one-byte token but ends at the header. + channel.Emit(new Byte[] { 0x61, 0x45, 0x00, 0x01 }, Remote); + // Empty ACK with a payload marker is malformed and must not be a ping. + channel.Emit(new Byte[] { 0x60, 0x00, 0x00, 0x02, 0xff, 0x01 }, Remote); + channel.Emit(new Byte[] { 0x50, 0x00, 0x00, 0x04 }, Remote); + } + + Assert.That(channel.Sent, Is.Empty); + } + + private sealed class RecordingChannel : IChannel + { + public event EventHandler DataReceived; + + public List Sent { get; } = new List(); + + public NetworkEndPoint LocalEndPoint { get; } = new IPEndPoint(IPAddress.Loopback, 0); + + public void Start() + { } + + public void Stop() + { } + + public void Send(Byte[] data, NetworkEndPoint endpoint) + { + Sent.Add(new SentDatagram(data.ToArray(), endpoint)); + } + + public void Emit(Byte[] data, NetworkEndPoint endpoint) + { + DataReceived?.Invoke(this, new DataReceivedEventArgs(data, endpoint)); + } + + public void Dispose() + { } + } + + private sealed class SentDatagram + { + public SentDatagram(Byte[] data, NetworkEndPoint endPoint) + { + Data = data; + EndPoint = endPoint; + } + + public Byte[] Data { get; } + + public NetworkEndPoint EndPoint { get; } + } + } +} diff --git a/CoAP.Test/MatcherProtocolTest.cs b/CoAP.Test/MatcherProtocolTest.cs new file mode 100644 index 0000000..e5b21d0 --- /dev/null +++ b/CoAP.Test/MatcherProtocolTest.cs @@ -0,0 +1,511 @@ +using System; +using System.Net; +using System.Reflection; +using NUnit.Framework; + +using CoAP.Net; + +namespace CoAP +{ + [TestFixture] + public sealed class MatcherProtocolTest + { + private static readonly IPEndPoint LocalEndpoint = + new IPEndPoint(IPAddress.Loopback, 51000); + private static readonly IPEndPoint RemoteEndpoint = + new IPEndPoint(IPAddress.Loopback, 5683); + private static readonly IPEndPoint OtherRemoteEndpoint = + new IPEndPoint(IPAddress.Loopback, 5684); + + [Test] + public void SeparateResponseFromDifferentEndpointDoesNotMatchToken() + { + object matcher = CreateMatcher(); + try + { + Request request = CreateRequest(0x1201, false, RemoteEndpoint); + Exchange exchange = new Exchange(request, Origin.Local); + Invoke(matcher, "SendRequest", exchange, request); + + Response response = CreateResponse(request, MessageType.NON, 0x2201, OtherRemoteEndpoint); + + Assert.That(ReceiveResponse(matcher, response), Is.Null); + } + finally + { + ((IDisposable)matcher).Dispose(); + } + } + + [Test] + public void PiggybackedResponseRequiresRequestMessageId() + { + object matcher = CreateMatcher(); + try + { + Request request = CreateRequest(0x1202, false, RemoteEndpoint); + Exchange exchange = new Exchange(request, Origin.Local); + Invoke(matcher, "SendRequest", exchange, request); + + Response response = CreateResponse(request, MessageType.ACK, 0x2202, RemoteEndpoint); + + Assert.That(ReceiveResponse(matcher, response), Is.Null); + } + finally + { + ((IDisposable)matcher).Dispose(); + } + } + + [Test] + public void SeparateResponseFromRequestEndpointMatchesToken() + { + object matcher = CreateMatcher(); + try + { + Request request = CreateRequest(0x1203, false, RemoteEndpoint); + Exchange exchange = new Exchange(request, Origin.Local); + Invoke(matcher, "SendRequest", exchange, request); + + Response response = CreateResponse(request, MessageType.NON, 0x2203, RemoteEndpoint); + + Assert.That(ReceiveResponse(matcher, response), Is.SameAs(exchange)); + } + finally + { + ((IDisposable)matcher).Dispose(); + } + } + + [Test] + public void MulticastResponseMayComeFromDifferentEndpoint() + { + object matcher = CreateMatcher(); + try + { + Request request = CreateRequest( + 0x1204, + true, + new IPEndPoint(IPAddress.Parse("239.255.0.1"), 5683)); + Exchange exchange = new Exchange(request, Origin.Local); + Invoke(matcher, "SendRequest", exchange, request); + + Response response = CreateResponse(request, MessageType.NON, 0x2204, OtherRemoteEndpoint); + + Assert.That(ReceiveResponse(matcher, response), Is.SameAs(exchange)); + } + finally + { + ((IDisposable)matcher).Dispose(); + } + } + + [Test] + public void EqualTokensForDifferentPeersRemainIndependent() + { + object matcher = CreateMatcher(); + try + { + Request first = CreateRequest(0x1205, false, RemoteEndpoint); + Request second = CreateRequest(0x1206, false, OtherRemoteEndpoint); + Exchange firstExchange = new Exchange(first, Origin.Local); + Exchange secondExchange = new Exchange(second, Origin.Local); + Invoke(matcher, "SendRequest", firstExchange, first); + Invoke(matcher, "SendRequest", secondExchange, second); + + Assert.That(ReceiveResponse(matcher, + CreateResponse(first, MessageType.NON, 0x2205, RemoteEndpoint)), + Is.SameAs(firstExchange)); + firstExchange.Complete = true; + + Assert.That(ReceiveResponse(matcher, + CreateResponse(second, MessageType.NON, 0x2206, OtherRemoteEndpoint)), + Is.SameAs(secondExchange)); + } + finally + { + ((IDisposable)matcher).Dispose(); + } + } + + [Test] + public void EqualTokenHashesDoNotMatchDifferentTokenBytes() + { + object matcher = CreateMatcher(); + try + { + Request request = CreateRequest(0x1207, false, RemoteEndpoint); + request.Token = new Byte[] { 0x5c, 0x09, 0x00, 0x00, 0x00 }; + Exchange exchange = new Exchange(request, Origin.Local); + Invoke(matcher, "SendRequest", exchange, request); + + Response response = CreateResponse(request, MessageType.NON, 0x2207, RemoteEndpoint); + response.Token = new Byte[] { 0x3f, 0xbc, 0x00, 0x00, 0x00 }; + + Assert.That(CoAP.Util.ByteArrayUtils.ComputeHash(request.Token), + Is.EqualTo(CoAP.Util.ByteArrayUtils.ComputeHash(response.Token))); + Assert.That(ReceiveResponse(matcher, response), Is.Null); + } + finally + { + ((IDisposable)matcher).Dispose(); + } + } + + [TestCase(MessageType.ACK)] + [TestCase(MessageType.RST)] + public void EmptyMessageFromWrongEndpointDoesNotConsumePendingMessage(MessageType type) + { + object matcher = CreateMatcher(); + try + { + Request request = CreateRequest(0x1208, false, RemoteEndpoint); + Exchange exchange = new Exchange(request, Origin.Local); + Invoke(matcher, "SendRequest", exchange, request); + + EmptyMessage wrong = new EmptyMessage(type); + wrong.ID = request.ID; + wrong.Source = OtherRemoteEndpoint; + Assert.That(Invoke(matcher, "ReceiveEmptyMessage", wrong), Is.Null); + + EmptyMessage correct = new EmptyMessage(type); + correct.ID = request.ID; + correct.Source = RemoteEndpoint; + Assert.That(Invoke(matcher, "ReceiveEmptyMessage", correct), Is.SameAs(exchange)); + } + finally + { + ((IDisposable)matcher).Dispose(); + } + } + + [Test] + public void EmptyAcknowledgementMatchesSentResponseDestination() + { + object matcher = CreateMatcher(); + try + { + Request request = CreateRequest(0x1209, false, RemoteEndpoint); + request.Source = RemoteEndpoint; + Exchange exchange = new Exchange(request, Origin.Remote); + Response response = CreateResponse(request, MessageType.CON, 0x2209, LocalEndpoint); + response.Destination = RemoteEndpoint; + exchange.CurrentResponse = response; + Invoke(matcher, "SendResponse", exchange, response); + + EmptyMessage wrong = new EmptyMessage(MessageType.ACK); + wrong.ID = response.ID; + wrong.Source = OtherRemoteEndpoint; + Assert.That(Invoke(matcher, "ReceiveEmptyMessage", wrong), Is.Null); + + EmptyMessage correct = new EmptyMessage(MessageType.ACK); + correct.ID = response.ID; + correct.Source = RemoteEndpoint; + Assert.That(Invoke(matcher, "ReceiveEmptyMessage", correct), Is.SameAs(exchange)); + } + finally + { + ((IDisposable)matcher).Dispose(); + } + } + + [Test] + public void DuplicateMessageIdWithDifferentTokenDoesNotMatchEarlierResponse() + { + object matcher = CreateMatcher(); + try + { + Request request = CreateRequest(0x1210, false, RemoteEndpoint); + Exchange exchange = new Exchange(request, Origin.Local); + Invoke(matcher, "SendRequest", exchange, request); + Response response = CreateResponse(request, MessageType.NON, 0x2210, RemoteEndpoint); + Assert.That(ReceiveResponse(matcher, response), Is.SameAs(exchange)); + + Response unexpected = CreateResponse(request, MessageType.NON, response.ID, RemoteEndpoint); + unexpected.Token = new Byte[] { 0x07, 0x08, 0x09, 0x0a }; + + Assert.That(ReceiveResponse(matcher, unexpected), Is.Null); + } + finally + { + ((IDisposable)matcher).Dispose(); + } + } + + [TestCase(true, MessageType.ACK)] + [TestCase(true, MessageType.CON)] + [TestCase(true, MessageType.NON)] + [TestCase(false, MessageType.ACK)] + [TestCase(false, MessageType.CON)] + [TestCase(false, MessageType.NON)] + public void IPv4MappedResponseMatchesIPv4Peer(Boolean mappedDestination, MessageType type) + { + object matcher = CreateMatcher(); + try + { + Request request = CreateRequest(0x1301, false, CreateIPv4Endpoint(mappedDestination, 5683)); + Exchange exchange = new Exchange(request, Origin.Local); + Invoke(matcher, "SendRequest", exchange, request); + + Response response = CreateResponse(request, type, + type == MessageType.ACK ? request.ID : 0x2301, + CreateIPv4Endpoint(!mappedDestination, 5683)); + + Assert.That(ReceiveResponse(matcher, response), Is.SameAs(exchange)); + } + finally + { + ((IDisposable)matcher).Dispose(); + } + } + + [TestCase(true, MessageType.ACK)] + [TestCase(true, MessageType.RST)] + [TestCase(false, MessageType.ACK)] + [TestCase(false, MessageType.RST)] + public void IPv4MappedEmptyMessageMatchesPendingRequest(Boolean mappedDestination, MessageType type) + { + object matcher = CreateMatcher(); + try + { + Request request = CreateRequest(0x1302, false, CreateIPv4Endpoint(mappedDestination, 5683)); + Exchange exchange = new Exchange(request, Origin.Local); + Invoke(matcher, "SendRequest", exchange, request); + + EmptyMessage message = new EmptyMessage(type) + { + ID = request.ID, + Source = CreateIPv4Endpoint(!mappedDestination, 5683) + }; + + Assert.That(Invoke(matcher, "ReceiveEmptyMessage", message), Is.SameAs(exchange)); + } + finally + { + ((IDisposable)matcher).Dispose(); + } + } + + [TestCase(true, MessageType.ACK)] + [TestCase(true, MessageType.RST)] + [TestCase(false, MessageType.ACK)] + [TestCase(false, MessageType.RST)] + public void IPv4MappedEmptyMessageMatchesPendingResponse(Boolean mappedDestination, MessageType type) + { + object matcher = CreateMatcher(); + try + { + Request request = CreateRequest(0x1303, false, LocalEndpoint); + request.Source = CreateIPv4Endpoint(mappedDestination, 5683); + Exchange exchange = new Exchange(request, Origin.Remote); + Response response = CreateResponse(request, MessageType.CON, 0x2303, LocalEndpoint); + response.Destination = request.Source; + exchange.CurrentResponse = response; + Invoke(matcher, "SendResponse", exchange, response); + + EmptyMessage message = new EmptyMessage(type) + { + ID = response.ID, + Source = CreateIPv4Endpoint(!mappedDestination, 5683) + }; + + Assert.That(Invoke(matcher, "ReceiveEmptyMessage", message), Is.SameAs(exchange)); + } + finally + { + ((IDisposable)matcher).Dispose(); + } + } + + [TestCase(true)] + [TestCase(false)] + public void IPv4MappedResponseStillRequiresMatchingPort(Boolean mappedDestination) + { + object matcher = CreateMatcher(); + try + { + Request request = CreateRequest(0x1304, false, CreateIPv4Endpoint(mappedDestination, 5683)); + Exchange exchange = new Exchange(request, Origin.Local); + Invoke(matcher, "SendRequest", exchange, request); + + Response wrong = CreateResponse(request, MessageType.ACK, request.ID, + CreateIPv4Endpoint(!mappedDestination, 5684)); + Assert.That(ReceiveResponse(matcher, wrong), Is.Null); + Response correct = CreateResponse(request, MessageType.ACK, request.ID, + CreateIPv4Endpoint(!mappedDestination, 5683)); + Assert.That(ReceiveResponse(matcher, correct), Is.SameAs(exchange)); + } + finally + { + ((IDisposable)matcher).Dispose(); + } + } + + [TestCase(MessageType.ACK)] + [TestCase(MessageType.RST)] + public void IPv4MappedEmptyMessageStillRequiresMatchingPort(MessageType type) + { + object matcher = CreateMatcher(); + try + { + Request request = CreateRequest(0x1305, false, CreateIPv4Endpoint(true, 5683)); + Exchange exchange = new Exchange(request, Origin.Local); + Invoke(matcher, "SendRequest", exchange, request); + + EmptyMessage message = new EmptyMessage(type) + { + ID = request.ID, + Source = CreateIPv4Endpoint(false, 5684) + }; + Assert.That(Invoke(matcher, "ReceiveEmptyMessage", message), Is.Null); + message.Source = CreateIPv4Endpoint(false, 5683); + Assert.That(Invoke(matcher, "ReceiveEmptyMessage", message), Is.SameAs(exchange)); + } + finally + { + ((IDisposable)matcher).Dispose(); + } + } + + [Test] + public void NativeIPv6ResponseStillRequiresMatchingScopeId() + { + object matcher = CreateMatcher(); + try + { + Request request = CreateRequest(0x1306, false, CreateScopedIPv6Endpoint(7)); + Exchange exchange = new Exchange(request, Origin.Local); + Invoke(matcher, "SendRequest", exchange, request); + + Response wrong = CreateResponse(request, MessageType.ACK, request.ID, + CreateScopedIPv6Endpoint(8)); + Assert.That(ReceiveResponse(matcher, wrong), Is.Null); + Response correct = CreateResponse(request, MessageType.ACK, request.ID, + CreateScopedIPv6Endpoint(7)); + Assert.That(ReceiveResponse(matcher, correct), Is.SameAs(exchange)); + } + finally + { + ((IDisposable)matcher).Dispose(); + } + } + + [TestCase(MessageType.ACK)] + [TestCase(MessageType.RST)] + public void NativeIPv6EmptyMessageStillRequiresMatchingScopeId(MessageType type) + { + object matcher = CreateMatcher(); + try + { + Request request = CreateRequest(0x1307, false, CreateScopedIPv6Endpoint(7)); + Exchange exchange = new Exchange(request, Origin.Local); + Invoke(matcher, "SendRequest", exchange, request); + + EmptyMessage message = new EmptyMessage(type) + { + ID = request.ID, + Source = CreateScopedIPv6Endpoint(8) + }; + Assert.That(Invoke(matcher, "ReceiveEmptyMessage", message), Is.Null); + message.Source = CreateScopedIPv6Endpoint(7); + Assert.That(Invoke(matcher, "ReceiveEmptyMessage", message), Is.SameAs(exchange)); + } + finally + { + ((IDisposable)matcher).Dispose(); + } + } + + [Test] + public void CustomEndpointKeepsItsOwnEqualitySemantics() + { + object matcher = CreateMatcher(); + try + { + Request request = CreateRequest(0x1308, false, new NamedEndPoint("peer")); + Exchange exchange = new Exchange(request, Origin.Local); + Invoke(matcher, "SendRequest", exchange, request); + + Response wrong = CreateResponse(request, MessageType.ACK, request.ID, + new NamedEndPoint("other")); + Assert.That(ReceiveResponse(matcher, wrong), Is.Null); + Response correct = CreateResponse(request, MessageType.ACK, request.ID, + new NamedEndPoint("peer")); + Assert.That(ReceiveResponse(matcher, correct), Is.SameAs(exchange)); + } + finally + { + ((IDisposable)matcher).Dispose(); + } + } + + private static IPEndPoint CreateIPv4Endpoint(Boolean mapped, Int32 port) + { + return new IPEndPoint(mapped ? IPAddress.Loopback.MapToIPv6() : IPAddress.Loopback, port); + } + + private static IPEndPoint CreateScopedIPv6Endpoint(Int64 scopeId) + { + return new IPEndPoint(new IPAddress(IPAddress.Parse("fe80::1234").GetAddressBytes(), scopeId), 5683); + } + + private sealed class NamedEndPoint : System.Net.EndPoint + { + private readonly String _name; + + public NamedEndPoint(String name) + { + _name = name; + } + + public override Boolean Equals(Object obj) + { + NamedEndPoint other = obj as NamedEndPoint; + return other != null && String.Equals(_name, other._name, StringComparison.Ordinal); + } + + public override Int32 GetHashCode() + { + return StringComparer.Ordinal.GetHashCode(_name); + } + } + + private static object CreateMatcher() + { + Type matcherType = typeof(CoapClient).Assembly.GetType("CoAP.Net.Matcher", true); + return Activator.CreateInstance(matcherType, new CoapConfig()); + } + + private static Request CreateRequest(Int32 id, Boolean multicast, System.Net.EndPoint destination) + { + Request request = Request.NewGet(); + request.ID = id; + request.Token = new Byte[] { 0x01, 0x02, 0x03, 0x04 }; + request.Source = LocalEndpoint; + request.Destination = destination; + request.Multicast = multicast; + return request; + } + + private static Response CreateResponse(Request request, MessageType type, Int32 id, System.Net.EndPoint source) + { + Response response = Response.CreateResponse(request, StatusCode.Content); + response.Type = type; + response.ID = id; + response.Source = source; + response.Destination = LocalEndpoint; + return response; + } + + private static Exchange ReceiveResponse(object matcher, Response response) + { + return (Exchange)Invoke(matcher, "ReceiveResponse", response); + } + + private static object Invoke(object target, String methodName, params object[] arguments) + { + return target.GetType().GetMethod(methodName, BindingFlags.Instance | BindingFlags.Public) + .Invoke(target, arguments); + } + } +} diff --git a/HANDOFF.md b/HANDOFF.md new file mode 100644 index 0000000..9237f66 --- /dev/null +++ b/HANDOFF.md @@ -0,0 +1,18 @@ +# CoAP.NET engineering handoff + +## 2026-11-13 (Asia/Shanghai): standards and UDP interoperability + +- Baseline: master@1abe69a0edaf55147ad6bccaa4e012aea87a8252 (v3.0.1). The original SonnetDB submodule remains unchanged, including its existing parent gitlink difference. +- User authorization covers research, GitHub issues, parallel implementation, commits, push and merge. It does not cover tags, package publication, deployment or production configuration. +- User decision: prioritize UDP/DTLS device integration and interoperability, following current formal and widely used CoAP standards. +- GitHub issues #20–#31 were created once and independently read back. #20/#21/#22 are the first implementation slices; the remaining option policy, lifecycle, transport and security contracts stay open. +- Three implementation clones: C:/Users/mysti/.codex/coap-repos/parser, matcher, blockwise. Integration clone: C:/Users/mysti/.codex/coap-repos/integration. Each clone starts from the same canonical commit and owns disjoint source/test paths. +- In four managed worktrees, git rev-parse returned the shared submodule metadata directory as the worktree root and status showed all tracked files deleted. The canonical submodule stayed clean; the cause was not fully diagnosed. Archive returned an ownership error, so the four directories were preserved and are not used for source changes or builds. Do not delete them without a verified recovery path. +- Audit entry: docs/coap-standards-roadmap.md. It separates current code evidence, README claims, optional RFCs, and unrun interoperability/NativeAOT/package/field gates. The registry option19 compatibility choice was sent to the user and remains pending; no default behavior change is inferred from elapsed time. +- First integrated candidate: 207/207 Release tests PASS, owned-source format PASS, ResourceMvc Release build 0 warnings/0 errors, diff check PASS. See docs/audits/coap-20261113/validation-first-wave.json. Original baseline failures and the Block1 review correction remain recorded. CI, peer interoperability, NativeAOT execution, package publication and field tests have their own gates. +- No persistent service was started. Task-owned process groups were bounded and cleaned. Local clones, tests and necessary evidence are retained for review; shared processes and the original SonnetDB worktree were preserved. +- Review follow-up: critical classification commit 258f9e987dd31955bb4a21305ea599d097996a9f is integrated separately from the pending option19 decision. The first local merge 58d29ea had a staged whitespace-check failure (extra EOF blank line in a new test) that its wrapper failed to block; the follow-up removes it, keeps the history, and requires all final gates before push. The 207-test receipt belongs to that first source snapshot; the follow-up's complete suite is recorded separately. +- Final candidate: 219/219 Release tests PASS (0 fail/skip) and owned-source formatting PASS. Exact source hashes and commands are in docs/audits/coap-20261113/validation-final.json; the final staged whitespace gate must pass before the merge commit and push. Source, peer, AOT, package and field gates are not conflated. +- Next order: resolve #23's compatibility decision, finish #28 option semantics and #29 lifecycle, then #26 peer matrix and #24/#25 common extensions. #27/#30/#31 remain distinct transport/security capabilities. No legacy option19 semantic change has been made without the pending answer. +- PR32 at 937e32cc passed Linux 219/219 and pack, but automatic review raised four actionable boundaries. Follow-up commits 41ac813a (mapped endpoint normalization) and 6152facb (Block1 serialization/invalid ACK/no-state handling) address them, with primary-agent endpoint reproductions first 6 FAIL/7 PASS and then 13/13 PASS. The combined follow-up passed 258/258 Release tests, 0 skipped, and owned-source format. The 219 receipt remains historical; exact follow-up hashes and review links are in validation-review.json. Review replies/CI/merge are independently read back after push. +- Additional survey covers up to 100 CoAP-topic candidates (21 named languages) and embedded/codec/LwM2M/testing layers. Current Anjay non-commercial licensing is recorded; no code from it was copied. Topic metadata is a candidate inventory, not 100 independent compliant implementations. diff --git a/README.md b/README.md index fac8133..8b38822 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ AOT analyzer compatibility, Resource/MVC-style hosting, and optional DTLS PSK transport. See [ROADMAP.md](ROADMAP.md) for the CoAP route adapter and low-allocation plan. +Current protocol gaps, upstream/fork review, and the formal RFC/IANA baseline +are tracked in the [standards and interoperability roadmap](docs/coap-standards-roadmap.md). The Resource/MVC sample and migration guide are available in [CoAP.Example/CoAP.ResourceMvc](CoAP.Example/CoAP.ResourceMvc) and [docs/resource-mvc-migration.md](docs/resource-mvc-migration.md). C12 release diff --git a/ROADMAP.md b/ROADMAP.md index d313f2f..f2ffdfc 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -2,7 +2,7 @@ 本文档只记录 CoAP.NET fork 自身的兼容、MVC Routing、性能和维护路线。CoAP 标准中的 Resource 概念继续保留在协议栈内部;新增 route / endpoint / resource 风格 API 的目的,是给应用代码一个更接近现代 .NET 服务器编程的入口,避免业务代码必须直接继承协议内部 Resource 类型。 -全仓优先级见[根路线](../../ROADMAP.md#当前推进顺序);本文件保留子库内部依赖,不另设与引擎争用的全仓执行顺序。 +独立协议库的当前标准与互操作顺序见 [CoAP 标准路线](docs/coap-standards-roadmap.md)。本文件保留 Resource/MVC 与性能工作的内部依赖,宿主应用的产品路线由各宿主自行维护。 宿主应用只声明业务端点和调用业务服务。路由注册、路由匹配、请求分发、结果执行、资源发现和框架约定应沉淀在 CoAP.NET 内部,最终达到类似 REST API controller 的开发体验。 @@ -98,7 +98,7 @@ public sealed class SensorCoapResource : CoapResourceBase | C12 | `🟡` | benchmark/smoke/analyzer入口已实现;性能与AOT实物验收待补 | 已新增 `CoAP.Benchmarks` route matcher/resource tree benchmark、`CoapC12SmokeTest` 覆盖 blockwise 大 payload、DTLS PSK smoke 和 Observe smoke,并补齐 trim/AOT warning 清单与发布检查清单。 | | C13 | `✅` | 宿主应用迁移落地 | 宿主应用移除手写 route endpoint 注册,改用 `AddCoapServer()`、`AddCoapResources()` 和 `app.MapCoapResources()`;保留自己的业务 resource、业务 DTO、授权、审计和领域服务调用。 | -2026-11-11核查:C0~C11和本仓宿主C13的工程实现保留;C12的测试/benchmark/检查清单存在,不能等同真实NativeAOT宿主或生产性能通过。下一步只补对应运行矩阵,完整证据边界见[生态审计](../../docs/audits/roadmap-audit-20261111/ecosystem.md)。本子库通用协议边界与Resource推荐API不变。 +2026-11-11 历史核查:C0~C11 的工程实现保留;C13 是宿主迁移记录,不代表所有宿主都已迁移。C12 的测试/benchmark/检查清单存在,不能等同真实 NativeAOT 宿主或生产性能通过。2026-11-13 起先按 [CoAP 标准路线](docs/coap-standards-roadmap.md) 修复当前 UDP/DTLS 互操作边界;真实 peer、AOT 和性能分别验收。通用协议边界与 Resource 推荐 API 保持一致。 ## 历史实施依赖与剩余验收 diff --git a/docs/audits/coap-20261113/fork-branches-final.json b/docs/audits/coap-20261113/fork-branches-final.json new file mode 100644 index 0000000..ef0fe96 --- /dev/null +++ b/docs/audits/coap-20261113/fork-branches-final.json @@ -0,0 +1,2544 @@ +{ + "repositories": [ + { + "nameWithOwner": "robertaves/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "RohitGalgali/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "tuga1975/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "SiMet/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "weera00/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "just-fork/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "huaqiuming/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "ulfendk/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "mikkleini/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "726111e6f0ade4dc9a615ce01a49f2911eed0a37" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "Open-Day-For-CSharp/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "MgenChina/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "Johnxiaohu/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "FabienFranck/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "kouweizhong/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "simonpfeifhofer/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "t-than/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "krzysztofwl/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "jmarymee/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "apg", + "target": { + "oid": "d7b93107acfc0c3729554a34d5b6936a4e09ccd5" + } + }, + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "Erguotou/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "HDJN/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "kfarr3/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "1c8cb5335955522c18a8b387167029d30d650b60" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "jimsch/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "OSCOAP", + "target": { + "oid": "122eca53930b9554f8b5e03a3c7ce3db23430f60" + } + }, + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "aishenhaowe/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "digideskio/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "0xF1o/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "master", + "target": { + "oid": "726111e6f0ade4dc9a615ce01a49f2911eed0a37" + } + }, + { + "name": "opentrigger", + "target": { + "oid": "46543549dcbc1106e3313160469c8d2e121a1f6e" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "sangkyunyoon/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "cedf922cb419bf111b55bb230d7c486d87da209c" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "lynnliu/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "bdbfb4a1c8ff667f9769dbd35adcc9056ab7f1f0" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "modulexcite/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "2c64435c59592c295a652496559c0cabd7b50d0e" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "4ant00ra/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "2c64435c59592c295a652496559c0cabd7b50d0e" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "sachinrk/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "434719973ad0cb80807ccd1f79267a8fc10d663a" + } + }, + { + "name": "master", + "target": { + "oid": "49838af75bd6256f372a0343b0842937281e9033" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "vjine/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "434719973ad0cb80807ccd1f79267a8fc10d663a" + } + }, + { + "name": "master", + "target": { + "oid": "49838af75bd6256f372a0343b0842937281e9033" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "wfvvfw/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "434719973ad0cb80807ccd1f79267a8fc10d663a" + } + }, + { + "name": "master", + "target": { + "oid": "066c6c0c2f8ae3413c24035e64fda821487e1f9a" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "kulak/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "dev", + "target": { + "oid": "1398c3f91e0c68ad1f015baf5fb7de2451dca517" + } + }, + { + "name": "feat/dnx", + "target": { + "oid": "f25efe378813a681830ff310637ae99c9fdd5240" + } + }, + { + "name": "feat/dnx-logging", + "target": { + "oid": "5e788cf66228230591a2151267f4153eca08e3d0" + } + }, + { + "name": "feat/dnx-save1", + "target": { + "oid": "1c1b9bc8e386734b16e04a5050480c6cad8c7d74" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "434719973ad0cb80807ccd1f79267a8fc10d663a" + } + }, + { + "name": "master", + "target": { + "oid": "6833a30233deb00fc3a5bd66572a0e9175d99dbf" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "delmet/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "434719973ad0cb80807ccd1f79267a8fc10d663a" + } + }, + { + "name": "master", + "target": { + "oid": "1c8f3629cc407f182265471f3b3ae85c02d12089" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "IntelliTect/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "434719973ad0cb80807ccd1f79267a8fc10d663a" + } + }, + { + "name": "master", + "target": { + "oid": "1c8f3629cc407f182265471f3b3ae85c02d12089" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "rlusian1/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "434719973ad0cb80807ccd1f79267a8fc10d663a" + } + }, + { + "name": "master", + "target": { + "oid": "8464c5e6fe1fcd279ca4829736451625f845898b" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "jlbnet/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "434719973ad0cb80807ccd1f79267a8fc10d663a" + } + }, + { + "name": "master", + "target": { + "oid": "8464c5e6fe1fcd279ca4829736451625f845898b" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "bacsiden/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "434719973ad0cb80807ccd1f79267a8fc10d663a" + } + }, + { + "name": "master", + "target": { + "oid": "8464c5e6fe1fcd279ca4829736451625f845898b" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "bola04053/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "434719973ad0cb80807ccd1f79267a8fc10d663a" + } + }, + { + "name": "master", + "target": { + "oid": "8464c5e6fe1fcd279ca4829736451625f845898b" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "divyang4481/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "434719973ad0cb80807ccd1f79267a8fc10d663a" + } + }, + { + "name": "master", + "target": { + "oid": "06fddabc3626a1f7d39f736b7a90191643a1e5e0" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "martindevans/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "434719973ad0cb80807ccd1f79267a8fc10d663a" + } + }, + { + "name": "master", + "target": { + "oid": "d54c92df570f2181c35913f8789a83730e827d01" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "scheerwonders/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "434719973ad0cb80807ccd1f79267a8fc10d663a" + } + }, + { + "name": "master", + "target": { + "oid": "efdb2af6a95b1fccd81493b9b82a0c3bccfeff62" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "examyes/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "434719973ad0cb80807ccd1f79267a8fc10d663a" + } + }, + { + "name": "master", + "target": { + "oid": "50567e232d983b4fca4c2323c74b46a243c5f5a8" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "omarv74/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "52f1e6e37116886c2f4faaed86a605920f980377" + } + }, + { + "name": "master", + "target": { + "oid": "b069fad2937d15e471445181043ff7f730b6f3a9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "ongec/CoAP.NET-1", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "78bb547ccc0bdeeeb543e001c489e70c1f9497e5" + } + }, + { + "name": "master", + "target": { + "oid": "78bb547ccc0bdeeeb543e001c489e70c1f9497e5" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "raspopov/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "broadcast", + "target": { + "oid": "73562acb583528adc9052bbf6f2b136221c48329" + } + }, + { + "name": "client-test", + "target": { + "oid": "78db4c2922f90fed960279af28b7581eceb73659" + } + }, + { + "name": "master", + "target": { + "oid": "f48514ca3c3a08e36106813fad1e9dd0b7bad2da" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "andylifeLee/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "moisoiu/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "ltrujillo-schreder/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "cfqdream/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "lanicon/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "n-develop/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "chaithat/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "Frunck8206/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "xhowar/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "world-direct/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "develop", + "target": { + "oid": "e827c454c961324b343a3928ab8c21e659a31f12" + } + }, + { + "name": "feature/coaps", + "target": { + "oid": "7b8a7d123e873a3f3f7d6a7d7b036e93a9e54c00" + } + }, + { + "name": "feature/diagnostics", + "target": { + "oid": "8b468fb6d2ec974a49b2d5dcf7cc63927a2d0f2b" + } + }, + { + "name": "feature/dtlsEval", + "target": { + "oid": "b544ee8dbbef19e5f805ad283b55f60f3e7e0c82" + } + }, + { + "name": "feature/dtlsbouncy", + "target": { + "oid": "2fa75c62718ecee8c01c3a32b80c1e7d01cf5ada" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "ea0845b22bef582657b6ab8259de378f9c1c6305" + } + }, + { + "name": "hotfix/block1", + "target": { + "oid": "c412b91dfbfcecf6dcb213e027ce517b946e90ff" + } + }, + { + "name": "master", + "target": { + "oid": "4fe99ce5ccf8e8e1877701ef3393ec4871fe8c87" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "vermion/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "bjorndaniel/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "c836eee230de3d215e4fd8d33feae281c92d27d2" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "frossini/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "mfalkvidd/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "96818bdca520c554973bc71c3fa4d145f6936354" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "fancycoconut/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "feature-build", + "target": { + "oid": "d17b1ef7545164c1cc2d7880774bad47803b60a6" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "seuzht/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "rrader26/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "chuggafan/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "dystudio/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "fuxunyang/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "leedongju/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "davidrpk/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "IoTSharp/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "dependabot/nuget/Microsoft.NET.Test.Sdk-16.10.0", + "target": { + "oid": "0ce5b9c540f5b111477954f35166acd5a72f06b9" + } + }, + { + "name": "dependabot/nuget/NUnit3TestAdapter-4.0.0", + "target": { + "oid": "696a915c7e53644f484a27dd8cedd4621a361d7b" + } + }, + { + "name": "develop", + "target": { + "oid": "55457b414bb9ec02715828b57cf446d9a4690e71" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "1abe69a0edaf55147ad6bccaa4e012aea87a8252" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "AlexAldoshin/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "zpfcaca/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "ygqbasic/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + }, + { + "nameWithOwner": "Ziyad2/CoAP.NET", + "refs": { + "nodes": [ + { + "name": "coap-08", + "target": { + "oid": "0710cb90a2aaa16ae24690dba7e662b2573f022b" + } + }, + { + "name": "coap-13", + "target": { + "oid": "d0590e886d0e5e8db4136d8984a66081c610ad5c" + } + }, + { + "name": "gh-pages", + "target": { + "oid": "763c4df54ac4a11a22b95030748fbce7571e23b1" + } + }, + { + "name": "master", + "target": { + "oid": "7ffdb9420d282d6cd4c1abd0eea04b0995157ed9" + } + } + ], + "pageInfo": { + "hasNextPage": false + } + } + } + ], + "errors": [ + "Could not resolve to a Repository with the name 'liumanduo/Aurora.CoAP.NET'.", + "Could not resolve to a Repository with the name 'xhwyli/CoAP.NET'." + ] +} diff --git a/docs/audits/coap-20261113/fork-review.json b/docs/audits/coap-20261113/fork-review.json new file mode 100644 index 0000000..0799f91 --- /dev/null +++ b/docs/audits/coap-20261113/fork-review.json @@ -0,0 +1,1248 @@ +[ + { + "sha": "d7b93107acfc0c3729554a34d5b6936a4e09ccd5", + "refs": [ + { + "repo": "jmarymee/CoAP.NET", + "branch": "apg" + } + ], + "status": "diverged", + "ahead": 1, + "behind": 54, + "totalCommits": 1, + "listedCommits": 1, + "filesReturned": 11, + "commits": [ + { + "sha": "d7b93107acfc0c3729554a34d5b6936a4e09ccd5", + "title": "Updated to latest .net461" + } + ], + "decision": "历史平台/构建/日志变更,当前net10/ILogger底座已替代;不直接整分支合并。" + }, + { + "sha": "1c8cb5335955522c18a8b387167029d30d650b60", + "refs": [ + { + "repo": "kfarr3/CoAP.NET", + "branch": "master" + } + ], + "status": "diverged", + "ahead": 2, + "behind": 54, + "totalCommits": 2, + "listedCommits": 2, + "filesReturned": 24, + "commits": [ + { + "sha": "13f41b92e23e6022cc4bbb7456bb97964c70e0c7", + "title": "Added support for dTLS" + }, + { + "sha": "1c8cb5335955522c18a8b387167029d30d650b60", + "title": "Updated build settings" + } + ], + "decision": "历史平台/构建/日志变更,当前net10/ILogger底座已替代;不直接整分支合并。" + }, + { + "sha": "122eca53930b9554f8b5e03a3c7ce3db23430f60", + "refs": [ + { + "repo": "jimsch/CoAP.NET", + "branch": "OSCOAP" + } + ], + "status": "diverged", + "ahead": 3, + "behind": 54, + "totalCommits": 3, + "listedCommits": 3, + "filesReturned": 21, + "commits": [ + { + "sha": "d2766e17e42c8d586d48488f84ec3517c3e0713b", + "title": "Initial Cut for review purposes" + }, + { + "sha": "b3c949fa4a4e9af503855ce70703bc1c3528cccd", + "title": "Add in the replay detection testing" + }, + { + "sha": "122eca53930b9554f8b5e03a3c7ce3db23430f60", + "title": "Checkpoint where I am" + } + ], + "decision": "旧OSCOAP未完成,拒绝直接合并。" + }, + { + "sha": "bdbfb4a1c8ff667f9769dbd35adcc9056ab7f1f0", + "refs": [ + { + "repo": "lynnliu/CoAP.NET", + "branch": "master" + } + ], + "status": "diverged", + "ahead": 1, + "behind": 55, + "totalCommits": 1, + "listedCommits": 1, + "filesReturned": 0, + "commits": [ + { + "sha": "bdbfb4a1c8ff667f9769dbd35adcc9056ab7f1f0", + "title": "Merge remote-tracking branch 'smeshlink/master'" + } + ], + "decision": "历史平台/构建/日志变更,当前net10/ILogger底座已替代;不直接整分支合并。" + }, + { + "sha": "1398c3f91e0c68ad1f015baf5fb7de2451dca517", + "refs": [ + { + "repo": "kulak/CoAP.NET", + "branch": "dev" + } + ], + "status": "diverged", + "ahead": 2, + "behind": 80, + "totalCommits": 2, + "listedCommits": 2, + "filesReturned": 4, + "commits": [ + { + "sha": "5e788cf66228230591a2151267f4153eca08e3d0", + "title": "logging enhancements" + }, + { + "sha": "1398c3f91e0c68ad1f015baf5fb7de2451dca517", + "title": "Merge branch 'feat/dnx' into dev" + } + ], + "decision": "历史平台/构建/日志变更,当前net10/ILogger底座已替代;不直接整分支合并。" + }, + { + "sha": "5e788cf66228230591a2151267f4153eca08e3d0", + "refs": [ + { + "repo": "kulak/CoAP.NET", + "branch": "feat/dnx-logging" + } + ], + "status": "diverged", + "ahead": 1, + "behind": 81, + "totalCommits": 1, + "listedCommits": 1, + "filesReturned": 4, + "commits": [ + { + "sha": "5e788cf66228230591a2151267f4153eca08e3d0", + "title": "logging enhancements" + } + ], + "decision": "历史平台/构建/日志变更,当前net10/ILogger底座已替代;不直接整分支合并。" + }, + { + "sha": "1c1b9bc8e386734b16e04a5050480c6cad8c7d74", + "refs": [ + { + "repo": "kulak/CoAP.NET", + "branch": "feat/dnx-save1" + } + ], + "status": "diverged", + "ahead": 2, + "behind": 81, + "totalCommits": 2, + "listedCommits": 2, + "filesReturned": 6, + "commits": [ + { + "sha": "5e788cf66228230591a2151267f4153eca08e3d0", + "title": "logging enhancements" + }, + { + "sha": "1c1b9bc8e386734b16e04a5050480c6cad8c7d74", + "title": "Added modified files. Status of the files is unknown." + } + ], + "decision": "历史平台/构建/日志变更,当前net10/ILogger底座已替代;不直接整分支合并。" + }, + { + "sha": "d54c92df570f2181c35913f8789a83730e827d01", + "refs": [ + { + "repo": "martindevans/CoAP.NET", + "branch": "master" + } + ], + "status": "diverged", + "ahead": 1, + "behind": 94, + "totalCommits": 1, + "listedCommits": 1, + "filesReturned": 1, + "commits": [ + { + "sha": "d54c92df570f2181c35913f8789a83730e827d01", + "title": "Removed 2 lines for mono compatibility" + } + ], + "decision": "历史平台/构建/日志变更,当前net10/ILogger底座已替代;不直接整分支合并。" + }, + { + "sha": "b069fad2937d15e471445181043ff7f730b6f3a9", + "refs": [ + { + "repo": "omarv74/CoAP.NET", + "branch": "master" + } + ], + "status": "diverged", + "ahead": 2, + "behind": 254, + "totalCommits": 2, + "listedCommits": 2, + "filesReturned": 15, + "commits": [ + { + "sha": "2e3a925db226bbfe1ce0ec6c237ac0195efd49f4", + "title": "Added unit and load tests" + }, + { + "sha": "b069fad2937d15e471445181043ff7f730b6f3a9", + "title": "Added IoTLib to send JSON string" + } + ], + "decision": "历史平台/构建/日志变更,当前net10/ILogger底座已替代;不直接整分支合并。" + }, + { + "sha": "73562acb583528adc9052bbf6f2b136221c48329", + "refs": [ + { + "repo": "raspopov/CoAP.NET", + "branch": "broadcast" + } + ], + "status": "diverged", + "ahead": 1, + "behind": 54, + "totalCommits": 1, + "listedCommits": 1, + "filesReturned": 1, + "commits": [ + { + "sha": "73562acb583528adc9052bbf6f2b136221c48329", + "title": "Allow broadcast requests to the servers" + } + ], + "decision": "日志/测试计数可吸纳;广播与旧SDK迁移不整体合并。" + }, + { + "sha": "78db4c2922f90fed960279af28b7581eceb73659", + "refs": [ + { + "repo": "raspopov/CoAP.NET", + "branch": "client-test" + } + ], + "status": "diverged", + "ahead": 1, + "behind": 54, + "totalCommits": 1, + "listedCommits": 1, + "filesReturned": 1, + "commits": [ + { + "sha": "78db4c2922f90fed960279af28b7581eceb73659", + "title": "Fix a bug in the test" + } + ], + "decision": "日志/测试计数可吸纳;广播与旧SDK迁移不整体合并。" + }, + { + "sha": "f48514ca3c3a08e36106813fad1e9dd0b7bad2da", + "refs": [ + { + "repo": "raspopov/CoAP.NET", + "branch": "master" + } + ], + "status": "diverged", + "ahead": 7, + "behind": 54, + "totalCommits": 7, + "listedCommits": 7, + "filesReturned": 234, + "commits": [ + { + "sha": "73562acb583528adc9052bbf6f2b136221c48329", + "title": "Allow broadcast requests to the servers" + }, + { + "sha": "78db4c2922f90fed960279af28b7581eceb73659", + "title": "Fix a bug in the test" + }, + { + "sha": "658c07b2f25c462dc53de39688867f30374f0c5e", + "title": "Update the project to SDK style" + }, + { + "sha": "0cd0f80f1c72af486ed3029d5f1be800642cd9e8", + "title": "Merge branch 'client-test'" + }, + { + "sha": "f025c8c1b6234b12763f51a0126fd1ad8324b84b", + "title": "Merge branch 'broadcast'" + }, + { + "sha": "5550d722de67ac77070fb4cf4474cd884097a47a", + "title": "Upgrade tests from NUnit 2 to NUnit 3" + }, + { + "sha": "f48514ca3c3a08e36106813fad1e9dd0b7bad2da", + "title": "Add the build status badge" + } + ], + "decision": "日志/测试计数可吸纳;广播与旧SDK迁移不整体合并。" + }, + { + "sha": "e827c454c961324b343a3928ab8c21e659a31f12", + "refs": [ + { + "repo": "world-direct/CoAP.NET", + "branch": "develop" + } + ], + "status": "diverged", + "ahead": 12, + "behind": 54, + "totalCommits": 12, + "listedCommits": 12, + "filesReturned": 300, + "commits": [ + { + "sha": "d2a91d5d028027238f93267fa562ab0fbb35eb34", + "title": "removed binaries" + }, + { + "sha": "b88bde73c54dfe44a42267e3dc97a4cf0e413e0c", + "title": "Added log" + }, + { + "sha": "2ece9131a15652b8a63b63a20015443ea85a5cc0", + "title": "Merge pull request #1 from world-direct/develop" + }, + { + "sha": "2db5872cf89175ba2700082272da5d8c939e59ee", + "title": "Basic project structure" + }, + { + "sha": "351c45cca49dd1ed36e4e7136f4a5189ece5fbfa", + "title": "Merge pull request #2 from Zeruxky/feature/migration" + }, + { + "sha": "7de051f5f9f28092af2fc8257173ec9e69527091", + "title": "Bugfix: Blockwise Timeout" + }, + { + "sha": "158187508642a527b718ac9f0aa54a411a570e63", + "title": "added progress report on Put" + }, + { + "sha": "c76dc2d804c5b257f83a93db8e7dee0887efee3f", + "title": "Disabled logging" + }, + { + "sha": "9f06946d473609dfaad07f60868f2316b47df934", + "title": "fix invalid op ex" + }, + { + "sha": "8cd42f44ff65d0ff2bf97d0fb52827c75fa07689", + "title": "Merge develop" + }, + { + "sha": "63a36736cc2f31fd6f4c370953f75f79f515facd", + "title": "Merge pull request #5 from knollsen/feature/progress" + }, + { + "sha": "e827c454c961324b343a3928ab8c21e659a31f12", + "title": "Bugfix Deduplicate block acks" + } + ], + "decision": "只移植经复现的窄修复;不整分支合并。" + }, + { + "sha": "7b8a7d123e873a3f3f7d6a7d7b036e93a9e54c00", + "refs": [ + { + "repo": "world-direct/CoAP.NET", + "branch": "feature/coaps" + } + ], + "status": "diverged", + "ahead": 46, + "behind": 54, + "totalCommits": 46, + "listedCommits": 30, + "filesReturned": 300, + "commits": [ + { + "sha": "d2a91d5d028027238f93267fa562ab0fbb35eb34", + "title": "removed binaries" + }, + { + "sha": "b88bde73c54dfe44a42267e3dc97a4cf0e413e0c", + "title": "Added log" + }, + { + "sha": "2ece9131a15652b8a63b63a20015443ea85a5cc0", + "title": "Merge pull request #1 from world-direct/develop" + }, + { + "sha": "2db5872cf89175ba2700082272da5d8c939e59ee", + "title": "Basic project structure" + }, + { + "sha": "351c45cca49dd1ed36e4e7136f4a5189ece5fbfa", + "title": "Merge pull request #2 from Zeruxky/feature/migration" + }, + { + "sha": "7de051f5f9f28092af2fc8257173ec9e69527091", + "title": "Bugfix: Blockwise Timeout" + }, + { + "sha": "158187508642a527b718ac9f0aa54a411a570e63", + "title": "added progress report on Put" + }, + { + "sha": "c76dc2d804c5b257f83a93db8e7dee0887efee3f", + "title": "Disabled logging" + }, + { + "sha": "9f06946d473609dfaad07f60868f2316b47df934", + "title": "fix invalid op ex" + }, + { + "sha": "8cd42f44ff65d0ff2bf97d0fb52827c75fa07689", + "title": "Merge develop" + }, + { + "sha": "63a36736cc2f31fd6f4c370953f75f79f515facd", + "title": "Merge pull request #5 from knollsen/feature/progress" + }, + { + "sha": "e827c454c961324b343a3928ab8c21e659a31f12", + "title": "Bugfix Deduplicate block acks" + }, + { + "sha": "4cae3e135bcd505f125f986855892cd19b731bab", + "title": "better abstraction" + }, + { + "sha": "47ddf5c873b49cc00c94ded4e3699663f1cb1824", + "title": "add configuration of coap server in servicecollection" + }, + { + "sha": "0b4801a09ad1239a75967b4a62a0440bce34385c", + "title": "add documentation" + }, + { + "sha": "d9c2ded3fc94661e5fcd16fd2e04cd5dd6ba332f", + "title": "feature complete" + }, + { + "sha": "3358435583cb90ffc1bdcad8bf69033d1ba0ae63", + "title": "add microsoft logging" + }, + { + "sha": "8e31ae1e9440b5330718f1c62e674edf09ff0567", + "title": "fix logging and threading" + }, + { + "sha": "df0f8c3a7af7133e7869a5612916e70d721ee655", + "title": "adapt for nuget release" + }, + { + "sha": "6ac623cc2864b1158cf6ab9530086f2139c8a2dc", + "title": "fix reference" + }, + { + "sha": "ef03b4664cf7610b481c8fd9e09d255429a01e69", + "title": "fix configuration" + }, + { + "sha": "f1d5da8da8286bb4e3162f4ad60a4d22667b6d1a", + "title": "add SLL Keyfile exporter" + }, + { + "sha": "f4dcf0b9b344cd0bc95ef7a8bc01c876b4705113", + "title": "fix versioning" + }, + { + "sha": "90d0be13a2c7dc55329e040780be7accfdf3a627", + "title": "fix one off receiving error" + }, + { + "sha": "b901dff4707de762d493da4e6b925d44e1c20883", + "title": "add tracing diagnostics to requests" + }, + { + "sha": "1404d4c0c7a1c5cb26821904642407701525fb58", + "title": "adapt versioning" + }, + { + "sha": "27e1a3e032bf653c1eae7ed509bbfe123ab70916", + "title": "add some dtls metrics" + }, + { + "sha": "d9482b1c6937e08c44e44aaecbab8ce205dee4d5", + "title": "change logging level" + }, + { + "sha": "d71fc75daa4b882be721aa92e211b15d8f0537c3", + "title": "finalize diagnostics" + }, + { + "sha": "54d655c94a2fe02b7163419d29958c53e89d218f", + "title": "fix message id reusage and better traceability of retransmission" + } + ], + "decision": "只移植经复现的窄修复;不整分支合并。" + }, + { + "sha": "8b468fb6d2ec974a49b2d5dcf7cc63927a2d0f2b", + "refs": [ + { + "repo": "world-direct/CoAP.NET", + "branch": "feature/diagnostics" + } + ], + "status": "diverged", + "ahead": 34, + "behind": 54, + "totalCommits": 34, + "listedCommits": 30, + "filesReturned": 300, + "commits": [ + { + "sha": "d2a91d5d028027238f93267fa562ab0fbb35eb34", + "title": "removed binaries" + }, + { + "sha": "b88bde73c54dfe44a42267e3dc97a4cf0e413e0c", + "title": "Added log" + }, + { + "sha": "2ece9131a15652b8a63b63a20015443ea85a5cc0", + "title": "Merge pull request #1 from world-direct/develop" + }, + { + "sha": "2db5872cf89175ba2700082272da5d8c939e59ee", + "title": "Basic project structure" + }, + { + "sha": "351c45cca49dd1ed36e4e7136f4a5189ece5fbfa", + "title": "Merge pull request #2 from Zeruxky/feature/migration" + }, + { + "sha": "7de051f5f9f28092af2fc8257173ec9e69527091", + "title": "Bugfix: Blockwise Timeout" + }, + { + "sha": "158187508642a527b718ac9f0aa54a411a570e63", + "title": "added progress report on Put" + }, + { + "sha": "c76dc2d804c5b257f83a93db8e7dee0887efee3f", + "title": "Disabled logging" + }, + { + "sha": "9f06946d473609dfaad07f60868f2316b47df934", + "title": "fix invalid op ex" + }, + { + "sha": "8cd42f44ff65d0ff2bf97d0fb52827c75fa07689", + "title": "Merge develop" + }, + { + "sha": "63a36736cc2f31fd6f4c370953f75f79f515facd", + "title": "Merge pull request #5 from knollsen/feature/progress" + }, + { + "sha": "e827c454c961324b343a3928ab8c21e659a31f12", + "title": "Bugfix Deduplicate block acks" + }, + { + "sha": "4cae3e135bcd505f125f986855892cd19b731bab", + "title": "better abstraction" + }, + { + "sha": "47ddf5c873b49cc00c94ded4e3699663f1cb1824", + "title": "add configuration of coap server in servicecollection" + }, + { + "sha": "0b4801a09ad1239a75967b4a62a0440bce34385c", + "title": "add documentation" + }, + { + "sha": "d9c2ded3fc94661e5fcd16fd2e04cd5dd6ba332f", + "title": "feature complete" + }, + { + "sha": "3358435583cb90ffc1bdcad8bf69033d1ba0ae63", + "title": "add microsoft logging" + }, + { + "sha": "8e31ae1e9440b5330718f1c62e674edf09ff0567", + "title": "fix logging and threading" + }, + { + "sha": "df0f8c3a7af7133e7869a5612916e70d721ee655", + "title": "adapt for nuget release" + }, + { + "sha": "6ac623cc2864b1158cf6ab9530086f2139c8a2dc", + "title": "fix reference" + }, + { + "sha": "ef03b4664cf7610b481c8fd9e09d255429a01e69", + "title": "fix configuration" + }, + { + "sha": "f1d5da8da8286bb4e3162f4ad60a4d22667b6d1a", + "title": "add SLL Keyfile exporter" + }, + { + "sha": "f4dcf0b9b344cd0bc95ef7a8bc01c876b4705113", + "title": "fix versioning" + }, + { + "sha": "90d0be13a2c7dc55329e040780be7accfdf3a627", + "title": "fix one off receiving error" + }, + { + "sha": "b901dff4707de762d493da4e6b925d44e1c20883", + "title": "add tracing diagnostics to requests" + }, + { + "sha": "1404d4c0c7a1c5cb26821904642407701525fb58", + "title": "adapt versioning" + }, + { + "sha": "27e1a3e032bf653c1eae7ed509bbfe123ab70916", + "title": "add some dtls metrics" + }, + { + "sha": "d9482b1c6937e08c44e44aaecbab8ce205dee4d5", + "title": "change logging level" + }, + { + "sha": "d71fc75daa4b882be721aa92e211b15d8f0537c3", + "title": "finalize diagnostics" + }, + { + "sha": "54d655c94a2fe02b7163419d29958c53e89d218f", + "title": "fix message id reusage and better traceability of retransmission" + } + ], + "decision": "只移植经复现的窄修复;不整分支合并。" + }, + { + "sha": "b544ee8dbbef19e5f805ad283b55f60f3e7e0c82", + "refs": [ + { + "repo": "world-direct/CoAP.NET", + "branch": "feature/dtlsEval" + } + ], + "status": "diverged", + "ahead": 19, + "behind": 54, + "totalCommits": 19, + "listedCommits": 19, + "filesReturned": 300, + "commits": [ + { + "sha": "d2a91d5d028027238f93267fa562ab0fbb35eb34", + "title": "removed binaries" + }, + { + "sha": "b88bde73c54dfe44a42267e3dc97a4cf0e413e0c", + "title": "Added log" + }, + { + "sha": "2ece9131a15652b8a63b63a20015443ea85a5cc0", + "title": "Merge pull request #1 from world-direct/develop" + }, + { + "sha": "2db5872cf89175ba2700082272da5d8c939e59ee", + "title": "Basic project structure" + }, + { + "sha": "351c45cca49dd1ed36e4e7136f4a5189ece5fbfa", + "title": "Merge pull request #2 from Zeruxky/feature/migration" + }, + { + "sha": "7de051f5f9f28092af2fc8257173ec9e69527091", + "title": "Bugfix: Blockwise Timeout" + }, + { + "sha": "158187508642a527b718ac9f0aa54a411a570e63", + "title": "added progress report on Put" + }, + { + "sha": "c76dc2d804c5b257f83a93db8e7dee0887efee3f", + "title": "Disabled logging" + }, + { + "sha": "9f06946d473609dfaad07f60868f2316b47df934", + "title": "fix invalid op ex" + }, + { + "sha": "8cd42f44ff65d0ff2bf97d0fb52827c75fa07689", + "title": "Merge develop" + }, + { + "sha": "63a36736cc2f31fd6f4c370953f75f79f515facd", + "title": "Merge pull request #5 from knollsen/feature/progress" + }, + { + "sha": "e827c454c961324b343a3928ab8c21e659a31f12", + "title": "Bugfix Deduplicate block acks" + }, + { + "sha": "3d3baa8059936a428fad69ad63d5118a7069ca9e", + "title": "first evaluation of dtls" + }, + { + "sha": "470b4ce399487388c0e5f4eca6e277b4e6c86a54", + "title": "wolfssl release" + }, + { + "sha": "552fa3298c42f696beaa387bbb501912faec6fc8", + "title": "Adds fixes" + }, + { + "sha": "f795ee2d8c90f3f531b0ae6dc9d332860a6fbef9", + "title": "reduce task magic" + }, + { + "sha": "a86477235d49c6543956af374c1e3436411023f8", + "title": "finalize without timeout" + }, + { + "sha": "3cced8c493eaf112db06a76c469697a1614a9262", + "title": "enable timeout of dtls sessions" + }, + { + "sha": "b544ee8dbbef19e5f805ad283b55f60f3e7e0c82", + "title": "add documentation" + } + ], + "decision": "只移植经复现的窄修复;不整分支合并。" + }, + { + "sha": "2fa75c62718ecee8c01c3a32b80c1e7d01cf5ada", + "refs": [ + { + "repo": "world-direct/CoAP.NET", + "branch": "feature/dtlsbouncy" + } + ], + "status": "diverged", + "ahead": 22, + "behind": 54, + "totalCommits": 22, + "listedCommits": 22, + "filesReturned": 300, + "commits": [ + { + "sha": "d2a91d5d028027238f93267fa562ab0fbb35eb34", + "title": "removed binaries" + }, + { + "sha": "b88bde73c54dfe44a42267e3dc97a4cf0e413e0c", + "title": "Added log" + }, + { + "sha": "2ece9131a15652b8a63b63a20015443ea85a5cc0", + "title": "Merge pull request #1 from world-direct/develop" + }, + { + "sha": "2db5872cf89175ba2700082272da5d8c939e59ee", + "title": "Basic project structure" + }, + { + "sha": "351c45cca49dd1ed36e4e7136f4a5189ece5fbfa", + "title": "Merge pull request #2 from Zeruxky/feature/migration" + }, + { + "sha": "7de051f5f9f28092af2fc8257173ec9e69527091", + "title": "Bugfix: Blockwise Timeout" + }, + { + "sha": "158187508642a527b718ac9f0aa54a411a570e63", + "title": "added progress report on Put" + }, + { + "sha": "c76dc2d804c5b257f83a93db8e7dee0887efee3f", + "title": "Disabled logging" + }, + { + "sha": "9f06946d473609dfaad07f60868f2316b47df934", + "title": "fix invalid op ex" + }, + { + "sha": "8cd42f44ff65d0ff2bf97d0fb52827c75fa07689", + "title": "Merge develop" + }, + { + "sha": "63a36736cc2f31fd6f4c370953f75f79f515facd", + "title": "Merge pull request #5 from knollsen/feature/progress" + }, + { + "sha": "e827c454c961324b343a3928ab8c21e659a31f12", + "title": "Bugfix Deduplicate block acks" + }, + { + "sha": "3d3baa8059936a428fad69ad63d5118a7069ca9e", + "title": "first evaluation of dtls" + }, + { + "sha": "470b4ce399487388c0e5f4eca6e277b4e6c86a54", + "title": "wolfssl release" + }, + { + "sha": "552fa3298c42f696beaa387bbb501912faec6fc8", + "title": "Adds fixes" + }, + { + "sha": "f795ee2d8c90f3f531b0ae6dc9d332860a6fbef9", + "title": "reduce task magic" + }, + { + "sha": "a86477235d49c6543956af374c1e3436411023f8", + "title": "finalize without timeout" + }, + { + "sha": "3cced8c493eaf112db06a76c469697a1614a9262", + "title": "enable timeout of dtls sessions" + }, + { + "sha": "b544ee8dbbef19e5f805ad283b55f60f3e7e0c82", + "title": "add documentation" + }, + { + "sha": "0d7ef3905a5e11da1b04ccd960b84ac1f750a345", + "title": "first running version" + }, + { + "sha": "41a4d901d1748b9d79d3fe03fa8a4b42d6b90461", + "title": "working server with ecdsa & psk" + }, + { + "sha": "2fa75c62718ecee8c01c3a32b80c1e7d01cf5ada", + "title": "last spikes" + } + ], + "decision": "只移植经复现的窄修复;不整分支合并。" + }, + { + "sha": "c412b91dfbfcecf6dcb213e027ce517b946e90ff", + "refs": [ + { + "repo": "world-direct/CoAP.NET", + "branch": "hotfix/block1" + } + ], + "status": "diverged", + "ahead": 39, + "behind": 54, + "totalCommits": 39, + "listedCommits": 30, + "filesReturned": 300, + "commits": [ + { + "sha": "d2a91d5d028027238f93267fa562ab0fbb35eb34", + "title": "removed binaries" + }, + { + "sha": "b88bde73c54dfe44a42267e3dc97a4cf0e413e0c", + "title": "Added log" + }, + { + "sha": "2ece9131a15652b8a63b63a20015443ea85a5cc0", + "title": "Merge pull request #1 from world-direct/develop" + }, + { + "sha": "2db5872cf89175ba2700082272da5d8c939e59ee", + "title": "Basic project structure" + }, + { + "sha": "351c45cca49dd1ed36e4e7136f4a5189ece5fbfa", + "title": "Merge pull request #2 from Zeruxky/feature/migration" + }, + { + "sha": "7de051f5f9f28092af2fc8257173ec9e69527091", + "title": "Bugfix: Blockwise Timeout" + }, + { + "sha": "158187508642a527b718ac9f0aa54a411a570e63", + "title": "added progress report on Put" + }, + { + "sha": "c76dc2d804c5b257f83a93db8e7dee0887efee3f", + "title": "Disabled logging" + }, + { + "sha": "9f06946d473609dfaad07f60868f2316b47df934", + "title": "fix invalid op ex" + }, + { + "sha": "8cd42f44ff65d0ff2bf97d0fb52827c75fa07689", + "title": "Merge develop" + }, + { + "sha": "63a36736cc2f31fd6f4c370953f75f79f515facd", + "title": "Merge pull request #5 from knollsen/feature/progress" + }, + { + "sha": "e827c454c961324b343a3928ab8c21e659a31f12", + "title": "Bugfix Deduplicate block acks" + }, + { + "sha": "4cae3e135bcd505f125f986855892cd19b731bab", + "title": "better abstraction" + }, + { + "sha": "47ddf5c873b49cc00c94ded4e3699663f1cb1824", + "title": "add configuration of coap server in servicecollection" + }, + { + "sha": "0b4801a09ad1239a75967b4a62a0440bce34385c", + "title": "add documentation" + }, + { + "sha": "d9c2ded3fc94661e5fcd16fd2e04cd5dd6ba332f", + "title": "feature complete" + }, + { + "sha": "3358435583cb90ffc1bdcad8bf69033d1ba0ae63", + "title": "add microsoft logging" + }, + { + "sha": "8e31ae1e9440b5330718f1c62e674edf09ff0567", + "title": "fix logging and threading" + }, + { + "sha": "df0f8c3a7af7133e7869a5612916e70d721ee655", + "title": "adapt for nuget release" + }, + { + "sha": "6ac623cc2864b1158cf6ab9530086f2139c8a2dc", + "title": "fix reference" + }, + { + "sha": "ef03b4664cf7610b481c8fd9e09d255429a01e69", + "title": "fix configuration" + }, + { + "sha": "f1d5da8da8286bb4e3162f4ad60a4d22667b6d1a", + "title": "add SLL Keyfile exporter" + }, + { + "sha": "f4dcf0b9b344cd0bc95ef7a8bc01c876b4705113", + "title": "fix versioning" + }, + { + "sha": "90d0be13a2c7dc55329e040780be7accfdf3a627", + "title": "fix one off receiving error" + }, + { + "sha": "b901dff4707de762d493da4e6b925d44e1c20883", + "title": "add tracing diagnostics to requests" + }, + { + "sha": "1404d4c0c7a1c5cb26821904642407701525fb58", + "title": "adapt versioning" + }, + { + "sha": "27e1a3e032bf653c1eae7ed509bbfe123ab70916", + "title": "add some dtls metrics" + }, + { + "sha": "d9482b1c6937e08c44e44aaecbab8ce205dee4d5", + "title": "change logging level" + }, + { + "sha": "d71fc75daa4b882be721aa92e211b15d8f0537c3", + "title": "finalize diagnostics" + }, + { + "sha": "54d655c94a2fe02b7163419d29958c53e89d218f", + "title": "fix message id reusage and better traceability of retransmission" + } + ], + "decision": "只移植经复现的窄修复;不整分支合并。" + }, + { + "sha": "4fe99ce5ccf8e8e1877701ef3393ec4871fe8c87", + "refs": [ + { + "repo": "world-direct/CoAP.NET", + "branch": "master" + } + ], + "status": "diverged", + "ahead": 5, + "behind": 54, + "totalCommits": 5, + "listedCommits": 5, + "filesReturned": 300, + "commits": [ + { + "sha": "d2a91d5d028027238f93267fa562ab0fbb35eb34", + "title": "removed binaries" + }, + { + "sha": "b88bde73c54dfe44a42267e3dc97a4cf0e413e0c", + "title": "Added log" + }, + { + "sha": "2ece9131a15652b8a63b63a20015443ea85a5cc0", + "title": "Merge pull request #1 from world-direct/develop" + }, + { + "sha": "2db5872cf89175ba2700082272da5d8c939e59ee", + "title": "Basic project structure" + }, + { + "sha": "4fe99ce5ccf8e8e1877701ef3393ec4871fe8c87", + "title": "Merge pull request #1 from Zeruxky/feature/migration" + } + ], + "decision": "只移植经复现的窄修复;不整分支合并。" + }, + { + "sha": "c836eee230de3d215e4fd8d33feae281c92d27d2", + "refs": [ + { + "repo": "bjorndaniel/CoAP.NET", + "branch": "master" + } + ], + "status": "diverged", + "ahead": 4, + "behind": 54, + "totalCommits": 4, + "listedCommits": 4, + "filesReturned": 17, + "commits": [ + { + "sha": "caf25c589073e9a619a1f2243e622463242a429c", + "title": "Fixes to use NetStandard 2.1" + }, + { + "sha": "3f05a45fae567d9e35491418209e4d2da6cfca7d", + "title": "Reverting to net standard 2.0" + }, + { + "sha": "4015bc8762519d9f25c698d293d591c9b398f0a6", + "title": "Added DTLS fork" + }, + { + "sha": "c836eee230de3d215e4fd8d33feae281c92d27d2", + "title": "Removed files existing in .net core" + } + ], + "decision": "历史平台/构建/日志变更,当前net10/ILogger底座已替代;不直接整分支合并。" + }, + { + "sha": "96818bdca520c554973bc71c3fa4d145f6936354", + "refs": [ + { + "repo": "mfalkvidd/CoAP.NET", + "branch": "master" + } + ], + "status": "diverged", + "ahead": 1, + "behind": 54, + "totalCommits": 1, + "listedCommits": 1, + "filesReturned": 1, + "commits": [ + { + "sha": "96818bdca520c554973bc71c3fa4d145f6936354", + "title": "Correct debug output message on shutdown" + } + ], + "decision": "移植停止日志修正。" + }, + { + "sha": "d17b1ef7545164c1cc2d7880774bad47803b60a6", + "refs": [ + { + "repo": "fancycoconut/CoAP.NET", + "branch": "feature-build" + } + ], + "status": "diverged", + "ahead": 1, + "behind": 54, + "totalCommits": 1, + "listedCommits": 1, + "filesReturned": 18, + "commits": [ + { + "sha": "d17b1ef7545164c1cc2d7880774bad47803b60a6", + "title": "Get CoAp.NET to build" + } + ], + "decision": "历史平台/构建/日志变更,当前net10/ILogger底座已替代;不直接整分支合并。" + }, + { + "sha": "55457b414bb9ec02715828b57cf446d9a4690e71", + "refs": [ + { + "repo": "IoTSharp/CoAP.NET", + "branch": "develop" + } + ], + "status": "diverged", + "ahead": 46, + "behind": 54, + "totalCommits": 46, + "listedCommits": 30, + "filesReturned": 300, + "commits": [ + { + "sha": "d2a91d5d028027238f93267fa562ab0fbb35eb34", + "title": "removed binaries" + }, + { + "sha": "b88bde73c54dfe44a42267e3dc97a4cf0e413e0c", + "title": "Added log" + }, + { + "sha": "2ece9131a15652b8a63b63a20015443ea85a5cc0", + "title": "Merge pull request #1 from world-direct/develop" + }, + { + "sha": "2db5872cf89175ba2700082272da5d8c939e59ee", + "title": "Basic project structure" + }, + { + "sha": "351c45cca49dd1ed36e4e7136f4a5189ece5fbfa", + "title": "Merge pull request #2 from Zeruxky/feature/migration" + }, + { + "sha": "64bbef4bdd45ad77df039f0c02d63bf4c10393a7", + "title": "Added Client and Server example" + }, + { + "sha": "3d4df06e3b2314e9e8633c810378b30b92eab134", + "title": "Enabled logging through NLog" + }, + { + "sha": "e2b6b63c13a11d34b8f5b295deb6da2a3ea2a146", + "title": "Add POST method to ImageResource" + }, + { + "sha": "c95205ed558f1f574acb36869a03b9641bb151eb", + "title": "Add file upload example and observe example" + }, + { + "sha": "eea08175c6cb4742772eecc5919c45b27d0ac88d", + "title": "Enhanced ImageResource" + }, + { + "sha": "ef817e989a1d305aaeda2d92ebf73d6a6588f4cc", + "title": "Attempt to renew CoapClient similar to HttpClient" + }, + { + "sha": "4b14abeb9195aa28d5cdb3826da7b982ab51d499", + "title": "Partial rework of CoapClient" + }, + { + "sha": "3da6f3a9cc88856ddd9dfedd317388f6efb5fb8e", + "title": "Add BaseAddress and Port to CoapClient" + }, + { + "sha": "7de051f5f9f28092af2fc8257173ec9e69527091", + "title": "Bugfix: Blockwise Timeout" + }, + { + "sha": "a7e1b866169ed53212f251b8a63fe6f073a7ce9e", + "title": "Merge pull request #3 from world-direct/develop" + }, + { + "sha": "289ec9df87358a3c59b6eaa9abf88eda7ac70cfd", + "title": "Attempt to implement Memory and Span" + }, + { + "sha": "0e6df705e22bcbcf67e272b45f6b6ce7b02ef336", + "title": "Removed old implementation" + }, + { + "sha": "d18c92092f3d88713b20bd9a1c38cad33bf987a3", + "title": "Try to implement CoAP header" + }, + { + "sha": "578fba08aeba23edb01209f7e957c75e85586a9d", + "title": "Improve specs" + }, + { + "sha": "d4b4fdc0d9e4be045fd922a660e04ab80f52f2db", + "title": "Add MessageId" + }, + { + "sha": "9a17fc52dcf7ae310aad5fdc7dc6c36b18efad8c", + "title": "Add Option, OptionDelta, OptionLength and Token" + }, + { + "sha": "c0202bed127cf6e412d3cf010f45397cc9210eb8", + "title": "Implement OptionSerializer" + }, + { + "sha": "59c4c4e08e40cb6760a24c2ce9c982165a09191f", + "title": "Implement parsing of Options" + }, + { + "sha": "c8b38d3078100acde70259bc79ebdd5e06ed637e", + "title": "Add missing changes" + }, + { + "sha": "fb5b040d15678fd1139b20f24f5cf66a19b093cf", + "title": "Add specs for deserializing and serializing options" + }, + { + "sha": "1cb44978c25df6fa33962d6ebedcbf5f8837d764", + "title": "Fix failed specs" + }, + { + "sha": "ee0de07eb396623b6bf42c8409b8424638963f3b", + "title": "Add spec for OptionV1Serializer" + }, + { + "sha": "1063efe6c38cc83310487bef1ac07a20eb36fd0c", + "title": "First attempt to implement other parsing method" + }, + { + "sha": "b4787bf53874fa1515c2af856b696f928ce22f12", + "title": "Improve deserialization of messages" + }, + { + "sha": "75f4a41f3ef543930331105e05f82f870e10b3c4", + "title": "Improve MessageDeserializer" + } + ], + "decision": "develop是未完成重写,默认主干能力不回退。" + } +] diff --git a/docs/audits/coap-20261113/issue-decisions.json b/docs/audits/coap-20261113/issue-decisions.json new file mode 100644 index 0000000..b4865ca --- /dev/null +++ b/docs/audits/coap-20261113/issue-decisions.json @@ -0,0 +1,522 @@ +[ + { + "number": 82, + "title": "Anyone know if this code can be changed to work over serial?", + "url": "https://github.com/smeshlink/CoAP.NET/issues/82", + "upstreamState": "closed", + "category": "非当前宿主/历史平台", + "decision": "串口、Unity、WCF、Compact Framework 不进入本轮 .NET10 UDP/DTLS 默认合同;有实际消费者再单独评估。" + }, + { + "number": 79, + "title": "client not reply ACK ,server repeat send data. help me. thanks", + "url": "https://github.com/smeshlink/CoAP.NET/issues/79", + "upstreamState": "open", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + }, + { + "number": 78, + "title": " Request obs = Request.NewGet(); obs.URI = new Uri(\"coap://127.0.0.1/time\"); obs.MarkObserve(); Observe fail. ???", + "url": "https://github.com/smeshlink/CoAP.NET/issues/78", + "upstreamState": "open", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + }, + { + "number": 77, + "title": "How to save CoAP server observable state in central memory for multiple server instances", + "url": "https://github.com/smeshlink/CoAP.NET/issues/77", + "upstreamState": "open", + "category": "宿主横向扩容", + "decision": "集中Observe状态涉及通知所有权、会话与恢复合同;不能在协议库内直接写死Redis或宿主业务集群。" + }, + { + "number": 76, + "title": "CoAP.NET available documentation", + "url": "https://github.com/smeshlink/CoAP.NET/issues/76", + "upstreamState": "open", + "category": "使用说明、日志、包身份", + "decision": "以当前 README/Resource API/ILogger 与包来源补文档;不照搬旧构建项目或未经复现的示例问题。" + }, + { + "number": 75, + "title": "Mark and Sweep question", + "url": "https://github.com/smeshlink/CoAP.NET/issues/75", + "upstreamState": "open", + "category": "使用说明、日志、包身份", + "decision": "以当前 README/Resource API/ILogger 与包来源补文档;不照搬旧构建项目或未经复现的示例问题。" + }, + { + "number": 74, + "title": "hello,Just getting started with C#, I want to ask", + "url": "https://github.com/smeshlink/CoAP.NET/issues/74", + "upstreamState": "open", + "category": "使用说明、日志、包身份", + "decision": "以当前 README/Resource API/ILogger 与包来源补文档;不照搬旧构建项目或未经复现的示例问题。" + }, + { + "number": 73, + "title": "Disable well-known", + "url": "https://github.com/smeshlink/CoAP.NET/issues/73", + "upstreamState": "open", + "category": "发现、资源树、代理与查询", + "decision": "已有框架入口和宿主扩展点;公开发现策略由宿主配置,代理语义与 option 校验仍需独立回归。" + }, + { + "number": 72, + "title": "CoAP server download progress", + "url": "https://github.com/smeshlink/CoAP.NET/issues/72", + "upstreamState": "open", + "category": "Blockwise 与传输进度", + "decision": "分块错误/重复确认纳入 #22;进度 API、长传输取消和状态回收单独深化。" + }, + { + "number": 71, + "title": "Docker Linux Container Support", + "url": "https://github.com/smeshlink/CoAP.NET/issues/71", + "upstreamState": "open", + "category": "平台与 Socket 边界", + "decision": "核对现代 .NET10/Linux/IPv4/IPv6 实现及 CI,避免复用旧平台特例;真实平台验收仍需实测。" + }, + { + "number": 70, + "title": "Is Multicast implemented for server ?", + "url": "https://github.com/smeshlink/CoAP.NET/issues/70", + "upstreamState": "open", + "category": "组播与网络接口", + "decision": "保留组播匹配例外;接口选择、多响应收集和组播服务端属于独立能力,不直接移植广播 Socket 配置。" + }, + { + "number": 69, + "title": "Unity Integration", + "url": "https://github.com/smeshlink/CoAP.NET/issues/69", + "upstreamState": "open", + "category": "非当前宿主/历史平台", + "decision": "串口、Unity、WCF、Compact Framework 不进入本轮 .NET10 UDP/DTLS 默认合同;有实际消费者再单独评估。" + }, + { + "number": 68, + "title": "Can we have source code of nuget CoAP.NET.Core", + "url": "https://github.com/smeshlink/CoAP.NET/issues/68", + "upstreamState": "open", + "category": "使用说明、日志、包身份", + "decision": "以当前 README/Resource API/ILogger 与包来源补文档;不照搬旧构建项目或未经复现的示例问题。" + }, + { + "number": 67, + "title": "CoapServer Crashes after some works", + "url": "https://github.com/smeshlink/CoAP.NET/issues/67", + "upstreamState": "open", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + }, + { + "number": 66, + "title": "Discover not Multicast Ready", + "url": "https://github.com/smeshlink/CoAP.NET/issues/66", + "upstreamState": "open", + "category": "组播与网络接口", + "decision": "保留组播匹配例外;接口选择、多响应收集和组播服务端属于独立能力,不直接移植广播 Socket 配置。" + }, + { + "number": 65, + "title": "Multicast not working on the specified interface/IP", + "url": "https://github.com/smeshlink/CoAP.NET/issues/65", + "upstreamState": "open", + "category": "组播与网络接口", + "decision": "保留组播匹配例外;接口选择、多响应收集和组播服务端属于独立能力,不直接移植广播 Socket 配置。" + }, + { + "number": 63, + "title": "Setting MaxRetransmit in config has no effect", + "url": "https://github.com/smeshlink/CoAP.NET/issues/63", + "upstreamState": "closed", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + }, + { + "number": 62, + "title": "Identity and Key", + "url": "https://github.com/smeshlink/CoAP.NET/issues/62", + "upstreamState": "open", + "category": "安全与 DTLS", + "decision": "已有 PSK/DTLS1.2 底座;互操作走 #26,证书/RPK/DTLS1.3 走 #27,OSCORE/EDHOC 另立合同。" + }, + { + "number": 61, + "title": "Reject an exchange doesn't generate a RST paquet", + "url": "https://github.com/smeshlink/CoAP.NET/issues/61", + "upstreamState": "open", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + }, + { + "number": 60, + "title": "Question on Root Resource", + "url": "https://github.com/smeshlink/CoAP.NET/issues/60", + "upstreamState": "open", + "category": "发现、资源树、代理与查询", + "decision": "已有框架入口和宿主扩展点;公开发现策略由宿主配置,代理语义与 option 校验仍需独立回归。" + }, + { + "number": 59, + "title": "Unable to send acknowledgement from CoAP server to CoAP client", + "url": "https://github.com/smeshlink/CoAP.NET/issues/59", + "upstreamState": "closed", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + }, + { + "number": 58, + "title": "response with request", + "url": "https://github.com/smeshlink/CoAP.NET/issues/58", + "upstreamState": "open", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + }, + { + "number": 57, + "title": "CoAP.NET.Core memory leak", + "url": "https://github.com/smeshlink/CoAP.NET/issues/57", + "upstreamState": "closed", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + }, + { + "number": 56, + "title": "CoAP over TCP", + "url": "https://github.com/smeshlink/CoAP.NET/issues/56", + "upstreamState": "open", + "category": "TCP 传输", + "decision": "参考正式 RFC8323;没有现有传输实现,列为后续独立扩展。" + }, + { + "number": 55, + "title": "PSK?", + "url": "https://github.com/smeshlink/CoAP.NET/issues/55", + "upstreamState": "open", + "category": "安全与 DTLS", + "decision": "已有 PSK/DTLS1.2 底座;互操作走 #26,证书/RPK/DTLS1.3 走 #27,OSCORE/EDHOC 另立合同。" + }, + { + "number": 54, + "title": "Observe timeout", + "url": "https://github.com/smeshlink/CoAP.NET/issues/54", + "upstreamState": "open", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + }, + { + "number": 52, + "title": "Can't get response from broadcast/multicast address endpoint", + "url": "https://github.com/smeshlink/CoAP.NET/issues/52", + "upstreamState": "open", + "category": "组播与网络接口", + "decision": "保留组播匹配例外;接口选择、多响应收集和组播服务端属于独立能力,不直接移植广播 Socket 配置。" + }, + { + "number": 51, + "title": "Server can not bind to port 5683", + "url": "https://github.com/smeshlink/CoAP.NET/issues/51", + "upstreamState": "closed", + "category": "平台与 Socket 边界", + "decision": "核对现代 .NET10/Linux/IPv4/IPv6 实现及 CI,避免复用旧平台特例;真实平台验收仍需实测。" + }, + { + "number": 49, + "title": "How can I implement CoAP in a WCF service? ", + "url": "https://github.com/smeshlink/CoAP.NET/issues/49", + "upstreamState": "open", + "category": "非当前宿主/历史平台", + "decision": "串口、Unity、WCF、Compact Framework 不进入本轮 .NET10 UDP/DTLS 默认合同;有实际消费者再单独评估。" + }, + { + "number": 48, + "title": "CoAP Cancel Observe Option", + "url": "https://github.com/smeshlink/CoAP.NET/issues/48", + "upstreamState": "open", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + }, + { + "number": 47, + "title": "CoAP Observe Option", + "url": "https://github.com/smeshlink/CoAP.NET/issues/47", + "upstreamState": "open", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + }, + { + "number": 46, + "title": "CoAP.net logging", + "url": "https://github.com/smeshlink/CoAP.NET/issues/46", + "upstreamState": "closed", + "category": "使用说明、日志、包身份", + "decision": "以当前 README/Resource API/ILogger 与包来源补文档;不照搬旧构建项目或未经复现的示例问题。" + }, + { + "number": 44, + "title": "Invalid getter for ProxyUri and ProxyScheme?", + "url": "https://github.com/smeshlink/CoAP.NET/issues/44", + "upstreamState": "closed", + "category": "发现、资源树、代理与查询", + "decision": "已有框架入口和宿主扩展点;公开发现策略由宿主配置,代理语义与 option 校验仍需独立回归。" + }, + { + "number": 41, + "title": "CoAP Blockwise transfer", + "url": "https://github.com/smeshlink/CoAP.NET/issues/41", + "upstreamState": "open", + "category": "Blockwise 与传输进度", + "decision": "分块错误/重复确认纳入 #22;进度 API、长传输取消和状态回收单独深化。" + }, + { + "number": 40, + "title": "CoAP client through mobile hotspot", + "url": "https://github.com/smeshlink/CoAP.NET/issues/40", + "upstreamState": "open", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + }, + { + "number": 39, + "title": "Queries on Coap .NET features", + "url": "https://github.com/smeshlink/CoAP.NET/issues/39", + "upstreamState": "open", + "category": "安全与 DTLS", + "decision": "已有 PSK/DTLS1.2 底座;互操作走 #26,证书/RPK/DTLS1.3 走 #27,OSCORE/EDHOC 另立合同。" + }, + { + "number": 38, + "title": "Question on observed resource", + "url": "https://github.com/smeshlink/CoAP.NET/issues/38", + "upstreamState": "open", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + }, + { + "number": 37, + "title": "Stack overflow on some OS when UDP channel begins receiving on .NET 4", + "url": "https://github.com/smeshlink/CoAP.NET/issues/37", + "upstreamState": "closed", + "category": "平台与 Socket 边界", + "decision": "核对现代 .NET10/Linux/IPv4/IPv6 实现及 CI,避免复用旧平台特例;真实平台验收仍需实测。" + }, + { + "number": 32, + "title": "For Observe subsequent \"Notify\" response ignored as duplicate", + "url": "https://github.com/smeshlink/CoAP.NET/issues/32", + "upstreamState": "open", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + }, + { + "number": 31, + "title": "F# Interactive client with 4.05 status", + "url": "https://github.com/smeshlink/CoAP.NET/issues/31", + "upstreamState": "closed", + "category": "使用说明、日志、包身份", + "decision": "以当前 README/Resource API/ILogger 与包来源补文档;不照搬旧构建项目或未经复现的示例问题。" + }, + { + "number": 30, + "title": "CoAP Client Request and Response", + "url": "https://github.com/smeshlink/CoAP.NET/issues/30", + "upstreamState": "open", + "category": "使用说明、日志、包身份", + "decision": "以当前 README/Resource API/ILogger 与包来源补文档;不照搬旧构建项目或未经复现的示例问题。" + }, + { + "number": 29, + "title": "CoAP.NET-master Client and Server issue", + "url": "https://github.com/smeshlink/CoAP.NET/issues/29", + "upstreamState": "open", + "category": "安全与 DTLS", + "decision": "已有 PSK/DTLS1.2 底座;互操作走 #26,证书/RPK/DTLS1.3 走 #27,OSCORE/EDHOC 另立合同。" + }, + { + "number": 28, + "title": "CoAP.NET-master Client and Server issue", + "url": "https://github.com/smeshlink/CoAP.NET/issues/28", + "upstreamState": "open", + "category": "使用说明、日志、包身份", + "decision": "以当前 README/Resource API/ILogger 与包来源补文档;不照搬旧构建项目或未经复现的示例问题。" + }, + { + "number": 27, + "title": "COAP.net", + "url": "https://github.com/smeshlink/CoAP.NET/issues/27", + "upstreamState": "open", + "category": "安全与 DTLS", + "decision": "已有 PSK/DTLS1.2 底座;互操作走 #26,证书/RPK/DTLS1.3 走 #27,OSCORE/EDHOC 另立合同。" + }, + { + "number": 26, + "title": "Coap.Net", + "url": "https://github.com/smeshlink/CoAP.NET/issues/26", + "upstreamState": "closed", + "category": "使用说明、日志、包身份", + "decision": "以当前 README/Resource API/ILogger 与包来源补文档;不照搬旧构建项目或未经复现的示例问题。" + }, + { + "number": 25, + "title": "coap.net", + "url": "https://github.com/smeshlink/CoAP.NET/issues/25", + "upstreamState": "closed", + "category": "安全与 DTLS", + "decision": "已有 PSK/DTLS1.2 底座;互操作走 #26,证书/RPK/DTLS1.3 走 #27,OSCORE/EDHOC 另立合同。" + }, + { + "number": 23, + "title": "CoAP.NET-master Client and Server issue", + "url": "https://github.com/smeshlink/CoAP.NET/issues/23", + "upstreamState": "closed", + "category": "发现、资源树、代理与查询", + "decision": "已有框架入口和宿主扩展点;公开发现策略由宿主配置,代理语义与 option 校验仍需独立回归。" + }, + { + "number": 22, + "title": "CoAP.NET-master Client and Server issue", + "url": "https://github.com/smeshlink/CoAP.NET/issues/22", + "upstreamState": "open", + "category": "非当前宿主/历史平台", + "decision": "串口、Unity、WCF、Compact Framework 不进入本轮 .NET10 UDP/DTLS 默认合同;有实际消费者再单独评估。" + }, + { + "number": 21, + "title": "CoAP.NET-master Client and Server issue", + "url": "https://github.com/smeshlink/CoAP.NET/issues/21", + "upstreamState": "closed", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + }, + { + "number": 20, + "title": "CoAP.NET-master Client and Server issue", + "url": "https://github.com/smeshlink/CoAP.NET/issues/20", + "upstreamState": "closed", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + }, + { + "number": 19, + "title": "CoAP.NET-master Client and Server issue", + "url": "https://github.com/smeshlink/CoAP.NET/issues/19", + "upstreamState": "closed", + "category": "使用说明、日志、包身份", + "decision": "以当前 README/Resource API/ILogger 与包来源补文档;不照搬旧构建项目或未经复现的示例问题。" + }, + { + "number": 18, + "title": "CoAP.NET-master Client and Server issue", + "url": "https://github.com/smeshlink/CoAP.NET/issues/18", + "upstreamState": "closed", + "category": "使用说明、日志、包身份", + "decision": "以当前 README/Resource API/ILogger 与包来源补文档;不照搬旧构建项目或未经复现的示例问题。" + }, + { + "number": 17, + "title": "Nuget package out of date.", + "url": "https://github.com/smeshlink/CoAP.NET/issues/17", + "upstreamState": "closed", + "category": "使用说明、日志、包身份", + "decision": "以当前 README/Resource API/ILogger 与包来源补文档;不照搬旧构建项目或未经复现的示例问题。" + }, + { + "number": 16, + "title": "The sample app dosn't handle client error not found", + "url": "https://github.com/smeshlink/CoAP.NET/issues/16", + "upstreamState": "closed", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + }, + { + "number": 15, + "title": "Implementing / Porting Scandium ", + "url": "https://github.com/smeshlink/CoAP.NET/issues/15", + "upstreamState": "open", + "category": "安全与 DTLS", + "decision": "已有 PSK/DTLS1.2 底座;互操作走 #26,证书/RPK/DTLS1.3 走 #27,OSCORE/EDHOC 另立合同。" + }, + { + "number": 13, + "title": "GetNextResponseBlock() crashed if receiving a out-of-scope block number", + "url": "https://github.com/smeshlink/CoAP.NET/issues/13", + "upstreamState": "closed", + "category": "Blockwise 与传输进度", + "decision": "分块错误/重复确认纳入 #22;进度 API、长传输取消和状态回收单独深化。" + }, + { + "number": 12, + "title": "CoAP.NET over compact Net Framework 3.5", + "url": "https://github.com/smeshlink/CoAP.NET/issues/12", + "upstreamState": "open", + "category": "非当前宿主/历史平台", + "decision": "串口、Unity、WCF、Compact Framework 不进入本轮 .NET10 UDP/DTLS 默认合同;有实际消费者再单独评估。" + }, + { + "number": 11, + "title": "Unexpected SocketException of AddressFamilyNotSupported if IPv6 is not supported by the OS", + "url": "https://github.com/smeshlink/CoAP.NET/issues/11", + "upstreamState": "closed", + "category": "平台与 Socket 边界", + "decision": "核对现代 .NET10/Linux/IPv4/IPv6 实现及 CI,避免复用旧平台特例;真实平台验收仍需实测。" + }, + { + "number": 10, + "title": "MapToIPv4 fails for some IP Addresses", + "url": "https://github.com/smeshlink/CoAP.NET/issues/10", + "upstreamState": "closed", + "category": "平台与 Socket 边界", + "decision": "核对现代 .NET10/Linux/IPv4/IPv6 实现及 CI,避免复用旧平台特例;真实平台验收仍需实测。" + }, + { + "number": 9, + "title": "server keeps throwing SocketException after a observe client disconnects", + "url": "https://github.com/smeshlink/CoAP.NET/issues/9", + "upstreamState": "closed", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + }, + { + "number": 8, + "title": "Add ability to override overall timeout in TokenLayer", + "url": "https://github.com/smeshlink/CoAP.NET/issues/8", + "upstreamState": "closed", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + }, + { + "number": 6, + "title": "Please update binaries", + "url": "https://github.com/smeshlink/CoAP.NET/issues/6", + "upstreamState": "closed", + "category": "使用说明、日志、包身份", + "decision": "以当前 README/Resource API/ILogger 与包来源补文档;不照搬旧构建项目或未经复现的示例问题。" + }, + { + "number": 5, + "title": "How do you set the log level?", + "url": "https://github.com/smeshlink/CoAP.NET/issues/5", + "upstreamState": "closed", + "category": "使用说明、日志、包身份", + "decision": "以当前 README/Resource API/ILogger 与包来源补文档;不照搬旧构建项目或未经复现的示例问题。" + }, + { + "number": 3, + "title": "Blockwise transfer for PUT requests", + "url": "https://github.com/smeshlink/CoAP.NET/issues/3", + "upstreamState": "closed", + "category": "Blockwise 与传输进度", + "decision": "分块错误/重复确认纳入 #22;进度 API、长传输取消和状态回收单独深化。" + }, + { + "number": 2, + "title": "Ability to specify timeout time and retries", + "url": "https://github.com/smeshlink/CoAP.NET/issues/2", + "upstreamState": "closed", + "category": "可靠性、Observe 与异步生命周期", + "decision": "按当前源码重现并纳入 #20/#21/#22/#26;旧 issue 的开放/关闭状态不能证明当前版本通过。" + } +] diff --git a/docs/audits/coap-20261113/topic-survey.json b/docs/audits/coap-20261113/topic-survey.json new file mode 100644 index 0000000..c86b16b --- /dev/null +++ b/docs/audits/coap-20261113/topic-survey.json @@ -0,0 +1,707 @@ +{ + "date": "2026-11-13", + "query": "gh search repos --topic coap --archived=false --sort stars --order desc --limit 100", + "boundary": "Candidate metadata, not 100 independent protocol stacks or complete GitHub coverage. Public source visibility does not establish an open-source license.", + "repositories": [ + { + "description": "The most scalable and reliable MQTT broker for AI, IoT, IIoT and connected vehicles", + "fullName": "emqx/emqx", + "language": "Erlang", + "stargazersCount": 16907, + "url": "https://github.com/emqx/emqx" + }, + { + "description": ":honeybee: IoT Technical Guide --- 从零搭建高性能物联网平台及物联网解决方案和Thingsboard源码分析 :sparkles: :sparkles: :sparkles: (IoT Platform, SaaS, MQTT, CoAP, HTTP, Modbus, OPC, WebSocket, 物模型,Protobuf, PostgreSQL, MongoDB, Spring Security, OAuth2, RuleEngine, Kafka, Docker)", + "fullName": "IoT-Technology/IoT-Technical-Guide", + "language": "Java", + "stargazersCount": 4564, + "url": "https://github.com/IoT-Technology/IoT-Technical-Guide" + }, + { + "description": "IoT Platform Framework", + "fullName": "absmach/magistrala", + "language": "Go", + "stargazersCount": 2662, + "url": "https://github.com/absmach/magistrala" + }, + { + "description": "教你设计物联网系统。构建自己的Internet of Things 。", + "fullName": "phodal/designiot", + "language": "HTML", + "stargazersCount": 2227, + "url": "https://github.com/phodal/designiot" + }, + { + "description": "xTools: Qt-SerialPort-HID-BLE-UDP-TCP-WebSocket-Modbus-CANBus-MQTT-CoAP-TFTP-mDNS debugging tool, which support custom lua, javascript, chart view and data transmitting...", + "fullName": "x-tools-author/x-tools", + "language": "C++", + "stargazersCount": 1099, + "url": "https://github.com/x-tools-author/x-tools" + }, + { + "description": "CoAP/DTLS Java Implementation ", + "fullName": "eclipse-californium/californium", + "language": "Java", + "stargazersCount": 781, + "url": "https://github.com/eclipse-californium/californium" + }, + { + "description": "Java Library for LWM2M", + "fullName": "eclipse-leshan/leshan", + "language": "Java", + "stargazersCount": 695, + "url": "https://github.com/eclipse-leshan/leshan" + }, + { + "description": "开源物联网平台 - 物联网解决方案的设备管理,数据收集,处理", + "fullName": "IoT-Technology/Groza", + "language": "Java", + "stargazersCount": 598, + "url": "https://github.com/IoT-Technology/Groza" + }, + { + "description": "JetLinks Core", + "fullName": "jetlinks/jetlinks", + "language": "", + "stargazersCount": 525, + "url": "https://github.com/jetlinks/jetlinks" + }, + { + "description": "Implementation of CoAP Server & Client in Go", + "fullName": "plgd-dev/go-coap", + "language": "Go", + "stargazersCount": 523, + "url": "https://github.com/plgd-dev/go-coap" + }, + { + "description": "The Python CoAP library", + "fullName": "chrysn/aiocoap", + "language": "Python", + "stargazersCount": 293, + "url": "https://github.com/chrysn/aiocoap" + }, + { + "description": "Toolkit is a IoT protocol client CLI for IoT developer and learners. CoAP、MQTT And NB-IoT protocol are currently supported. It supports colors, autocompletion, internationalization(chinese, english and german…) and multi-platforms", + "fullName": "IoT-Technology/IoT-Toolkit", + "language": "Java", + "stargazersCount": 260, + "url": "https://github.com/IoT-Technology/IoT-Toolkit" + }, + { + "description": "A Constrained Application Protocol(CoAP) library implemented in Rust.", + "fullName": "Covertness/coap-rs", + "language": "Rust", + "stargazersCount": 239, + "url": "https://github.com/Covertness/coap-rs" + }, + { + "description": "High-performance scalable message broker for modern event-driven applications", + "fullName": "absmach/fluxmq", + "language": "Go", + "stargazersCount": 235, + "url": "https://github.com/absmach/fluxmq" + }, + { + "description": "PENIOT: Penetration Testing Tool for IoT", + "fullName": "yakuza8/peniot", + "language": "Python", + "stargazersCount": 233, + "url": "https://github.com/yakuza8/peniot" + }, + { + "description": "C implementation of the client-side OMA LwM2M protocol", + "fullName": "AVSystem/Anjay", + "language": "C", + "stargazersCount": 220, + "url": "https://github.com/AVSystem/Anjay" + }, + { + "description": "A fast and extensible framework to connect any device with your browser and backend applications", + "fullName": "eclipse-thingweb/node-wot", + "language": "TypeScript", + "stargazersCount": 196, + "url": "https://github.com/eclipse-thingweb/node-wot" + }, + { + "description": "How can you communicate to your ikea tradfri gateway/hub through coap-client", + "fullName": "glenndehaan/ikea-tradfri-coap-docs", + "language": "Shell", + "stargazersCount": 194, + "url": "https://github.com/glenndehaan/ikea-tradfri-coap-docs" + }, + { + "description": "Integrate your Shelly devices into ioBroker via MQTT or CoIoT", + "fullName": "iobroker-community-adapters/ioBroker.shelly", + "language": "TypeScript", + "stargazersCount": 189, + "url": "https://github.com/iobroker-community-adapters/ioBroker.shelly" + }, + { + "description": "Bring ThingsBoard to the edge. Filter, aggregate, and compute locally to cut bandwidth costs and reduce latency, pushing intelligence to the field while keeping the cloud in sync.", + "fullName": "thingsboard/thingsboard-edge", + "language": "Java", + "stargazersCount": 180, + "url": "https://github.com/thingsboard/thingsboard-edge" + }, + { + "description": "Secure and Interoperable Internet of Things", + "fullName": "plgd-dev/hub", + "language": "Go", + "stargazersCount": 175, + "url": "https://github.com/plgd-dev/hub" + }, + { + "description": "To contribute code to the project, please visit", + "fullName": "iotivity/iotivity-lite", + "language": "C", + "stargazersCount": 145, + "url": "https://github.com/iotivity/iotivity-lite" + }, + { + "description": "CoAP Implementation in C", + "fullName": "lobaro/lobaro-coap", + "language": "C", + "stargazersCount": 131, + "url": "https://github.com/lobaro/lobaro-coap" + }, + { + "description": "Firmware SDK enabling any IoT device to connect to Golioth - the Universal Connector for IoT", + "fullName": "golioth/golioth-firmware-sdk", + "language": "C", + "stargazersCount": 118, + "url": "https://github.com/golioth/golioth-firmware-sdk" + }, + { + "description": "Awa LWM2M is an implementation of the OMA Lightweight M2M protocol in C.", + "fullName": "ConnectivityFoundry/AwaLWM2M", + "language": "C", + "stargazersCount": 110, + "url": "https://github.com/ConnectivityFoundry/AwaLWM2M" + }, + { + "description": "Generic Erlang CoAP Client/Server", + "fullName": "gotthardp/gen_coap", + "language": "Erlang", + "stargazersCount": 108, + "url": "https://github.com/gotthardp/gen_coap" + }, + { + "description": "Apache Mynewt Sensor Network Application for STM32 Blue Pill and nRF52 with Visual Rust, NB-IoT, GPS, iBeacon, NimBLE, ESP8266 (WiFi Geolocation) and nRF24L01", + "fullName": "lupyuen/stm32bluepill-mynewt-sensor", + "language": "C", + "stargazersCount": 106, + "url": "https://github.com/lupyuen/stm32bluepill-mynewt-sensor" + }, + { + "description": "This repository contains sample applications illustrating how to use the IOWA SDK as well as the Evaluation IOWA SDK. The IOWA SDK is the most compact C implementation OMA LwM2M protocol.", + "fullName": "IOTEROP/IOWA", + "language": "C", + "stargazersCount": 89, + "url": "https://github.com/IOTEROP/IOWA" + }, + { + "description": "MQTT Bridge for IKEA TRÅDFRI Light Gateway", + "fullName": "hardillb/TRADFRI2MQTT", + "language": "Java", + "stargazersCount": 85, + "url": "https://github.com/hardillb/TRADFRI2MQTT" + }, + { + "description": "A command line interface for CoAP built on node-coap", + "fullName": "coapjs/coap-cli", + "language": "JavaScript", + "stargazersCount": 81, + "url": "https://github.com/coapjs/coap-cli" + }, + { + "description": "Swift Server/Client Implementation of CoAP - RFC 7252", + "fullName": "stuffrabbit/SwiftCoAP", + "language": "Objective-C", + "stargazersCount": 78, + "url": "https://github.com/stuffrabbit/SwiftCoAP" + }, + { + "description": "UpdateHub Community Edition", + "fullName": "UpdateHub/updatehub-ce", + "language": "Go", + "stargazersCount": 77, + "url": "https://github.com/UpdateHub/updatehub-ce" + }, + { + "description": "CoAP Java library", + "fullName": "PelionIoT/java-coap", + "language": "Java", + "stargazersCount": 75, + "url": "https://github.com/PelionIoT/java-coap" + }, + { + "description": "CoAPnet is a high performance .NET library for CoAP based communication. It provides a CoAP client and a CoAP server. It also has DTLS support out of the box.", + "fullName": "chkr1011/CoAPnet", + "language": "C#", + "stargazersCount": 74, + "url": "https://github.com/chkr1011/CoAPnet" + }, + { + "description": "A mini client/server implementation of CoAP (Constrained Application Protocol) into MicroPython", + "fullName": "insighio/microCoAPy", + "language": "Python", + "stargazersCount": 67, + "url": "https://github.com/insighio/microCoAPy" + }, + { + "description": "Flogo Contribution repo. Contains activities, triggers, models and actions.", + "fullName": "TIBCOSoftware/flogo-contrib", + "language": "Go", + "stargazersCount": 63, + "url": "https://github.com/TIBCOSoftware/flogo-contrib" + }, + { + "description": "EMQX CoAP Gateway", + "fullName": "emqxarchive/emqx-coap", + "language": "Erlang", + "stargazersCount": 62, + "url": "https://github.com/emqxarchive/emqx-coap" + }, + { + "description": "Constrained Application Protocol (CoAP) Interactive Shell", + "fullName": "tzolov/coap-shell", + "language": "Java", + "stargazersCount": 56, + "url": "https://github.com/tzolov/coap-shell" + }, + { + "description": "《IoT开发实战:CoAP卷》", + "fullName": "xukai871105/the_beginning_of_coap", + "language": "C", + "stargazersCount": 49, + "url": "https://github.com/xukai871105/the_beginning_of_coap" + }, + { + "description": "Network server and manager for lightweight M2M (LWM2M).", + "fullName": "PeterEB/coap-shepherd", + "language": "JavaScript", + "stargazersCount": 42, + "url": "https://github.com/PeterEB/coap-shepherd" + }, + { + "description": "CoAP / DTLS 1.2 CID client for Zephyr - Reliable - Efficient - Encrypted", + "fullName": "boaks/zephyr-coaps-client", + "language": "C", + "stargazersCount": 42, + "url": "https://github.com/boaks/zephyr-coaps-client" + }, + { + "description": "Air quality modules with Nordic nRF52840. Thread network (OpenThread). TheThingsIO. Sensirion. SPEC Sensors. ST Microelectronics.", + "fullName": "cellabox/cellabox", + "language": "C", + "stargazersCount": 37, + "url": "https://github.com/cellabox/cellabox" + }, + { + "description": "A lightweight CoAP message manipulation crate, ideal for embedded environments", + "fullName": "martindisch/coap-lite", + "language": "Rust", + "stargazersCount": 36, + "url": "https://github.com/martindisch/coap-lite" + }, + { + "description": "Constrained Applciaiton Protocol (CoAP) [RFC7252] for .Net Standard", + "fullName": "NZSmartie/CoAP.Net", + "language": "C#", + "stargazersCount": 35, + "url": "https://github.com/NZSmartie/CoAP.Net" + }, + { + "description": "Experimental Zig-based CoAP node for the HiFive1 RISC-V board", + "fullName": "nmeum/zig-riscv-embedded", + "language": "Zig", + "stargazersCount": 34, + "url": "https://github.com/nmeum/zig-riscv-embedded" + }, + { + "description": "CoAP Java library", + "fullName": "open-coap/java-coap", + "language": "Java", + "stargazersCount": 34, + "url": "https://github.com/open-coap/java-coap" + }, + { + "description": "Client node of lightweight M2M (LWM2M).", + "fullName": "PeterEB/coap-node", + "language": "JavaScript", + "stargazersCount": 32, + "url": "https://github.com/PeterEB/coap-node" + }, + { + "description": "A set of Python services to interact and transport data from IoT devices", + "fullName": "pyaiot/pyaiot", + "language": "Python", + "stargazersCount": 30, + "url": "https://github.com/pyaiot/pyaiot" + }, + { + "description": "Open source FreeRTOS SDK for ESP8266 WiFi Module", + "fullName": "jollen/rtos-wot", + "language": "C", + "stargazersCount": 29, + "url": "https://github.com/jollen/rtos-wot" + }, + { + "description": "Kotlin CoAP encoder/decoder.", + "fullName": "JuulLabs/koap", + "language": "Kotlin", + "stargazersCount": 28, + "url": "https://github.com/JuulLabs/koap" + }, + { + "description": "", + "fullName": "CreatorDev/DeviceServer", + "language": "C#", + "stargazersCount": 27, + "url": "https://github.com/CreatorDev/DeviceServer" + }, + { + "description": "A C implementation of the Static Context Header Compression", + "fullName": "imec-idlab/libschc", + "language": "C", + "stargazersCount": 25, + "url": "https://github.com/imec-idlab/libschc" + }, + { + "description": "EDHOC (RFC 9528): Lightweight authenticated key exchange in C for constrained IoT devices, post-quantum ready", + "fullName": "kamil-kielbasa/libedhoc", + "language": "C", + "stargazersCount": 25, + "url": "https://github.com/kamil-kielbasa/libedhoc" + }, + { + "description": "响应式的MQTT Broker项目,计划支持MQTT,WebSocket,CoAP,XMPP等常用的物联网协议。", + "fullName": "wuzguo/reactor-mqtt-server", + "language": "Java", + "stargazersCount": 25, + "url": "https://github.com/wuzguo/reactor-mqtt-server" + }, + { + "description": "Golang implementation of EMQX, the most scalable and reliable MQTT broker for AI, IoT, IIoT and connected vehicles", + "fullName": "turtacn/emqx-go", + "language": "Go", + "stargazersCount": 24, + "url": "https://github.com/turtacn/emqx-go" + }, + { + "description": "1NCE FreeRTOS BluePrint release integrates 1NCE SDK to benefit from different 1NCE OS tools including device Authentication and Energy Saver, with the addition of a static library for CoAP Protocol (Lobaro CoAP) and LwM2M (Wakaama).", + "fullName": "1NCE-GmbH/blueprint-freertos", + "language": "C", + "stargazersCount": 24, + "url": "https://github.com/1NCE-GmbH/blueprint-freertos" + }, + { + "description": "CoAP JMeter Plugin", + "fullName": "emqx/coap-jmeter", + "language": "Java", + "stargazersCount": 23, + "url": "https://github.com/emqx/coap-jmeter" + }, + { + "description": "Nabto Edge Embedded SDK. Secure, direct connections to your IoT devices.", + "fullName": "nabto/nabto-embedded-sdk", + "language": "C", + "stargazersCount": 23, + "url": "https://github.com/nabto/nabto-embedded-sdk" + }, + { + "description": "14 IoT and industrial communication libraries for Delphi 12: MQTT, AMQP 1.0, CoAP, Modbus, STOMP, WebSocket, mDNS/DNS-SD, NMEA, InfluxDB, Prometheus, CBOR, MessagePack, JSON, Serial — 694 tests, no external dependencies beyond Indy", + "fullName": "gustavoeenriquez/delphi-iot", + "language": "Pascal", + "stargazersCount": 22, + "url": "https://github.com/gustavoeenriquez/delphi-iot" + }, + { + "description": " Proposing security measures and security analysis in the Fiware IoT environment. ", + "fullName": "m4n3dw0lf/SecureFiware", + "language": "Shell", + "stargazersCount": 22, + "url": "https://github.com/m4n3dw0lf/SecureFiware" + }, + { + "description": "Lobaro CoAP for GoLang - server and client applications", + "fullName": "lobaro/coap-go", + "language": "C", + "stargazersCount": 21, + "url": "https://github.com/lobaro/coap-go" + }, + { + "description": "Migration of the original project [Waterius](https://github.com/dontsovcmc/waterius) to ESP32", + "fullName": "OloloevReal/Waterius32", + "language": "C", + "stargazersCount": 20, + "url": "https://github.com/OloloevReal/Waterius32" + }, + { + "description": "", + "fullName": "freebirdjs/freebird", + "language": "JavaScript", + "stargazersCount": 20, + "url": "https://github.com/freebirdjs/freebird" + }, + { + "description": "Robust, ergonomic CoAP server in Rust", + "fullName": "jasta/coap-server-rs", + "language": "Rust", + "stargazersCount": 18, + "url": "https://github.com/jasta/coap-server-rs" + }, + { + "description": "ZestDB", + "fullName": "me-box/zestdb", + "language": "OCaml", + "stargazersCount": 18, + "url": "https://github.com/me-box/zestdb" + }, + { + "description": "Thing.CoAP", + "fullName": "Alv3s/Thing.CoAP", + "language": "C++", + "stargazersCount": 17, + "url": "https://github.com/Alv3s/Thing.CoAP" + }, + { + "description": "A k6 extension for CoAP.", + "fullName": "golioth/xk6-coap", + "language": "Go", + "stargazersCount": 17, + "url": "https://github.com/golioth/xk6-coap" + }, + { + "description": "Basic support for CoAP for AWS IoT - In Development", + "fullName": "AndrewFarley/coap-for-aws-iot", + "language": "Python", + "stargazersCount": 16, + "url": "https://github.com/AndrewFarley/coap-for-aws-iot" + }, + { + "description": "A (soon to be) cross-platform tool for exploring CoAP protocol.", + "fullName": "NZSmartie/CoAPExplorer", + "language": "C#", + "stargazersCount": 16, + "url": "https://github.com/NZSmartie/CoAPExplorer" + }, + { + "description": "Framework to build Web of Things applications in Dart and Flutter.", + "fullName": "eclipse-thingweb/dart_wot", + "language": "Dart", + "stargazersCount": 16, + "url": "https://github.com/eclipse-thingweb/dart_wot" + }, + { + "description": "Parse Networking PDU , *.pcap *.pcapng file And Networing knowledge.", + "fullName": "linianhui/networking", + "language": "C#", + "stargazersCount": 15, + "url": "https://github.com/linianhui/networking" + }, + { + "description": "OpenCSMP: Opensource CSMP-Agent Library (CSMP-Agent-Lib)", + "fullName": "CiscoDevNet/csmp-agent-lib", + "language": "C", + "stargazersCount": 15, + "url": "https://github.com/CiscoDevNet/csmp-agent-lib" + }, + { + "description": "Anjay Lite is AVSystem’s ultra-lightweight implementation of the OMA SpecWorks LwM2M protocol, purpose-built for the most resource-constrained IoT devices.", + "fullName": "AVSystem/Anjay-lite", + "language": "C", + "stargazersCount": 15, + "url": "https://github.com/AVSystem/Anjay-lite" + }, + { + "description": "coap编解码器", + "fullName": "jetlinks/coap-codec", + "language": "Java", + "stargazersCount": 13, + "url": "https://github.com/jetlinks/coap-codec" + }, + { + "description": "CoAP protocol in Elixir", + "fullName": "lucastorri/coapex", + "language": "Elixir", + "stargazersCount": 13, + "url": "https://github.com/lucastorri/coapex" + }, + { + "description": "FuzzCoAP - Fuzzing for Robustness and Security Testing of CoAP Servers", + "fullName": "bsmelo/fuzzcoap", + "language": "Python", + "stargazersCount": 13, + "url": "https://github.com/bsmelo/fuzzcoap" + }, + { + "description": "Constrained Application Protocol (RFC 7252) implementation for OCaml.", + "fullName": "hyper-systems/ocaml-coap", + "language": "OCaml", + "stargazersCount": 12, + "url": "https://github.com/hyper-systems/ocaml-coap" + }, + { + "description": "Embedded IoT Platform for IoT projects based in Arduino and PlatformIO", + "fullName": "gotoiot/embed-iot-core", + "language": "C++", + "stargazersCount": 12, + "url": "https://github.com/gotoiot/embed-iot-core" + }, + { + "description": "Code examples, errata and additional tips and references to interesting projects for the book \"Building Wireless Sensor Networks with OpenThread: Developing CoAP Applications for Thread Networks with Zephyr\"", + "fullName": "koenvervloesem/openthread-applications", + "language": "C", + "stargazersCount": 12, + "url": "https://github.com/koenvervloesem/openthread-applications" + }, + { + "description": "Thread <=> MQTT gateway for my own custom CoAP node control protocol", + "fullName": "vke/thread2mqtt", + "language": "JavaScript", + "stargazersCount": 11, + "url": "https://github.com/vke/thread2mqtt" + }, + { + "description": "An open-source, edge-native IoT platform built in 100% Rust. Combining Cloudflare Workers performance with self-hosted data sovereignty.", + "fullName": "justins-engineering/pidgeiot", + "language": "Rust", + "stargazersCount": 11, + "url": "https://github.com/justins-engineering/pidgeiot" + }, + { + "description": ":bug: C implemenation of LWM2M protocol with low memory footprint", + "fullName": "moonglow/ulwm2m", + "language": "C", + "stargazersCount": 11, + "url": "https://github.com/moonglow/ulwm2m" + }, + { + "description": "Swift package for the Thread 1.4 external commissioner flow (ePSKc), using async/await to discover Thread Border Routers and retrieve the active dataset over DTLS", + "fullName": "phil-margetson/ThreadCommissionerKit", + "language": "C", + "stargazersCount": 10, + "url": "https://github.com/phil-margetson/ThreadCommissionerKit" + }, + { + "description": "TLV parsing/formatting library", + "fullName": "marcinbor85/microtlv", + "language": "C", + "stargazersCount": 10, + "url": "https://github.com/marcinbor85/microtlv" + }, + { + "description": "A WiP CoAP implementation for bare-metal constrained devices in Zig", + "fullName": "nmeum/zoap", + "language": "Zig", + "stargazersCount": 10, + "url": "https://github.com/nmeum/zoap" + }, + { + "description": "tinydtls-based reverse proxy server", + "fullName": "julznc/dtlsproxy", + "language": "C", + "stargazersCount": 10, + "url": "https://github.com/julznc/dtlsproxy" + }, + { + "description": "Formally verified implementation of the CoAP protocol in SPARK/Ada", + "fullName": "mgrojo/coap_spark", + "language": "Ada", + "stargazersCount": 9, + "url": "https://github.com/mgrojo/coap_spark" + }, + { + "description": "TaNoClo is a self-hosted replacement backend for the Tado smart heating ecosystem.", + "fullName": "tanoclo/tanoclo", + "language": "JavaScript", + "stargazersCount": 9, + "url": "https://github.com/tanoclo/tanoclo" + }, + { + "description": "Presentations of project results at end of hackathon", + "fullName": "IETF-Hackathon/ietf103-project-presentations", + "language": "", + "stargazersCount": 9, + "url": "https://github.com/IETF-Hackathon/ietf103-project-presentations" + }, + { + "description": "The world's most comprehensive OMA LwM2M (IoT) expert skill for Claude -- all versions v1.0-v2.0, full protocol stack, security, and ecosystem", + "fullName": "svdwalt007/Best-LwM2M-Agentic-Skills", + "language": "JavaScript", + "stargazersCount": 9, + "url": "https://github.com/svdwalt007/Best-LwM2M-Agentic-Skills" + }, + { + "description": "A CoAP Implementation for Rust using Tokio", + "fullName": "azdle/tokio-coap", + "language": "Rust", + "stargazersCount": 9, + "url": "https://github.com/azdle/tokio-coap" + }, + { + "description": "CoAP runtime that is heap allocation and operating-system optional", + "fullName": "toad-lib/toad", + "language": "Rust", + "stargazersCount": 9, + "url": "https://github.com/toad-lib/toad" + }, + { + "description": "The 1NCE Zephyr Blueprint is a reference application that showcases how to integrate and use various 1NCE OS features with Zephyr RTOS", + "fullName": "1NCE-GmbH/blueprint-zephyr", + "language": "C", + "stargazersCount": 9, + "url": "https://github.com/1NCE-GmbH/blueprint-zephyr" + }, + { + "description": "One-stop iot solution (In development) ", + "fullName": "DearJingSoftware/iotpack", + "language": "Java", + "stargazersCount": 8, + "url": "https://github.com/DearJingSoftware/iotpack" + }, + { + "description": "Core Framework Project - White Label Digital Twin", + "fullName": "wldt/wldt-core-0.1-deprecated", + "language": "Java", + "stargazersCount": 8, + "url": "https://github.com/wldt/wldt-core-0.1-deprecated" + }, + { + "description": "CoAP messaging GUI tool", + "fullName": "kb2ma/cotel", + "language": "Nim", + "stargazersCount": 8, + "url": "https://github.com/kb2ma/cotel" + }, + { + "description": "Authentication and Authorization module of HTTP/MQTT/CoAP Brokers based on NodeJS for IoT or Internet of Things.", + "fullName": "authbroker/authbroker", + "language": "JavaScript", + "stargazersCount": 8, + "url": "https://github.com/authbroker/authbroker" + }, + { + "description": "An(other) Async Rust CoAP Client", + "fullName": "ryankurte/rust-coap-client", + "language": "Rust", + "stargazersCount": 7, + "url": "https://github.com/ryankurte/rust-coap-client" + }, + { + "description": "CoAP web applications on JavaCard", + "fullName": "OpenJavaCard/openjavacard-coap", + "language": "Java", + "stargazersCount": 7, + "url": "https://github.com/OpenJavaCard/openjavacard-coap" + }, + { + "description": "FastCoAP is a modern, high-performance Python framework for building CoAP applications and IoT APIs.", + "fullName": "darixsamani/fastcoap", + "language": "Python", + "stargazersCount": 7, + "url": "https://github.com/darixsamani/fastcoap" + } + ] +} diff --git a/docs/audits/coap-20261113/upstream-prs.json b/docs/audits/coap-20261113/upstream-prs.json new file mode 100644 index 0000000..aa1cb35 --- /dev/null +++ b/docs/audits/coap-20261113/upstream-prs.json @@ -0,0 +1,166 @@ +[ + { + "number": 81, + "title": "Allow broadcast requests to the servers", + "state": "open", + "merged_at": null, + "head": "73562acb583528adc9052bbf6f2b136221c48329", + "source": "raspopov/CoAP.NET", + "body": "It allows the client to use requests of the form: \"coap://255.255.255.255/.well-known/core\" to search for primitive servers on the local area network (LAN) that do not support multicasts.\r\n\r\nIt also enables the client to reuse sockets, since the packets have a built-in mechanism for determining if the response matches the request.", + "url": "https://github.com/smeshlink/CoAP.NET/pull/81" + }, + { + "number": 80, + "title": "Fix a bug in the test", + "state": "open", + "merged_at": null, + "head": "78db4c2922f90fed960279af28b7581eceb73659", + "source": "raspopov/CoAP.NET", + "body": "The variable that counted the number of responses to requests was not cleared between tests. This caused incorrect counting if the order of the tests was changed.", + "url": "https://github.com/smeshlink/CoAP.NET/pull/80" + }, + { + "number": 64, + "title": "Correct debug output message on shutdown", + "state": "open", + "merged_at": null, + "head": "96818bdca520c554973bc71c3fa4d145f6936354", + "source": "mfalkvidd/CoAP.NET", + "body": "", + "url": "https://github.com/smeshlink/CoAP.NET/pull/64" + }, + { + "number": 53, + "title": "Implement OSCOAP to get security running", + "state": "open", + "merged_at": null, + "head": "122eca53930b9554f8b5e03a3c7ce3db23430f60", + "source": "jimsch/CoAP.NET", + "body": "This is not really a request for doing a pull yet, it is more a case of asking for review to see if this is something that you are interested in and if you think that it is in the correct direction.\r\n\r\nThis is not a complete implementation yet. Some of the things that I know are missing:\r\n* Observe and blockwise transfer are going to require doing a cached exchange in the OSCOAP layer.\r\n* The OSCOAP option number has not been assigned so I have chosen something arbitrary (and wrong) for testing purposes.\r\n* Need to figure out all of the builds to make sure that all of them will build correctly. Part of this is going to be the question of how do do builds for both with and without OSCOAP in all probability given the set of components that I am dragging in for cryptography. Also there may be a problem as not all of the modules that I am currently using are signed and thus if this is signed then they cannot be loaded.\r\n", + "url": "https://github.com/smeshlink/CoAP.NET/pull/53" + }, + { + "number": 50, + "title": "Fix for set URI-PORT when set URI again and there is no port value", + "state": "closed", + "merged_at": "2016-05-27T17:36:18Z", + "head": "59ad80c4cfd907204cbaf3a16aa6b970345a32e9", + "body": "It's fix for setting port when previouse some port value was set and after that new URI without port is set.\n\nExample:\n\n```\nRequest r = new Request(Method.GET, true)\nr.URI = new URI(\"coap://127.0.0.1:12345/res\") //here port is set to 12345\nr.URI = new URI(\"coap://127.0.0.1/res\") // here port option was not changed and stay 12345\n```\n", + "url": "https://github.com/smeshlink/CoAP.NET/pull/50" + }, + { + "number": 45, + "title": "Fix for issue #44", + "state": "closed", + "merged_at": "2016-03-09T15:03:10Z", + "head": "43a402a26488413a542762100576c1be5ea8bedc", + "body": "in CoAP.Message get options ProxyUri and ProxyScheme should use valid option type\n", + "url": "https://github.com/smeshlink/CoAP.NET/pull/45" + }, + { + "number": 43, + "title": "Fixing broken example links in README.md", + "state": "closed", + "merged_at": "2016-02-19T02:53:00Z", + "head": "b828d2fea65448e5efeb9412a27712efb95e320a", + "body": "Fixing broken client and server example links\n", + "url": "https://github.com/smeshlink/CoAP.NET/pull/43" + }, + { + "number": 42, + "title": "Updated CoAP.NET for Visual Studio 2015", + "state": "closed", + "merged_at": null, + "head": "3da9bf4e92ce7fe0506934aec1c48b7d7517aba3", + "body": "These changes enable Visual Studio to build all example projects.\n", + "url": "https://github.com/smeshlink/CoAP.NET/pull/42" + }, + { + "number": 36, + "title": "Feat/dnx", + "state": "closed", + "merged_at": "2015-09-25T03:11:38Z", + "head": "f25efe378813a681830ff310637ae99c9fdd5240", + "source": "kulak/CoAP.NET", + "body": "Added .NET DNX projects to \n- CoAP.NET project\n- CoAP.Client project\n\nHopefully this merges into master and not into feat/dnx branch.\n", + "url": "https://github.com/smeshlink/CoAP.NET/pull/36" + }, + { + "number": 35, + "title": "Feat/dnx", + "state": "closed", + "merged_at": null, + "head": "f25efe378813a681830ff310637ae99c9fdd5240", + "source": "kulak/CoAP.NET", + "body": "Code compiles on Visual Studio 2015 machine.\nThe following projects have been ported to DNX:\n- CoAP.NET as CoAP.NET.DNX\n- CoAP.Client as CoAP.Client.DNX\n\nI want to push changes to master branch, but this might end up creating feat/dnx branch. Perhaps it is better this way.\n", + "url": "https://github.com/smeshlink/CoAP.NET/pull/35" + }, + { + "number": 34, + "title": "Update Resource.cs", + "state": "closed", + "merged_at": "2015-09-16T01:42:35Z", + "head": "6fcdf3dfd8b50e76063a78aea0784e8a3f027e06", + "source": "delmet/CoAP.NET", + "body": "If Parent is null still allow name change\n", + "url": "https://github.com/smeshlink/CoAP.NET/pull/34" + }, + { + "number": 33, + "title": "Update Resource.cs", + "state": "closed", + "merged_at": "2015-09-14T01:37:35Z", + "head": "dd6bf3ae61f2dc1c96f26636c2a24680c523cc27", + "source": "delmet/CoAP.NET", + "body": "Changing name of resource while not attached to parent causes null exception\n", + "url": "https://github.com/smeshlink/CoAP.NET/pull/33" + }, + { + "number": 24, + "title": "Removed 2 lines for mono compatibility", + "state": "closed", + "merged_at": null, + "head": "d54c92df570f2181c35913f8789a83730e827d01", + "source": "martindevans/CoAP.NET", + "body": "Running the CoAP.Example/CoAP.Client on Linux (using mono 4.0.1) crashes with an exception: \"Failed Executing Request: The Descriptor Is Not A Socket\", this is caused by the lines which I have removed (commented out).\n\nAll three example projects now run under Mono :)\n", + "url": "https://github.com/smeshlink/CoAP.NET/pull/24" + }, + { + "number": 14, + "title": "Exposed things necessary to translate HTTP <--> CoAP", + "state": "closed", + "merged_at": "2014-12-22T02:56:28Z", + "head": "7739d59660cfa44a337685c0184b90a2f90eb777", + "source": "martindevans/CoAP.NET", + "body": "At the moment to translate between CoAP and HTTP seems to require hosting a HTTP server using CoAP.NET. However in my application I already have a server with HTTP requests coming in, this change allows me to internally translate those requests into CoAP requests and send them on to the appropriate CoAP device, and then translate back to HTTP for the response.\n\nSigned-off-by: Martin Evans martindevans@gmail.com\n", + "url": "https://github.com/smeshlink/CoAP.NET/pull/14" + }, + { + "number": 7, + "title": "Removing next.SequenceKey from debug log since it is always null here", + "state": "closed", + "merged_at": "2013-09-01T02:37:13Z", + "head": "9976876f1fea623f89057af1d33fcdc83c12e3cd", + "body": "Removing next.SequenceKey from debug log since it is always null here.\nLeaving it will throw a null exception.\n", + "url": "https://github.com/smeshlink/CoAP.NET/pull/7" + }, + { + "number": 4, + "title": "Adding CoAP.NET.iOS Project", + "state": "closed", + "merged_at": "2013-08-19T07:54:46Z", + "head": "33ebbdf810aee992be37f0e7a93e0a2ea2a900a6", + "body": "Adding linked CoAP.NET.iOS project for Xamarin/MonoTouch use\n", + "url": "https://github.com/smeshlink/CoAP.NET/pull/4" + }, + { + "number": 1, + "title": "add LICENSE", + "state": "closed", + "merged_at": "2013-04-28T07:59:24Z", + "head": "0710cb90a2aaa16ae24690dba7e662b2573f022b", + "source": "smeshlink/CoAP.NET", + "body": "", + "url": "https://github.com/smeshlink/CoAP.NET/pull/1" + } +] diff --git a/docs/audits/coap-20261113/validation-final.json b/docs/audits/coap-20261113/validation-final.json new file mode 100644 index 0000000..0782382 --- /dev/null +++ b/docs/audits/coap-20261113/validation-final.json @@ -0,0 +1,134 @@ +{ + "date": "2026-11-13", + "timezone": "Asia/Shanghai", + "baseline": "1abe69a0edaf55147ad6bccaa4e012aea87a8252", + "mergeParents": [ + "58d29ea", + "258f9e987dd31955bb4a21305ea599d097996a9f" + ], + "gates": { + "tests": { + "status": "PASS", + "passed": 219, + "failed": 0, + "skipped": 0, + "trx": "TestResults/Integration/integration-final-20261113.trx", + "command": "dotnet test CoAP.Test/CoAP.Test.csproj -c Release --no-restore -m:1 -nodeReuse:false -p:UseSharedCompilation=false --logger trx;LogFileName=integration-final-20261113.trx --results-directory TestResults/Integration" + }, + "format": { + "status": "PASS", + "exit": 0, + "command": "dotnet format CoAP.Test/CoAP.Test.csproj --verify-no-changes --no-restore --severity warn --include CoAP.NET/CoapClient.cs CoAP.NET/Codec/DatagramReader.cs CoAP.NET/Codec/MessageDecoder.cs CoAP.NET/Net/CoAPEndPoint.cs CoAP.NET/Net/Matcher.cs CoAP.NET/Server/CoapServer.cs CoAP.NET/Spec.cs CoAP.NET/Stack/BlockwiseLayer.cs CoAP.Test/BlockwiseProtocolRegressionTest.cs CoAP.Test/CoapClientTest.cs CoAP.Test/CoapClientProtocolFailureTest.cs CoAP.Test/DecoderFailureStateTest.cs CoAP.Test/MalformedDatagramTest.cs CoAP.Test/MatcherProtocolTest.cs CoAP.NET/Option.cs CoAP.Test/CriticalOptionClassificationTest.cs" + }, + "peerInterop": { + "status": "NOT_RUN", + "issue": 26 + }, + "nativeAotRun": { + "status": "NOT_RUN" + }, + "packagePublication": { + "status": "NOT_RUN" + }, + "deviceFieldSoak": { + "status": "NOT_RUN" + } + }, + "baselineFailures": [ + { + "slice": "critical classification", + "failed": 6, + "passed": 6, + "status": "FAIL_EXPECTED" + } + ], + "historicalGateFailure": { + "commit": "58d29ea", + "gate": "git diff --cached --check", + "exit": 2, + "cause": "new blank line at EOF in new CoapClientProtocolFailureTest.cs", + "action": "kept local history, removed owned extra newline and reran final gates; no remote push preceded correction" + }, + "sourceFiles": [ + { + "path": "CoAP.NET/CoapClient.cs", + "sha256": "d091feca4adc7d6d0069f9ecd74c4dfd14dcc331160fb7c710b9b4aa8dab2b3d", + "bytes": 19360 + }, + { + "path": "CoAP.NET/Codec/DatagramReader.cs", + "sha256": "a37a21745272b4c8d96b7bae9e649a5b104136de6c84c4d4442021420529bcb1", + "bytes": 4740 + }, + { + "path": "CoAP.NET/Codec/MessageDecoder.cs", + "sha256": "1db0581c529f2ee593a307a5a2372a71ff389a93eccd2bb7d8e68a9957d94c50", + "bytes": 5408 + }, + { + "path": "CoAP.NET/Net/CoAPEndPoint.cs", + "sha256": "679a30aadbda8d9d70967b124f8ecf1e26d4808b13fb493087b6ef4ab7ce73c7", + "bytes": 16148 + }, + { + "path": "CoAP.NET/Net/Matcher.cs", + "sha256": "b872903b610c26c03278731a5ad0bb628b0e53ffd7e16524083ca98eb2ddb07c", + "bytes": 21920 + }, + { + "path": "CoAP.NET/Server/CoapServer.cs", + "sha256": "592c3e10cd6a627bc59903b45e0a4360bea66b63d0faaf0d5d741f09887f35c8", + "bytes": 6447 + }, + { + "path": "CoAP.NET/Spec.cs", + "sha256": "855e5eae1e20ab91e06414eda180cc4c590e332d8f63e53c90b7ea530925c88c", + "bytes": 67095 + }, + { + "path": "CoAP.NET/Stack/BlockwiseLayer.cs", + "sha256": "e76a07188404f53cbcff550a87db5e28ed2defe014d51021e1e2bd35c07d0fcf", + "bytes": 30571 + }, + { + "path": "CoAP.Test/BlockwiseProtocolRegressionTest.cs", + "sha256": "e77b8780a613fd452d76464fe3db3a0e3213d5468dffdeae8ab253b54e6a1f0d", + "bytes": 19433 + }, + { + "path": "CoAP.Test/CoapClientTest.cs", + "sha256": "475466f7b291ae78033752e8e77a36ede3a744caee1ed73d1beb9ba5f39aa53a", + "bytes": 8637 + }, + { + "path": "CoAP.Test/CoapClientProtocolFailureTest.cs", + "sha256": "2bef36fb1a3f814dc4aaa0766d957234ea26fbc913d4f2888ddb0a29d71e45d8", + "bytes": 6377 + }, + { + "path": "CoAP.Test/DecoderFailureStateTest.cs", + "sha256": "d4924c1846a119e3c7cc75714e876bfdad450eee90420f4ec8ad354f9b667d9d", + "bytes": 1538 + }, + { + "path": "CoAP.Test/MalformedDatagramTest.cs", + "sha256": "4f54dd1c3ee8472437659262a3026ad358030ff392a3606f45ea1d102e9a6ef8", + "bytes": 10333 + }, + { + "path": "CoAP.Test/MatcherProtocolTest.cs", + "sha256": "40d0173ab9184727ee80b383236fd6bd2fa6855d667486dda2eaccc2d02706e3", + "bytes": 10512 + }, + { + "path": "CoAP.NET/Option.cs", + "sha256": "230321c7ea2d867f0f3292df68bd2994d1c0eb28c2d12e624f02609443e232fb", + "bytes": 20259 + }, + { + "path": "CoAP.Test/CriticalOptionClassificationTest.cs", + "sha256": "8bee4e3aa709c7d4b95a107a1eb1b985af672c05c6b63190dd3ad17b4318a1c6", + "bytes": 922 + } + ] +} diff --git a/docs/audits/coap-20261113/validation-first-wave.json b/docs/audits/coap-20261113/validation-first-wave.json new file mode 100644 index 0000000..ccf5bdd --- /dev/null +++ b/docs/audits/coap-20261113/validation-first-wave.json @@ -0,0 +1,386 @@ +{ + "date": "2026-11-13", + "timezone": "Asia/Shanghai", + "baseline": "1abe69a0edaf55147ad6bccaa4e012aea87a8252", + "integratedCommits": [ + "4138aef8183eba9c118038da9b7e7b8ee8ad212f", + "ff9e76392c4dd4a5f764c652e9501fe036379c65", + "d299b483401d93b14df2869320cb16e5976f18c7", + "7aa0fcb37a6344199aa1420d7ab1531f1c372042" + ], + "scope": "First UDP interoperability slices; later standards issues stay open", + "verification": [ + { + "gate": "CoAP.Test Release", + "status": "PASS", + "passed": 207, + "failed": 0, + "skipped": 0, + "command": "dotnet test CoAP.Test/CoAP.Test.csproj -c Release --no-restore -m:1 -nodeReuse:false -p:UseSharedCompilation=false --logger trx;LogFileName=integration-20261113.trx --results-directory TestResults/Integration", + "trx": "TestResults/Integration/integration-20261113.trx" + }, + { + "gate": "Owned source formatting", + "status": "PASS", + "exit": 0, + "command": "dotnet format CoAP.Test/CoAP.Test.csproj --verify-no-changes --no-restore --severity warn --include CoAP.NET/CoapClient.cs CoAP.NET/Codec/DatagramReader.cs CoAP.NET/Codec/MessageDecoder.cs CoAP.NET/Net/CoAPEndPoint.cs CoAP.NET/Net/Matcher.cs CoAP.NET/Server/CoapServer.cs CoAP.NET/Spec.cs CoAP.NET/Stack/BlockwiseLayer.cs CoAP.Test/BlockwiseProtocolRegressionTest.cs CoAP.Test/CoapClientTest.cs CoAP.Test/CoapClientProtocolFailureTest.cs CoAP.Test/DecoderFailureStateTest.cs CoAP.Test/MalformedDatagramTest.cs CoAP.Test/MatcherProtocolTest.cs" + }, + { + "gate": "ResourceMvc restore/build", + "status": "PASS", + "warnings": 0, + "errors": 0 + }, + { + "gate": "git diff --check", + "status": "PASS" + }, + { + "gate": "Cross-implementation peer interoperability", + "status": "NOT_RUN", + "issue": 26 + }, + { + "gate": "NativeAOT publish/run", + "status": "NOT_RUN" + }, + { + "gate": "NuGet publication/consumption", + "status": "NOT_RUN" + }, + { + "gate": "Device/field/soak", + "status": "NOT_RUN" + } + ], + "baselineFailures": [ + { + "slice": "parser", + "status": "FAIL_EXPECTED", + "failed": 3, + "description": "Original code accepts wrong version, truncated option, Empty payload" + }, + { + "slice": "matcher", + "status": "FAIL_EXPECTED", + "failed": 2, + "passed": 2 + }, + { + "slice": "Block1 initial", + "status": "FAIL_EXPECTED", + "failed": 3, + "passed": 1 + }, + { + "slice": "Block1 review correction", + "status": "FAIL_EXPECTED", + "failed": 6 + }, + { + "slice": "decoder retry", + "status": "FAIL_EXPECTED", + "failed": 4 + }, + { + "slice": "async cancellation mapping", + "status": "FAIL_EXPECTED", + "failed": 2, + "passed": 2 + } + ], + "sourceFiles": [ + { + "path": "CoAP.NET/CoapClient.cs", + "result": { + "status": "ok", + "operation": "hash_file", + "source": "C:\\Users\\mysti\\.codex\\coap-repos\\integration\\CoAP.NET\\CoapClient.cs", + "destination": null, + "written_to_disk": false, + "source_removed": false, + "file_changed": false, + "cleanup_complete": true, + "metadata_checked": false, + "metadata_preserved": false, + "size_bytes": 19360, + "bytes_processed": 19360, + "sha256": "d091feca4adc7d6d0069f9ecd74c4dfd14dcc331160fb7c710b9b4aa8dab2b3d", + "native_error": 0, + "elapsed_ms": 0 + } + }, + { + "path": "CoAP.NET/Codec/DatagramReader.cs", + "result": { + "status": "ok", + "operation": "hash_file", + "source": "C:\\Users\\mysti\\.codex\\coap-repos\\integration\\CoAP.NET\\Codec\\DatagramReader.cs", + "destination": null, + "written_to_disk": false, + "source_removed": false, + "file_changed": false, + "cleanup_complete": true, + "metadata_checked": false, + "metadata_preserved": false, + "size_bytes": 4740, + "bytes_processed": 4740, + "sha256": "a37a21745272b4c8d96b7bae9e649a5b104136de6c84c4d4442021420529bcb1", + "native_error": 0, + "elapsed_ms": 0 + } + }, + { + "path": "CoAP.NET/Codec/MessageDecoder.cs", + "result": { + "status": "ok", + "operation": "hash_file", + "source": "C:\\Users\\mysti\\.codex\\coap-repos\\integration\\CoAP.NET\\Codec\\MessageDecoder.cs", + "destination": null, + "written_to_disk": false, + "source_removed": false, + "file_changed": false, + "cleanup_complete": true, + "metadata_checked": false, + "metadata_preserved": false, + "size_bytes": 5408, + "bytes_processed": 5408, + "sha256": "1db0581c529f2ee593a307a5a2372a71ff389a93eccd2bb7d8e68a9957d94c50", + "native_error": 0, + "elapsed_ms": 0 + } + }, + { + "path": "CoAP.NET/Net/CoAPEndPoint.cs", + "result": { + "status": "ok", + "operation": "hash_file", + "source": "C:\\Users\\mysti\\.codex\\coap-repos\\integration\\CoAP.NET\\Net\\CoAPEndPoint.cs", + "destination": null, + "written_to_disk": false, + "source_removed": false, + "file_changed": false, + "cleanup_complete": true, + "metadata_checked": false, + "metadata_preserved": false, + "size_bytes": 16148, + "bytes_processed": 16148, + "sha256": "679a30aadbda8d9d70967b124f8ecf1e26d4808b13fb493087b6ef4ab7ce73c7", + "native_error": 0, + "elapsed_ms": 0 + } + }, + { + "path": "CoAP.NET/Net/Matcher.cs", + "result": { + "status": "ok", + "operation": "hash_file", + "source": "C:\\Users\\mysti\\.codex\\coap-repos\\integration\\CoAP.NET\\Net\\Matcher.cs", + "destination": null, + "written_to_disk": false, + "source_removed": false, + "file_changed": false, + "cleanup_complete": true, + "metadata_checked": false, + "metadata_preserved": false, + "size_bytes": 21920, + "bytes_processed": 21920, + "sha256": "b872903b610c26c03278731a5ad0bb628b0e53ffd7e16524083ca98eb2ddb07c", + "native_error": 0, + "elapsed_ms": 0 + } + }, + { + "path": "CoAP.NET/Server/CoapServer.cs", + "result": { + "status": "ok", + "operation": "hash_file", + "source": "C:\\Users\\mysti\\.codex\\coap-repos\\integration\\CoAP.NET\\Server\\CoapServer.cs", + "destination": null, + "written_to_disk": false, + "source_removed": false, + "file_changed": false, + "cleanup_complete": true, + "metadata_checked": false, + "metadata_preserved": false, + "size_bytes": 6447, + "bytes_processed": 6447, + "sha256": "592c3e10cd6a627bc59903b45e0a4360bea66b63d0faaf0d5d741f09887f35c8", + "native_error": 0, + "elapsed_ms": 0 + } + }, + { + "path": "CoAP.NET/Spec.cs", + "result": { + "status": "ok", + "operation": "hash_file", + "source": "C:\\Users\\mysti\\.codex\\coap-repos\\integration\\CoAP.NET\\Spec.cs", + "destination": null, + "written_to_disk": false, + "source_removed": false, + "file_changed": false, + "cleanup_complete": true, + "metadata_checked": false, + "metadata_preserved": false, + "size_bytes": 67095, + "bytes_processed": 67095, + "sha256": "855e5eae1e20ab91e06414eda180cc4c590e332d8f63e53c90b7ea530925c88c", + "native_error": 0, + "elapsed_ms": 0 + } + }, + { + "path": "CoAP.NET/Stack/BlockwiseLayer.cs", + "result": { + "status": "ok", + "operation": "hash_file", + "source": "C:\\Users\\mysti\\.codex\\coap-repos\\integration\\CoAP.NET\\Stack\\BlockwiseLayer.cs", + "destination": null, + "written_to_disk": false, + "source_removed": false, + "file_changed": false, + "cleanup_complete": true, + "metadata_checked": false, + "metadata_preserved": false, + "size_bytes": 30571, + "bytes_processed": 30571, + "sha256": "e76a07188404f53cbcff550a87db5e28ed2defe014d51021e1e2bd35c07d0fcf", + "native_error": 0, + "elapsed_ms": 0 + } + }, + { + "path": "CoAP.Test/BlockwiseProtocolRegressionTest.cs", + "result": { + "status": "ok", + "operation": "hash_file", + "source": "C:\\Users\\mysti\\.codex\\coap-repos\\integration\\CoAP.Test\\BlockwiseProtocolRegressionTest.cs", + "destination": null, + "written_to_disk": false, + "source_removed": false, + "file_changed": false, + "cleanup_complete": true, + "metadata_checked": false, + "metadata_preserved": false, + "size_bytes": 19433, + "bytes_processed": 19433, + "sha256": "e77b8780a613fd452d76464fe3db3a0e3213d5468dffdeae8ab253b54e6a1f0d", + "native_error": 0, + "elapsed_ms": 0 + } + }, + { + "path": "CoAP.Test/CoapClientTest.cs", + "result": { + "status": "ok", + "operation": "hash_file", + "source": "C:\\Users\\mysti\\.codex\\coap-repos\\integration\\CoAP.Test\\CoapClientTest.cs", + "destination": null, + "written_to_disk": false, + "source_removed": false, + "file_changed": false, + "cleanup_complete": true, + "metadata_checked": false, + "metadata_preserved": false, + "size_bytes": 8637, + "bytes_processed": 8637, + "sha256": "475466f7b291ae78033752e8e77a36ede3a744caee1ed73d1beb9ba5f39aa53a", + "native_error": 0, + "elapsed_ms": 0 + } + }, + { + "path": "CoAP.Test/CoapClientProtocolFailureTest.cs", + "result": { + "status": "ok", + "operation": "hash_file", + "source": "C:\\Users\\mysti\\.codex\\coap-repos\\integration\\CoAP.Test\\CoapClientProtocolFailureTest.cs", + "destination": null, + "written_to_disk": false, + "source_removed": false, + "file_changed": false, + "cleanup_complete": true, + "metadata_checked": false, + "metadata_preserved": false, + "size_bytes": 6378, + "bytes_processed": 6378, + "sha256": "22e6888a393d39d812dc8f94b7adbdcadae26ee3753587ff7dbc19e8d0adc683", + "native_error": 0, + "elapsed_ms": 0 + } + }, + { + "path": "CoAP.Test/DecoderFailureStateTest.cs", + "result": { + "status": "ok", + "operation": "hash_file", + "source": "C:\\Users\\mysti\\.codex\\coap-repos\\integration\\CoAP.Test\\DecoderFailureStateTest.cs", + "destination": null, + "written_to_disk": false, + "source_removed": false, + "file_changed": false, + "cleanup_complete": true, + "metadata_checked": false, + "metadata_preserved": false, + "size_bytes": 1538, + "bytes_processed": 1538, + "sha256": "d4924c1846a119e3c7cc75714e876bfdad450eee90420f4ec8ad354f9b667d9d", + "native_error": 0, + "elapsed_ms": 0 + } + }, + { + "path": "CoAP.Test/MalformedDatagramTest.cs", + "result": { + "status": "ok", + "operation": "hash_file", + "source": "C:\\Users\\mysti\\.codex\\coap-repos\\integration\\CoAP.Test\\MalformedDatagramTest.cs", + "destination": null, + "written_to_disk": false, + "source_removed": false, + "file_changed": false, + "cleanup_complete": true, + "metadata_checked": false, + "metadata_preserved": false, + "size_bytes": 10333, + "bytes_processed": 10333, + "sha256": "4f54dd1c3ee8472437659262a3026ad358030ff392a3606f45ea1d102e9a6ef8", + "native_error": 0, + "elapsed_ms": 0 + } + }, + { + "path": "CoAP.Test/MatcherProtocolTest.cs", + "result": { + "status": "ok", + "operation": "hash_file", + "source": "C:\\Users\\mysti\\.codex\\coap-repos\\integration\\CoAP.Test\\MatcherProtocolTest.cs", + "destination": null, + "written_to_disk": false, + "source_removed": false, + "file_changed": false, + "cleanup_complete": true, + "metadata_checked": false, + "metadata_preserved": false, + "size_bytes": 10512, + "bytes_processed": 10512, + "sha256": "40d0173ab9184727ee80b383236fd6bd2fa6855d667486dda2eaccc2d02706e3", + "native_error": 0, + "elapsed_ms": 0 + } + } + ], + "resourceBoundary": "All validation commands use bounded Cordonix process groups. No persistent service was started. Inaccessible entries in global process snapshots remain UNKNOWN rather than evidence of zero unrelated processes.", + "remainingIssues": [ + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31 + ] +} diff --git a/docs/audits/coap-20261113/validation-review.json b/docs/audits/coap-20261113/validation-review.json new file mode 100644 index 0000000..6de149d --- /dev/null +++ b/docs/audits/coap-20261113/validation-review.json @@ -0,0 +1,156 @@ +{ + "date": "2026-11-13", + "timezone": "Asia/Shanghai", + "baseline": "937e32cc7112584eec884ecd70b7ad6d5e5db8a5", + "review": "https://github.com/IoTSharp/CoAP.NET/pull/32", + "integratedCommits": [ + "41ac813a1e5355eb30ba2a9d867ca7af5ce8385e", + "6152facbd9603ef33fb9331da5aeb7168509b9a3" + ], + "findings": [ + { + "comment": 4554524710, + "behavior": "Serialize Block1 continuation before optional intermediate Block2", + "status": "FIXED_WITH_REGRESSION" + }, + { + "comment": 4554524782, + "behavior": "Canonicalize IPv4-mapped IPv6 endpoints, preserving ports/native scope", + "status": "FIXED_WITH_REGRESSION" + }, + { + "comment": 4554524830, + "behavior": "Cancel invalid current Block1 ACK after reliability consumed it", + "status": "FIXED_WITH_REGRESSION" + }, + { + "comment": 4554524879, + "behavior": "Reject unsolicited non-final Block1 success; preserve manual Block1 and 4.13 hint", + "status": "FIXED_WITH_REGRESSION" + } + ], + "baselineEvidence": { + "endpoint": { + "failed": 6, + "passed": 7, + "total": 13 + }, + "mappedMatcher": { + "failed": 18, + "passed": 14, + "total": 32 + }, + "blockwise": { + "targetedFailed": 7, + "supplementaryNoStateFailed": 3, + "note": "supplementary cases overlap; do not add failure counts" + } + }, + "gates": { + "releaseTests": { + "status": "PASS", + "passed": 258, + "failed": 0, + "skipped": 0, + "trx": "TestResults/Integration/pr32-review-20261113.trx" + }, + "endpointCombination": { + "status": "PASS", + "passed": 13, + "failed": 0 + }, + "ownedSourceFormat": { + "status": "PASS", + "exit": 0 + } + }, + "sourceFiles": [ + { + "path": "CoAP.NET/CoapClient.cs", + "sha256": "d091feca4adc7d6d0069f9ecd74c4dfd14dcc331160fb7c710b9b4aa8dab2b3d", + "bytes": 19360 + }, + { + "path": "CoAP.NET/Codec/DatagramReader.cs", + "sha256": "a37a21745272b4c8d96b7bae9e649a5b104136de6c84c4d4442021420529bcb1", + "bytes": 4740 + }, + { + "path": "CoAP.NET/Codec/MessageDecoder.cs", + "sha256": "1db0581c529f2ee593a307a5a2372a71ff389a93eccd2bb7d8e68a9957d94c50", + "bytes": 5408 + }, + { + "path": "CoAP.NET/Net/CoAPEndPoint.cs", + "sha256": "679a30aadbda8d9d70967b124f8ecf1e26d4808b13fb493087b6ef4ab7ce73c7", + "bytes": 16148 + }, + { + "path": "CoAP.NET/Net/Matcher.cs", + "sha256": "ae0d3bcd69abefd33055d3db5950c8057ed633a2280a0b28dbfc91baa7141d9e", + "bytes": 22680 + }, + { + "path": "CoAP.NET/Server/CoapServer.cs", + "sha256": "592c3e10cd6a627bc59903b45e0a4360bea66b63d0faaf0d5d741f09887f35c8", + "bytes": 6447 + }, + { + "path": "CoAP.NET/Spec.cs", + "sha256": "855e5eae1e20ab91e06414eda180cc4c590e332d8f63e53c90b7ea530925c88c", + "bytes": 67095 + }, + { + "path": "CoAP.NET/Stack/BlockwiseLayer.cs", + "sha256": "a50b8fc1c34c332343fdde5109e2d82d1b3ee2b0af7a167a84609799817a7b6f", + "bytes": 31990 + }, + { + "path": "CoAP.Test/BlockwiseProtocolRegressionTest.cs", + "sha256": "9301a53bdd2bc92c4ab63c90a3a9f20cc23852feda8fb522d2213f37ade0e69e", + "bytes": 23125 + }, + { + "path": "CoAP.Test/CoapClientTest.cs", + "sha256": "475466f7b291ae78033752e8e77a36ede3a744caee1ed73d1beb9ba5f39aa53a", + "bytes": 8637 + }, + { + "path": "CoAP.Test/CoapClientProtocolFailureTest.cs", + "sha256": "2a275dd31b3f659dc58598a978ccf6578c11498078103ee5d37ec2b63bdeb37f", + "bytes": 16063 + }, + { + "path": "CoAP.Test/DecoderFailureStateTest.cs", + "sha256": "d4924c1846a119e3c7cc75714e876bfdad450eee90420f4ec8ad354f9b667d9d", + "bytes": 1538 + }, + { + "path": "CoAP.Test/MalformedDatagramTest.cs", + "sha256": "4f54dd1c3ee8472437659262a3026ad358030ff392a3606f45ea1d102e9a6ef8", + "bytes": 10333 + }, + { + "path": "CoAP.Test/MatcherProtocolTest.cs", + "sha256": "f0ec02886b79b9164822eee1b9f3512c1078668cd8d83598a90b40fba23635d2", + "bytes": 20074 + }, + { + "path": "CoAP.NET/Option.cs", + "sha256": "230321c7ea2d867f0f3292df68bd2994d1c0eb28c2d12e624f02609443e232fb", + "bytes": 20259 + }, + { + "path": "CoAP.Test/CriticalOptionClassificationTest.cs", + "sha256": "8bee4e3aa709c7d4b95a107a1eb1b985af672c05c6b63190dd3ad17b4318a1c6", + "bytes": 922 + } + ], + "independentGates": { + "peerInterop": "NOT_RUN", + "nativeAotExecution": "NOT_RUN", + "packagePublicationConsumption": "NOT_RUN", + "deviceFieldSoak": "NOT_RUN" + }, + "pendingCompatibility": "Issue23 option19 default/legacy behavior remains undecided by the user. It is not changed by this candidate." +} diff --git a/docs/coap-standards-roadmap.md b/docs/coap-standards-roadmap.md new file mode 100644 index 0000000..ae7bd1f --- /dev/null +++ b/docs/coap-standards-roadmap.md @@ -0,0 +1,98 @@ +# CoAP.NET 标准、上游与实现差距 + +核查日期:2026-11-13(Asia/Shanghai)。源码基线:`1abe69a0edaf55147ad6bccaa4e012aea87a8252`(v3.0.1)。目标是独立协议框架的 UDP/DTLS 设备接入与互操作;宿主业务仍使用 `AddCoapServer`、`AddCoapResources`、`MapCoapResources`。 + +## 结论与范围 + +当前库具备 UDP、DTLS 1.2 PSK、四种基础方法、Resource/发现、Observe、Block1/Block2、现代 .NET 宿主与 AOT 分析入口。但已有入口不等于完整规范合规。第一轮发现并复现了报文截断补零、错误版本被接受、响应来源/标识匹配不完整以及 Block1 错误续传。它们应先于增加协议数量收口。 + +本轮不是“全 GitHub 已穷尽”的声明。GitHub fork API 返回 75 个可见条目;GraphQL 能读取其中 73 个仓库的 301 个分支引用,去重后 47 个 head;两个历史仓库无法解析,保留 UNKNOWN。18 个 head 已是基线祖先。对 23 个有价值的非祖先候选做了比较;旧草案、站点和两条 2021 年 Dependabot 分支不作为现代功能候选。大型 compare 的文件列表最多返回 300 项,提交摘要最多读取 30 项,不能把这些视作大分支逐文件审计完成。 + +补充检索以 `topic:coap archived:false`、star 降序读取最多 100 个候选,覆盖 21 种明确标注的语言(另有未标注项)。[候选元数据](audits/coap-20261113/topic-survey.json)包含协议栈、codec、LwM2M、平台、测试工具和应用;它们不是 100 套独立协议实现,topic 检索也会漏掉没有标注 topic 的 libcoap 等项目。采纳判断以规范、源码和测试合同为依据,不以 star 数排名。 + +上游全部 82 个 issue API 条目中有 65 个普通 issue、17 个 PR,已逐条按原始标题/正文摘要分流。完整来源及判断见 [issue 清单](audits/coap-20261113/issue-decisions.json)、[PR 清单](audits/coap-20261113/upstream-prs.json)、[fork 引用](audits/coap-20261113/fork-branches-final.json)与 [fork 候选比较](audits/coap-20261113/fork-review.json)。 + +## 最新正式标准与常见能力 + +标准来源是 [RFC Editor](https://www.rfc-editor.org/rfc/rfc7252.json) 和 [IANA CoRE Parameters](https://www.iana.org/assignments/core-parameters/core-parameters.xml)。本轮读取到 IANA 更新时间为 2026-08-11。RFC 7252 的更新链包含 RFC 7959、8613、8974、9175、9876。RFC 9876 是 Content-Format 注册流程更新,不是新的传输协议门禁。RFC 9668 规定 EDHOC 与 CoAP/OSCORE 的集成;RFC 9528 规定 EDHOC 密钥交换本身。 + +| 能力 | 依据 | 基线现状 | 推进判断 | +| --- | --- | --- | --- | +| UDP 核心协议 | RFC 7252 | 代码与测试存在,负面边界不足 | P0:#20、#21 | +| Observe | RFC 7641 | 有注册、通知与取消入口 | 继续补序号回绕、重复/失序、取消和双实现互操作 | +| Block1/Block2 | RFC 7959 | 有实现和正常传输测试,错误/乱序边界有缺陷 | P0:#22 | +| 发现与 Link Format | RFC 6690 | Resource 与 MVC metadata 生成发现输出 | 保持标准语义并补 wire vectors | +| DTLS PSK | RFC 7252 §9、DTLS 1.2 | 有客户端/服务端、显式监听与关闭入口 | P0:#26 双实现矩阵 | +| Echo/Request-Tag | RFC 9175 | 无实现 | P1:#24 | +| FETCH/PATCH/iPATCH | RFC 8132 | 只有 GET/POST/PUT/DELETE | P1:#25;必须贯通 client、Resource/MVC 和媒体协商 | +| OSCORE | RFC 8613 | 无 context/replay 实现 | 正式但可选的安全能力;独立实现与评审 | +| EDHOC over CoAP | RFC 9668 | 无实现 | 随 OSCORE 场景单独规划 | +| CoAP over TCP/TLS/WebSockets | RFC 8323 | 无 transport | 后续独立传输能力 | +| Q-Block | RFC 9177 | 无实现,旧枚举19与现代注册冲突 | #23 先修 registry,再决定完整 Q-Block;不能只加常量 | +| Extended Tokens | RFC 8974 | 默认 TKL 0–8 字节 | 可选扩展,须单独容量/无状态客户端合同 | +| No-Response | RFC 7967,Informational | 无专门实现 | 常见可选扩展,不能误称核心强制 | +| Group Communication | RFC 7390,Experimental | 只有局部组播字段/匹配例外 | 需要接口选择、多响应与安全边界;不可称完整支持 | +| Hop-Limit/4.29 等 | RFC 8768/RFC 8516 | 未形成完整合同 | 作为代理、过载语义的独立增量 | + +现有 Bouncy Castle C# 2.6.2 虽声明 `DTLSv13` 常量,但 `CLIENT_LATEST_SUPPORTED_DTLS` 与 `SERVER_LATEST_SUPPORTED_DTLS` 的上界都是 DTLS 1.2。[提供者源码](https://raw.githubusercontent.com/bcgit/bc-csharp/release-2.6.2/crypto/src/tls/ProtocolVersion.cs)不支持“一行改版本就完成 DTLS 1.3”的结论。证书/RPK、Connection ID、密钥轮换、配额和 1.3 提供者评估见 #27。 + +## 哪些上游内容值得吸收 + +| 来源 | 判断 | 原因 | +| --- | --- | --- | +| [smeshlink PR64](https://github.com/smeshlink/CoAP.NET/pull/64) | 采纳窄修复 | Stop 日志仍错误写成 Starting;适配现有 ILogger 即可 | +| [smeshlink PR80](https://github.com/smeshlink/CoAP.NET/pull/80) | 采纳测试隔离思路 | Observe 通知计数应在每个测试前重置,避免顺序依赖 | +| [smeshlink PR81](https://github.com/smeshlink/CoAP.NET/pull/81) | 不直接合并 | 全局广播/地址重用改变默认 Socket 合同,并吞掉配置异常;有需求时应显式 opt-in | +| [smeshlink PR53](https://github.com/smeshlink/CoAP.NET/pull/53) | 拒绝直接合并 | 作者明确说未完成,使用自选 OSCOAP option、缺 Observe/Blockwise,早于现行 RFC8613 | +| [world-direct develop](https://github.com/world-direct/CoAP.NET/tree/develop) | 逐提交研究 | Blockwise timeout、重复 ACK、竞态修复有参考价值;分支混入改名、API 重写和大量文件 | +| [world-direct hotfix/block1](https://github.com/world-direct/CoAP.NET/tree/hotfix/block1) | 用回归吸收机制 | 重复确认、MID 重用、重传向原请求转发等应逐一重现,不能照搬整个分支 | +| [IoTSharp develop](https://github.com/IoTSharp/CoAP.NET/tree/develop) | 不直接合主干 | 含未完成的客户端/Span/codec 重写;不能把新主干退回另一套半成品 | +| 历史 .NET4/Mono/DNX/SDK 迁移分支 | 不重复采纳 | 当前主干已 .NET10/SDK/ILogger,迁移旧项目不会增加现行协议能力 | + +上游 issue 的重要线索包括 Observe/ACK(#79/#78/#32)、取消/长时间睡眠(#48/#54)、组播多响应与网卡(#66/#65/#70)、Reject/RST(#61)、重传配置(#63)、内存/计时器(#57/#67)、Blockwise 范围(#13)和 NAT(#40)。这些是复现候选,不能仅根据标题就认定当前主干仍有相同缺陷。WCF、Compact Framework、Unity、串口和集中式 Observe 状态需要明确消费者和宿主合同。 + +## 跨语言项目值得学习什么 + +| 实现 | 语言 | 可学习机制 | 本轮证据边界 | +| --- | --- | --- | --- | +| [libcoap](https://github.com/obgm/libcoap) | C | 明确 RFC 列表、option registry、多 TLS backend、fuzzing、interop fixtures | README/源码调研;未运行该 peer | +| [Californium](https://github.com/eclipse-californium/californium) | Java | Plugtest、DTLS 会话与 NAT/CID、OSCORE context/replay | 文档与源码;未连接其公网测试服务 | +| [aiocoap](https://github.com/chrysn/aiocoap) | Python | asyncio transport/context 分层,准确披露 Observe/DTLS/RD/EDHOC 的部分边界 | 文档调研;部分网络读取失败原样保留 | +| [go-coap](https://github.com/plgd-dev/go-coap) | Go | UDP/DTLS/TCP 分层、Echo/Request-Tag、opt-in Q-Block、libcoap 对拍 | 当前 README 明确标注 Q-Block 为实验性实现 | +| [node-coap](https://github.com/coapjs/node-coap) | Node.js | 以独立 coap-oscore 组件管理安全 context,明确 OSCORE-only policy | 外部包能力不能直接推断为本库能力 | +| coap-rs / CoAPthon3 | Rust / Python | 精简 codec、异步状态与已有缺口表达 | 辅助代表,不以仓库数量或 star 决定采纳 | + +源码采纳必须保留许可与署名。CoAP.NET 的 LICENSE 是带三条条件的 BSD 风格文本;GitHub 显示 NOASSERTION 仅说明检测未识别。不能据此说没有许可,也不能从一个 SDK 的许可推断整个项目许可。 + +### 受限设备、codec 与测试生态补充 + +| 实现 | 可核对机制 | 采纳与边界 | +| --- | --- | --- | +| [Zephyr CoAP](https://github.com/zephyrproject-rtos/zephyr/blob/main/include/zephyr/net/coap.h) | packet/pending/observer API、相关 RFC option 定义、[OSCORE context 池](https://github.com/zephyrproject-rtos/zephyr/blob/main/subsys/net/lib/coap/coap_oscore.c)、`tests/net/lib/coap` | 学习显式内存上限与上下文数量。Apache-2.0。option/API 存在不能证明所有 transport/安全 profile 均已运行验收;EDHOC 本轮 UNKNOWN。 | +| [Contiki-NG](https://github.com/contiki-ng/contiki-ng/tree/develop/os/net/app-layer/coap) | 固定事务/observer 池、CON 初始随机超时与指数退避、超限释放事务并回调失败 | 学习受限资源与失败回收。相关 CoAP 源码是 BSD 三条款;配置默认值可覆盖。测试/DTLS 运行 NOT_RUN。 | +| [RIOT gcoap/nanocoap](https://github.com/RIOT-OS/RIOT/tree/master/sys/net/application_layer) | nanocoap 是 codec 工具箱;gcoap 才包含线程、UDP 事件、Observe/Blockwise helper;[bounds 测试](https://github.com/RIOT-OS/RIOT/blob/master/tests/unittests/tests-nanocoap/tests-nanocoap.c) | 学习 PDU/option/URI/待响应数量预算与空闲 DTLS 会话淘汰。相关源码 LGPL-2.1-only,不能直接复制并继续只标现有 BSD 许可。 | +| [NZSmartie/CoAP.Net](https://github.com/NZSmartie/CoAP.Net) | 显式 [OptionFactory](https://github.com/NZSmartie/CoAP.Net/blob/master/src/CoAPNet/Options/OptionFactory.cs) 区分 unknown critical 与 opaque elective,允许自定义注册 | Apache-2.0。README 与 DTLS/Observe 项目状态不同步;不能据此宣布完整支持。反射/Activator 注册不能照搬到本库 AOT 路径,可用显式 factory。 | +| [coap-lite](https://github.com/martindisch/coap-lite) | Rust `Unknown(u16)`/原始重复 option 保真、checked-add、明确错误类型与输出尺寸限制 | 是 codec,不是完整协议栈;MIT OR Apache-2.0,manifest 标注 passively-maintained。本轮静态看到尾部 marker 被接受为空 payload,因此也不能作为无需验证的正确性 oracle;运行 NOT_RUN。 | +| [coap-rs](https://github.com/Covertness/coap-rs) | 基于 coap-lite/Tokio 的 client/server,Observe 注册失败清映射、每通知独立续块模板、取消保留 query、有界重试 | MIT。README/Cargo/源码能对应 DTLS feature 与可选 EDHOC,但本轮并未运行。学习状态隔离与恢复测试,不照搬 Rust unsafe 到本库。 | +| [Leshan](https://github.com/eclipse-leshan/leshan) | [LockStep 报文/ACK 故障脚本](https://github.com/eclipse-leshan/leshan/blob/master/leshan-integration-tests/src/test/java/org/eclipse/leshan/integration/tests/lockstep/LockStepTest.java)、不同 transport provider 的 PSK 参数化测试 | EPL-2.0 OR BSD-3-Clause 双许可。LwM2M 是 CoAP 上层,不把 Bootstrap/设备对象模型强加为本库合规门禁。 | +| [Anjay/avs_coap](https://github.com/AVSystem/Anjay) | [可重放的 API 调用序列 fuzz 输入](https://github.com/AVSystem/Anjay/blob/master/deps/avs_coap/doc/sphinx/source/Fuzzing.rst)、重传/离线/分块场景 | 当前 root 与 avs_coap LICENSE 都是 Non-Commercial License,README 说明 v3.10.0 起商用须商业许可。当前版本不作为可直接吸收的 BSD 开源代码;只独立实现测试思想,历史版本许可未核定。 | +| [xk6-coap](https://github.com/golioth/xk6-coap) | 有界 VU/时长、PSK/ECDSA、timeout、Observe 到期取消;源码使用 dtls.Dial | Apache-2.0。复用 go-coap/pion,是负载工具,不是新的独立 peer。分别计量新握手与复用会话,并补 RTT/错误/通知量指标。 | + +这些补充为只读文档/源码证据。固定资源默认值、维护时间和 feature 状态都绑定读取的分支快照,不能替代本库实测;也不把“有 OSCORE 源码”扩大为完整 EDHOC 或生产安全证明。 + +## 逐项实现队列 + +- [#20](https://github.com/IoTSharp/CoAP.NET/issues/20):格式错误报文与解码失败隔离。 +- [#21](https://github.com/IoTSharp/CoAP.NET/issues/21):endpoint + MID + 完整 Token 匹配。 +- [#22](https://github.com/IoTSharp/CoAP.NET/issues/22):Block1 状态、错误、重复/乱序、SZX 与组合响应。 +- [#23](https://github.com/IoTSharp/CoAP.NET/issues/23):IANA registry、旧 Token option19、critical 位和 Token 合同。 +- [#24](https://github.com/IoTSharp/CoAP.NET/issues/24):Echo/Request-Tag。 +- [#25](https://github.com/IoTSharp/CoAP.NET/issues/25):FETCH/PATCH/iPATCH。 +- [#26](https://github.com/IoTSharp/CoAP.NET/issues/26):libcoap/Californium 的 UDP/DTLS PSK 双实现门禁。 +- [#27](https://github.com/IoTSharp/CoAP.NET/issues/27):证书/RPK/DTLS1.3 能力与提供者合同。 +- [#28](https://github.com/IoTSharp/CoAP.NET/issues/28):已知 option 长度、重复次数、整数上界与未知 critical 处理。 +- [#29](https://github.com/IoTSharp/CoAP.NET/issues/29):无 Block 选项的错误终态、超时/取消和状态/计时器释放。 +- [#30](https://github.com/IoTSharp/CoAP.NET/issues/30):当前 OSCORE/EDHOC 安全上下文能力。 +- [#31](https://github.com/IoTSharp/CoAP.NET/issues/31):TCP/TLS/WebSocket transport。 + +每项代码先有原始 FAIL,再有修复后的定向 PASS,主监督复核组合行为后才提交/合并。单元测试、完整 CI、跨语言 peer、NativeAOT 实物、NuGet 公开包与设备现场分别记录。未跑的 gate 保持 NOT_RUN;本轮不发布 tag 或 NuGet,不部署、不修改生产配置。