Subject: Re: Disappearing from chooser ...
From: wesley.craig@umich.edu
Date: Tue Oct 10 1995 - 14:41:56 EDT
> From: bueker@bidnix.bid.fh-hannover.de (T\vns B\|ker)
> To: netatalk-admins@umich.edu
> yesterday evening I startet another attempt to compile a
> netatalk-binary which does not disappear from the chooser
> of the client-macs.
> Therefore I fetched another patch from the
> 'linux+netatalk-Hompage' and compiled with it.
> Oct 5 00:49:03 bidnix atalkd[84]: as_timer last gateway down
> And it still disappears from the chooser.
> Netatalk 1.3.3b2 and Linux 1.2.10
I'm not aware of a linux+netatalk-Homepage. If you tell me where it's
at, I'll add a link in the netatalk homepage. However, I've attached
the fix I have for this problem.
:wes
*** sys/linux/ddp.c- 1995/06/30 18:00:45
--- sys/linux/ddp.c 1995/07/18 19:53:52
***************
*** 313,318 ****
--- 313,319 ----
int ct;
int netrange=ntohs(atif->nets.nr_lastnet)-ntohs(atif->nets.nr_firstnet)+1;
int probe_net=ntohs(atif->address.s_net);
+ int probe_node=atif->address.s_node;
int netct;
int nodect;
***************
*** 328,335 ****
else
probe_net=ntohs(atif->nets.nr_firstnet) + (jiffies%netrange);
}
!
!
/*
* Scan the networks.
*/
--- 329,339 ----
else
probe_net=ntohs(atif->nets.nr_firstnet) + (jiffies%netrange);
}
!
! if ( probe_node == ATADDR_ANYNODE ) {
! probe_node = jiffies&255;
! }
!
/*
* Scan the networks.
*/
***************
*** 337,350 ****
for(netct=0;netct<=netrange;netct++)
{
/*
! * Sweep the available nodes from a random start.
*/
- int nodeoff=jiffies&255;
-
atif->address.s_net=htons(probe_net);
for(nodect=0;nodect<256;nodect++)
{
! atif->address.s_node=((nodect+nodeoff)&0xFF);
if(atif->address.s_node>0&&atif->address.s_node<254)
{
/*
--- 341,352 ----
for(netct=0;netct<=netrange;netct++)
{
/*
! * Sweep the available nodes from a given start.
*/
atif->address.s_net=htons(probe_net);
for(nodect=0;nodect<256;nodect++)
{
! atif->address.s_node=((nodect+probe_node)&0xFF);
if(atif->address.s_node>0&&atif->address.s_node<254)
{
/*
This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:23:11 EST