Skip to content
Snippets Groups Projects
Commit 7b1b0b55 authored by Mohamed Chibani's avatar Mohamed Chibani
Browse files

upnp: Connectivity change handling and clean-up

This patch introduces three major changes:
1- When a "Connectivity Change" notification is received from the
configuration manager, the current IGDs and the provisioned mappings
were reset and a new search and provisioning was started anew.
Now, the reset/restart is performed only if the host address actually
changes.
2- Many code simplification and clean-up. Obsolete code used to
handle asynchronous operations on libupnp was also removed.
Most of the calls to libupnp are now synchronous. Blocking calls
are dispatched on the internal execution queue (worker thread).
3- Add synchronization to avoid thread race at shutdown

Gitlab: #416

Change-Id: I26970d78db494795f23379c7a9af5a20a665bb06
parent ee9ff167
No related branches found
No related tags found
No related merge requests found
Showing
with 899 additions and 857 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment