Commit Graph

3817 Commits

Author SHA1 Message Date
brian
7bbd96e068 Don't require context when there's only one link
for ``open lcp''
1998-07-04 22:03:56 +00:00
jkh
dffc2c777f MF22: check for null pointer. 1998-07-04 14:13:01 +00:00
brian
70e65d7691 Make things clearer.
Submitted (some time ago) by: Ted Mittelstaedt <tedm@portsoft.com>
1998-07-04 12:07:03 +00:00
brian
c61598e50c Version 2.0-beta becomes 2.0 :-) 1998-07-04 10:24:49 +00:00
brian
fe5471bbb4 Suggest port 8668 rather than 6668 for natd.
6668 is IRC.
1998-07-04 01:53:54 +00:00
brian
505c39dfb7 Only start checking carrier when the datalink state machine
exceeds DATALINK_READY.  When we go back to READY or less
(eg. ``close lcp''), switch the carrier-checking-timer off again.

This fixes the callback example in ppp.conf.sample.
Noted as broken by: Damian Kuczynski <damian@best.pw.edu.pl>
1998-07-03 17:24:38 +00:00
guido
6581cc8a98 Fix off by 1 error. 1998-07-02 19:35:40 +00:00
phk
4a2b54cc38 /var/log/wtmp entries for ptys are treated differently in ac, since
they may not be logins.  The code for determining whether it is a pty
entry is broken.

PR:		7137
Reviewed by:	phk
Submitted by:	Tom Rush <tarush@mindspring.com>
1998-07-02 05:34:08 +00:00
brian
2f84dc04f7 The CCP layer now behaves as follows:
o If we've denied and disabled all compression protocols, stay
  in ST_INITIAL and do an LCP protocol reject if we receive any
  CCP packets.
o If we've disabled all compression protocols, go to ST_STOPPED
  and wait for the other side to ask for something.
o If we've got anything enabled, start REQing as soon as the auth
  layer is up.
o If we're in multilink mode, than the link level CCP goes
  straight to ST_STOPPED irrespective of what's configured so that
  we never try to compress compressed stuff by default.
1998-06-30 23:04:17 +00:00
bde
9f41cd2f54 Don't assume that time_t is long. 1998-06-29 18:15:21 +00:00
bde
42426b4044 Don't assume that time_t is long. Fixed printf format errors. 1998-06-29 18:12:08 +00:00
bde
5ce7f7bbb5 Don't assume that time_t is long. 1998-06-29 18:09:59 +00:00
bde
8d79264e17 Don't assume that time_t is long. 1998-06-29 17:54:29 +00:00
bde
894c12aeef Don't assume that time_t is long. Fixed printf format errors (don't
assume that ntohl() returns long).
1998-06-29 17:51:39 +00:00
bde
0f93d85dc5 Don't assume that time_t is long. 1998-06-29 17:38:35 +00:00
bde
58651aa5fd Don't assume that time_t is long. 1998-06-29 17:25:46 +00:00
jkh
bdbef7d35a Crank the max possible disks/slices constants way down.
The probe for this sometimes makes IDE drives chatter their guts out
and takes an inordinately long time in such cases..
1998-06-29 09:28:01 +00:00
brian
d4ead1113f o Fix remaining sizeof problems for 64 bit machines.
o Allow ``set ....'' when we have multiple links but aren't in
  multilink mode.
o Do a TLS when we receive a ``Open'' event in ``Closed'' state,
  despite the rfc state transition table.  This is clearly an
  error in the RFC as TLS cannot have yet been called (without
  TLF) in the ``Closed'' state.
  I've posted a message to comp.protocols.ppp for confirmation.
1998-06-27 23:48:54 +00:00
steve
6375191994 Note in log file if messages are being forwarded from a
remote machine.

PR:		7055
Submitted by:	Edwin Groothus <edwin@nwm.wan.philips.com>
1998-06-27 21:45:59 +00:00
steve
5b1735b188 Typo.
PR:		7093
Submitted by:	Stefan Eggers <seggers@semyam.dinoco.de>
1998-06-27 21:29:35 +00:00
brian
fe729191a1 More u_long -> u_int32_t 1998-06-27 16:24:52 +00:00
brian
901772c27a I find it *really* irritating that you can't ``cvs rm''
things without removing them first.
1998-06-27 15:33:17 +00:00
brian
28e3c44d66 Remove redundant includes 1998-06-27 14:18:15 +00:00
brian
07521e97c2 Don't dlopen()/dlsym() libalias, use it in the same way
as the rest of the world uses libraries.
1998-06-27 14:17:28 +00:00
brian
497d9b189a Don't assume ``sizeof(u_long) == 4''
Submitted by: Theo
1998-06-27 12:03:50 +00:00
brian
ac54dad97b Cast void * to char * for log_Printf(). 1998-06-27 12:03:46 +00:00
brian
d24e468dc3 ``struct tunnel_header'' -> u_int32_t in OpenBSD.
struct tunnel_header is going soon.

