patch-2.2.5 linux/net/appletalk/ddp.c
Next file: linux/net/core/dev.c
Previous file: linux/kernel/signal.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Fri Mar 26 14:01:40 1999
- Orig file:
v2.2.4/linux/net/appletalk/ddp.c
- Orig date:
Thu Jan 7 15:11:41 1999
diff -u --recursive --new-file v2.2.4/linux/net/appletalk/ddp.c linux/net/appletalk/ddp.c
@@ -356,7 +356,7 @@
/*
* Scan the networks.
*/
-
+ atif->status |= ATIF_PROBE;
for(netct = 0; netct <= netrange; netct++)
{
/*
@@ -374,8 +374,10 @@
*/
aarp_probe_network(atif);
- if(!(atif->status & ATIF_PROBE_FAIL))
+ if(!(atif->status & ATIF_PROBE_FAIL)) {
+ atif->status &= ~ATIF_PROBE;
return (0);
+ }
}
atif->status &= ~ATIF_PROBE_FAIL;
}
@@ -383,7 +385,7 @@
if(probe_net > ntohs(atif->nets.nr_lastnet))
probe_net = ntohs(atif->nets.nr_firstnet);
}
-
+ atif->status &= ~ATIF_PROBE;
return (-EADDRINUSE); /* Network is full... */
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)