diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2018-08-23 20:11:50 +0200 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2018-08-23 20:17:45 +0200 |
commit | 73196e77fb28d71f5ab536d4e6265cfcbb169b3d (patch) | |
tree | 4cb2766d256be7a869aa8300203a2c05574d949f /src/codec/gsm610.c | |
parent | 8a757d20f714909264eb76d400de529cb75b9fe0 (diff) |
socket: add flag to enforce SO_REUSEADDR on UDP sockets
When IPPROTO_UDP is used then SO_REUSEADDR omitted since UDP is
connection less we do not have to wait until lingering connections time
out. There were also negative effects such as that two applicatications
could use the same UDP port, normally one of the two applications would
get an error, but with SO_REUSEADDR this is supressed. However, there
are applications (UDP MULTICAST) where two applications must be able to
use the same port. In the osmocom project those are osmo-bts-virtual,
virtphy and gsmtap in general.
Lets introduce a flag that the API user can supply in order to have
SO_REUSEADDR applied.
- Add new flag OSMO_SOCK_F_UDP_REUSEADDR
Change-Id: I94aaf6d5224ab23bde5ea5c4a83569b6145ab32b
Related: OS#3497
Diffstat (limited to 'src/codec/gsm610.c')
0 files changed, 0 insertions, 0 deletions