Commit Graph

3267 Commits

Author SHA1 Message Date
brian
6c416ea21e Parenthesise the REJECTED macro. 1997-12-04 18:49:28 +00:00
brian
cc318f5582 Identify rejected protocol types according to rfc1700. 1997-12-04 18:49:26 +00:00
brian
71da084fab Fix the CCP Type field value for DEFLATE.
(I *really* meant to do this  *before* committing the
deflate changes in the first place - oops).

Pppd is horribly broken in this respect - refer to the
ppp man page for details.  Ppp *WON'T* negotiate deflate
with pppd by default - you must ``enable'' and ``accept''
``pppd-deflate'' in your config.

While I'm in there, update the cftypes in ccp.c so that
we recognise some more protocols (we don't actually do
anything with them - just send a REJ).
1997-12-03 23:28:02 +00:00
brian
9c2b38dad8 Abstract the CCP layer a level.
Add DEFLATE support.
1997-12-03 10:23:54 +00:00
wollman
5f69b83b68 Document the new long names for printcap capabilities. 1997-12-02 21:41:40 +00:00
wollman
fef101266c Mega lpd/lpd upgrade, part I:
- Get rid of a lot of the static variables which were shared by
  many routines and programs in the suite.
- Create an abstract interface to the printcap database, so that
  other retrieval and iteration mechanisms could be developed
  (e.g., YP, Hesiod, or automatic retrieval from a trusted server).
- Give each capability a human-readable name in addition to the historic
  two-character one.
- Otherwise generally clean up a lot of dark corners.  Many still remain.
- When submitting jobs, use the official login name record (from getlogin())
  if there is one, rather than reverse-mapping the uid.

More to come...
1997-12-02 20:46:22 +00:00
jmb
a711885277 improve anti-spam rulesets: check_relay, check_mail, check_rcpt.
break each ruleset into identified sections. (called groups).
	note which groups can be reordered.
	each group accepts and returns the same strings,
		as much as possible.
	reactivate Paul Vixie's RBL (in check_mail)
	add rules to limit mail relaying to a list of hosts and domains
		in the R class (check_rcpt, not active on hub.freebsd.org)

Submitted by:	 jmb
1997-11-30 23:28:26 +00:00
ache
b5569d5dfb Sleep 10secs after kill -HUP instead of 3secs, some daemons like Apache
may have log time to re-configure
1997-11-30 18:58:18 +00:00
joerg
3dbdae5b24 Remove an extraneous ".kbd" that crept in for the Swiss German
keyboard map.

Submitted by:	georg.wagner@ubs.com
1997-11-26 22:48:24 +00:00
brian
3d10a3e8d0 Display connect time as 0 if we've never been
connected.
Pointed out by: Jeff Kletsky <Jeff@wagsky.com>
1997-11-26 02:16:10 +00:00
nate
455b12038b - Don't worry about the previous state of the card (insert/removed), and
instead Do The Right Thing when the kernel states a card was
  inserted/removed.  This isn't a complete fix, but better than nothing.

Reviewed by:	Guido van Rooij <guido@gvr.org>
1997-11-25 19:15:59 +00:00
brian
54653b4e59 Fix the help command (broken when I re-prototyped
all the commands).
1997-11-23 20:05:18 +00:00
brian
f2a7f74543 Up the version number to 1.5. 1997-11-22 13:47:02 +00:00
brian
19d55a9568 Understand how to derive the names of interfaces
when they aren't ordered.  This is probably vital
for laptop support ;-I
1997-11-22 13:46:02 +00:00
brian
6fb83a4d28 Fix prototypes.
Remove extraneous decls.
Add ``const'' to several places.
Allow ``make NOALIAS=1'' to remove IP aliasing.
Merge with OpenBSD - only the Makefiles vary.

We can now survive a compile with
  -Wall -Wbad-function-cast -Wcast-align -Wcast-qual
  -Winline -Wmissing-declarations -Wmissing-prototypes
  -Wnested-externs -Wpointer-arith -Wredundant-decls
  -Wshadow -Wstrict-prototypes -Wwrite-strings -Wchar-subscripts
