summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-01-05netstat -s reports negative octet countsJiri Popelka1-189/+189
(RHBZ #579854, Debian #561161) original patch from Sami Farin
2012-01-05The return value of nameif was wrongJiri Popelka1-2/+5
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
2012-01-05Fix Content-Type in po files to avoid msgfmt warning.Jiri Popelka3-3/+3
de.po: warning: Charset "iso8859-1" is not a portable encoding name. Message conversion to user's charset might not work.
2012-01-05Updated README to reflect move to SourceForge.netJiri Popelka1-3/+3
2012-01-05Updated COPYING file.Jiri Popelka1-21/+21
http://www.gnu.org/licenses/gpl-2.0.html
2012-01-04mii-tool: fix inverted advertising/link featuresBen Hutchings1-2/+2
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>
2011-12-31slattach: man page documents /dev/ptmx supportBernd Eckenfels1-2/+7
2011-12-31slattach: add support for /dev/ptmx [Bug:3467521]Bernd Eckenfels1-3/+29
2011-12-31Merge branch 'master' of ↵Bernd Eckenfels2-2/+15
ssh://net-tools.git.sourceforge.net/gitroot/net-tools/net-tools
2011-12-15Bluetooth name fixBernd Eckenfels3-5/+11
2011-12-15Add Bluetooth socket supportLubomir Rintel5-2/+172
Signed-off-by: Bernd Eckenfels <bernd@eckenfels.net>
2011-12-10ifconfig/route: move to /binMike Frysinger2-2/+15
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>
2011-12-10ignore return value of fgets calls we dont care aboutMike Frysinger10-15/+30
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-12-10hostname: check return value of getdomainnameMike Frysinger1-1/+4
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-11-20netstat: unify duplicate addr pretty printingMike Frysinger1-64/+38
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>
2011-11-20fix integer/pointer cast warningsMike Frysinger1-2/+2
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>
2011-11-20fix "format not a string literal" warningsMike Frysinger3-3/+3
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-11-20fix up signed/unsigned warningsMike Frysinger12-12/+12
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-11-20fix up unused variable warningsMike Frysinger12-155/+127
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>
2011-11-20pull in stdlib.h for malloc() prototypeMike Frysinger1-0/+1
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-11-20clean up const/unsigned pointers with aftype/hwtype structsMike Frysinger25-48/+48
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-11-20get_sname: avoid buffer overflows if proto name is too longMike Frysinger1-10/+11
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-11-20get_sname: unify numeric handlingMike Frysinger1-5/+7
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-11-20get_sname: constify args/return when possibleMike Frysinger2-2/+2
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-08-20fix path to net-features.hMike Frysinger1-2/+2
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
2011-04-20patch from Bert Wesarg to separate basename of -p only if it is absuloteBernd Eckenfels1-2/+2
path (in order to make argv[0]="sshd pty/0" display as sshd, and not as /0.
2011-04-09netstat: split host resolution out from --numeric-portsMike Frysinger1-11/+11
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
2011-04-09netstat: fix handling of large socket numbersMike Frysinger1-5/+5
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
2011-04-09hostname: fix FQDN handling with AAAA recordsMike Frysinger1-8/+59
patch by pasi.valminen@hut.fi Gentoo bug 42650
2011-01-27corrected indentionBernd Eckenfels1-2/+2
2011-01-27added some address family alias (still needs description) Bug#017886Bernd Eckenfels1-3/+8
Reported by Toralf
2011-01-01Bug #17812 Fix the handling of some of the HAVE_* flags ifdef vs if. --jpa468Bernd Eckenfels3-8/+10
2010-10-29[Bug #17645] Add netstat(8) support for RcvbufErrors, SndbufErrors.Bernd Eckenfels1-2/+4
Thanks jwm
2010-08-15netstat: include sys/stat.h for S_ISREG macrosMike Frysinger1-1/+2
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
2010-07-05Remove garbage ipv6 scopes in netstat output (Debian Bug #508110)Bernd Eckenfels1-4/+6
Thanks Marco Steinacher for reporting.
2010-03-05netstat: PIDs can be long, Bug #199702 of Ubuntu Launchpad, Bug #16913 of ↵Bernd Eckenfels1-3/+3
Berlios
2010-01-01interface: fix IPv6 parsing of interfaces with large indexes (> 255)Mike Frysinger1-2/+2
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:~#
2010-01-01po/man: if LINGUAS is set, only install translations for those langsMike Frysinger2-13/+24
2009-12-31improve dist target: include compiled gettext files, exclude scm files, and ↵Mike Frysinger2-2/+9
always prefix the paths in the tarball with the full versioned name
2009-12-31ignore generated gettext filesMike Frysinger1-0/+2
2009-12-31set BASEDIR to DESTDIR by default so the default install matches most packagesMike Frysinger1-0/+1
2009-12-31fix parallel build problems with the lib/ subdir and multiple targets that ↵Mike Frysinger1-2/+3
descend into it
2009-12-31netstat: fix %*s handling -- the field takes an int, not a size_tMike Frysinger1-2/+2
2009-12-31interface slip: cast keepalive/outfill to unsigned long to fix warnings on ↵Mike Frysinger1-3/+3
64bit hosts -- no functional changes since these only have an 8bit range anyways
2009-12-31ignore patch related filesMike Frysinger1-0/+5
2009-09-06netstat: add sctp connection decoding (Debian #306428 and Gentoo #258714)Mike Frysinger2-7/+180
2009-09-06ifconfig: fix no output when if_readlist_proc() failsMike Frysinger1-5/+8
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.
2009-09-06slattach: use fchown() rather than chown() to avoid race between creation ↵Mike Frysinger1-4/+6
and permission changing
2009-09-06enable -fno-strict-aliasing until the code base gets a hefty clean up to fix ↵Mike Frysinger1-0/+1
all of the strict aliasing problems
2009-09-06convert -idirafter to -IMike Frysinger2-2/+2
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.