Commit Graph

63089 Commits

Author SHA1 Message Date
lukem 16ca0f7009 crank version 2000-04-13 08:23:52 +00:00
lukem d54eded2a0 fixes from cgd:
* sanity check a length (otherwise certain bogus responses can crash ftp)
* allow a transfer encoding type of `binary'; certain firewall vendors
  return this bogus type...
2000-04-13 08:17:56 +00:00
lukem 031f2ed4b1 s/strtoq/strtoll/ (the latter is standardised) 2000-04-13 08:13:30 +00:00
itojun 4e4447b130 use getifaddrs, not SIOCGIFCONF, to avoid complex alignment constraints. 2000-04-13 07:53:29 +00:00
itojun 4a58ed7b4f use getifaddrs, not SIOCGIFCONF, to avoid alignment constraints.
TODO: maybe it's better to pass struct ifaddrs * to in{,6}_alias.
2000-04-13 07:39:57 +00:00
itojun dbe85fd5ef clarify in_alias() and in_status().
in_status() handles the whole inet address family.  in_alias() handles
printout for single address (for both the primary address or an alias).
it is more consistent with, for example, the way at_status() is used.
2000-04-13 07:16:54 +00:00
jdc 43842e9bc2 Restore const after the Open Group decided it was OK.
Thanks due to Brett Lymn.
2000-04-13 07:07:33 +00:00
simonb 924021df91 Curses works - define USE_CURSES for BSD44 and don't try to do our own
thing (using curses internal data structures anyway!).
2000-04-13 06:07:06 +00:00
itojun cf9ebfbd63 use getifaddrs, instead of SIOCGIFCONF.
sync with more-recent LBL 0.4, about loopback interface detection
(/^lo[0-9]?$/).

CAVEAT: with GENERIC kernel on laptops laptops, pcap_lookupdev would almost
always pick eon0 as the interface, and fails because eon0 has no bpf
attachment.  we may want to change pcap_lookup{,dev} to check if the
interface has bpf attachment or not.

almost in sync with tcpdump.org source code tree.
2000-04-13 05:14:19 +00:00
itojun b5a6411fbe sprintf -> snprintf 2000-04-13 05:10:17 +00:00
itohy 0af9894f2f [ktruss] Use fork(2), not vfork(2).
The child process of do_ktrace() does return and the stack is
changed by another function call (execvp()).
By using vfork() (my previous change), the execution of the parent
process resumes on the modified stack.  Oops.
We could use vfork() carefully, but for now use fork().

Problem reported and investigated by Ethan Solomita <ethan@geocast.com>.
Thanks.
2000-04-13 01:27:53 +00:00
chs c81c7aa367 always define PI_MAGIC so this compiles in all cases. 2000-04-13 00:44:19 +00:00
lukem f408de971d as this script is primarily for compatibility (with people's
rc.local), call it in a way that is compatible with the old behaviour:
	* remove the stop case
	* don't set $1="start" in the start case

xxx: it's debatable if this script should even exist, but i digress ;-)
2000-04-13 00:39:47 +00:00
simonb aa52cffef6 Include "curses_private.h" to get function declarations. 2000-04-13 00:01:46 +00:00
simonb d9726999aa Nuke unused variables. 2000-04-13 00:01:03 +00:00
jdc 60bee59cbe Add color.c, background.c, getyx.c. 2000-04-12 21:50:46 +00:00
jdc 70f4bbdc33 get...y() and get...x() routines. 2000-04-12 21:50:24 +00:00
jdc ebc24bf609 Add COLORS and COLOR_PAIRS. 2000-04-12 21:49:50 +00:00
jdc 53ff563a2d Add colour capabilities and functions.
Add background manipulation functions.
Add def/reset_prog/shell_mode().
2000-04-12 21:49:29 +00:00
jdc 7b77d1dca6 Add background character/attributes. 2000-04-12 21:48:46 +00:00
jdc 40b39f92af Add color attribute manipulation. 2000-04-12 21:47:50 +00:00
jdc 3b5538fc53 Add color manipulation.
Note that window background attributes are not handled yet.
2000-04-12 21:47:20 +00:00
jdc e4f451d720 Add colour capabilities and variables. 2000-04-12 21:46:49 +00:00
jdc 2d80817573 Private functions/variables moved from curses.h
Move character/attribute definitions to curses.h
2000-04-12 21:46:27 +00:00
jdc 5ce1814053 Add colour capabilities and functions.
Add background manipulation functions.
Add def/reset_prog/shell_mode().
Remove __TERMATTR.
Tidy up tab vs. space.
Macros get...y and get...x are now functions.
Private functions/variables moved to curses_private.h
Replace character/attribute definitions from curses_private.h
2000-04-12 21:46:00 +00:00
jdc a8ddedce62 Add colour capabilities.
Increase size of attribute buffers.
Include private header.
2000-04-12 21:45:30 +00:00
jdc a50aa6f8ae Initialise colour variable (__nca).
Include private header.
2000-04-12 21:45:04 +00:00
jdc c34602878f Copyright assgned to TNF.
Add check for conflict with colour.
Shrink one line comments.
2000-04-12 21:44:42 +00:00
jdc e2d9b86b4c Add check for conflict with colour. 2000-04-12 21:44:19 +00:00
jdc f04694244e Copyright assgned to TNF.
Add check for conflict with colour.
Remove code duplication in wattrset().
Shrink one line comments.
Consolidate DEBUG output.
2000-04-12 21:43:57 +00:00
jdc 92d0751b6e Background manipulation routines. 2000-04-12 21:43:37 +00:00
jdc fa395b65d4 Colour specific routines. 2000-04-12 21:43:09 +00:00
jdc d236276259 Include private header.
Make capability parser more generic (it is now also used by colour routines).
Note that the termcap file we use contains terminfo % escapes, which are
not always compatible with the termcap ones.  We'll lose in those cases.
2000-04-12 21:37:15 +00:00
jdc 725597b1c6 Replace __TERMATTR with __ATTRIBUTES (includes colour).
Add def_prog_mode() and reset_prog_mode().
2000-04-12 21:36:36 +00:00
jdc d7b4eb28b3 Add intrflush().
Add def_shell_mode() and reset_shell_mode().
Include private header.
2000-04-12 21:36:02 +00:00
jdc e3317c27ed Remove attributes of characters displayed with -DDEBUG.
Add color manipulation.
2000-04-12 21:35:35 +00:00
jdc 1aa45522c2 Make sure we don't read a negative character value. 2000-04-12 21:34:24 +00:00
jdc ea5f9be092 Make ACS array index unsigned. 2000-04-12 21:33:35 +00:00
jdc d6a738e190 Copyright assgned to TNF. 2000-04-12 21:33:12 +00:00
scw d5d6c20e74 Regen 2000-04-12 21:13:12 +00:00
scw e083abcad8 Add support for the SOHOware PCMCIA Ethernet card, model ND5100-E.
This seems to be a re-badged NDC (National Datacomms. Corp) card.
It needs a quirk entry due to lack of manufacturer tuple in the CIS.
For some reason, the 'Tx/Rx' LED on the connector module is inverted
such that it is off during network activity...
2000-04-12 21:07:55 +00:00
kim 5c4de05899 The "-S" option was inserted in the middle of the "-s" option description. 2000-04-12 16:42:49 +00:00
kim 13cec62a32 The "ftp" facility was not listed. 2000-04-12 16:38:58 +00:00
simonb 91c0ba617c Make some columns and headers line up. 2000-04-12 15:37:14 +00:00
christos 44c22dc618 make this compile with -DDEBUG_SVR4 [wrong variable name] 2000-04-12 15:13:15 +00:00
christos e3004f2598 make this compile with -DDEBUG_SVR4 [lossage because sizeof is u_long now] 2000-04-12 15:12:13 +00:00
takemura a3c99d2662 Dialog Box style key function. You can push space key to boot. 2000-04-12 15:07:34 +00:00
itojun 9281a845a8 fix bug in pcap.c, which appeared in LBL libpcap version 0.4 of the following
date (NOTE: there are multiple version 0.4 with different datestamp!)
	v0.4 Sat Jul 25 12:40:09 PDT 1998

libpcap CHANGES reads:
- Fixed bug in pcap_dispatch() that kept it from returning on packet
  timeouts.

(this fixes nmap hangup if we use /usr/lib/libpcap.a with nmap)
2000-04-12 14:40:33 +00:00
pk eba24e4799 * Spell shift counts in decimal and masks in hex
* Optimize numerous array references
* Cleanup whitespace turds
2000-04-12 14:22:28 +00:00
simonb 6008cfd5de Remove bogus "#ifdef EIDRM" checks and warnings that BSD doesn't define
EIDRM - EIDRM was added over two years ago!
2000-04-12 13:08:26 +00:00