Update interface index with received packet's index when getting session

This commit is contained in:
Diego Ismirlian committed 2020-10-28 16:55:45 -03:00
1 parent db4c9da2f7
commit 2ab713f3ca
2 files changed
+5 -1

No files matched your search

+4 -1
View File
@@ -41,7 +41,10 @@ IPv6 address references, angle brackets are required (c.f. EXAMPLES).
OPTIONS - General
-----------------
*-a* addr::
The local address of the interface that has to be used.
The local address of the interface that has to be used. +
Note: Do not use this option if the interface is likely to be transient -
i.e. it is a tunnel interface that may come and go, as this is likely to
cause "No such device" errors on transmission.
*-b* [num,]size::
The block size to be used in GET/PUT/POST requests (value must be a
+1
View File
@@ -507,6 +507,7 @@ coap_endpoint_get_session(coap_endpoint_t *endpoint,
SESSIONS_FIND(endpoint->sessions, packet->addr_info, session);
if (session) {
session->ifindex = packet->ifindex;
session->last_rx_tx = now;
return session;
}