
|
[openbeosnetteam]
||
[Date Prev]
[04-2004 Date Index]
[Date Next]
||
[Thread Prev]
[04-2004 Thread Index]
[Thread Next]
[openbeosnetteam] route show, problem found
- From: "Brennan Cleveland" <warriorspot@xxxxxxxxxxxxx>
- To: openbeosnetteam@xxxxxxxxxxxxx
- Date: Tue, 06 Apr 2004 13:36:41 +0000
Here is the problem with the 'route show' command:
Endless loops are encountered in the file route.c in the function char
*netname(sa). They occur in the two while() loops (approx. lines
524 and 534). The value of 'mask' gets shifted to 0, and the exit
conditions of these loops are never met. This is the case on my
192.168.0.0 network, I can't vouch for behavior of any other subnets. A
'fix' that worked temporarily is to change the exit conditons of both
loops to be:
while(mask > 0). This produced correct output for me.
Can some who is more familiar with this code verify a correct fix for
this? I don't fully understand this section of the code at this point.
Finally, can we get rid of (comment out by default) the printf
statements in compat.c? They relly mess up the formatting of the output
for route show and other things.. It might be a good idea if we start
getting some users playing with our stack that they don't by default see
this type of debugging output.
Brennan
|

|