Commit Graph

2707 Commits

Author SHA1 Message Date
ache
3eb72e5222 Remove srandomdev fallback code 1997-06-14 00:27:03 +00:00
jkh
ad3e0d3399 YAMF22 1997-06-13 18:02:34 +00:00
jkh
19bd03738f YAMF22 1997-06-13 17:55:32 +00:00
jkh
7c9e3d56ff YAMF22 1997-06-13 14:21:22 +00:00
jkh
0f4e861b68 Incorporate an ancient typo fix that never made it over from 2.2. 1997-06-13 14:06:10 +00:00
jkh
3e69679410 reverse polarity on bit-flip from 2.2 1997-06-13 11:00:13 +00:00
jkh
ae10f85664 YAMF22 1997-06-13 09:34:10 +00:00
jkh
c2c577d2bb YAMF22 1997-06-13 07:11:57 +00:00
brian
346b6e02b2 Fix "delete ...", it now only insists on
one arg too.

Discovered by:	Rikk Salamat <rikks@web-impact.com>
1997-06-13 03:59:36 +00:00
brian
27812dcefe Add ppp.linkdown file to compliment ppp.linkup.
Submitted by:	Forgotten
Passed on by:	Terry Dwyer 61 8 9491 5161 <tdwyer@io.telstra.com.au>

