[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netatalk-devel
Subject:    Re: [Netatalk-devel] Solaris9's slpd registration error
From:       alex () Arthur ! Ath ! CX (Alexander Barton)
Date:       2004-12-28 2:42:34
Message-ID: 20041228024234.GA29081 () Arthur ! Ath ! CX
[Download RAW message or body]

> This problem is caused by pcSrvType syntax error.
> In etc/afpd/afp_config.c, "pcSrvType" parameter is empty.
> 
>         err = SLPReg(hslp,
>                      dsi->srvloc_url,
>                      SLP_LIFETIME_MAXIMUM,
>                      "",                   <------- empty
>                      "",
>                      SLP_TRUE,
>                      SRVLOC_callback,
>                      &callbackerr);
> 
> The OpenSLP ignore this parameter, but Solaris9's libslp.so.1 do not.
> One-line patch repair it.
> 
>         err = SLPReg(hslp,
>                      dsi->srvloc_url,
>                      SLP_LIFETIME_MAXIMUM,
>                      "afp",                <------- define
>                      "",
>                      SLP_TRUE,
>                      SRVLOC_callback,
>                      &callbackerr);

I changed "srvtype" to "afp" as suggested and applied it to CVS branch
netatalk-afp-3x-dev. Thanks!

Regards
Alex

PS.: Tested with OpenSLP.

-- 
Alexander Barton, Freiburg, Germany
alex@barton.de, http://www.barton.de/


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Netatalk-devel mailing list
Netatalk-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netatalk-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic