mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-03 15:50:01 +00:00
mesh: Network loopback
Changes the local network interface to exclusively handle packets for the local interface, duplicating the buffers in the process. The loopback mechanism now operates its own packet pool for the local interface queue. The loopback is moved ahead of encryption, allowing the local interface packets to go back up the stack without network crypto, saving a full round of encrypt/decrypt for self-send. Packets for group addresses the local node subscribes to are now duplicated, with one unencrypted variant going into the network queue, and the network bound packets following the regular path to the advertiser. Introduces one new configuration for setting the number of loopback buffers. this is port of 9bd58062b9fc8272f2950a343bbcef6f3f79f481 and caa9dc7c032f8bfb96f3a6ea20618dd57e0b009f
This commit is contained in:
committed by
Łukasz Rymanowski
parent
bfe7f21053
commit
27cb1c9411
@@ -1163,6 +1163,10 @@
|
||||
#define MYNEWT_VAL_BLE_MESH_TX_SEG_MSG_COUNT (4)
|
||||
#endif
|
||||
|
||||
#ifndef MYNEWT_VAL_BLE_MESH_LOOPBACK_BUFS
|
||||
#define MYNEWT_VAL_BLE_MESH_LOOPBACK_BUFS (3)
|
||||
#endif
|
||||
|
||||
/*** @apache-mynewt-nimble/nimble/host/services/ans */
|
||||
#ifndef MYNEWT_VAL_BLE_SVC_ANS_NEW_ALERT_CAT
|
||||
#define MYNEWT_VAL_BLE_SVC_ANS_NEW_ALERT_CAT (0)
|
||||
|
||||
Reference in New Issue
Block a user