Yet another stab at zeroconf on Haiku

Minor “update”…

After @phoudoin’s hrev59615 (thanks there!), I tried giving my silly attempts another try…

As using NetBSD’s version of the nss_mdns code still hits some missing symbols, before trying to shoehorn those into libnetwork.so, I took another look around, and found out that FreeBSD ports has a patch I could try instead.

Welp… after a very mild massaging, I was able to build an nss_mdns.so.0 file (the exact name current version of Haiku’s resolv code expects if mdns is added on the nsswitch.conf file), place it under /system/non-packaged/lib/, and tried doing some ping <hostname_on my_LAN>.local…

Good news:

  • nss_mdns.so.0 was loaded without issues.
  • It correctly complained if it was not able to communicate with the mdnsd service (if it was not running yet, for example).
  • No weird crashes.

Bad news:

  • name resolution for .local domains still doesn’t works. All I got was something along the lines of “can’t resolve address”.

Oh well…

Guess I’ll have to give the NetBSD code another shot, at least until someone with real dev/networking skills gives this a go :smiley:.

5 Likes