platform/upstream/net-tools.git
12 years agoPossible problems found by static analysis of code.
Jiri Popelka [Wed, 7 Dec 2011 18:43:56 +0000 (19:43 +0100)]
Possible problems found by static analysis of code.

We analyzed the net-tools-1.60 code with Coverity.
Coverity is commercial enterprise level tool for
static analysis (analysis based only on compiling
of sources, not based on running of binary) of the code.

This change should fix some possible problems like resource (memory,
file descriptors) leaks.

Follow respective parts of the scan log. The line
numbers could be quite different as we analyzed Red Hat's
heavily patched version of net-tools-1.60.

Error: RESOURCE_LEAK
ipmaddr.c:191: alloc_fn: Calling allocation function "malloc".
ipmaddr.c:191: var_assign: Assigning: "ma" =  storage returned from "malloc(sizeof (m) /*64*/)".
ipmaddr.c:203: overwrite_var: Overwriting "ma" in call "ma = malloc(sizeof (m) /*64*/)" leaks the storage that "ma" points to.

Error: RESOURCE_LEAK
iptunnel.c:473: alloc_fn: Calling allocation function "fopen".
iptunnel.c:473: var_assign: Assigning: "fp" =  storage returned from "fopen("/proc/net/dev", "r")".
iptunnel.c:488: leaked_storage: Variable "fp" going out of scope leaks the storage it points to.
iptunnel.c:524: leaked_storage: Variable "fp" going out of scope leaks the storage it points to.

Error: FORWARD_NULL
lib/inet.c:408: var_compare_op: Comparing "item" to null implies that "item" might be null.
lib/inet.c:410: var_deref_op: Dereferencing null variable "item".

Error: RESOURCE_LEAK
lib/masq_info.c:174: alloc_fn: Calling allocation function "malloc".
lib/masq_info.c:174: var_assign: Assigning: "mslist" =  storage returned from "malloc(1152UL)".
lib/masq_info.c:215: leaked_storage: Variable "mslist" going out of scope leaks the storage it points to.

Error: RESOURCE_LEAK
lib/netrom_gr.c:35: alloc_fn: Calling allocation function "fopen".
lib/netrom_gr.c:35: var_assign: Assigning: "f1" =  storage returned from "fopen("/proc/net/nr_nodes", "r")".
lib/netrom_gr.c:42: overwrite_var: Overwriting "f1" in call "f1 = fopen("/proc/net/nr_nodes", "r")" leaks the storage that "f1" points to.

Error: RESOURCE_LEAK
lib/netrom_gr.c:36: alloc_fn: Calling allocation function "fopen".
lib/netrom_gr.c:36: var_assign: Assigning: "f2" =  storage returned from "fopen("/proc/net/nr_neigh", "r")".
lib/netrom_gr.c:44: overwrite_var: Overwriting "f2" in call "f2 = fopen("/proc/net/nr_neigh", "r")" leaks the storage that "f2" points to

Error: FORWARD_NULL
lib/x25.c:101: var_compare_op: Comparing "p" to null implies that "p" might be null.
lib/x25.c:109: var_deref_op: Dereferencing null variable "p".

Error: RESOURCE_LEAK
nameif.c:166: alloc_fn: Calling allocation function "xmalloc".
nameif.c:166: var_assign: Assigning: "ch" =  storage returned from "xmalloc(sizeof (struct change) /*40*/)".
nameif.c:177: leaked_storage: Variable "ch" going out of scope leaks the storage it points to.

Error: NEGATIVE_RETURNS
netstat.c:463: negative_return_fn: Function "readlink(line, lname, 29UL)" returns a negative number.
netstat.c:463: var_assign: Assigning: signed variable "lnamelen" = "readlink".
netstat.c:464: negative_returns: Using variable "lnamelen" as an index to array "lname".

Error: RESOURCE_LEAK
netstat.c:894: alloc_fn: Calling allocation function "fopen".
netstat.c:894: var_assign: Assigning: "f" =  storage returned from "fopen("/proc/net/x25", "r")".
netstat.c:905: overwrite_var: Overwriting "f" in call "f = fopen("/proc/net/x25", "r")" leaks the storage that "f" points to.

