device: Save remote name request attempts into cache file
authorArchie Pusaka <apusaka@chromium.org>
Thu, 25 Nov 2021 07:06:25 +0000 (15:06 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:38 +0000 (19:08 +0530)
commit72b639f7950af7e45c0dc8c9adc5a12b7ace2f45
tree8b2a3f71736839b45b15e19e03f6ab8415649a17
parentb2b1a709f6e3fbafc06c8d5f64235707d81e055a
device: Save remote name request attempts into cache file

Since a peer device is potentially removed if not discovered for more
than 30 seconds, we would lost the remote name request activity when
the device is rediscovered. This could end up with a remote name
request much sooner than we intend it to be.

Therefore, put the RNR record into a cache file, so we can recover it
when the peer device is rediscovered.

Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/device.c