Hi again folks, thanks for the positive reactions, and sorry for the delayed reply. I had no internet for the last few days.
@PulkoMandy, re: link-local. Cool! Will have to try it soon! (guess I wasn’t patient enough to see ifconfig
show me the 169.54.x.x address, heh ).
BTW, while my internet was down, I spend some time trying to integrate Jie Ma’s ZeroConf (GSoC 2009) work.
(thanks to @ilzu for digging up that link on the previous “avahi” thread!).
Jie Ma’s code included:
- A “Haiku API style” wrapper around mDNSResponder’s
libdns-sd.so
. - ZeroConfBrowser and ZeroConfNotifier apps.
- Patches to PoorMan to make it advertise it’s http service via Bonjour. (this took the most work to merge)
- Some patches to Haiku’s network code (that seems to have been already integrated).
- Minor patches for an unknown old version of mDNSResponder (superseded by my newer patches).
Doubt I got everything right, but… I figured it would be better to have that code in a git repo, instead of as an archive of .diff files against 2009 Haiku code . Will push that to github to get early feedback, and maybe send it for review to Gerrit (even if only for archival purposes).
@marcoapc, thanks for the links, as usual. My idea of looking closer to NetBSD “version”, is because it might, perhaps, align/integrate better with Haiku’s netresolv code (as it comes from NetBSD). Will of course need to at least run some diffs!
@BetaMadMax. while I haven’t tested anything other than ethernet, mDNSResponder (via /bin/dns-sd -i <interface>
) allows you to select which interface you want to use, so I guess as long as your devices appear properly setup on ifconfig
’s output, there’s a change it will work? I might be able to test using USB-RNDIS via some old Android tablet/phone.
Did another try at cleaning my patches a bit more. Will push that code tomorrow. It should make it easier to just run cd mDNSPosix && make -j N
without much issues.
Edit: Uploaded a hand-made package https://github.com/OscarL/mDNSResponder/releases/download/v0.0.0-dev-haiku/mdnsresponder-0.0.0.dev-1.hpkg for willing guinea pigs early testers (for x86_64 bits).