Notes
-----
-This is net-tools 1.58.
+This is net-tools 1.59.
You need kernel 2.0 or later to use these programs. These programs
should compile cleanly with both glibc (version 2.0 or 2.1) and libc5,
* 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
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;
}
}