From: Chas Williams Date: Thu, 11 Oct 2001 19:39:32 +0000 (+0000) Subject: irix-adapt-mtu-correctly-20011011 X-Git-Tag: openafs-devel-1_3_0~211 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=083748a6a42c4e3e85657c45b621320179be4ec2;hp=99ba2ae4b6774d33cf26d132c0cdcedc8ea5bffd irix-adapt-mtu-correctly-20011011 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 --- diff --git a/src/rx/IRIX/rx_knet.c b/src/rx/IRIX/rx_knet.c index 4e02690..74140f9 100644 --- a/src/rx/IRIX/rx_knet.c +++ b/src/rx/IRIX/rx_knet.c @@ -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); }