Also remove extraneous setuid(0) - it's only undone by
the subsequent call to SelectSystem().
1997-06-13 02:07:32 +00:00
brian
bc457c2835 Fix "show ?" alignment.
PR:		3830
Submitted by:	Josh Gilliam <josh@quick.net>
1997-06-13 00:09:54 +00:00
brian
74ab23f128 Document ppp over tcp (how to tunnel) 1997-06-13 00:04:58 +00:00
jkh
926a316f41 YAMF22 1997-06-12 09:01:38 +00:00
jkh
0b4996eb1a YAMF22 1997-06-12 08:46:51 +00:00
jkh
4e9bb8ff6a YAMF22 1997-06-12 07:35:40 +00:00
jkh
5e98d4a1bc YAMF22 - Bugs Of Evil in variable handling and rc.conf editing.
PR#: 3218 [partial]
1997-06-11 08:41:10 +00:00
brian
e0adf1f08c Sort out ppp over tcp:
o Allow "set var" with no args to blank var (don't req "").
  o Zero VarTerm ASAP if not in interactive mode.
  o Never print anything to stdout in -direct mode.
  o Count redial when failing to open modem.
  o Increase device size to 40 characters (for host:port).
  o Remove missed "if (fd == 0) fd = 1;".
  o Don't give up on incoming non-terminal connections.
1997-06-11 03:57:51 +00:00
brian
c6205e5690 Make the man page a little more detailed.
Update the version number to 1.00.
Increase the predictor-1 buffer by 2 bytes.
1997-06-09 23:38:38 +00:00
jkh
b8c978337c Add a sample script file so people have some idea of what to pass to Load. 1997-06-09 05:10:08 +00:00
brian
b743dbe266 Overhaul ppp:
o Use syslog
  o Remove references to stdout/stderr (incl perror())
  o Introduce VarTerm - the interactive terminal or zero
  o Allow "set timeout" to affect current session
  o Change "set debug" to "set log"
  o Allow "set log [+|-]flag"
  o Make MSEXT and PASSWDAUTH stuff the default
  o Move all #ifdef DEBUG stuff into the code - this
    shouldn't be too much overhead.  It's now controlled
    with "set log +debug"
  o Add "set log command, debug, tun, warn, error, alert"
  o Remove cdefs.h, and assume an ansi compiler.
  o Improve all diagnostic output
  o Don't trap SIGSEGV
  o SIGHUP now terminates again (log files are controlled
    by syslog)
  o Call CloseModem() when changing devices
  o Fix parsing of third arg of "delete"

I think this fixes the "magic is same" problems that some
people have been experiencing.
The man page is being rewritten.  It'll follow soon.
1997-06-09 03:27:43 +00:00
jkh
6476e77e01 1. Make it possible to set up all the TCP/IP values from a script.
2. Update to XFree86 3.3
1997-06-09 01:19:44 +00:00
wpaul
a785383baa Clobber unneeded prototypes; in particular, the redeclaration of malloc()
will break compilation if DESTDIR is not set. The update.c module is
actually from the Sun RPC distribution so this is really their bogon, but
I should have noticed it when I integrated the code into rpc.ypupdated.

Sung to me by: Satoshi
1997-06-06 15:47:57 +00:00
jkh
ca1b83a362 Add support for srcdir overrides. 1997-06-06 12:19:11 +00:00
jkh
e36d560237 Resurrect / implement some of the more esoteric scripting features,
such as partitioning a disk or overriding an interactive prompt.
1997-06-05 09:48:03 +00:00
brian
aecf14fc23 Remove mis-leading version info. 1997-06-03 00:35:03 +00:00
brian
c7d587e120 Back out last change (which in fact breaks rfc1661)
and modify the behaviour so that a timer is started
and the restart counter is zeroed (as per the State
Machine Diagram).

Pointed-out-by:	joerg
1997-06-02 00:04:40 +00:00
brian
b04d7fb136 Go directly to ST_STOPPED when a TerminateReq is
received and after the TerminateAck is sent (as
per rfc1661) rather than to ST_STOPPING.  Going
to ST_STOPPING will leave us in a state where
we're waiting for the other side to do something -
not a good idea, especially as the client side sends
a TerminateReq then exits on idle timeout.
1997-06-01 14:37:19 +00:00
brian
9bb0637518 Reduce MAX_M[RT]U back to 2048. Even on a null-modem
ppp link, we gain nothing with a larger mtu.

Suggested by:	joerg

Fix pred1 buffer size (must be == MAX_MTU)
1997-06-01 11:35:04 +00:00
brian
a58096cbf5 Remove initial startup printf's in -direct mode.
Make "same magic" error send a NAK (as per rfc).
1997-06-01 03:43:26 +00:00
brian
b583e76068 Implement "set mtu" command to allow the client to
reduce the interface mtu.
Allow max mru spec of 16k.
Add "show m[rt]u" ability.
1997-06-01 01:13:04 +00:00
brian
3d9ec4a236 Remove "set mtu ..." ability. Currently, this is an
"alias" for "set mru ...", but there's no such thing
as setting your mtu in the ppp protocol (rfc1661).
1997-05-31 16:37:19 +00:00
jkh
e3396804bd Fix typos (of the printed output kind). 1997-05-30 01:03:09 +00:00
wpaul
1d239a2785 Another (harmless, luckily) mind-o: somehow I typed 'rpc.ypupdated.'
instead of 'rpc.ypupdated' when I added rpc.ypupdated to the SUBDIRS
list.

Carved into my forehead with an rusty railroad spike by: Mark Murray
1997-05-29 14:21:39 +00:00
wpaul
55149b19a2 Mind-o: MAN8= yes --> NOMAN= yes
Etched onto my brain with acid by: Mark Murray.
1997-05-29 13:59:22 +00:00
brian
5032cae4f1 Correct the return of DialModem()
Suggested by:	kfurge <kfurge@worldnet.att.net>
1997-05-29 02:29:13 +00:00
wpaul
74869985cf Activate new Secure RPC programs. 1997-05-28 16:05:18 +00:00
wpaul
958395337f This commit was generated by cvs2svn to compensate for changes in r26236,
which included commits to RCS files with non-trunk default branches.
1997-05-28 15:47:10 +00:00
wpaul
9224ac8d9f This commit was generated by cvs2svn to compensate for changes in r26234,
which included commits to RCS files with non-trunk default branches.
1997-05-28 15:44:22 +00:00
jkh
cf4066f387 Always write out rc.conf, regardless of status.
PR:		3698
1997-05-27 18:56:03 +00:00
jkh
5d4961d982 Correct SNAP server paths.
Bring in CDE fixes.
1997-05-27 16:41:52 +00:00
jkh
9a8c877603 sysconfig -> rc.conf
Submitted by:	Igor Vinokurov <igor@cs.ibank.ru>
1997-05-27 07:19:57 +00:00
fenner
0fc45d9c51 Update Makefile to build tcpdump-3.3 .
PR:		3371
Submitted by:	Chris Timmons <skynyrd@opus.cts.cwu.edu>
1997-05-27 02:21:28 +00:00
jkh
4e8cf4b4a5 Lame typo fix here too. 1997-05-26 05:33:16 +00:00
jkh
617293d4e4 YAMF22 1997-05-26 04:57:56 +00:00
brian
3e769c4ccf De-couple ppp from libalias. If libalias isn't there, the
alias commands simply won't work.  Only root may specify the
location of the alias lib (otherwise, it's hard-coded).

Make logprintf silently fail if LogOpen hasn't been called.

Suggested by:	eivind
1997-05-26 00:44:10 +00:00
brian
a474d39a05 Include <alias.h>, not "alias.h" 1997-05-25 19:49:44 +00:00
wpaul
721fa82549 This commit adds support to ypbind(8) for binding to non-local servers.
The standard SunOS ypbind(8) (and, until now, the FreeBSD ypbind)
only selects servers based on whether or not they respond to clnt_broadcast().
Ypbind(8) broadcasts to the YPPROC_DOMAIN_NONACK procedure and waits
for answers; whichever server answers first is the one ypbind uses
for the local client binding.

This mechanism fails when binding across subnets is desired. In order
for a client on one subnet to bind to a server on another subnet, the
gateway(s) between the client and server must be configured to forward
broadcasts. If this is not possible, then a slave server must be
installed on the remote subnet. If this is also not possible, you
have to force the client to bind to the remote server with ypset(8).

Unfortunately, this last option is less than ideal. If the remote
server becomes unavailable, ypbind(8) will lose its binding and
revert to its broadcast-based search behavior. Even if there are
other servers available, or even if the original server comes back
up, ypbind(8) will not be able to create a new binding since all
the servers are on remote subnets where its broadcasts won't be heard.
If the administrator isn't around to run ypset(8) again, the system
is hosed.

In some Linux NIS implementations, there exists a yp.conf file where
you can explicitly specify a server address and avoid the use of
ypbind altogether. This is not desireable since it removes the
possibility of binding to an alternate server in the event that the
one specified in yp.conf crashes.

Some people have mentioned to me how they though the 'restricted mode'
operation (using the -S flag) could be used as a solution for this
problem since it allows one to specify a list of servers. In fact,
this is not the case: the -S flag just tells ypbind(8) that when it
listens for replies to its broadcasts, it should only honor them if
the replying hosts appear in the specified restricted list.

This behavior has now been changed. If you use the -m flag in conjunction
with the -S flag, ypbind(8) will use a 'many-cast' instead of a broadcast
for choosing a server. In many-cast mode, ypbind(8) will transmit directly
to the YPPROC_DOMAIN_NONACK procedure of all the servers specified in
the restricted mode list and then wait for a reply. As with the broadcast
method, whichever server from the list answers first is used for the
local binding. All other behavior is the same: ypbind(8) continues
to ping its bound server every 60 seconds to insure it's still alive
and will many-cast again if the server fails to respond. The code used
to achieve this is in yp_ping.c; it includes a couple of modified RPC
library routines.

Note that it is not possible to use this mechanism without using
the restricted list since we need to know the addresses of the available
NIS servers ahead of time in order to transmit to them.

Most-recently-requested by: Tom Samplonius
1997-05-25 19:49:33 +00:00
max
ea75dc558d Typo: .SH --> .Sh.
PR:		3683
Submitted by:	Kazuo Horikawa <k-horik@yk.rim.or.jp>
1997-05-25 19:11:26 +00:00
ache
9b4b59d4f8 When no last file specified for % command user barf(error diagnostic)
instead of segmentation fault
1997-05-24 21:45:55 +00:00
brian
b802e4fce6 Fix the reconnect option, and add an explanation to vars.h 1997-05-24 17:32:42 +00:00