Re: [netatalk-admins] netatalk on FreeBSD 3.0?


Subject: Re: [netatalk-admins] netatalk on FreeBSD 3.0?
From: Thierry.Besancon@lps.ens.fr
Date: Tue Jan 05 1999 - 13:02:37 EST


Dixit Palle Girgensohn <girgen@partitur.se> (le Tue, 05 Jan 1999 14:01:39 +0100) :

>>
>> "Ambrose Li [EDP]" wrote:
>> >
>> > In short, has anyone got this combination to work? Following the
>> > README.FreeBSD instructions doesn't seem to work; the system
>> > replies with
>> >
>> > starting appletalk daemons:ep1: Invalid argument
>> > Can't configure multicast.
>> > ep0: disabled.ep1: disabled.ep1: disabled.atalkd: zero interfaces, exiting.
>> > atalkdbind: Can't assign requested address
>> > bind: Can't assign requested address
>> > nbprgstr papd afpd.
>> > bash-2.02# Jan 4 11:38:26 edp-test1 afpd[270]: main: atp_open: Can't assign requested address
>> > Jan 4 11:38:26 edp-test1 afpd[270]: main: atp_open: Can't assign requested address
>> >
>> > I'm pretty sure this is something I've done wrong.
>>
>> Hi!
>>
>> I have the same problem. I just moved a bunch of machines from 2.2
>> stable to 3.0, and after that atalkd says "de0: disabled.de0: disabled.
>> zero interfaces, exiting.". I removed the atalkd.conf file, so it could
>> build a fresh one, but it doesn't happen.
>>
>> I assume you have used the FreeBSD ports collection to install Netatalk
>> (you probably should, it's good stuff). If you have moved to 3.0, I
>> think you need to rebuild the port after that. There is a patch that
>> insert some compile-time (pre-processor) stuff for FreeBSD >= 3.0. It
>> might help. For me, I have a self-patched version of netatalk, so I need
>> to dig up the patches... :(

Hello everyone.

I encountered the same problem when switching from 2.x to 3.0 (stock,
the first one released).

I mailed A Sun and he answered me that there's a port in FreeBSD 3.0 for
netatalk-asun. That is true. It is for 2.1.0 asun's version.
I applied the patch named "patch-af" (the other ones just correct
Makefiles or man pages or so). See at the end of my mail.

atalkd is now up and running.

Unfortunately, nbp_rgstr times out once atalkd is up.
I didn't have time enough to look after why.

A Sun, would you mind integrating the "patch-af" in your source tree ?
It is well written for once (using #ifdef) so that it may be safely
integrated without breaking other systems...
(I didn't have time ti check for a newer version of your work that
might integrate already these patches).

Please followup to the list any piece of information about FreeBSD 3.0
and netatalk-asun. I desesperatly need it in order to put a central
host in production...

Thanks in advance.

Best regards.

        Thierry

----------------------------------------------------------------------

--- etc/atalkd/multicast.c.orig Sat Aug 29 09:46:11 1998
+++ etc/atalkd/multicast.c Mon Nov 23 22:53:21 1998
@@ -305,6 +305,28 @@
 };
 
 
+#if __FreeBSD__ >= 2
+#include <osreldate.h>
+#if __FreeBSD_version >= 300000
+
+#include <net/if_dl.h>
+
+/* configure multicast for a given named interface */
+int addmulti(const char *name, const unsigned char *data)
+{
+ struct sockaddr_dl sdl;
+
+ bzero(&sdl, sizeof(struct sockaddr_dl));
+ sdl.sdl_family = AF_LINK;
+ bcopy(ethermulti, LLADDR(&sdl), sizeof(ethermulti));
+ sdl.sdl_alen = sizeof(ethermulti);
+ sdl.sdl_len = sizeof(sdl);
+ if (ifconfig(name, SIOCADDMULTI, &sdl))
+ return -1;
+
+ return 0;
+}
+#else
 /* configure multicast for a given named interface */
 int addmulti(const char *name, const unsigned char *data)
 {
@@ -317,6 +339,8 @@
 
     return 0;
 }
+#endif /* __FreeBSD_version >= 300000 */
+#endif /* __FreeBSD__ >= 2 */
 
 static u_int16_t
 atalk_cksum( data, len )



This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:16:08 EST