From: Frank L. <fra...@gm...> - 2012-10-30 10:49:13
|
Fixed in d202fc4ee109f920ec222cb8fd723f48f3803754. Thanks! -f 2012/10/18 HAT <ha...@fa...>: > Hi, > > Since I don't have the knowledge about Zeroconf, I'm confused about BUG#443. > <http://sourceforge.net/p/netatalk/bugs/443/> > > I made sure that this problem is solved by the following patch. > > --------------------------------------------------------------------------- > --- a/etc/afpd/afp_mdns.c > +++ b/etc/afpd/afp_mdns.c > @@ -232,7 +232,7 @@ static void register_stuff(const AFPObj *obj) { > LOG(log_info, logtype_afpd, "Registering server '%s' with model '%s'", > dsi->bonjourname, obj->options.mimicmodel); > TXTRecordCreate(&txt_devinfo, 0, NULL); > - TXTRecordPrintf(&txt_devinfo, "model=%s", obj->options.mimicmodel); > + TXTRecordPrintf(&txt_devinfo, "model", obj->options.mimicmodel); > error = DNSServiceRegister(&svc_refs[svc_ref_count++], > 0, // no flags > 0, // all network interfaces > @@ -240,7 +240,7 @@ static void register_stuff(const AFPObj *obj) { > DEV_INFO_SERVICE_TYPE, > "", // default domains > NULL, // default host name > - 0, > + htons(port), > TXTRecordGetLength(&txt_devinfo), > TXTRecordGetBytesPtr(&txt_devinfo), > RegisterReply, // callback > --------------------------------------------------------------------------- > > Nothing is advertized if port is zero. > It seems that it can advertize if port is except zero. > Probably, this cause is that device-info is not service type. > However, I think that it is a mistake that a number is 548. > Should port be htons(9) ? > > -- > HAT > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Netatalk-devel mailing list > Net...@li... > https://lists.sourceforge.net/lists/listinfo/netatalk-devel |