Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Oct 1997 20:08:32 +0400 (MSD)
From:      Sergey Vnotchenko <sergey@imedia.ru>
To:        freebsd-questions@FreeBSD.ORG
Cc:        freebsd-ports@FreeBSD.ORG
Subject:   [H] netatalk
Message-ID:  <199710161608.UAA00358@gk.imedia.ru>

next in thread | raw e-mail | index | archive | help

--ELM877018112-279-0_
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

	Hi!
	I try use netatalk 1.4b2 on FreeBSD 3.0-970921-SNAP...
I have  (after fixing addmulti errors) successfully(?) running atalkd. It
logs message "atalkd: ready 0/0/0" after discovering my Apple's internetworks. 
But papd can't start - it fails to start with message "atp_open: Protocol not
supported"... 
	I've located that problem in socket(2) call, but I see no
way to fix it... It works before atalkd, btw...
Does somebody solve this or have any ideas?

  Thanks in advance, Sergey.
---
P.S: My patches for solving addmulti problem added as attachment. I'm unsure 
     that they right, but atalkd seems to worked...

--ELM877018112-279-0_
Content-Type: text/plain; charset=KOI8-R
Content-Disposition: attachment; filename=patch-ab
Content-Description: patch-ab
Content-Transfer-Encoding: 7bit

--- etc/atalkd/main.c.orig	Thu Oct 16 18:28:59 1997
+++ etc/atalkd/main.c	Thu Oct 16 18:33:12 1997
@@ -1152,6 +1152,7 @@
 	    /* configure multicast for this interface */
 	    bzero( &sa, sizeof( struct sockaddr ));
 	    bcopy( ethermulti, sa.sa_data, sizeof( ethermulti ));
+	    sa.sa_family=AF_LINK; sa.sa_len=0;
 	    if ( ifconfig( iface->i_name, SIOCADDMULTI, &sa )) {
 		syslog( LOG_ERR, "addmulti: %m" );
 		exit( 1 );

--ELM877018112-279-0_
Content-Type: text/plain; charset=KOI8-R
Content-Disposition: attachment; filename=patch-ac
Content-Description: patch-ac
Content-Transfer-Encoding: 7bit

--- etc/atalkd/nbp.c.orig	Thu Oct 16 18:39:31 1997
+++ etc/atalkd/nbp.c	Thu Oct 16 18:42:45 1997
@@ -7,6 +7,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/ioctl.h>
+#include <sys/time.h>
 #include <net/if.h>
 #include <netatalk/at.h>
 #include <atalk/ddp.h>
@@ -177,7 +178,7 @@
 		    sizeof( ethermulti ));
 	    bzero( &sa, sizeof( struct sockaddr ));
 	    bcopy( zt->zt_bcast, sa.sa_data, sizeof( ethermulti ));
-
+	    sa.sa_family=AF_LINK; sa.sa_len=0;
 	    for ( iface = interfaces; iface; iface = iface->i_next ) {
 		if (( iface->i_flags & IFACE_PHASE2 ) == 0 ) {
 		    continue;

--ELM877018112-279-0_
Content-Type: text/plain; charset=KOI8-R
Content-Disposition: attachment; filename=patch-ad
Content-Description: patch-ad
Content-Transfer-Encoding: 7bit

--- etc/atalkd/rtmp.c.orig	Thu Oct 16 18:43:27 1997
+++ etc/atalkd/rtmp.c	Thu Oct 16 18:43:49 1997
@@ -7,6 +7,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/ioctl.h>
+#include <sys/time.h>
 #include <net/if.h>
 #include <net/route.h>
 #include <netatalk/endian.h>

--ELM877018112-279-0_--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710161608.UAA00358>