mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-19 14:09:05 +03:00
Update interface index with received packet's index when getting session
This commit is contained in:
1 parent
db4c9da2f7
commit
2ab713f3ca
2 files changed
+5
-1
No files matched your search
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user