Commit Graph

3225 Commits

Author SHA1 Message Date
brian
99989a60d8 Don't delete interface routes when we do an LcpDown.
They'll get deleted in Cleanup().
1997-11-13 12:09:57 +00:00
jkh
e3252cb624 The prefix override code was bogus. The original idea was sound
enough, but we're not using the pkg_create tool that way anymore
in the ports collection.

PR:		4894
Submitted by:	Adrian Colley <aecolley@ois.ie>
1997-11-13 11:49:23 +00:00
jkh
bee54c50bb Whine when a depended package can't be found at all, vs being found
but failing to load.
PR:		4959
1997-11-13 11:44:42 +00:00
brian
bfb6fd490e Use htonl() rather than htons(). 1997-11-13 11:43:02 +00:00
julian
64608563e2 Submitted by: Archie@Whistle.com (Archie Cobbs)
allow teh -a option to work with the  -d option
thus:
arp -d -a now flushes your arp cache.
also fix the -n option so that -an now works correctly.
1997-11-13 01:16:57 +00:00
brian
68d89b19d4 Understand networks in the filter rules. We don't
insist on x.x.x.0/24 - x.x.x.x/24 is ok too.
1997-11-12 21:04:21 +00:00
brian
1a846301b5 Log whether or not IP packets are bloked due to
a filter.
1997-11-12 19:48:45 +00:00
brian
d99cc94f13 Return correct value from "set loopback".
Output "set ?filter deny host|port" rules correctly
with show ?filter.
Submitted by:	Dave Bodenstab <imdave@mcs.net>
1997-11-12 18:47:30 +00:00
brian
4feb2f9c75 Don't attempt to dial if "dial label" has specified
a restricted label.
1997-11-12 16:34:51 +00:00
brian
75ca1ecd86 Pass a missing arg to LogPrintf(). 1997-11-12 15:50:38 +00:00
julian
ae22df605c Reviewed by: various.
Ever since I first say the way the mount flags were used I've hated the
fact that modes, and events, internal and exported, and short-term
and long term flags are all thrown together. Finally it's annoyed me enough..
This patch to the entire FreeBSD tree adds a second mount flag word
to the mount struct. it is not exported to userspace. I have moved
some of the non exported flags over to this word. this means that we now
have 8 free bits in the mount flags. There are another two that might
well move over, but which I'm not sure about.
The only user visible change would have been in pstat -v, except
that davidg has disabled it anyhow.
I'd still like to move the state flags and the 'command' flags
apart from each other.. e.g. MNT_FORCE really doesn't have the
same semantics as MNT_RDONLY, but that's left  for another day.
1997-11-12 05:42:33 +00:00
jdp
dd8043bfaa Output the estimated battery lifetime as "hh:mm:ss" along with
everything else.  Add a "-t" option for outputting it in raw form.
Define and document the order in which raw values are printed when
more than one is requested on the command line.
1997-11-12 04:16:23 +00:00
brian
6522111589 Don't warn that we're waiting for the command to complete if
we've put it in the background (!bg).
1997-11-12 02:10:05 +00:00
brian
c24adf31c4 Don't moan about unexpected config req's when in ST_STOPPING. 1997-11-11 23:23:11 +00:00
brian
0c64913a0f Finish the security improvements:
o Add "allow" command:
      "allow users a b c" gives access to users a, b and c.
      "allow modes auto"  gives those users access to auto mode only.
      "allow users *" and  "allow modes *" are accepted.
      No users and all modes are allowed by default.
    UID 0 can do anything.
  o Set the current label with the "load" and "dial" commands
    so that the call to ppp.linkdown makes sense.
  o Up the verison number.
  o Don't OR MODE_AUTO for -background and -ddial.
  o Don't OR MODE_INTER when we get a diagnostic connection.
  o Allow up to 40 args per line (was 20).
  o "set ifaddr" only changes the interface in AUTO mode (with other
    modes, it happens after IPCP negotiation).
  o Sort command descriptions in the man page.
  o Support -dedicated mode where we just talk ppp forever (no login etc).
1997-11-11 22:58:14 +00:00
brian
3008d1c558 Use select() instead of poll() for portabilities sake. 1997-11-11 13:27:47 +00:00
brian
1777aa3a10 Fix typo that causes CHAP RESPONSEs to *always*
be damned M$ responses if you've got DES.
1997-11-11 13:08:12 +00:00
brian
90324e9327 Poll the socket descriptor while in el_gets()
so that our display is scribbled over as we
requested.
1997-11-11 12:28:02 +00:00
brian
474d294d46 Flush the output stream when doing local logging. 1997-11-11 12:26:34 +00:00
wpaul
7f52bb826f Add a ypinit script and man page (script lifted from OpenBSD and haqued
to work on FreeBSD, man page written by me.)

