0
0
mirror of https://github.com/ecki/net-tools.git synced 2025-05-02 12:01:36 +00:00

9 Commits

Author SHA1 Message Date
92773ed67d Add utility function ticks_per_second() to get jiffies per second (aka HZ)
Currently uses sysconf(_SC_TC_CLK) to be more portable.
2015-07-13 02:40:03 -04:00
08abda691f add const qualifier to fix compile warning about xstrdup argument 2013-10-08 21:50:38 +00:00
a753a9040a lib/util.c: introduxe xstrdup which catches NULL and use it in all places 2013-08-30 12:30:25 +00:00
d1381f908a trim trailing whitespace
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-05-12 22:31:19 -04:00
36bd859ac3 deal with 2-digits kernel versions as reported in Bug#7.
https://sourceforge.net/p/net-tools/bugs/7/
2013-04-25 21:01:56 +00:00
8e30424705 - Allow device probing again (this should fix the problem Arnaldo de Melo
reported)

- Various cleanups and bug fixes.

- Better error message for ENODEV.

- Proper exit codes for interface printing

- Add safe_strncpy and use it everywhere: this fixes quite a lot of
strncpy bugs (strncpy doesn't add a '\0' when the source string is too
long!)
1998-11-17 15:16:09 +00:00
49d6a0009c Yow. This is net-tools completely reindented.
Some other cleanups:
- lib/net-string.c removed because it was not used and had a copyright notice
that conflicted with the GPL.
- Minor cleanups.
- Fix an potential buffer overflow in ax25.
- Switch to CVS $Id$ for versioning consistently
1998-11-15 20:07:31 +00:00
0d48f413e4 Check /proc files first before opening sockets to work around 2.1
modprobe problem. Only barely tested, more testers (using the more exotic
network protocols) are needed.

Preliminary support for IFF_DYNAMIC.
1998-10-30 14:15:46 +00:00
ab1a31ff9c Print 2.1 interface aliases in netstat and ifconfig. 1998-10-23 06:15:04 +00:00