Discarding Netwok PDU


ashish.shukla@corvi.com <ashish.shukla@...>
 

Hello Everyone !

I want to know in the current implementation of mesh, what parameters are being taken in account to discard a network PDU and not to process it.

Also, if I want to process same message from same SRC/DST, what can be done to process it few times for testing purposes? 

--
Warm regards,
Ashish Shukla
Jr. Embedded Engineer
Research & Development


Please consider the environment before printing this e-mail or its attachments.

Disclaimer: The information contained herein (including any accompanying documents) is confidential and is intended solely for the addressee(s). If you have erroneously received this message, please immediately delete it and notify the sender. Also, if you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this message or any accompanying document is strictly prohibited and is unlawful. The organization is not responsible for any damage caused by a virus or alteration of the e-mail by a third party or otherwise. The contents of this message may not necessarily represent the views or policies of Corvi


Johan Hedberg
 

Hi Ashish,

On Fri, Dec 01, 2017, ashish.shukla@corvi.com wrote:
I want to know in the current implementation of mesh, what parameters are
being taken in account to discard a network PDU and not to process it.
There are too many conditions to start listing them here. I recommend
you look at net.c and transport.c under subsys/bluetooth/host/mesh/ and
trace through the code starting with bt_mesh_net_recv() to see what can
cause the packet to be discarded.

The code should be following the specification requirements, so
familiarizing yourself with the Mesh Profile Specification is a good
idea as well.

Also, if I want to process same message from same SRC/DST, what can be done
to process it few times for testing purposes?
If by "same message" you mean the exact same advertising payload, you'll
need to disable at least the duplicate cache, network message cache, and
the replay protection list.

Johan