Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict resolution required? #25

Open
mpvader opened this issue Feb 12, 2018 · 3 comments
Open

Conflict resolution required? #25

mpvader opened this issue Feb 12, 2018 · 3 comments

Comments

@mpvader
Copy link
Contributor

mpvader commented Feb 12, 2018

Hi, for our application, the device that we want easily accessible from Windows will in most cases be alone in the local network. And I'd prefer to give it a simple name, for example product-name. Rather than a serial-number or similar.

In a small percentage of the installs there will be multiple in one network. Meaning that there are multiple devices all responding to the same name in the network. Ie they will all reply on the llmnr request.

I tested this, with two devices, and Windows 8.1, and it works fine. In Wireshark I see two replies, and one if them (in my test the first reply, which makes sense) is the one that shows up in the browser. Which is fine for our use case.

Is there any problem you see in having multiple devices respond to the same name? Clients crashing, networks going a-wall, or anything similar?

@tklauser
Copy link
Owner

In principle this shouldn't be a problem and the LLMNR RFC explicitly allows for this, see section 4.2 of RFC 4795

llmnrd currently doesn't support conflict resolution, so it will always respond to LLMNR queries, even if the C bit is set in the LLMNR header flags.

tklauser added a commit that referenced this issue Feb 13, 2018
Allows testing llmnrd behavior in presence of conflicts.

Updates #25

Signed-off-by: Tobias Klauser <[email protected]>
@mpvader
Copy link
Contributor Author

mpvader commented Feb 13, 2018

ok clear; and exactly what I wanted to hear 😄 .

Related question: do you see anything against making the device respond to two names? In our case product-name, and [serialnumber]?

I'm not sure if we'd want to do that, but it will be the implementation giving the most flexibility in using it.

@tklauser
Copy link
Owner

In principle I don't see a problem with responding to two (or more names). However, llmnrd currently only supports one name at a time, but support for it should be fairly easy to add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants