Commit Graph

4006 Commits

Author SHA1 Message Date
itojun 7b5dfc58ad support IPv6. commands under "netstat" are IPv6 ready.
IPv6 is supported by filters (":ignore ssh") as well.
TODO: do something about line truncation?
TODO: inet6.icmp6?  ":help" will not fit into single line...
2000-01-05 11:59:12 +00:00
itojun 88ac9b1712 remove dupplicated prototype defs for file static funcs. 2000-01-05 11:50:21 +00:00
itojun 5784d552dd avoid null pointer access on ":show". 2000-01-05 11:48:21 +00:00
msaitoh dad5b69f37 fix printf format for inet.ip
(because the entries in struct ipstat is u_quad_t)
2000-01-04 15:17:00 +00:00
itojun 0b66a621f9 bring in latter half of PR 9080 (host table allocation error check). 2000-01-04 15:12:42 +00:00
eeh 5fc5fe98a8 Add COMPAT_NETBSD32 support. 1999-12-31 22:27:59 +00:00
tron 3f173f204a Increase default size of magic entries array to 4096 because NetBSD's
magic(5) has more than 2048 entries already.
1999-12-31 13:09:20 +00:00
tron 6f563995b5 Do reallaction of magic entries array carefully to avoid possible memory
leak. Patch based on PR bin/9081 by Jun-ichiro itojun Hagino.
1999-12-31 13:07:59 +00:00
tron a3045c188e Add missing memory check in port table handling. Patch based on
PR bin/9080 by Jun-ichiro itojun Hagino
1999-12-31 12:58:12 +00:00
garbled faa0b30255 Add FILES and EVIRONMENT sections detailing what files these programs use,
where they live, and how to modify that behavior.
1999-12-31 04:03:18 +00:00
itojun e8834c8cd2 avoid memory leak on realloc() failure. 1999-12-30 09:52:03 +00:00
cgd 1fa77b6d55 Use:
.Sh SEE ALSO
rather than:
	.Sh "SEE ALSO"
The former is the correct form, and it makes a (barely persceptible)
difference in formatting for some output devices (e.g. 'ps').
1999-12-29 06:54:00 +00:00
aidan 1cda1876da Fixed 'login in free' warning in kdestroy(). 1999-12-26 17:47:18 +00:00
jwise 2a1f30e2df GC now-spurious prototype 1999-12-25 01:49:25 +00:00
mjl 4f10733450 Fix yppasswd part of passwd. This has never worked since the
password map was split and master.passwd.byname was introduced.

XXX This is a temporary fix until luke finds some time to add
the necessary support glue to libc for TRT.
1999-12-23 01:02:52 +00:00
kleink c23c312a55 * Fix a display buglet: if the process list is exhausted before the window's
bottom is reached, clear the remaining lines, lest there be stale process
  entries if the process list shrinks.
* Implement a top(1)-like `user' command in the ps display.
1999-12-22 14:46:14 +00:00
kleink 1a2a0445fa Implement XCU5 prompt mode (-p). 1999-12-22 14:41:00 +00:00
kleink 4ce1b28f8c Initialize locale on startup. 1999-12-22 14:39:18 +00:00
lukem 80b66e48af change references from draft-ietf-ipngwg-url-literal-01.txt to RFC 2732 1999-12-21 13:00:18 +00:00
fair 37d4a35950 A gencat(1) manual page, which satisfies PR 4749 1999-12-21 09:25:43 +00:00
jwise 850fb37f89 Fix error handling throughout. First off, it is not true as claimed in swap.c
that `systat doesn't handle errors'.  Second off, errx should not be used directly, since
the terminal should be cleaned up before bailing.  Third off, whatever we do we need
to be consistent.

There, I feel better now.
1999-12-20 23:11:50 +00:00
fair aff3242363 fix trivial nroff source bug, per PR 8724 1999-12-20 22:53:44 +00:00
jwise bc8f4e2f46 Be consistent about whether to block SIGALRM before calling command() -- don't
ever do so, as the first thing command() does is block SIGALRM.
1999-12-20 21:59:29 +00:00
lukem 00a4e0e7ce need <string.h> for strlen() 1999-12-20 21:49:11 +00:00
jwise 24b9ee353a Nuke assignment unneeded after last commit 1999-12-20 21:46:10 +00:00
jwise b037ddd3b7 More cleanup -- use strtok() rather than rolling our own not-quite-correct version. 1999-12-20 21:42:50 +00:00
jwise 5a69f1bd85 Block alarm signals while displaying -- there's no reason to allow recursive
display at all.
1999-12-20 21:04:41 +00:00
jwise d0e3cec262 1.) Clean up keystroke processing
2.)  Add the all-time most requested feature:  hitting space or CR while
     not in command mode now causes an instant refresh
