From 083748a6a42c4e3e85657c45b621320179be4ec2 Mon Sep 17 00:00:00 2001 From: Chas Williams Date: Thu, 11 Oct 2001 19:39:32 +0000 Subject: [PATCH] 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 --- src/rx/IRIX/rx_knet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rx/IRIX/rx_knet.c b/src/rx/IRIX/rx_knet.c index 4e02690a8..74140f9a1 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); } -- 2.39.5