smb: guard against duplicated service discoveries

Authored by sitter on Mar 16 2020, 2:41 PM.

Description

smb: guard against duplicated service discoveries

Summary:
if both dnssd and wsdiscovery have the same server on offer we'd create
duplicated entries. instead keep track of the discovered names and only
use the first discovery. notably happens when using wsdd on linux where
samba would also register itself on dnssd.

for ease of access and to not have to roundtrip through udsentry, discovery
objects now have a udsName function that is meant to be the exact name
used for the udsentry.

Test Plan:

Reviewers: ngraham

Reviewed By: ngraham

Subscribers: kde-frameworks-devel, kfm-devel

Tags: Dolphin, Frameworks

Differential Revision: https://phabricator.kde.org/D28078

Details

Committed
sitterMar 19 2020, 11:29 AM
Reviewer
ngraham
Differential Revision
D28078: guard against duplicated service discoveries
Parents
R320:2f87632b230f: smb: port to latest wsdiscovery-client api
Branches
Unknown
Tags
Unknown