discovery: ensure port number uniqueness agent-wide
authorFabrice Bellet <fabrice@bellet.info>
Thu, 16 Apr 2020 18:01:25 +0000 (20:01 +0200)
committerOlivier CrĂȘte <olivier.crete@ocrete.ca>
Wed, 6 May 2020 23:38:40 +0000 (23:38 +0000)
commitc4993988067a2bf5056fa3146314992c06bfe51d
treeffdeec45a0bede6230acf06add3c25ec72f6bc6e
parent25ad2c7a32d6621e23500437d5abd525af592d4b
discovery: ensure port number uniqueness agent-wide

The port number must be different for all local host candidates, not
just in the same component, but across all components and all streams.
A candidate ambiguity between a host local host and an identical server
reflexive candidate have more unwanted consequences when it concerns two
different components, because an inbound stun request may be associated
to a wrong component.
agent/discovery.c