(although the Makefile just contains -Wall).
1997-11-22 03:37:54 +00:00
nate
2b9425f8b4 - Renamed log_1s() to logmsg(). 1997-11-19 02:31:41 +00:00
nate
f0042aae0b - Include <pccard/cardinfo.h> instead of <pccard/card.h> which was recently
renamed.
1997-11-18 21:08:14 +00:00
brian
a3d47f96a8 Allow zero args to "cvs log". 1997-11-18 19:38:27 +00:00
brian
c08db84be5 Fix interactive mode so that it doesn't require a passwd (again!). 1997-11-18 18:17:25 +00:00
brian
c1e35930dd Add throughput logging (disabled by default).
Use "enable throughput" to see modem & IPCP throughput.
Removed an extraneous prompt()
1997-11-18 14:52:08 +00:00
brian
190c480c2f Remove the outq error in "show modem". 1997-11-18 08:49:03 +00:00
brian
b910ff6e4e DropClient() when read() returns 0 (as it did before). 1997-11-18 07:33:23 +00:00
jdp
9f287e961d Fix: too many arguments passed to fprintf(). 1997-11-18 05:56:03 +00:00
jdp
ca8dd1c83d Fix incorrect format string detected by "-Wformat". 1997-11-18 03:41:51 +00:00
jdp
e2d907a81b Add missing argument detected by "-Wformat". 1997-11-18 03:37:45 +00:00
jdp
744091d21b Fix two missing arguments detected by "-Wformat". 1997-11-18 03:14:53 +00:00
brian
576d11c054 Add Id string. 1997-11-18 00:22:07 +00:00
brian
4712a4e963 Notice that ppp has closed the connection properly.
Remove the timeout hack to notice that ppp has closed the connection.
Remove the ``special case'' hacks for "quit" and "bye", as pppctl
now exits immediately when the connection is closed by ppp.
Suggest a secure "set server" line for connecting ppp & pppctl.
Tidy up and correct a few man page typos.
1997-11-18 00:20:29 +00:00
brian
c30377f104 Add and use a DropClient() function for closing the diagnostic port.
Call DropClient() from Cleanup() too.
1997-11-18 00:19:34 +00:00
brian
997bbf9061 Don't SetLabel() 'till we've done the SelectSystem(). This
avoids the situation where we specify label ``x'' on the command
line, and label ``x'' has a ``load y'' command embedded in it.
When the line comes up, we want to use ``x'' from ppp.linkup,
not ``y''.
1997-11-17 01:13:41 +00:00
brian
9150d3a63d Add id strings to tun.[ch].
Don't try to open ppp.secret if we're never going to use it.
1997-11-17 00:42:41 +00:00
brian
82d1672bb6 Abstract data read from and written to the tun device,
allowing for a possible header on the front of all packets.
In OpenBSD, there's a structure containing the address
family here.
If we're building under OpenBSD, set up the ``flags'' part
of struct tuninfo (not there under FreeBSD) so that we config
the interface as POINTOPOINT.
Prefix prototypes with ``extern'' in os.c for consistency.

These changes are cosmetic under FreeBSD, but allow ppp to
build & work under OpenBSD (bar the srandomdev() stuff,
the inclusing of <net/if_var.h> and some Makefile symantecs).
1997-11-16 22:15:11 +00:00
wpaul
355b4c10ed Some touchups courtesy of Philippe Charnier. 1997-11-16 03:49:12 +00:00
brian
82b3f408a7 Interpret AF_LINK sockaddrs correctly in show/delete route.
Print out inteface names rather than numbers, and use the
same "find out the names" code in SetIfAddr().  This means
that the nasty ioctl(,SIOCGIFCONF,)/realloc loop is now
buried :-)
1997-11-15 02:15:56 +00:00
brian
503f84ee48 uucplock is in section 3 not section 8 ! 1997-11-14 20:07:39 +00:00
brian
c8baef2636 Update the cftypes arrays according to rfc1700.
Log IPCP reqests as IPCP.
1997-11-14 15:39:15 +00:00
brian
0176faa2ca Allow blank lines in config entries (they aren't terminators). 1997-11-14 15:38:07 +00:00
jkh
f44431a539 MF22: Revert part of -p handling. 1997-11-14 01:56:04 +00:00
brian
5e57271028 Use seteuid() instead of setreuid().
The setreuid() page says seteuid is better !
1997-11-13 17:31:52 +00:00
brian
0ab602e14e Don't run if ppp.conf is writable. 1997-11-13 15:35:06 +00:00
brian
2fb9c5f228 Log a warning when a -direct invocation is denied. 1997-11-13 14:44:06 +00:00
brian
78badfbdee Fix command logging (broken with the "allow" command). 1997-11-13 14:43:20 +00:00
brian
870a76dc28 Null commit: The last commit made some warning messages clearer. 1997-11-13 12:10:50 +00:00
brian
0d3f367630 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
4bf8058de9 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
a2c04aa8ba 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
46c0598ada Use htonl() rather than htons(). 1997-11-13 11:43:02 +00:00
julian
fec9363bc4 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
d3994a8959 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
6781df63ee Log whether or not IP packets are bloked due to
a filter.
1997-11-12 19:48:45 +00:00