Suggested by: Theo
1998-06-27 12:03:43 +00:00
brian
85c8d9e927 Don't depend on sizeof(u_long) == 4. 1998-06-26 19:02:40 +00:00
brian
7c5d96b4da DISTRIBUTION=des 1998-06-26 18:50:29 +00:00
jkoshy
bb375c3b7f Document environment variables used by pkg_{add,create,info}. These
include PKG_TMPDIR, TMPDIR, PKG_DBDIR.  Add a FILES section to these
manual pages.

PR: docs/7064
1998-06-26 07:15:38 +00:00
brian
7c774f0729 Add `ipcp'' as an optional argument to `open'', and make
open capable of re-negotiatiating the various layers.

It is now possible to change various link options and then
re-open the relevant layer, making the changes effective -
for example, switching off VJ compression or starting ECHO
LQRs on-the-fly.
1998-06-25 22:33:31 +00:00
wpaul
ef5b4382ff A long time ago I hacked mountd so that it would deal intelligently
with export lines where the same hostname was specified more than once
(this happens a lot with netgroups sometimes). Recently I discovered
that it needs to be hacked to deal with multiple instances of the
same IP address too.

I've been using this modification locally for several months with no
hassles.
1998-06-25 21:26:06 +00:00
guido
3a77bafe82 Implement new argument -l (OpenBSD has -a but we already use that).
This allows one to specify additional sockets in the unix domain
that syslogd listens to. Its primary use is to create log sockets in
chroot environments.
Obtained from:OpenBSD (with a bug fixed d
1998-06-25 19:39:19 +00:00
julian
aac533d0cd Reviewed by: guido@mouse.gvr.org
Submitted by:	Archie@whistle.com
redo the last patch to allow differentiated kernel logging in
a much better way.
1998-06-24 23:50:20 +00:00
brian
8d372c77bb Oops - forgot these with the last commit. 1998-06-24 19:36:37 +00:00
brian
5f236bffaf o If we come out of select() with only write descriptors that
end up writing zero bytes, sleep for 1/10 of a second so that
  we don't end up using up too much cpu.
  This should only ever happen on systems that wrongly report a
  descriptor as writable despite the tty buffer being full.
  Discussed with: Jeff Evarts

o Do an initial run-time check to see if select() alters the passed
  timeval.  This knowledge isn't yet used, but will be soon.
1998-06-24 19:33:36 +00:00
jkh
e33b957173 MF22: more explanatory message from config on version mismatch detection. 1998-06-24 06:16:32 +00:00
peter
c929cefa33 Forgot to resync the RELNOTES to 2.3.5 1998-06-23 21:41:58 +00:00
brian
64d7d4b88b Suggest the use of `accept dns'', not `enable dns'' in
server mode.
1998-06-21 11:14:50 +00:00
peter
8ed036c72a remove old hack that's no longer needed and now breaks the compile 1998-06-21 04:47:21 +00:00
mph
fa8ecb80d5 Correct punctuation. 1998-06-21 04:33:36 +00:00
peter
5ce589a5fc Merge ppp 2.3.3 -> 2.3.5 changes onto mainline. 1998-06-20 18:02:16 +00:00
brian
747b7cdd42 Do an InitRestartCounter when we get a TerminateReq
in Opened state.....  I have no idea why this never
caused problems in the past - maybe the restart
counter was bogusly initialised somewhere else :-/
1998-06-20 01:55:28 +00:00
brian
260d4ac633 Re-initialise our timer service after fork()ing
to lose our terminal session.  Is this a bug in
setitimer() ? - it must be called again in the
child !
1998-06-20 01:36:38 +00:00
brian
fb8728fafb Create & use fsm2initial(), a function to bring a
state machine back to ST_INITIAL without going
through any unnecessary TLS/TLF pairs.
1998-06-20 00:19:42 +00:00
brian
2644ba565e Make sure our recvmsg() is a SCM_RIGHTS message when
we receive a link from another ppp.
1998-06-18 23:38:04 +00:00
brian
6d7f0b53e4 Don't assume that all ttys support carrier detect. If we're
passing our controlling terminal, always record our pid so
that the receiving ppp knows who to HUP.
1998-06-18 22:43:18 +00:00
brian
f3667832a9 Mention the ``allow users'' command when describing
how to set things up for incoming connections.
1998-06-18 01:24:29 +00:00
bde
a88f5a7ab1 Don't generate declarations for isa device structs in "ioconf.h".
Don't generate declarations for isa interrupt handlers at all.
Isa interrupt handlers are now declared in <i386/isa/isa_device.h>
but should be converted take a `void *' arg and staticized as
soon as possible.

Updated CONFIGVERS.  New configs are very incompatible with
previous versions.
1998-06-17 15:16:53 +00:00
brian
6e6e8eb85b o Allow `set mrru'' or `set mrru 0'' to disable
multi-link mode.
o Fix a typo in the ``set mrru'' description.
1998-06-16 23:23:57 +00:00