From: srittau Date: Wed, 13 Feb 2002 16:56:20 +0000 (+0000) Subject: NetBSD fix by Juergen Hannken-Illjes. First network is now set to 1 instead X-Git-Tag: point-backport-1-5-2~35 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=commitdiff_plain;h=0ca6425c6e831c079c9c87146538869e0596d871 NetBSD fix by Juergen Hannken-Illjes. First network is now set to 1 instead of 0. I'm really not sure what this does and if it breaks something on other platforms. So please *test*. --- diff --git a/etc/atalkd/main.c b/etc/atalkd/main.c index 6fd040bd..7ffab873 100644 --- a/etc/atalkd/main.c +++ b/etc/atalkd/main.c @@ -1,5 +1,5 @@ /* - * $Id: main.c,v 1.12 2002-01-04 04:45:47 sibaz Exp $ + * $Id: main.c,v 1.13 2002-02-13 16:56:20 srittau Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -40,6 +40,8 @@ #include #include +#include + #include #include #include @@ -159,10 +161,7 @@ static void atalkd_exit(const int i) } -#if !defined( ibm032 ) && !defined( _IBMR2 ) - void -#endif /* ibm032 _IBMR2 */ -as_timer() +void as_timer(void) { struct sockaddr_at sat; struct ziphdr zh; @@ -276,12 +275,12 @@ as_timer() LOG(log_info, logtype_default, "config for no router" ); if ( iface->i_flags & IFACE_PHASE2 ) { - iface->i_rt->rt_firstnet = 0; + iface->i_rt->rt_firstnet = htons(1); iface->i_rt->rt_lastnet = htons( STARTUP_LASTNET ); setaddr( iface, IFACE_PHASE2, iface->i_addr.sat_addr.s_net, iface->i_addr.sat_addr.s_node, - 0, htons( STARTUP_LASTNET )); + htons(1), htons( STARTUP_LASTNET )); } if ( looproute( iface, RTMP_ADD ) ) { /* -1 or 1 */ LOG(log_error, logtype_default,