#443 Netatalk 3.0 beta 2 "mimic model" setting does not register

None
closed
nobody
None
5
2012-11-01
2012-06-25
Anonymous
No

On Solaris 11 with Netatalk with zeroconf support enabled, the "mimic model" setting does not register a _device-info._tcp record. Other records such as _adisk._tcp and _afpovertcp._tcp register correctly (as seen by Bonjour Browser).

Tested with the following afp.conf section:

[Global]
mimic model = "MacPro"

log produces the following:
Jun 25 20:26:07.356830 afpd[20088] {afp_mdns.c:233} (I:AFPDaemon): Registering server 'XXXXX' with model 'MacPro'

Discussion

  • Daniel Lopes

    Daniel Lopes - 2012-10-09

    Hi,

    the registered record is like
    ...
    txt = []

    I changed
    model=%s
    to
    model
    in etc/afpd/afp_mdns.c where the record is created and that solved the problem for me.

    Hope it helps, best regards,
    Daniel

     
    •  HAT

      HAT - 2012-10-12

      It has not improved, although I tried it.
      Please show a patch file.

       
      • brot

        brot - 2012-10-17

        line 235 in etc/afpd/afp_mdns.c

        from:

        TXTRecordPrintf(&txt_devinfo, "model=%s", obj->options.mimicmodel);

        to

        TXTRecordPrintf(&txt_devinfo, "model", obj->options.mimicmodel);

        This is just a bug.

        But to get it working for me I also had to change the port of the _device-info._tcp entry:

        line 243 in etc/afpd/afp_mdns.c

        from:

        0,

        to:

        htons(port),

         
  • franklahm

    franklahm - 2012-11-01

    Fixed in git development branch.

     
  • franklahm

    franklahm - 2012-11-01
    • status: open --> closed
    • milestone: -->
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks