diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2018-08-01 12:40:36 +0200 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2018-08-02 11:19:38 +0200 |
commit | 99f706d3369d1e3faf6a886b7d6fe1d3145ac15c (patch) | |
tree | a6bd15e52e82ad31ec85a92e87ab74b38d15491b /tests/kasumi/kasumi_test.ok | |
parent | 0659c5d2f3e7653668838a2162ec72efb67ca68e (diff) |
socket: do not set SO_REUSEADDR for IPPROTO_UDP
When UDP is used as protocol (proto=IPPROTO_DUP), then we should not set
SO_REUSEADDR in the socket option. Because if we do, we allow two
processes to bind on the same UDP port. The errornous situation will be
undetectable to both applications. So lets only set SO_REUSEADDR when we
do not use UDP.
- Add check if we use UDP, if yes do not set SO_REUSEADDR
Change-Id: I4a8ffb8d598aca88801a4a0322944d7cdd8d4047
Related: OS#3441
Diffstat (limited to 'tests/kasumi/kasumi_test.ok')
0 files changed, 0 insertions, 0 deletions