installbin:
install -m 0755 -d ${BASEDIR}/sbin
install -m 0755 -d ${BASEDIR}/bin
- install -m 0755 arp ${BASEDIR}/sbin
- install -m 0755 ifconfig ${BASEDIR}/sbin
- install -m 0755 netstat ${BASEDIR}/bin
- install -m 0755 rarp ${BASEDIR}/sbin
- install -m 0755 route ${BASEDIR}/sbin
- install -m 0755 hostname ${BASEDIR}/bin
+ install -m 0755 arp ${BASEDIR}/sbin
+ install -m 0755 ifconfig ${BASEDIR}/sbin
+ install -m 0755 netstat ${BASEDIR}/bin
+ install -m 0755 rarp ${BASEDIR}/sbin
+ install -m 0755 route ${BASEDIR}/sbin
+ install -m 0755 hostname ${BASEDIR}/bin
+ install -m 0755 slattach $(BASEDIR)/sbin
+ install -m 0755 plipconfig $(BASEDIR)/sbin
+ install -m 0755 ipmaddr $(BASEDIR)/sbin
+ install -m 0755 iptunnel $(BASEDIR)/sbin
ln -fs hostname $(BASEDIR)/bin/dnsdomainname
ln -fs hostname $(BASEDIR)/bin/ypdomainname
ln -fs hostname $(BASEDIR)/bin/nisdomainname
Summary: Basic Networking Tools
Name: net-tools
-Version: 1.49
+Version: 1.50
Release: 1
Copyright: GPL
Group: Networking/Admin
%description
This is a collection of the basic tools necessary for setting up networking
on a Linux machine. It includes ifconfig, route, netstat, rarp, and
-some other minor tools.
+various other tools.
%prep
%setup -q
make BASEDIR=$RPM_BUILD_ROOT install
( cd $RPM_BUILD_ROOT/sbin
- strip arp ifconfig rarp route
+ strip arp ifconfig rarp route slattach plipconfig ipmaddr iptunnel
cd ../bin
strip hostname netstat
)
/sbin/ifconfig
/sbin/rarp
/sbin/route
+/sbin/slattach
+/sbin/plipconfig
+/sbin/ipmaddr
+/sbin/iptunnel
/bin/domainname
/bin/dnsdomainname
/bin/hostname
/usr/share/locale/*/LC_MESSAGES/net-tools.mo
%changelog
+* Sun Jan 10 1999 Phil Blundell <philb@gnu.org>
+- update to 1.50
+- add new stuff to %files and strip it in %install
+
* Thu Nov 26 1998 Phil Blundell <pb@nexus.co.uk>
- update to 1.48.
#include <netinet/in.h>
#include <arpa/inet.h>
#include <arpa/nameser.h>
-/* #include <net/route.h> realy broken */
#include <net/if.h>
#include <sys/ioctl.h>
#include <ctype.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
-#ifndef __GLIBC__
+#ifdef __GLIBC__
+#include <net/route.h>
+#else
#include <netinet6/ipv6_route.h> /* glibc does not have this */
#endif
#include "version.h"
#include <netdb.h>
#include <arpa/inet.h>
#include <resolv.h>
+#include <asm/types.h>
#include <linux/pkt_sched.h>
#include "utils.h"
* NET-3 Networking Distribution for the LINUX operating
* system.
*
- * Version: $Id: netstat.c,v 1.16 1999/01/05 20:53:00 philip Exp $
+ * Version: $Id: netstat.c,v 1.17 1999/01/10 18:05:06 philip Exp $
*
* Authors: Fred Baumgarten, <dc6iq@insu1.etec.uni-karlsruhe.de>
* Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
}
#if HAVE_AFINET6
-#define notnull(A) ((A.sin6_family == AF_INET6) && \
+#define notnull(A) (((A.sin6_family == AF_INET6) && \
((A.sin6_addr.s6_addr32[0]) || \
(A.sin6_addr.s6_addr32[1]) || \
(A.sin6_addr.s6_addr32[2]) || \
perror(_("missing interface information"));
exit(1);
}
- close(skfd);
+ if (!flag_cnt)
+ close(skfd);
skfd = -1;
return 0;