]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
irix-adapt-mtu-correctly-20011011
authorChas Williams <chas@cmf.nrl.navy.mil>
Thu, 11 Oct 2001 19:39:32 +0000 (19:39 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 11 Oct 2001 19:39:32 +0000 (19:39 +0000)
rxi_MatchIfnet() always returns 0 (i.e. not a match).  so rxi_FindIfnet()
will always return 0 and the ADAPT_MTU code can never determine the
interface (and its mtu)

fix by returning 1 if we have a match_value

src/rx/IRIX/rx_knet.c

index 4e02690a897aed046559f0ad63d73c9dbd049bb4..74140f9a190b3d2ad1da51eb26172a07393de233 100644 (file)
@@ -314,7 +314,7 @@ static int rxi_MatchIfnet(struct hashbucket *h, caddr_t key, caddr_t arg1,
        }
     }
     *(int*)arg1 = match_value;
-    return 0;
+    return (match_value ? 1 : 0);
 }