duh... ------- Forwarded Message To: "Serge van Thillo" <tila@zeelandnet.nl> Cc: linux-net@vger.rutgers.edu Subject: Re: net-tools 1.58 In-Reply-To: Message from "Serge van Thillo" <tila@zeelandnet.nl> of "Mon, 12 Feb 2001 22:02:01 +0100." <NDBBKFDMGLGKMBAMDGFHIEDBCBAA.tila@zeelandnet.nl> References: <NDBBKFDMGLGKMBAMDGFHIEDBCBAA.tila@zeelandnet.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 12 Feb 2001 21:08:12 +0000 From: Philip Blundell <philb@gnu.org> >Don't know if the net-tools 1.58 is concidered a stable release, but when I >tried to bring my isdn interface (ippp0, syncppp) down, I got back an error >message telling me that this is an unknown interface. Please try this small patch. p. Index: ifconfig.c =================================================================== RCS file: /cvs/net-tools/ifconfig.c,v retrieving revision 1.43 retrieving revision 1.44 diff -u -p -u -r1.43 -r1.44 - --- ifconfig.c 2000/10/26 03:19:06 1.43 +++ ifconfig.c 2001/02/12 21:06:47 1.44 @@ -3,7 +3,7 @@ * that either displays or sets the characteristics of * one or more of the system's networking interfaces. * - * Version: $Id: ifconfig.c,v 1.43 2000/10/26 03:19:06 ak Exp $ + * Version: $Id: ifconfig.c,v 1.44 2001/02/12 21:06:47 pb Exp $ * * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> * and others. Copyright 1993 MicroWalt Corporation @@ -312,13 +312,13 @@ int main(int argc, char **argv) else ap = get_aftype(DFLT_AF); - if(ap) { + if (ap) { addr_family = ap->af; if ((fd=sockets_open(addr_family)) < 0) { perror("family socket"); exit(1); } else { - if (skfd) close(skfd); + if (skfd > 0 && skfd != fd) close(skfd); skfd = fd; } } ------- End of Forwarded Message - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org