Error: RESOURCE_LEAK
netstat.c:1916: alloc_fn: Calling allocation function "fopen".
netstat.c:1916: var_assign: Assigning: "f" =  storage returned from "fopen("/proc/net/ipx", "r")".
netstat.c:1934: leaked_storage: Variable "f" going out of scope leaks the storage it points to.
netstat.c:1947: leaked_storage: Variable "f" going out of scope leaks the storage it points to.
netstat.c:1957: leaked_storage: Variable "f" going out of scope leaks the storage it points to.

12 years agoplipconfig man page and usage output fixes
Jiri Popelka [Wed, 7 Dec 2011 18:21:29 +0000 (19:21 +0100)]
plipconfig man page and usage output fixes

12 years agoifconfig interface:0 del <IP> will remove the aliased IP on IA64
Jiri Popelka [Wed, 7 Dec 2011 18:14:09 +0000 (19:14 +0100)]
ifconfig interface:0 del <IP> will remove the aliased IP on IA64

12 years agoprevent 'netstat -nr -A inet6' from smashing stack (RHBZ #668047)
Jiri Popelka [Wed, 7 Dec 2011 18:10:11 +0000 (19:10 +0100)]
prevent 'netstat -nr -A inet6' from smashing stack (RHBZ #668047)

12 years agofixed clearing flags in ifconfig (RHBZ #450252)
Jiri Popelka [Wed, 7 Dec 2011 18:04:35 +0000 (19:04 +0100)]
fixed clearing flags in ifconfig (RHBZ #450252)

12 years agonameif crash for long interface names (RHBZ #209120)
Jiri Popelka [Wed, 7 Dec 2011 18:02:07 +0000 (19:02 +0100)]
nameif crash for long interface names (RHBZ #209120)

I'm not sure how to reproduce that, but the patch
is quite straightforward.

12 years agoin kernel 2.6 /proc/net/x25_routes moves to /proc/net/x25/route
Jiri Popelka [Wed, 7 Dec 2011 17:53:28 +0000 (18:53 +0100)]
in kernel 2.6 /proc/net/x25_routes moves to /proc/net/x25/route

12 years agobuffer overflow in arp (RHBZ #164695)
Jiri Popelka [Wed, 7 Dec 2011 17:43:03 +0000 (18:43 +0100)]
buffer overflow in arp (RHBZ #164695)

Steps to Reproduce:
1. arp -s 172.16.1.3 00:80:c8:04:05:06 -D eth0

12 years agonetstat -s reports negative octet counts
Jiri Popelka [Wed, 7 Dec 2011 17:22:17 +0000 (18:22 +0100)]
netstat -s reports negative octet counts

(RHBZ #579854, Debian #561161)

original patch from Sami Farin

12 years agoThe return value of nameif was wrong
Jiri Popelka [Wed, 7 Dec 2011 17:16:09 +0000 (18:16 +0100)]
The return value of nameif was wrong

Steps to Reproduce:
/sbin/nameif eth1 00:00:10:10:11:11; echo $?

Actual Results:
interface 'eth1' not found
0

Expected Results:
interface 'eth1' not found
1

12 years agoFix Content-Type in po files to avoid msgfmt warning.
Jiri Popelka [Wed, 7 Dec 2011 16:58:34 +0000 (17:58 +0100)]
Fix Content-Type in po files to avoid msgfmt warning.

de.po: warning: Charset "iso8859-1" is not a portable encoding name.
                Message conversion to user's charset might not work.

12 years agoUpdated README to reflect move to SourceForge.net
Jiri Popelka [Wed, 7 Dec 2011 12:06:10 +0000 (13:06 +0100)]
Updated README to reflect move to SourceForge.net

12 years agoUpdated COPYING file.
Jiri Popelka [Wed, 7 Dec 2011 11:41:31 +0000 (12:41 +0100)]
Updated COPYING file.

http://www.gnu.org/licenses/gpl-2.0.html

12 years agomii-tool: fix inverted advertising/link features
Ben Hutchings [Wed, 4 Jan 2012 21:26:48 +0000 (16:26 -0500)]
mii-tool: fix inverted advertising/link features

On a system with a gigabit NIC attached to a 100mbit switch:
# mii-tool -v eth0
capabilities: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising:  100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control

Clearly the last two fields are swapped, and reading the code supports
this hypothesis.

URL: https://bugs.gentoo.org/393107
URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511395
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoslattach: man page documents /dev/ptmx support
Bernd Eckenfels [Sat, 31 Dec 2011 20:35:20 +0000 (20:35 +0000)]
slattach: man page documents /dev/ptmx support

12 years agoslattach: add support for /dev/ptmx [Bug:3467521]
Bernd Eckenfels [Sat, 31 Dec 2011 19:25:07 +0000 (19:25 +0000)]
slattach: add support for /dev/ptmx [Bug:3467521]

12 years agoMerge branch 'master' of ssh://net-tools.git.sourceforge.net/gitroot/net-tools/net...
Bernd Eckenfels [Sat, 31 Dec 2011 19:17:46 +0000 (19:17 +0000)]
Merge branch 'master' of ssh://net-tools.git.sourceforge.net/gitroot/net-tools/net-tools

12 years agoBluetooth name fix
Bernd Eckenfels [Thu, 15 Dec 2011 01:30:46 +0000 (01:30 +0000)]
Bluetooth name fix

12 years agoAdd Bluetooth socket support
Lubomir Rintel [Mon, 5 Dec 2011 13:48:28 +0000 (14:48 +0100)]
Add Bluetooth socket support

Signed-off-by: Bernd Eckenfels <bernd@eckenfels.net>
12 years agoifconfig/route: move to /bin
Mike Frysinger [Fri, 2 Dec 2011 21:19:08 +0000 (16:19 -0500)]
ifconfig/route: move to /bin

These tools provide quite a bit of good information which is available
to non-root users, so let's move them to /bin for people to use.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoignore return value of fgets calls we dont care about
Mike Frysinger [Sat, 10 Dec 2011 22:04:26 +0000 (17:04 -0500)]
ignore return value of fgets calls we dont care about

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agohostname: check return value of getdomainname
Mike Frysinger [Sat, 10 Dec 2011 21:44:23 +0000 (16:44 -0500)]
hostname: check return value of getdomainname

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agonetstat: unify duplicate addr pretty printing
Mike Frysinger [Mon, 21 Nov 2011 01:31:57 +0000 (20:31 -0500)]
netstat: unify duplicate addr pretty printing

The tcp/udp/raw protocols duplicate the logic for looking up addresses and
their ports, and then formatting them nicely.  They also duplicate this for
local and remote addresses.  They also encode a few assumptions about the
length of the strings they get back which can cause buffer over and under
flows.

Add a new helper called addr_do_one that unifies all of this duplicate
logic in one place, and handles any string size correctly.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agofix integer/pointer cast warnings
Mike Frysinger [Mon, 21 Nov 2011 00:51:23 +0000 (19:51 -0500)]
fix integer/pointer cast warnings

On 64bit systems where sizeof(void *) != sizeof(int), we get a warning
when trying to assign the return of atoi().  So insert a cast to avoid.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agofix "format not a string literal" warnings
Mike Frysinger [Mon, 21 Nov 2011 00:49:58 +0000 (19:49 -0500)]
fix "format not a string literal" warnings

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agofix up signed/unsigned warnings
Mike Frysinger [Mon, 21 Nov 2011 00:44:47 +0000 (19:44 -0500)]
fix up signed/unsigned warnings

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agofix up unused variable warnings
Mike Frysinger [Mon, 21 Nov 2011 00:27:14 +0000 (19:27 -0500)]
fix up unused variable warnings

Some of these are unused, so drop them.  Others are only used in debug
code, so refactor those so things are always compiled.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agopull in stdlib.h for malloc() prototype
Mike Frysinger [Mon, 21 Nov 2011 00:25:56 +0000 (19:25 -0500)]
pull in stdlib.h for malloc() prototype

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoclean up const/unsigned pointers with aftype/hwtype structs
Mike Frysinger [Mon, 21 Nov 2011 00:20:46 +0000 (19:20 -0500)]
clean up const/unsigned pointers with aftype/hwtype structs

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoget_sname: avoid buffer overflows if proto name is too long
Mike Frysinger [Mon, 21 Nov 2011 00:08:37 +0000 (19:08 -0500)]
get_sname: avoid buffer overflows if proto name is too long

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoget_sname: unify numeric handling
Mike Frysinger [Mon, 21 Nov 2011 00:08:15 +0000 (19:08 -0500)]
get_sname: unify numeric handling

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoget_sname: constify args/return when possible
Mike Frysinger [Mon, 21 Nov 2011 00:07:40 +0000 (19:07 -0500)]
get_sname: constify args/return when possible

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agofix path to net-features.h
Mike Frysinger [Sat, 20 Aug 2011 04:56:17 +0000 (04:56 +0000)]
fix path to net-features.h

This was causing the %.o rule to get ignored which meant most of the
dependencies were ignored.

Once that gets fixed, we see that the %.o rule doesn't properly use
$(CPPFLAGS).  So add that while we're here.

Gentoo bug 379715

13 years agopatch from Bert Wesarg to separate basename of -p only if it is absulote
Bernd Eckenfels [Wed, 20 Apr 2011 01:35:22 +0000 (01:35 +0000)]
patch from Bert Wesarg to separate basename of -p only if it is absulote
path (in order to make argv[0]="sshd pty/0" display as sshd, and not as /0.

13 years agonetstat: split host resolution out from --numeric-ports
Mike Frysinger [Sat, 9 Apr 2011 13:57:28 +0000 (13:57 +0000)]
netstat: split host resolution out from --numeric-ports

According to the manual the option "--numeric-ports" should not
affect host resolution, but it does. All connected hosts are displayed
with numeric values instead of their FQDN.

patch by Mads Martin Joergensen in Gentoo bug 76756

13 years agonetstat: fix handling of large socket numbers
Mike Frysinger [Sat, 9 Apr 2011 13:52:05 +0000 (13:52 +0000)]
netstat: fix handling of large socket numbers

The kernel really only treats sockets with a value of -1 as an error.
The rest are an unsigned quantity.  So tweak the nestat lookup to use
an unsigned value.

patch based on Antonio Galea's work in Debian bug 345331

13 years agohostname: fix FQDN handling with AAAA records
Mike Frysinger [Sat, 9 Apr 2011 13:33:13 +0000 (13:33 +0000)]
hostname: fix FQDN handling with AAAA records

patch by pasi.valminen@hut.fi

Gentoo bug 42650

13 years agocorrected indention
Bernd Eckenfels [Thu, 27 Jan 2011 00:43:13 +0000 (00:43 +0000)]
corrected indention

13 years agoadded some address family alias (still needs description) Bug#017886
Bernd Eckenfels [Thu, 27 Jan 2011 00:40:30 +0000 (00:40 +0000)]
added some address family alias (still needs description) Bug#017886
Reported by Toralf

13 years agoBug #17812 Fix the handling of some of the HAVE_* flags ifdef vs if. --jpa468
Bernd Eckenfels [Sat, 1 Jan 2011 03:22:31 +0000 (03:22 +0000)]
Bug #17812 Fix the handling of some of the HAVE_* flags ifdef vs if. --jpa468

13 years ago[Bug #17645] Add netstat(8) support for RcvbufErrors, SndbufErrors.
Bernd Eckenfels [Fri, 29 Oct 2010 19:24:36 +0000 (19:24 +0000)]
[Bug #17645] Add netstat(8) support for RcvbufErrors, SndbufErrors.
Thanks jwm

13 years agonetstat: include sys/stat.h for S_ISREG macros
Mike Frysinger [Sun, 15 Aug 2010 16:09:31 +0000 (16:09 +0000)]
netstat: include sys/stat.h for S_ISREG macros

newer versions of glibc (like 2.12) have cleaned up headers so you need
to include sys/stat.h explicitly for S_XXX macros

Gentoo bug 332853

13 years agoRemove garbage ipv6 scopes in netstat output (Debian Bug #508110)
Bernd Eckenfels [Mon, 5 Jul 2010 22:52:00 +0000 (22:52 +0000)]
Remove garbage ipv6 scopes in netstat output (Debian Bug #508110)
Thanks Marco Steinacher for reporting.

14 years agonetstat: PIDs can be long, Bug #199702 of Ubuntu Launchpad, Bug #16913 of Berlios
Bernd Eckenfels [Fri, 5 Mar 2010 15:35:02 +0000 (15:35 +0000)]
netstat: PIDs can be long, Bug #199702 of Ubuntu Launchpad, Bug #16913 of Berlios

14 years agointerface: fix IPv6 parsing of interfaces with large indexes (> 255)
Mike Frysinger [Fri, 1 Jan 2010 06:35:30 +0000 (06:35 +0000)]
interface: fix IPv6 parsing of interfaces with large indexes (> 255)

patch from Dave Johnson <djohnson@sw.starentnetworks.com> via Debian #433543

When running 'ifconfig' it will not show any IPv6 addresses for
interfaces that have an ifindex > 255.

Because the kernel will increment the ifindex every time an interface
is added or removed, it is not necessary to have 256 interfaces at
once, just creating 256 interfaces since system boot and they will no
longer show IPv6 addresses.

This is due to an improper fscanf() maximum range argument.  Patch to
fix the problem is below.

Example:

st34:~# ip addr list dev eth1.110
268: eth1.110@eth1: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc noqueue
    link/ether 00:e0:81:2a:0d:2d brd ff:ff:ff:ff:ff:ff
    inet6 fd4d:5643:2886:6e::ea:0/64 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::2e0:81ff:fe2a:d2d/64 scope link
       valid_lft forever preferred_lft forever
st34:~# ifconfig eth1.110
eth1.110  Link encap:Ethernet  HWaddr 00:E0:81:2A:0D:2D
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:676 (676.0 b)

st34:~# grep eth1.110 /proc/net/if_inet6
fd4d56432886006e0000000000ea0000 10c 40 00 80 eth1.110
fe8000000000000002e081fffe2a0d2d 10c 40 20 80 eth1.110
st34:~#

14 years agopo/man: if LINGUAS is set, only install translations for those langs
Mike Frysinger [Fri, 1 Jan 2010 05:59:20 +0000 (05:59 +0000)]
po/man: if LINGUAS is set, only install translations for those langs

14 years agoimprove dist target: include compiled gettext files, exclude scm files, and always...
Mike Frysinger [Thu, 31 Dec 2009 20:38:02 +0000 (20:38 +0000)]
improve dist target: include compiled gettext files, exclude scm files, and always prefix the paths in the tarball with the full versioned name

14 years agoignore generated gettext files
Mike Frysinger [Thu, 31 Dec 2009 20:32:20 +0000 (20:32 +0000)]
ignore generated gettext files

14 years agoset BASEDIR to DESTDIR by default so the default install matches most packages
Mike Frysinger [Thu, 31 Dec 2009 20:14:55 +0000 (20:14 +0000)]
set BASEDIR to DESTDIR by default so the default install matches most packages

14 years agofix parallel build problems with the lib/ subdir and multiple targets that descend...
Mike Frysinger [Thu, 31 Dec 2009 20:06:53 +0000 (20:06 +0000)]
fix parallel build problems with the lib/ subdir and multiple targets that descend into it

14 years agonetstat: fix %*s handling -- the field takes an int, not a size_t
Mike Frysinger [Thu, 31 Dec 2009 19:54:16 +0000 (19:54 +0000)]
netstat: fix %*s handling -- the field takes an int, not a size_t

14 years agointerface slip: cast keepalive/outfill to unsigned long to fix warnings on 64bit...
Mike Frysinger [Thu, 31 Dec 2009 19:51:31 +0000 (19:51 +0000)]
interface slip: cast keepalive/outfill to unsigned long to fix warnings on 64bit hosts -- no functional changes since these only have an 8bit range anyways

14 years agoignore patch related files
Mike Frysinger [Thu, 31 Dec 2009 19:05:34 +0000 (19:05 +0000)]
ignore patch related files

14 years agonetstat: add sctp connection decoding (Debian #306428 and Gentoo #258714)
Mike Frysinger [Sun, 6 Sep 2009 23:05:28 +0000 (23:05 +0000)]
netstat: add sctp connection decoding (Debian #306428 and Gentoo #258714)

14 years agoifconfig: fix no output when if_readlist_proc() fails
Mike Frysinger [Sun, 6 Sep 2009 23:01:16 +0000 (23:01 +0000)]
ifconfig: fix no output when if_readlist_proc() fails

The rewrite of if_readlist() on 28 Jun 2003 broke the function when the
proc interface isn't readable.  Have if_readlist() return an error only if
both if_readxxx funcs failed.  This fixes Gentoo 238363.

14 years agoslattach: use fchown() rather than chown() to avoid race between creation and permiss...
Mike Frysinger [Sun, 6 Sep 2009 22:59:43 +0000 (22:59 +0000)]
slattach: use fchown() rather than chown() to avoid race between creation and permission changing

14 years agoenable -fno-strict-aliasing until the code base gets a hefty clean up to fix all...
Mike Frysinger [Sun, 6 Sep 2009 22:58:40 +0000 (22:58 +0000)]
enable -fno-strict-aliasing until the code base gets a hefty clean up to fix all of the strict aliasing problems

14 years agoconvert -idirafter to -I
Mike Frysinger [Sun, 6 Sep 2009 22:56:50 +0000 (22:56 +0000)]
convert -idirafter to -I

The local include trees no longer need -idirafter semantics, so use the
normal -I flags to avoid random cruft on users' systems.  This fixes Gentoo
#283759 where user had local headers named the same as the net-tools local
headers, but the toolchain defaulted to the system paths due to -idirafter.

14 years agoadd missing dependency on version.h to libdir target to fix parallel build failures
Mike Frysinger [Sun, 6 Sep 2009 22:55:13 +0000 (22:55 +0000)]
add missing dependency on version.h to libdir target to fix parallel build failures

14 years agotouch up build system to respect normal toolchain env vars rather than requiring...
Mike Frysinger [Sun, 6 Sep 2009 22:53:54 +0000 (22:53 +0000)]
touch up build system to respect normal toolchain env vars rather than requiring people to set random custom ones

14 years agohandle raw "IP" masqinfo
Mike Frysinger [Sun, 6 Sep 2009 22:52:01 +0000 (22:52 +0000)]
handle raw "IP" masqinfo

14 years agomove man/fr_FR/*.8 pages into the "administrator" section
Mike Frysinger [Sun, 6 Sep 2009 22:50:58 +0000 (22:50 +0000)]
move man/fr_FR/*.8 pages into the "administrator" section

14 years agoarp: document the existing -e/-t options
Mike Frysinger [Sun, 6 Sep 2009 22:50:11 +0000 (22:50 +0000)]
arp: document the existing -e/-t options

14 years agonetstat: fix typo in udp display
Mike Frysinger [Sun, 6 Sep 2009 22:47:46 +0000 (22:47 +0000)]
netstat: fix typo in udp display

The recent patch to add udplite support introduced a typo in the udp name.
This fixes Gentoo #282794 and Debian #545328.  Originally reported by
Ambroz Bizjak <ambro@b4ever.net>.

14 years agostart a .gitignore
Mike Frysinger [Sun, 6 Sep 2009 22:40:33 +0000 (22:40 +0000)]
start a .gitignore

14 years agoMissing include to make compileable with gcc-4.3.2 and glibc-2.9_p20081201
Bernd Eckenfels [Sun, 6 Sep 2009 22:39:20 +0000 (22:39 +0000)]
Missing include to make compileable with gcc-4.3.2 and glibc-2.9_p20081201
Patch from Petr Pisar [Berlios Bug#16232].

14 years agoignore local .git dir
Mike Frysinger [Sun, 6 Sep 2009 22:39:11 +0000 (22:39 +0000)]
ignore local .git dir

14 years agoFix for Feature Request from ssb
Bernd Eckenfels [Thu, 27 Aug 2009 20:29:19 +0000 (20:29 +0000)]
Fix for Feature Request from ssb
[ Feature Request #4466 ] --continuous should flush stdout

14 years agoCzech translation update by petr.pisar@atlas.cz
Bernd Eckenfels [Thu, 27 Aug 2009 20:13:08 +0000 (20:13 +0000)]
Czech translation update by petr.pisar@atlas.cz

14 years agoAvoid name resolution for listening or established sockets (-l) by return
Bernd Eckenfels [Tue, 28 Jul 2009 01:40:17 +0000 (01:40 +0000)]
Avoid name resolution for listening or established sockets (-l) by return
fast. Problem reported by Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>

14 years agoscanf format length fix (non exploitable?) from
Bernd Eckenfels [Wed, 8 Jul 2009 00:24:03 +0000 (00:24 +0000)]
scanf format length fix (non exploitable?) from
Fabian Hugelshofer <hugelshofer2006@gmx.ch>

15 years ago-W option
Bernd Eckenfels [Tue, 2 Dec 2008 02:00:24 +0000 (02:00 +0000)]
-W option

15 years agonew date, reformatted authors section (shorter)
Bernd Eckenfels [Tue, 2 Dec 2008 01:58:01 +0000 (01:58 +0000)]
new date, reformatted authors section (shorter)

15 years agosorted options
Bernd Eckenfels [Tue, 2 Dec 2008 01:53:48 +0000 (01:53 +0000)]
sorted options

15 years agoUDPlite Support for net-stat by Brian Micek <bmicek@gmail.com>
Bernd Eckenfels [Mon, 1 Dec 2008 23:15:35 +0000 (23:15 +0000)]
UDPlite Support for net-stat by Brian Micek <bmicek@gmail.com>

15 years agoAdd wide option to prevent truncating IPv6 addresses
Luk Claes [Sun, 16 Nov 2008 16:45:08 +0000 (16:45 +0000)]
Add wide option to prevent truncating IPv6 addresses

15 years agomoved H suport for Infiniband to the right section
Bernd Eckenfels [Fri, 3 Oct 2008 02:09:57 +0000 (02:09 +0000)]
moved H suport for Infiniband to the right section

15 years agoAdd hardware support for InfiniBand (Debian Bug #294252 Tom Duffy from Sun).
Bernd Eckenfels [Fri, 3 Oct 2008 01:52:03 +0000 (01:52 +0000)]
Add hardware support for InfiniBand (Debian Bug #294252 Tom Duffy from Sun).

15 years agoavoid unused filetype, fix formatting of -p headers
Bernd Eckenfels [Fri, 3 Oct 2008 01:39:06 +0000 (01:39 +0000)]
avoid unused filetype, fix formatting of -p headers

15 years agoconditional printing of values (to support -tuw options for netstat -s)
Bernd Eckenfels [Fri, 3 Oct 2008 01:07:47 +0000 (01:07 +0000)]
conditional printing of values (to support -tuw options for netstat -s)

15 years agoSupport netstat -s with -6tuw options (incl. usage())
Bernd Eckenfels [Fri, 3 Oct 2008 01:06:33 +0000 (01:06 +0000)]
Support netstat -s with -6tuw options (incl. usage())

15 years agoEnable netstat -s for IPv6 (Debian Bug #453859 from Varun Chandramohan)
Bernd Eckenfels [Fri, 3 Oct 2008 00:05:20 +0000 (00:05 +0000)]
Enable netstat -s for IPv6 (Debian Bug #453859 from Varun Chandramohan)

15 years agoAvoid segfault of ifconfig(8) on missing /proc/net/dev
Bernd Eckenfels [Thu, 2 Oct 2008 23:31:04 +0000 (23:31 +0000)]
Avoid segfault of ifconfig(8) on missing /proc/net/dev
(Debian Bug #222209 Pierre Lombard, Tollef Fog Heen)

15 years agoFix hypen in man pages (Debian Bug#288343 from Andrew Moise)
Bernd Eckenfels [Thu, 2 Oct 2008 23:16:59 +0000 (23:16 +0000)]
Fix hypen in man pages (Debian Bug#288343 from Andrew Moise)
Move man pages to sysadmin books
update samples for route(8) (Debian Bug#400844, #368697 Danny Rathjens)
update see also for ifconfig(8) (Debian Bug#365916 Dan Jacobs)

15 years agofix some more hypens, changed book name and updated date to 2008-10-03
Bernd Eckenfels [Thu, 2 Oct 2008 22:42:51 +0000 (22:42 +0000)]
fix some more hypens, changed book name and updated date to 2008-10-03

15 years agodocument the additional info in Send-Q/Recv-Q with recent kernels for
Bernd Eckenfels [Thu, 2 Oct 2008 22:30:25 +0000 (22:30 +0000)]
document the additional info in Send-Q/Recv-Q with recent kernels for
listening sockets.

15 years agoallow netstat to print Rcv/Snd-Q for TCP_LISTEN (containing accept
Bernd Eckenfels [Thu, 2 Oct 2008 22:05:54 +0000 (22:05 +0000)]
allow netstat to print Rcv/Snd-Q for TCP_LISTEN (containing accept
backlog)

15 years agoSpelling error (Debian Bug #486448 reported by Volker Stolz)
Bernd Eckenfels [Tue, 17 Jun 2008 00:18:54 +0000 (00:18 +0000)]
Spelling error (Debian Bug #486448 reported by Volker Stolz)

16 years agofixed interfaceS spelling (Debian Bug #435690). Thanks Alan and Liu Xing.
Bernd Eckenfels [Sun, 2 Dec 2007 04:42:31 +0000 (04:42 +0000)]
fixed interfaceS spelling (Debian Bug #435690). Thanks Alan and Liu Xing.

16 years agomore backoff
Bernd Eckenfels [Sun, 2 Dec 2007 02:19:52 +0000 (02:19 +0000)]
more backoff

16 years agobackoff proc_fopen usage from etherfile.
Bernd Eckenfels [Sat, 1 Dec 2007 19:36:55 +0000 (19:36 +0000)]
backoff proc_fopen usage from etherfile.

16 years agouse new page aliged proc_fopen for address families
Bernd Eckenfels [Sat, 1 Dec 2007 19:00:40 +0000 (19:00 +0000)]
use new page aliged proc_fopen for address families

16 years agoPage aligned fopen buffer
Bernd Eckenfels [Sat, 1 Dec 2007 18:51:09 +0000 (18:51 +0000)]
Page aligned fopen buffer

16 years agoFaster pagesize aligned fopen for netstat -s (Eric Dumazet)
Bernd Eckenfels [Sat, 1 Dec 2007 18:44:56 +0000 (18:44 +0000)]
Faster pagesize aligned fopen for netstat -s (Eric Dumazet)

16 years agoBetter netstat -s error handling and larger buffers
Bernd Eckenfels [Sat, 1 Dec 2007 18:29:05 +0000 (18:29 +0000)]
Better netstat -s error handling and larger buffers

16 years agocleanup man page (arp.8 2007-12-01)
Bernd Eckenfels [Sat, 1 Dec 2007 18:19:32 +0000 (18:19 +0000)]
cleanup man page (arp.8 2007-12-01)

16 years agoROSE support (not yet enabled)
Bernd Eckenfels [Sat, 1 Dec 2007 18:12:34 +0000 (18:12 +0000)]
ROSE support (not yet enabled)

16 years agoROSE support
Bernd Eckenfels [Sat, 1 Dec 2007 17:49:35 +0000 (17:49 +0000)]
ROSE support

16 years agoFix Formatting Bug for ifconfig.8 (Debian Bug#450432 reported by Ivan
Bernd Eckenfels [Wed, 7 Nov 2007 23:01:38 +0000 (23:01 +0000)]
Fix Formatting Bug for ifconfig.8 (Debian Bug#450432 reported by Ivan
Shmakov)

17 years agounneeded %s in translation (Debian Bug #403033)
Bernd Eckenfels [Thu, 14 Dec 2006 23:36:24 +0000 (23:36 +0000)]
unneeded %s in translation (Debian Bug #403033)
Thanks to Marco Tulio Gontijo e Silva