- 25 Aug, 2015 3 commits
-
-
Mike Frysinger authored
This string is never modified, so constify it.
-
Mike Frysinger authored
These are only used internally to initialize themselves, so mark them static.
-
Mike Frysinger authored
These functions are almost entirely the same, so re-use the existing function rather than duplicate the body.
-
- 23 Jul, 2015 1 commit
-
-
Felix Janda authored
-
- 15 Jul, 2015 1 commit
-
-
Felix Janda authored
Wrong conditional includes intended for support of libc5 and glibc 2.0 prevented compilation under systems with alternative libcs, such as musl. For simplicity, remove these includes necessary for libc5 and glibc 2.0.
-
- 13 Jul, 2015 1 commit
-
-
Felix Janda authored
Currently uses sysconf(_SC_TC_CLK) to be more portable.
-
- 26 May, 2015 1 commit
-
-
Mike Frysinger authored
Make sure we use 64-bit filesystem functions everywhere. This applies not only to being able to read large files (which generally doesn't apply to us), but also being able to simply stat them (as they might be using large inodes).
-
- 18 May, 2015 2 commits
-
-
Felix Janda authored
-
Felix Janda authored
-
- 05 Apr, 2015 2 commits
-
-
Lubomir Rintel authored
No L2CAP or RFCOMM stats doesn't imply no support for Bluetooth; merely a protocol missing.
-
Lubomir Rintel authored
An address type field was added, messing up our l2cap status parsing.
-
- 07 Jan, 2015 1 commit
-
-
Jiri Popelka authored
When an interface has transferred exbibytes (> 0.8 EiB, i.e. > 819 PiB) of traffic, the short display is rounded incorrectly. For example: bytes 2154408931384050514 (275.0 PiB) while correct is (1913.4 PiB) This happens because we times the rx/tx bytes values by 10, then calculate the short version from that result: lib/interface.c:ife_print_long() tx = ptr->stats.tx_bytes; short_tx = tx * 10; if (tx > 1125899906842624ull) { short_tx /= 1125899906842624ull; Text = "PiB"; } But multiplying anything more than 819 PiB by 10 overflows a ull which is a uint64_t (max value of 9223372036854775807). We'll never get accuracy over 8192 PiB (2^64) when using ull, but we can at least correctly handle values between 819 - 8192 PiB.
-
- 11 Nov, 2014 1 commit
-
-
Jiri Popelka authored
The reason is that debugfs is accessible only by root user: _PATH_SYS_BLUETOOTH_L2CAP /sys/kernel/debug/bluetooth/l2cap _PATH_SYS_BLUETOOTH_RFCOMM /sys/kernel/debug/bluetooth/rfcom URL: https://www.kernel.org/doc/Documentation/filesystems/debugfs.txt URL: https://bugzilla.redhat.com/show_bug.cgi?id=1162284
-
- 19 Oct, 2014 6 commits
-
-
Mike Frysinger authored
This reverts commit 343192d1. This fix from RedHat was actually a fix for one of their custom patches. Applying it to mainline breaks interface stats.
-
Mike Frysinger authored
-
Jaromír Končický authored
When using a bucket of protocols (like -A inet), do not warn/abort when some protocols are not supported. URL: https://bugzilla.redhat.com/1063906 URL: https://bugzilla.redhat.com/1063913
-
Karel Zak authored
For virtual interfaces created using the ifcfg-ethN:X scripts the ifconfig and netstat -i report statistics of the last real adapter listed in /proc/dev/net. URL: https://bugzilla.redhat.com/143981
-
Masaki MAENO authored
The display of "netstat -o" (on|off|keepalive|unkn-X) is not accurate. I think that "unkn-4" should be "probe0" that is working "probe0 timer (= ICSK_TIME_PROBE0 status = TCP Window Size is Zero)" in kernel. URL: https://bugzilla.redhat.com/466845
-
Mike Frysinger authored
A bunch of these funcs are only used by interface.c, so drop them from interface.h and mark them static. Also mark a bunch of buffers as const when they aren't written to.
-
- 07 Oct, 2014 5 commits
-
-
Bernd Eckenfels authored
-
Bernd Eckenfels authored
-
Lubomir Rintel authored
-
Lubomir Rintel authored
Yay for the ABI breakage.
-
Lubomir Rintel authored
-
- 06 Oct, 2014 1 commit
-
-
Jiri Popelka authored
-
- 04 Oct, 2014 2 commits
-
-
Bernd Eckenfels authored
-
Bernd Eckenfels authored
-
- 26 Apr, 2014 1 commit
-
-
Catalin Patulea authored
Signed-off-by: Catalin Patulea <cat@vv.carleton.ca>
-
- 18 Feb, 2014 1 commit
-
-
Bernd Eckenfels authored
-
- 17 Feb, 2014 1 commit
-
-
Bernd Eckenfels authored
-
- 14 Feb, 2014 2 commits
-
-
Jaromir Koncicky authored
After coverity tool scan, some warnings about signed/unsigned conflicts in sscanf format string were found. Not a serious problem, but better to be correct.
-
Jaromir Koncicky authored
-
- 13 Feb, 2014 1 commit
-
-
Jiri Popelka authored
-
- 26 Nov, 2013 1 commit
-
-
Jiri Popelka authored
RHBZ#1032563
-
- 21 Oct, 2013 1 commit
-
-
Jiri Popelka authored
Patch from TAKADA Yoshihito https://bugzilla.redhat.com/show_bug.cgi?id=1021109
-
- 10 Oct, 2013 1 commit
-
-
Jiri Popelka authored
They are needed to be able to install binaries into /usr/bin & /usr/sbin instead of /bin & /sbin.
-
- 08 Oct, 2013 1 commit
-
-
Bernd Eckenfels authored
-
- 30 Sep, 2013 2 commits
-
-
Jiri Popelka authored
-
Jiri Popelka authored
1) Fall-back to numeric address if getnameinfo fails. Reverse lookup is not mandatory, therefore its fail is not an error. Just return numeric address in that case. This makes netstat/route show IPv6 address instead of [UNKNOWN] in case of DNS problems. 2) Pass length of 'name' buffer into function. 'name' is a pointer and therefore sizeof(name) returns size of pointer and not size of the buffer. see http://stackoverflow.com/questions/14298710/c-pointers-and-arrays-sizeof-operator The sizeof() usage was added with commit 604785ad, so I checked all the other changes in that commit and they seem to be OK. 3) remove unused 's' variable
-
- 30 Aug, 2013 1 commit
-
-
Bernd Eckenfels authored
-