platform/upstream/net-tools.git
22 years agodelay the setting of netmask derived from /mask after setting address
Bernd Eckenfels [Thu, 1 Nov 2001 03:00:13 +0000 (03:00 +0000)]
delay the setting of netmask derived from /mask after setting address
(Debian Bug #116573 reported by Brian Warner)

22 years agominor fix to return E_USAGE on -V instead of exit(0);
Bernd Eckenfels [Thu, 1 Nov 2001 01:54:49 +0000 (01:54 +0000)]
minor fix to return E_USAGE on -V instead of exit(0);

22 years agofailed to set error flag if netmask setting reported an error
Bernd Eckenfels [Thu, 1 Nov 2001 01:48:31 +0000 (01:48 +0000)]
failed to set error flag if netmask setting reported an error
(Debian Bug #117837 reported by Sam Clegg)

22 years ago(Finally) update netstat -s for 2.4 statistics.
Andi Kleen [Wed, 24 Oct 2001 11:57:05 +0000 (11:57 +0000)]
(Finally) update netstat -s for 2.4 statistics.

22 years agoOnly print unknown statistics when their counter is > 0.
Andi Kleen [Fri, 19 Oct 2001 09:28:01 +0000 (09:28 +0000)]
Only print unknown statistics when their counter is > 0.

22 years agoFix netstat -- don't print all v4 addresses as v4-mapped-in-v6.
Andi Kleen [Sun, 26 Aug 2001 05:25:21 +0000 (05:25 +0000)]
Fix netstat -- don't print all v4 addresses as v4-mapped-in-v6.

22 years agoIncrease SIOCGIFCONF buffer size faster for many interfaces.
Andi Kleen [Thu, 9 Aug 2001 15:52:39 +0000 (15:52 +0000)]
Increase SIOCGIFCONF buffer size faster for many interfaces.

23 years agoRemove Debian-specific path.
Phil Blundell [Tue, 17 Jul 2001 07:27:15 +0000 (07:27 +0000)]
Remove Debian-specific path.

23 years agodoh
Phil Blundell [Tue, 17 Jul 2001 07:24:36 +0000 (07:24 +0000)]
doh

23 years agoFix confusion between bits and bytes
Phil Blundell [Tue, 17 Jul 2001 07:21:57 +0000 (07:21 +0000)]
Fix confusion between bits and bytes

23 years agomade man page more useful and added right link for irq conflicts in
Bernd Eckenfels [Fri, 29 Jun 2001 07:47:59 +0000 (07:47 +0000)]
made man page more useful and added right link for irq conflicts in
ifconfig.8

23 years agoa fix for Debian which can be nicely included upstream (#102139)
Bernd Eckenfels [Fri, 29 Jun 2001 03:56:08 +0000 (03:56 +0000)]
a fix for Debian which can be nicely included upstream (#102139)

23 years agoman page fix CLOSED -> CLOSE
Bernd Eckenfels [Fri, 29 Jun 2001 03:50:06 +0000 (03:50 +0000)]
man page fix CLOSED -> CLOSE

23 years agothis will check after clearing a flag, that it is indeed cleared. it will
Bernd Eckenfels [Fri, 29 Jun 2001 03:48:51 +0000 (03:48 +0000)]
this will check after clearing a flag, that it is indeed cleared. it will
also be a bit more verbose and precise on errors. See Debian Bug #102474

23 years agofixed CLOSED -> CLOSE in french and english manpage as of bug report from
Bernd Eckenfels [Fri, 29 Jun 2001 03:15:54 +0000 (03:15 +0000)]
fixed CLOSED -> CLOSE in french and english manpage as of bug report from
Matthew Tippett

23 years agochanged a type arp -a now prints PUB instead of PUP for proxy arp entries
Bernd Eckenfels [Sun, 6 May 2001 02:14:07 +0000 (02:14 +0000)]
changed a type arp -a now prints PUB instead of PUP for proxy arp entries

23 years agoUpdate from Meelis Roos
Phil Blundell [Mon, 16 Apr 2001 18:43:27 +0000 (18:43 +0000)]
Update from Meelis Roos

23 years agoFix punctuation. v1.60
Phil Blundell [Sun, 15 Apr 2001 14:41:17 +0000 (14:41 +0000)]
Fix punctuation.

23 years agoThis is net-tools 1.60.
Phil Blundell [Sun, 15 Apr 2001 14:34:57 +0000 (14:34 +0000)]
This is net-tools 1.60.

23 years agoFix typo.
Phil Blundell [Fri, 13 Apr 2001 18:25:18 +0000 (18:25 +0000)]
Fix typo.

23 years agoReformat recently-added code to match style of the rest.
Phil Blundell [Fri, 13 Apr 2001 18:24:21 +0000 (18:24 +0000)]
Reformat recently-added code to match style of the rest.
Replace strcpy with safe_strncpy, sprintf with snprintf.
Exit successfully for `--version'.

23 years agoCheck that ap->input is non NULL before dereferencing it.
Phil Blundell [Fri, 13 Apr 2001 18:16:53 +0000 (18:16 +0000)]
Check that ap->input is non NULL before dereferencing it.

23 years agoUse setlocale at program initialisation.
Phil Blundell [Sun, 8 Apr 2001 17:05:05 +0000 (17:05 +0000)]
Use setlocale at program initialisation.
Patch from Arnaldo Carvalho de Melo.

23 years agoFix reporting of IPv6 multicast addresses.
Phil Blundell [Sun, 1 Apr 2001 15:04:43 +0000 (15:04 +0000)]
Fix reporting of IPv6 multicast addresses.

23 years agoUndo "close spare sockets" patch to fix IPv6 breakage.
Phil Blundell [Sun, 1 Apr 2001 14:50:24 +0000 (14:50 +0000)]
Undo "close spare sockets" patch to fix IPv6 breakage.
Improve some diagnostics.

23 years agosome changes in the routing flags, 2 flags are outstanding... anybody has an
Bernd Eckenfels [Sun, 18 Mar 2001 04:10:35 +0000 (04:10 +0000)]
some changes in the routing flags, 2 flags are outstanding... anybody has an
idea what it is? :)

23 years agoadded nameif und mii-tool to .cvsignore (i hate the warnings :)
Bernd Eckenfels [Sun, 18 Mar 2001 04:04:01 +0000 (04:04 +0000)]
added nameif und mii-tool to .cvsignore (i hate the warnings :)

23 years agoAdam Richter pointed out, that 0 is a valid fd value, even if it is unlikely
Bernd Eckenfels [Mon, 19 Feb 2001 21:42:43 +0000 (21:42 +0000)]
Adam Richter pointed out, that 0 is a valid fd value, even if it is unlikely
to be the case in this situation.

23 years agoUpdated Estonian translation
Phil Blundell [Fri, 16 Feb 2001 08:58:54 +0000 (08:58 +0000)]
Updated Estonian translation

23 years agoi am sorry for that double change, didnt noticed, my cvs change mail seems
Bernd Eckenfels [Tue, 13 Feb 2001 00:27:34 +0000 (00:27 +0000)]
i am sorry for that double change, didnt noticed, my cvs change mail seems
to be mising

23 years agoadded nameif to the makefile, fixed typo, changed version: to date
Bernd Eckenfels [Tue, 13 Feb 2001 00:18:37 +0000 (00:18 +0000)]
added nameif to the makefile, fixed typo, changed version: to date

23 years agoActually install nameif.
Phil Blundell [Mon, 12 Feb 2001 22:35:51 +0000 (22:35 +0000)]
Actually install nameif.
Patch from Tuan Hoang <tuan@optimus.mitre.org>

23 years agoAvoid closing a socket we're about to use.
Phil Blundell [Mon, 12 Feb 2001 21:06:47 +0000 (21:06 +0000)]
Avoid closing a socket we're about to use.

23 years agoMake packet/byte counters 64 bits wide
Phil Blundell [Sat, 10 Feb 2001 19:31:14 +0000 (19:31 +0000)]
Make packet/byte counters 64 bits wide

23 years agoBump buffer sizes for 2.4 kernels; patch from Tim Waugh
Phil Blundell [Fri, 2 Feb 2001 18:01:23 +0000 (18:01 +0000)]
Bump buffer sizes for 2.4 kernels; patch from Tim Waugh

23 years agoread netdev counters as unsigned lon, not signed long, should fix the debian
Bernd Eckenfels [Tue, 19 Dec 2000 01:36:27 +0000 (01:36 +0000)]
read netdev counters as unsigned lon, not signed long, should fix the debian
bug #45107

23 years agodisplay all IFF_ flags for netstat -i (print_short and print_long has equal
Bernd Eckenfels [Tue, 19 Dec 2000 01:28:34 +0000 (01:28 +0000)]
display all IFF_ flags for netstat -i (print_short and print_long has equal
count of printed flags now)

23 years agofixed capsulation of -L option in man page (Debin Bug #77495)
Bernd Eckenfels [Tue, 19 Dec 2000 01:07:07 +0000 (01:07 +0000)]
fixed capsulation of -L option in man page (Debin Bug #77495)

23 years agobyte count will be displayed in ifconfig, patch from John Corey <kunglao@prairienet...
Bernd Eckenfels [Tue, 19 Dec 2000 01:01:41 +0000 (01:01 +0000)]
byte count will be displayed in ifconfig, patch from John Corey <kunglao@prairienet.org>
as reported in debian wishlist bug #20516)

23 years agochanged hor.tab into whitespace for arp columns, closes Debian bug #76606)
Bernd Eckenfels [Tue, 19 Dec 2000 00:34:27 +0000 (00:34 +0000)]
changed hor.tab into whitespace for arp columns, closes Debian bug #76606)

23 years agoremoved -N from usage, since it does not work correct (Debian Bug #50266)
Bernd Eckenfels [Tue, 19 Dec 2000 00:26:16 +0000 (00:26 +0000)]
removed -N from usage, since it does not work correct (Debian Bug #50266)

23 years agoTypo fix from Tim Waugh
Phil Blundell [Mon, 6 Nov 2000 19:48:49 +0000 (19:48 +0000)]
Typo fix from Tim Waugh

23 years agoHandle getnameinfo() failures a bit better (should avoid segfault
Phil Blundell [Sat, 28 Oct 2000 11:04:00 +0000 (11:04 +0000)]
Handle getnameinfo() failures a bit better (should avoid segfault
when glibc is upgraded).
Bump version to 1.58 in preparation for new release.

23 years agoAlways complain when SIOCGIFMAP fails.
Andi Kleen [Thu, 26 Oct 2000 03:19:06 +0000 (03:19 +0000)]
Always complain when SIOCGIFMAP fails.

Make sure the argument counter is incremented in all error paths.

23 years agoAlso add nameif to the Makefile.
Andi Kleen [Wed, 18 Oct 2000 17:27:08 +0000 (17:27 +0000)]
Also add nameif to the Makefile.

23 years agoAdd nameif, a small tool for logical network interface naming.
Andi Kleen [Wed, 18 Oct 2000 17:26:29 +0000 (17:26 +0000)]
Add nameif, a small tool for logical network interface naming.

23 years agopatch from Alex Belits <abelits@phobos.illtel.denver.co.us> to support
Bernd Eckenfels [Sun, 8 Oct 2000 01:16:42 +0000 (01:16 +0000)]
patch from Alex Belits <abelits@phobos.illtel.denver.co.us> to support
longer IDs in new Metricom Modems as described in:
http://phobos.illtel.denver.co.us/~abelits/metricom/ (Kernel patch pending)

23 years agofeature from the guys at RedHat for more selective "-n" option:
Bernd Eckenfels [Sun, 8 Oct 2000 01:00:43 +0000 (01:00 +0000)]
feature from the guys at RedHat for more selective "-n" option:
 -numeric-host, -numeric-port, -numeric-user. Send to me by  Jeff Johnson
and reported by jik@kamens.brookline.ma.us

23 years agofix from bug#9215 in bugzilla@redhat (ifconfig sl0 mtu 1440 works now)
Bernd Eckenfels [Sun, 8 Oct 2000 00:48:35 +0000 (00:48 +0000)]
fix from bug#9215 in bugzilla@redhat (ifconfig sl0 mtu 1440 works now)

23 years agoadded mandir= and default it to /usr/share/man (patch from Jeff Johnson, RH)
Bernd Eckenfels [Sun, 8 Oct 2000 00:12:30 +0000 (00:12 +0000)]
added mandir= and default it to /usr/share/man (patch from Jeff Johnson, RH)

23 years agoRemove my email address from the ifconfig manpage.
Andi Kleen [Sat, 19 Aug 2000 22:13:00 +0000 (22:13 +0000)]
Remove my email address from the ifconfig manpage.

23 years agoSpeed up list operations by exploiting that the interface list is ordered,
Andi Kleen [Mon, 14 Aug 2000 07:57:19 +0000 (07:57 +0000)]
Speed up list operations by exploiting that the interface list is ordered,
and the kernel list is normally ordered to.

This allows to list 7000 aliases in a reasonable time.
Also be a bit smarter on when to read SIOCGIFCONF.

The stupid IPv6 /proc parsing on every address still burns a lot of CPU
time.

23 years agoDebian's patch for better device name/lock handling
Bernd Eckenfels [Mon, 14 Aug 2000 02:44:11 +0000 (02:44 +0000)]
Debian's patch for better device name/lock handling

23 years agopatch from debian to be a bit more verbose about IRQ conflicts
Bernd Eckenfels [Mon, 14 Aug 2000 01:06:23 +0000 (01:06 +0000)]
patch from debian to be a bit more verbose about IRQ conflicts

23 years agosome fixes in the german catalog from Jens P. Elsner. Thanks!
Bernd Eckenfels [Tue, 1 Aug 2000 03:19:48 +0000 (03:19 +0000)]
some fixes in the german catalog from Jens P. Elsner. Thanks!

23 years agofixed a segfault condition in ifconfig when setting hw address for AF loop,
Bernd Eckenfels [Mon, 31 Jul 2000 01:13:33 +0000 (01:13 +0000)]
fixed a segfault condition in ifconfig when setting hw address for AF loop,
as reorted by ADAM Sulmicki.

23 years agomake net-lib compile again, not sure why this is not passed to the subdir
Bernd Eckenfels [Fri, 28 Jul 2000 07:01:01 +0000 (07:01 +0000)]
make net-lib compile again, not sure why this is not passed to the subdir
from the top level makefile anymore, but this way it is more stable for a
stand alone libnet-lib anyway.

24 years agoPrint unknown MIBs.
Andi Kleen [Mon, 3 Jul 2000 23:39:27 +0000 (23:39 +0000)]
Print unknown MIBs.

24 years agoarp takes --numeric, not --umeric
Andi Kleen [Sat, 1 Jul 2000 14:31:36 +0000 (14:31 +0000)]
arp takes --numeric, not --umeric

Noticed by Hubert Mantel.

24 years agoAdd descriptions for 2.4 and 2.2.17pre5 netstat variables.
Andi Kleen [Wed, 21 Jun 2000 23:48:53 +0000 (23:48 +0000)]
Add descriptions for 2.4 and 2.2.17pre5 netstat variables.

Use %u instead of %d for most outputs.

24 years agoFix stray brace.
Phil Blundell [Sun, 11 Jun 2000 15:44:21 +0000 (15:44 +0000)]
Fix stray brace.
Patch from Richard Huveneers <richard@hekkihek.hacom.nl>

24 years agoChange NET-LIB to NET_LIB to avoid problems with new make.
Phil Blundell [Sun, 28 May 2000 18:15:39 +0000 (18:15 +0000)]
Change NET-LIB to NET_LIB to avoid problems with new make.

24 years agoFix stupid bug in netstat -i.
Phil Blundell [Sun, 28 May 2000 15:19:15 +0000 (15:19 +0000)]
Fix stupid bug in netstat -i.

24 years agonet-tools 1.56
Phil Blundell [Sun, 28 May 2000 11:05:58 +0000 (11:05 +0000)]
net-tools 1.56

24 years agoCheck /proc before opening ECONET sockets.
Phil Blundell [Sat, 27 May 2000 17:36:16 +0000 (17:36 +0000)]
Check /proc before opening ECONET sockets.
Try to fix the problem with alias interfaces and non INET sockets.

24 years agoMake `route -A inet6 add default ...' work.
Phil Blundell [Mon, 22 May 2000 20:27:05 +0000 (20:27 +0000)]
Make `route -A inet6 add default ...' work.

24 years agoUpdate manual pages to better match reality.
Phil Blundell [Sun, 21 May 2000 19:35:34 +0000 (19:35 +0000)]
Update manual pages to better match reality.
Pull code from ifconfig into interface.c; implement ifconfig -s
and netstat -i -e.

24 years agoDocumentation updates.
Phil Blundell [Sun, 21 May 2000 13:46:39 +0000 (13:46 +0000)]
Documentation updates.

24 years agoAdd mii-tool from David Hinds.
Phil Blundell [Sun, 21 May 2000 13:44:36 +0000 (13:44 +0000)]
Add mii-tool from David Hinds.

24 years agoAdd support for `add' and `del' with IPv4.
Phil Blundell [Sat, 20 May 2000 18:08:48 +0000 (18:08 +0000)]
Add support for `add' and `del' with IPv4.
Patch from mrs.brisby@nimh.org.

24 years agoFix warnings.
Phil Blundell [Sat, 20 May 2000 18:07:34 +0000 (18:07 +0000)]
Fix warnings.

24 years agoMake more glibc friendly.
Phil Blundell [Sat, 20 May 2000 18:07:19 +0000 (18:07 +0000)]
Make more glibc friendly.

24 years agoAdd X.25 support.
Phil Blundell [Sat, 20 May 2000 13:38:10 +0000 (13:38 +0000)]
Add X.25 support.
Patch from "J.H.M. Dassen (Ray)" <jdassen@cistron.nl>

24 years agore applied the ipv6 addresses patch from Matthew (for intel platform)
Bernd Eckenfels [Wed, 5 Apr 2000 00:59:56 +0000 (00:59 +0000)]
re applied the ipv6 addresses patch from Matthew (for intel platform)

24 years agopatch from matthew flanagan for better ipv6 address representation in
Bernd Eckenfels [Mon, 3 Apr 2000 23:25:59 +0000 (23:25 +0000)]
patch from matthew flanagan for better ipv6 address representation in
netstat

24 years agoUpdated Estonian translation, from Meelis Roos <mroos@linux.ee>
Phil Blundell [Sun, 2 Apr 2000 18:36:41 +0000 (18:36 +0000)]
Updated Estonian translation, from Meelis Roos <mroos@linux.ee>

24 years agoAdd STRIP support.
Phil Blundell [Sun, 2 Apr 2000 12:56:41 +0000 (12:56 +0000)]
Add STRIP support.

24 years agofix from Lapo Pieri to support non ethernet Default HW types
Bernd Eckenfels [Thu, 23 Mar 2000 01:14:03 +0000 (01:14 +0000)]
fix from Lapo Pieri to support non ethernet Default HW types

24 years agoSet VERSION to 1.55
Phil Blundell [Sun, 19 Mar 2000 17:33:18 +0000 (17:33 +0000)]
Set VERSION to 1.55

24 years agoUpdated man page from Bryan Henderson
Phil Blundell [Sun, 19 Mar 2000 12:39:07 +0000 (12:39 +0000)]
Updated man page from Bryan Henderson

24 years agoMake `netstat -p' work with 2.0 kernels.
Phil Blundell [Sun, 19 Mar 2000 12:36:39 +0000 (12:36 +0000)]
Make `netstat -p' work with 2.0 kernels.
Patch from bryanh@giraffe-data.com (Bryan Henderson)

24 years agofixed compile warning for NULL instead of 0 in "suppress_null_addr" (who did
Bernd Eckenfels [Sun, 5 Mar 2000 16:14:08 +0000 (16:14 +0000)]
fixed compile warning for NULL instead of 0 in "suppress_null_addr" (who did
that?!)

24 years agoFix problems with hwtype initialisation.
Phil Blundell [Sun, 5 Mar 2000 11:26:02 +0000 (11:26 +0000)]
Fix problems with hwtype initialisation.
Reported by Anthony Towns <ajt@debian.org>

24 years agoFix netstat -ci (#6904 in RedHat bugzilla)
Phil Blundell [Sun, 20 Feb 2000 17:50:01 +0000 (17:50 +0000)]
Fix netstat -ci (#6904 in RedHat bugzilla)
Patch from Jeff Johnson

24 years agoFrom Arnaldo Carvalho de Melo (acme@conectiva.com.br):
Ralf Bächle [Sun, 13 Feb 2000 22:27:58 +0000 (22:27 +0000)]
From Arnaldo Carvalho de Melo (acme@conectiva.com.br):
 - Change hostname.c to make translation easier.
 - Update pt_BR translation.
 - Rebuild net-tools.pot and merge the other .po files (me).

24 years agoAccept mtu as synonym for mss
Klaas Freitag [Thu, 3 Feb 2000 06:02:05 +0000 (06:02 +0000)]
Accept mtu as synonym for mss

24 years agoRemove typo to make it compile
Klaas Freitag [Wed, 2 Feb 2000 08:56:30 +0000 (08:56 +0000)]
Remove typo to make it compile

24 years agoslightly modified patch from georg.funke@netcologne.de to the german po file
Bernd Eckenfels [Wed, 5 Jan 2000 01:02:41 +0000 (01:02 +0000)]
slightly modified patch from georg.funke@netcologne.de to the german po file

24 years agoUpdate.
Phil Blundell [Sun, 2 Jan 2000 23:50:33 +0000 (23:50 +0000)]
Update.

24 years agoSome patches from Kurt Garloff to handle /etc/networks correctly
Klaas Freitag [Sat, 11 Dec 1999 13:35:53 +0000 (13:35 +0000)]
Some patches from Kurt Garloff to handle /etc/networks correctly

Make ifconfig more forgiving when /proc is not mounted

Avoid endless recursion when /proc/net/dev is empty :-)

24 years agoSupport new token ring ARP type
Phil Blundell [Sat, 11 Dec 1999 12:09:23 +0000 (12:09 +0000)]
Support new token ring ARP type
Patch from "Mike Phillips" <phillim@amtrak.com>

24 years agoAllow exchange of hostname and mac address in the file read by arp -f.
Klaas Freitag [Mon, 6 Dec 1999 16:57:27 +0000 (16:57 +0000)]
Allow exchange of hostname and mac address in the file read by arp -f.
This is for consistency with rarp /etc/ethers. Default to /etc/ethers
when no file name is supplied.

This hack does not work with IPv6, but arp does not work with IPv6
anyways so it does not matter.

Patch from Thorsten Kukuk

Fixed man pages (only German and English one).

Add blurb about automagic subnet arp.

24 years agoFix description of the mss argument. The default is not 536.
Klaas Freitag [Fri, 3 Dec 1999 13:03:22 +0000 (13:03 +0000)]
Fix description of the mss argument. The default is not 536.

For the de and en Versions I also added a short note on how it is useful
to work around pmtu blackhole problems. For fr and pt I just deleted
the offending sentence.

24 years agoakamatsu@kobedenshi.ac.jp reported a problem with --device without
Bernd Eckenfels [Sun, 21 Nov 1999 00:40:27 +0000 (00:40 +0000)]
akamatsu@kobedenshi.ac.jp reported a problem with --device without
mandatory argument.

24 years agoready for net-tools 1.54...
Phil Blundell [Sat, 20 Nov 1999 22:49:16 +0000 (22:49 +0000)]
ready for net-tools 1.54...

24 years agoFix another reference to hw->sprint
Phil Blundell [Tue, 28 Sep 1999 09:01:49 +0000 (09:01 +0000)]
Fix another reference to hw->sprint

24 years agoRemove `sprint' member from struct hwtype. As far as I can see
Phil Blundell [Mon, 27 Sep 1999 11:00:42 +0000 (11:00 +0000)]
Remove `sprint' member from struct hwtype.  As far as I can see
it served no useful purpose.  Please check I didn't break your
favourite hardware type in the process.
Add derisory support for Ash protocols.

24 years agoMake it compile without HAVE_HWSLIP.
Klaas Freitag [Mon, 27 Sep 1999 00:36:16 +0000 (00:36 +0000)]
Make it compile without HAVE_HWSLIP.
Found by Rick Hohensee.

24 years agoTypo fix
Phil Blundell [Tue, 31 Aug 1999 19:27:05 +0000 (19:27 +0000)]
Typo fix

24 years agoadded cs to makefile for building/installing
Bernd Eckenfels [Mon, 30 Aug 1999 22:28:37 +0000 (22:28 +0000)]
added cs to makefile for building/installing