Also change Makefile.yp a little to be more tolerane in the face of
missing source files. Print a message if we can't find /var/yp/master.passwd
telling the user what to do to fix things.
1997-11-10 22:17:13 +00:00
peter
10eec1da23 remove #include <login_cap.h>, this is included as needed elsewhere now. 1997-11-10 02:51:16 +00:00
peter
56b8a720d6 setusercontext() came into the 2.2 branch just before 2.2.2-release. 1997-11-10 02:32:27 +00:00
peter
d0e38bcf4b Merge sendmail 8.8.8 changes onto mainline. (For all of CVS's warts, when
things like this turn out this easy (ie: it took 30 seconds), it's nice :-)
1997-11-10 02:05:23 +00:00
peter
93ede594f2 This commit was generated by cvs2svn to compensate for changes in r31087,
which included commits to RCS files with non-trunk default branches.
1997-11-10 01:58:17 +00:00
peter
ec835bf7b7 Import sendmail-8.8.8
Obtained from: ftp.sendmail.org
1997-11-10 01:58:17 +00:00
brian
3672eda8ac Don't Cleanup() in background mode when
we get a "close", the LcpClose() will
eventually do it when we get to PHASE_DEAD.
1997-11-09 23:40:21 +00:00
brian
46175a24fb Initialize VarAltPhone.
PR:		4993
1997-11-09 22:56:15 +00:00
brian
2b9bf8e847 Don't create a diagnostic socket by default.
Allow a password spec on the "set server" command line.
Use SIGUSR2 to close the diagnostic socket.
Some man page corrections.
1997-11-09 22:07:29 +00:00
brian
1fb3509770 Don't ask for a password if it's specified as empty. 1997-11-09 18:51:23 +00:00
brian
e1f7ff985c Prompt correctly when ppp *doesn't* ask for a password. 1997-11-09 18:50:34 +00:00
brian
59161ba72e Add the "!include" syntax.
Return 0 from "show" commands.
1997-11-09 17:51:27 +00:00
brian
164425f5ce Increase chat script sizes to 512
Requested by: Michael Reifenberger <root@totum.plaut.de>
1997-11-09 14:18:55 +00:00
brian
2d2f81e9b5 Remove the use of $HOME/.ppp.* 1997-11-09 13:18:51 +00:00
brian
27e1a5bbaa Null commit:
The last modification removed the use of $HOME/.ppp.*
1997-11-09 13:18:18 +00:00
brian
eae0088b91 Introduce ID0 logging.
Stay as the invoking uid as much as possible.
Execution as a normal user is still forbidden for now,
so these changes are pretty ineffective.
The next commit will implement the modifications suggested
on -hackers a number of days ago.
1997-11-09 06:22:49 +00:00
brian
555986da72 When responding to a CHAP challenge, don't try to use
ppp.secret to get a key value based on the peers name,
then send the value of AuthName with the encrypted result.
This is *way* too confusing.
Instead, always use AuthName and AuthKey as the documentation
says.
1997-11-09 03:55:27 +00:00
brian
682b093038 Don't include RTA_GATEWAY in rtm_addrs unless it's specified. 1997-11-09 03:22:49 +00:00
brian
85bb474e62 Typo police. 1997-11-08 12:37:33 +00:00
brian
cf98226436 Don't pass global vars as args.
Remove local/global conflicts.
1997-11-08 00:28:11 +00:00
brian
7b18487ba9 Style police.
bzero -> memset
index -> strchr
rindex -> strrchr
Use libedit (this should make pppctl a lot more attractive than telnet).
1997-11-07 20:20:15 +00:00
joerg
557fc1ddef Argl! Who's got the pointy hat these days? Hand it over to me, ASAP!
When setting an alarm that didn't trigger, i gotta clear it again
before going on.  Hmpf!
1997-11-07 13:18:50 +00:00
brian
e4fdd13249 Support interactive mode. 1997-11-07 02:54:49 +00:00
joerg
07c6e768fc Pah! I didn't stick to my own advise to adjust the padding... 1997-11-07 00:18:25 +00:00
joerg
7eaff07d90 Typo fix that caused the value 0x1234 to be written to a random memory
location.  Also, instead of jumping ot the CPU's restart vector, just
call int 0x19 to reboot.  (Writing hte 0x1234 was a little useless
otherwise.)

PR:		bin/4901
Submitted by:	Jonathan Mini <mini@d198-232.uoregon.edu>
1997-11-07 00:12:55 +00:00
joerg
9ee9500401 Fix some breakage from my last set of changes.
PR:		bin/4892
Submitted by:	Vasim Valejev <vasim@uddias.diaspro.com>
1997-11-07 00:09:40 +00:00
joerg
5e073d60a3 Teach tzsetup to understand blank lines in the iso3166 file.
Found by:  evanc@synapse.net (Evan Champion)
1997-11-07 00:07:27 +00:00
imp
e963b91fae Use warn rather than warnx to report errors opening the APM device.
Nit formatting fix
1997-11-06 23:55:38 +00:00
msmith
a70940419f Bump configvers to 300003 to account for the crd->card (and related)
namespace changes.
1997-11-06 03:11:40 +00:00
brian
9591c8cdce o Spelling police.
o  Emphasize ``PPP''
o  x-ref other programs
o  Some minor clarifications
1997-11-06 00:25:33 +00:00
obrien
71a2202c76 MFS. 1997-11-05 06:11:35 +00:00