diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2017-03-21 13:34:52 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2017-03-21 13:34:52 +0900 |
commit | 71a047d2f7ca37bb8e20e94622e94240f8812649 (patch) | |
tree | 2d2e112d74092107d67f8da8dceb3dff67859e1f /src/resolve/resolved-manager.c | |
parent | c6a8f6f66da111a417cef7be81ceb9a8f336e541 (diff) |
resolved: detect and warn other running mDNS stack
Previously, `SO_REUSEADDR` is set before `bind`-ing socket, Thus,
even if another mDNS stack (e.g. avahi) is running, `bind` always
success and we cannot detect the other stack.
By this commit, we first try to `bind` without `SO_REUSEADDR`,
and if it fails, show warning and retry with `SO_REUSEADDR`.
Diffstat (limited to 'src/resolve/resolved-manager.c')
0 files changed, 0 insertions, 0 deletions