mesh: Move RPL check from model to net layer
authorInga Stotland <inga.stotland@intel.com>
Fri, 28 Aug 2020 20:04:27 +0000 (13:04 -0700)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Mon, 28 Dec 2020 06:20:04 +0000 (11:50 +0530)
commit04c2723f141e27ba56194f5c7c3b78309920ae18
tree8098d0544eb38d00dd2401a83cd2adb18dd24fc4
parent4856a07c5c41e70124fc32ed713bfc3cae700bd7
mesh: Move RPL check from model to net layer

Check whether an incoming message has an RPL entry prior to
handing it over to model layer for processing. If present in RPL
or the RPL queue is full, ignore the incoming message.

If the incoming message is processed successfully, add the message
as a new RPL entry.

Change-Id: Ie7195212a78b7d503c015b3d1fef2300fc213ddd
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
mesh/model.c
mesh/model.h
mesh/net.c
mesh/net.h