1999-12-20 20:49:06 +00:00
jwise 299c3534d3 TNF copyright -- I will do the paperwork to give these over asap. 1999-12-20 19:31:47 +00:00
itojun 8471c4a69a fix "netstat numbers". 1999-12-20 17:26:50 +00:00
jwise 81ed25dba3 Knee-jerk snprintf()-ism. 1999-12-20 17:08:52 +00:00
kleink ece19a5225 Report disabled control characters as <undef> (like stty(1) does); fixes
PR bin/9019 from SAKAI Atsushi <a-sakai@echo.nuee.nagoya-u.ac.jp>.
1999-12-20 14:36:11 +00:00
jwise be9a446256 G/C function used in old command parsing 1999-12-20 04:06:25 +00:00
jwise 4c0fbd4c92 Two things:
1.) fix a bug which caused coredumps when starting with no mode arguments
  2.) move to table-lookup for mode-specific command parsing as well.
      all command matching is now table-driven.
1999-12-20 03:45:01 +00:00
bouyer 7616130d51 Explicitely cast to (u_quad_t) calls to btodb() and dbtob() to avoid
int overflow. It's now possible to add/display quotas of more than
4G.
XXX I'm sure there is a PR open on this but I couln't find it with the
usual search engines. If someone knows it's number ...
1999-12-16 17:29:52 +00:00
jwise 30af11dbd4 Sigh... this is the missing part of last night's final commit -- perform
the same simplification on mode parsing for the command line as for user
commands.

My apologies to anyone who tried to build systat this morning.
1999-12-16 17:15:48 +00:00
jwise 099afa1959 End special-casing of `start' and `interval' global commands.
Vastly simplify handling of mode switches, and short-syntax interval
changes.  Substring matching of mode names and commands will come
shortly, however the previous method of substring matching modes (it was
not available for commands) is currently not working.

TODO: implement table lookups for mode-specific commands.
1999-12-16 06:16:16 +00:00
jwise 420c21c43c Handle arguments to global commands. Note that the `interval' and
`start' global commands are still special cased, which will change
1999-12-16 04:49:32 +00:00
jwise b5f0c03b3a Backout unintended change 1999-12-16 04:41:49 +00:00
jwise 7fc29b6116 Add a file missed in last commit 1999-12-16 04:40:03 +00:00
jwise 06f376613f Rototill global command matching -- switch from ad-hoc tomfoolery to a
table lookup.  This will make prefix matching and so on easier.

Expect a similar change for mode-specific commands before too long.

While there, rename some structures with misleading names.

Watch this space for more changes soon.
1999-12-16 04:02:22 +00:00
thorpej 2b9d9a9499 Make this compile on the Alpha again. 1999-12-16 00:58:17 +00:00
bouyer 18e200396c Bump a static char array from 8 to 255. Avoids rpcgen core dumps on some
long struct name.
XXX There are a lot of static arrays in there, bounds should be checked
XXX more carrefuly. All of them seems big enouth (>100) for normal use, though.
1999-12-15 16:47:35 +00:00
itojun 033763d6c9 per-interface statistics.
bring in and enable KAME scopeid hack.
lots of cleanups.
(sync with latest KAME)
1999-12-13 15:22:55 +00:00
christos 51d639caed Enable hints processing so that we can see the mappings. 1999-12-13 09:10:16 +00:00
itojun 1e75e9ee55 remove setuid(getuid()). they are unnecessary as noone is going to
setuid telnet(1).

i'm not sure why it is here (maybe someone reused this code from
other setuid'ed program, or someone cut-and-pasted the code from
somewhere else?), it was from revision 1.1 (= 4.4BSD).

briefly discussed in: tech-net?
1999-12-13 04:52:20 +00:00
itojun 62b5e94d25 [host]:filename syntax for IPv6 case. 1999-12-13 04:44:55 +00:00
lukem f442e9dbbd add dependency on version.h 1999-12-12 02:14:53 +00:00
lukem eee70cc0f0 crank version 1999-12-12 02:12:29 +00:00
lukem d30bdcd79c separate out the main `data pump' loop into two: one that supports
rate limiting and one that doesn't. simplifies the code, and speeds
up the latter case a bit, at the expense of duplicating a few lines...
1999-12-11 02:02:21 +00:00