Skip to content
Commit 99293630 authored by Seppo Takalo's avatar Seppo Takalo Committed by David Leach
Browse files

net: lwm2m: Use CID_SUPPORTED instead of CID_ENABLED



When ENABLED flag is used, we generate 32 byte DTLS
Connection Identifier and include that in our
DTLS Client HELO. This has no benefit as client only
has one connection toward the server, it does not need
any identification.

When SUPPORTED flag is used, we just include
zero length Connection Identifier in the handshake,
which tell server that we support Connection Identifier
and server can generate one for it.
We then use the CID in the packets that we send towards
server, but response packets don't contain any CID.
This gives all the benefit of CID as server is able to
identify us even when NAT mapping have changed.

Signed-off-by: default avatarSeppo Takalo <seppo.takalo@nordicsemi.no>
parent 53705c06
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment