Commit Graph

3665 Commits

Author SHA1 Message Date
jkh
9ed4533599 MF22: reset root flags properly. 1998-02-06 04:35:21 +00:00
guido
435971b91a This seems to fix my problem that after resume/suspend, sometimes
pccard claims that the driver is already allocated.
It works around a race when pccardd gets woken up too late after a resume.

This is a 2.2.6 candidate.
Reviewed by:	nate@freebsd.org
1998-02-04 20:19:39 +00:00
wpaul
3ca7dab3b7 Fix Makefile.yp so that it no longer creates a temporary file called
/tmp/ypmake, thereby fixing problems with successive map updates
possibly reading stale copies of this file left behind by a previous
failed run.

PR:	 5571
1998-02-04 16:16:58 +00:00
wollman
f2f127bb96 Install printcap.5 from here. 1998-02-04 15:59:10 +00:00
ache
188d4e1738 Add comment describing settings
Use 66 lines on the page
1998-02-04 13:03:57 +00:00
ache
c93ab5fa2e Add Russian printer filters, mandatory because hardware code page 866
is different with KOI8-R
1998-02-04 12:00:46 +00:00
charnier
a614821c75 Convert to mdoc. 1998-02-04 07:30:11 +00:00
ache
e95e60885b Add Genius PnP Mouse (simple one) 1998-02-04 06:46:33 +00:00
brian
3a98173354 Merge from MP branch:
Correct magic number format string
1998-02-04 01:06:23 +00:00
wosch
c162b732ce Typo. 1998-02-02 15:46:44 +00:00
steve
84be8ea54e setpwent now has a void return type, so remove the now bogus cast. 1998-02-01 17:11:07 +00:00
steve
7ee742faac Typo: PAT -> FAT.
PR:		5593
1998-02-01 05:58:42 +00:00
brian
c4e80145ce Don't moan about not creating tunX.pid and ttyX.if if RELEASE_CRUNCH
is defined.
1998-01-29 00:44:15 +00:00
brian
7e6b7cbb7c Talk a bit about ongoing development. 1998-01-29 00:42:52 +00:00
brian
151166a0c9 Make it clear that aliasing is done on the public interface, not
the private one.
1998-01-29 00:40:41 +00:00
jkh
33c51cf1f2 MF22: only fclose() OpenConn if non-NULL. 1998-01-28 04:42:38 +00:00
brian
1d815c2a03 Cosmetic:
Don't mention the authors name at startup.  He's already credited
  in the man page.  Instead, make the message consistent with the
  one given to the diagnostic port (and fix the grammar when entering
  `term' mode).
  Don't credit the zlib author in the man page as ppp isn't linked
  directly with zlib (it's shared).
  Mention when the OpenBSD port was first made available.
1998-01-27 23:14:53 +00:00
yokota
d2ee8cfca4 Update the keymap menu. 1998-01-27 14:01:19 +00:00
julian
74958f1603 A bit of the dpt userland utilities that got left out. 1998-01-26 06:26:41 +00:00
julian
d91c090c67 Obtained from: Simon Shapiro
Userland utilities to control, and monitor a DPT RAID system.
1998-01-26 06:20:48 +00:00
jmz
ac5af2af2d The status command prints the audio position, the media catalog and the
volume value for the disc. It is now possible to specify additional arguments
(audio, volume, media) to print only a subset of the full status.
This is particularly useful with drives which stop playing when asked to
return the catalog number.
1998-01-26 00:57:54 +00:00
steve
d6b0625d23 Allow comments to begin with multiple '#' characters.
PR:		4452
Submitted by:	Joao Carlos Mendes Luis <Jonny@mailhost.coppe.ufrj.br>
1998-01-25 17:51:10 +00:00
steve
e5db1136a3 Fix a couple of typos.
PR:		5561
Submitted by:	Kazuo Horikawa <k-horik@yk.rim.or.jp>
1998-01-25 16:22:22 +00:00
yokota
1b5a63b402 Fix typo.
PR: docs/5562
1998-01-25 15:49:00 +00:00
brian
80a371679e Fix error message.
Don't complicate the test compilation mentioned at the start of
the file.
1998-01-24 00:03:14 +00:00
brian
1084974539 Stop bogus warnings. 1998-01-23 22:29:16 +00:00
brian
c28a3fc04f Re-implement the proxy arp sockaddr_dl search routine (again).
It now works :-) and searches all interface aliases.
1998-01-23 21:37:27 +00:00
jkh
0479eebd5a In !dists case, invoke the custom dist menu rather than the toplevel
dist menu.  This makes a good deal more sense and should have been
this way all along.
1998-01-23 07:53:44 +00:00
brian
640a7be9cf Don't allow manual dialing unless in auto or interactive mode. 1998-01-23 04:36:42 +00:00
jkh
8d1c1ba992 MF22: match entries for wfd 1998-01-22 21:14:31 +00:00
sos
bd6cebd687 Use /bin/pwd instead of a potentially shell builtin that does
not return the "real" path.
This makes it possible to have the .o files put in the /usr/obj
hierachy instead of in the /usr/src one.
1998-01-22 19:34:31 +00:00
charnier
cb06b6ab9c Add rcsid. Add usage() with up to date flag list. Use err(3). 1998-01-22 07:28:26 +00:00
charnier
6d9d7599b8 Convert to mdoc format. Document missing flags. 1998-01-22 07:26:08 +00:00
jkh
1add458997 Add entry for SMC 9432TX cards (tx driver). 1998-01-21 19:25:49 +00:00
brian
5b8cd260bd Use the sockaddr_dl with the link#, not the ethernet address
when creating proxy arp entries.
1998-01-21 12:52:14 +00:00
brian
74e70be345 Don't assume that a computer can have no more than
256 interfaces (mine doesn't).  Instead, find local
interface addresses using sysctl().
1998-01-21 10:55:39 +00:00
jkh
808bbb6c19 I must have been smoking crack when I made this change. Using sh -c
in a vsystem() call is just a ludicrous way of calling sh -c "sh -c ..."
Whoops!  I don't know my own bloody code here!
1998-01-21 06:08:35 +00:00
brian
73c142f783 Remove unused #includes.
Make various bits static.
Remove unused variables.
Submitted by: eivind
1998-01-21 02:15:33 +00:00
imp
4b22e6e01b Quote filenames more agressively.
Reviewed by:	jkh
Submitted by:	Hubert Feyrer
1998-01-21 00:12:56 +00:00
brian
57bc05ceb5 Allow an optional delay when specifying "set openmode active".
The delay defaults to 1 sec (as it always has) unless we've done
a ~p in interactive mode or we've actually detected a HDLC frame.
This is now cleanly implemented (via async timers) so that it is
possible for LCP to come up despite the delay if an LCP REQ is
received.

This will hopefully solve situations with slow servers or slirp
scenarios (where ECHO is left on the port for a second or so before
the peer enters packet mode).

Also, ~p in interactive mode no longer changes the value of the default
openmode delay and -dedicated mode enters packet mode in the right state
according to the value of openmode.
1998-01-20 22:47:48 +00:00
bde
4997fa45d5 Converted to Lite2 mount interface - use vfc_typenum from the
already looked up vfsconf struct for nfs instead of MOUNT_NFS.
Removed related FreeBSD ifdefs.
1998-01-20 15:22:27 +00:00
bde
2fc3692fd2 Merged from Lite2. Get the filesystem type name directly from the
statfs struct instead of converting from the filesystem type number.
1998-01-20 15:12:24 +00:00
wollman
1b78a38f22 Properly initialize the printer struct.
PR: bin/5519
1998-01-20 14:43:05 +00:00
bde
d194d95de3 Removed definition of _NEW_VFSCONF. The new vfsconf interface is now
the default.
1998-01-20 10:40:18 +00:00
charnier
64f11cac49 Convert to mdoc format. Remove unused vars. Use err(3) and change exit(-1). 1998-01-20 07:30:27 +00:00
yokota
40cc7b388c Add the PnP string for a Logitech serial mouse model. 1998-01-20 03:38:36 +00:00
jmb
cbf170393b update hub's master configuraton file
limit sendmail to 500 messages per run
keeps the process from growing too large
sort the queue by host, not numeric priority
connecting to a host is too expensive,
once we got the connection, ram all the mail down his throat ;>
1998-01-20 01:48:12 +00:00
wpaul
3fe635039d Also fix ypbind to compile with ANSI-fied /usr/include/rpcsvc. One of
these days I really should rerwite this creature from the ground up.
1998-01-19 23:31:38 +00:00
jkh
c85e4522f7 Add wfd style devices to detection list (we'll have to put them on the
boot floppy too, of course - hope I still have enough inodes! :)
1998-01-19 23:28:41 +00:00
brian
7836e98cec dlopen(..., RTLD_NOW) rather than RTLD_LAZY.
Pointed out by: John Polstra <jdp@polstra.com>
1998-01-19 22:59:57 +00:00
brian
debdbe688d sys/types.h -> sys/param.h
Pointed out by: Niklas Hallqvist <niklas@petra.appli.se>
1998-01-19 22:34:20 +00:00
brian
38f590934b Reimplement proxy-arp address stuff using sysctl(). 1998-01-19 02:59:34 +00:00
brian
32829424bc Allow "set vj" for changing the default number of slots
and whether slot compression is requested.
Don't show current values with "show ipcp" if IPCP isn't
"opened".
1998-01-18 20:49:22 +00:00
bde
9b227c83b9 VVMIO -> VOBJBUF as in pstat.c. 1998-01-17 16:58:55 +00:00
bde
8c283f27e8 Started getting rid of the compatibility cruft for the Lite1 mount()
and the pre-Lite2 vfsconf interfaces.

For quot, just back out revs. 1.1 and 1.2 and change MNT_FFS to
"ufs", so that vfsconf isn't used at all.  Revs. 1.1 and 1.2 were
hacks to get around f_fstypename not being in `struct statfs' in
Lite1.
1998-01-17 16:45:03 +00:00
brian
8dc459bd1b Remove the necessity of -ldes and -lalias etc from release/Makefile.
When building a release, RELEASE_CRUNCH is defined for a `make' of
the objects required by the crunch of each program.  The object list
is still obtained in the same way, so you must make sure that all
objects are built (empty if necessary) by this make.  ppp/Makefile
provides an example.

Reviewed by: jkh
1998-01-17 14:21:21 +00:00
jkh
159f0c97e5 MF22: fix to install script handling. 1998-01-17 12:26:19 +00:00
bde
75271c7114 Removed most unused includes of <net/if_var.h> outside the kernel. 1998-01-16 17:38:56 +00:00
jkh
27024938d5 Adapt to new mount(2) argument syntax.
Submitted by:	bde
1998-01-16 15:07:55 +00:00
jkh
6907c09425 Benign changes to support Justin's CAM code. 1998-01-16 12:53:04 +00:00
charnier
8910ed3a61 Add rcsid. Change exit(-1). Use err() instead of warn()/exit(). 1998-01-16 07:17:45 +00:00
jmb
de33617fab update hub.mc to match what we are currently using:
both /etc/aliases and /etc/majordomo.aliases
sendmail.cw is *not* optional
command and connection timeouts
common hoststat directory for all queues
add fakenames database
clean up spam filter rules
limit the number of message processed each queue run
dont need to check Vixie's RBL in both check_relay and check_mail
1998-01-15 17:39:50 +00:00
brian
7bd4875c87 Free our input mbuf when the FCS is good (oops, memory leak). 1998-01-14 01:47:50 +00:00
brian
40459dfccd Lose __libalias_version.
We now look for the biggest of libalias.so.2.*
1998-01-14 01:23:05 +00:00
yokota
bd2f9169a6 Fix the output of `kbdcontrol -L _keymap_file_' which I broke in the last
commit ;-<  /usr/src/release/sysinstall/Makefile uses it to generate
built-in keymap tables.
1998-01-12 23:53:26 +00:00
charnier
f71cb0e5d5 Remove optind (getopt() already knows about it). 1998-01-12 08:01:40 +00:00
charnier
840aa1872e Remove optind (getopt() already knows about it). Move -d flag to -c according
to man page.
1998-01-12 08:00:32 +00:00
brian
2dadb7505c Lose <net/if_var.h> !
This'll require a `make installworld'.
1998-01-11 17:53:27 +00:00
brian
e8ac342fd3 Make things work when sizeof(long) != 32 (hopefully) 1998-01-11 17:50:49 +00:00
darrenr
124c65d310 change s_port to ntohs(s_port) for printf in DEBUG. 1998-01-11 06:03:35 +00:00
brian
b5dfbec2a6 Remember any number of interface names. 1998-01-11 04:45:36 +00:00
brian
00b8d1015a Remove includes of if_var.h and in_var.h 1998-01-11 04:02:57 +00:00
brian
47c782d631 Allow 6 byte interface names (for >tun99) 1998-01-11 02:59:22 +00:00
brian
dc2c4d2322 Pause according to the redial setting when dialing manually.
Pointed out by: Berend de Boer <berend@compuserve.com>
1998-01-10 21:51:31 +00:00
wosch
efc732a527 Rename the pwd_mkdb(8) option '-c' to '-C' for better compatiblity
with BSD/OS.
1998-01-10 17:27:28 +00:00
steve
c43c34747e Minor brace gymnastics so that /etc/wall_cmos_clock is really
created.

PR:		5473
Submitted by:	MIHIRA Yoshiro <sanpei@yy.cs.keio.ac.jp>
1998-01-10 15:55:11 +00:00
brian
7d986324c0 Implement Reset{Req,Ack} properly, as per rfc 1962.
(I completely mis-read the rfc last time 'round!)

This means:
  o Better CCP/WARN Reset diagnostics.
  o After we've sent a REQ and before we've received an ACK, we drop
    incoming compressed data and send another REQ.
  o Before sending an ACK, re-sequence all pending PRI_NORMAL data in
    the modem queue so that pending packets won't get to the peer
    *after* the ResetAck.
  o Send ACKs with the `identifier' from the REQ frame.
  o After we've received a correct ACK, duplicate ACKs are ok (and will
    reset our history).
  o Incorrect ACKs (not matching the last REQ) are moaned about and dropped.

Also,

  o Calculate the correct FCS after compressing a packet.  DEFLATE
    *may* produce an mbuf with more than a single link in the chain,
    but HdlcOutput didn't know how to calculate the FCS :-(
  o Make `struct fsm'::reqid a u_char, not an int.
    This fix will prevent us from sending id `255' 2,000,000,000 times
    before wrapping to `0' for another 2,000,000,000 sends :-/
  o Bump the version number a little.

The end result:  DEFLATE now works over an unreliable link layer.
                 I can txfr a 1.5Mb kernel over a (rather bad) null-modem
                 cable at an average of 21679 bytes per second using rcp.
Repeat after me: Don't test compression using a loopback ppp/tcp setup as
                 we never lose packets and therefore never have to reset!
1998-01-10 01:55:11 +00:00
jkh
e6c4f4267e MF22: Additional paranoia in cleanup. 1998-01-09 14:52:18 +00:00
brian
b0ebf56156 Zap any addresses on the network side of the `tun' as soon
as we've successfully opened the /dev side.
1998-01-08 23:47:57 +00:00
jkh
8a392fe511 Don't assume install script is directly runnable - use sh -c. 1998-01-08 11:27:06 +00:00
yokota
b23866f432 Added accent (dead) key support to syscons and kbdcontrol.
With a keymap with accent key definitions loaded to syscons, you press
an accent key followed by a regular letter key to produce an accented
letter.  Press an accent key followed by the space bar to get the
accent letter itself.

Code is based on the ideas and work by jmrueda@diatel.upm.es and
totii@est.is.

PR: i386/4016

- Added keywords for accent (dead) keys: dgra, dacu, dcir, dtil...
- Recognize accent map definitions.
<accent_map_definition> ::= <accent_key_name> <accent_char> <accent_map>
<accent_key_name> ::= dgra | dacu | dcir | dtil | dmac | dbre | ddot |
                      duml | dsla | drin | dced | dapo | ddac | dogo |
                      dcar
<accent_map> ::= <map_entry>
               | <map_entry> <accent_map>
<map_entry> ::= ( <regular_letter_char> <accented_char> )
- Use ioctls PIO_DEADKEYMAP and GIO_DEADKEYMAP to set and get the accent
  key map table in syscons.
- Made the output for the -L option more intelligible and look like
  initializers in kbdtables.h.
- Reorganized print functions in order to print the accent key map.
1998-01-07 08:43:28 +00:00
charnier
7af4ae59d7 Typo. 1998-01-07 07:43:04 +00:00
dyson
f17a0b9a02 Make pstat.c compile, since in the new kernel code, VVMIO doesn't
exist anymore.
1998-01-06 05:33:28 +00:00
brian
c8e340859f Correct the return value of ReportProtStatus() ("show proto").
Submitted by: Dave Bodenstab <imdave@mcs.net>
1998-01-06 00:58:31 +00:00
yokota
d219397478 Added some notes on cut&paste functions and button assignment. 1998-01-05 12:38:13 +00:00
charnier
cc9e961bd8 Use err(3). Change Synopsis to SYNOPSIS (needed for macro expansion) and
add SEE ALSO.
1998-01-05 07:19:15 +00:00
brian
d518d2b60c o Allow the use of HISADDR as the first arg to "add".
o Allow a forth argument in ppp.secret, specifying a new
  label.  This gives control over which section of
  ppp.link{up,down} is used based on the authenticated user.
o Support random address ranges in ppp.secret (not just in ppp.conf).
o Add a AUTHENTICATING INCOMING CONNECTIONS section to the man page.
o Add a bit more about DEFLATE in the man page.
o Fix the incorrect "you must specify a password in interactive
  mode" bit of the manual.
o Space things in the man page consistently.
o Be more precice about where you can use MYADDR, HISADDR and INTERFACE
  in the "add" command documentation.
1998-01-05 01:35:20 +00:00
brian
8a3ccad6ee Make it clear that using "add ...." in ppp.conf when
not in -auto mode isn't a good idea, and that the
add should be done in ppp.linkup instead.

Change "add 0 0 HISADDR" to "add default HISADDR".  It's
more intuitive.
1998-01-04 21:28:49 +00:00
brian
ab01b4103c Don't scribble on the stack if our input packet is
bigger than our MRU.  Moan and drop the packet
instead.
1998-01-04 20:26:37 +00:00
brian
d941713224 Initialize CcpInfo protocols to -1 (none, not OUI).
Don't Call Term() for an algorithm that hasn't been Init()d.
1998-01-04 20:25:41 +00:00
bde
f129d4cc48 Restored xref to diskless(8). diskless(8) existed but was not installed.
PR:		2153
1998-01-01 11:02:45 +00:00
pst
6d88299394 Handle frame relay, decode ATM VP/VC info, and handle ISO over FR. 1998-01-01 04:13:54 +00:00
brian
c07d897879 Allow "set device" to close the open modem if we're in
interactive mode.
Use `netfd' in fcntl() and tc[gs]etattr() calls rather than
the hard coded descriptor 0.
Use _FILENO constants from unistd.h

This un-breaks things after my recent `close(0)' in interactive
mode.

Close STDIN_FILENO, and open _PATH_TTY O_RDONLY as `netfd'.  This
has the effect of allowing `show route' to output more than about
a page of data (on FreeBSD, not OpenBSD....).  I have no idea why,
except that it was a direct consequence of the tcsetattr() in
TtyCommandMode().  My previous fix (closing descriptor 0) `fixed'
this because all calls to tcsetattr() failed :-(
1997-12-30 23:22:31 +00:00
brian
4b7a0273e3 Typo in error message. 1997-12-30 20:02:50 +00:00
brian
ac7fcdc399 Use inet_aton() before gethostbyname()
Suggested by: Christian Sandberg <christian@yes.no>
              Eivind Eklund <perhaps@yes.no>
1997-12-30 20:02:32 +00:00
brian
48d7a0a330 Allow "add! dst mask gw" (note the ``!'') to do an
RTM_CHANGE if the RTM_ADD fails with an EEXIST.
Allow "delete! dst" (note the ``!'') to silently
fail if the RTM_DELETE fails with an ESRCH.
Also, make the ESRCH and EEXIST error conditions
more understandable to the casual observer.
1997-12-30 02:45:48 +00:00
alex
fd91daf261 Added copyright (taken from natd.c).
Approved by:	Ari Suutari <ari@suutari.iki.fi>
1997-12-30 00:38:56 +00:00
brian
92c49a51b3 Don't complain that someone's changed the clock unless the time
after a select() interrupt is more than 1 second past what
should have been the end time.
We may just be running on an over-burdened machine.
1997-12-29 22:23:52 +00:00
brian
21e948bf08 Show how much time is left before timing out in the
`show timeout' output.
Remove ipIdleSecs variable - it's not used.
1997-12-29 22:23:13 +00:00
jkh
b8338e12a1 gateway -> gateway_enable
Pointed out by: Susie Ward <sward@voltage.net>
1997-12-29 20:07:17 +00:00
brian
e578914bee Don't expect select() to adjust the passed time when it's
interrupted with a SIGALRM.  In fact, select() sets the
passed time to zero, making the previous implementation
terminate always after 1/10th of a second !

Also, deal with someone changing the clock while we're
sleeping (and restart the whole sleep).

Dangers pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-28 21:55:05 +00:00
jraynard
750faabe18 Fix a couple of stray apostrophes. 1997-12-28 20:52:56 +00:00
brian
7c804d98bf Initialize mbuf::pnext.
Complain to LogERROR if we have internal inconsistency (not LogDEBUG).
1997-12-28 02:56:43 +00:00
brian
ea2427767a If a packet causes a dial, continue to test whether it's
blocked in the output filter.  If so, proceed with the
dial despite dropping the packet.
1997-12-28 02:46:26 +00:00
brian
650c5df159 Allow initial sequence numbers less than what we're expecting.
When CCP is originally negotiated, the only thing we can be
sure about is that we've started adding data to the inflate
dictionary either before or at the same time as the peer.  This
is ok, 'cos DEFLATE is a `sliding window' compressor.
1997-12-28 02:17:06 +00:00
wollman
81361b01ff Fix top-of-form bogon. 1997-12-27 20:49:39 +00:00
steve
bcb1e9fb1c Another sysconfig -> rc.conf fix.
PR:		5374
Submitted by:	Studded <Studded@dal.net>
1997-12-27 19:40:20 +00:00
alex
2cb70c5418 Typo/$Id$ police. 1997-12-27 19:31:11 +00:00
brian
87907e90ba Write to the routing socket as uid 0. It's not good enough
to just open it as uid 0 under OpenBSD.
1997-12-27 19:23:13 +00:00
steve
031fb7a243 Fix some minor formatting bugs.
PR:		5216
Submitted by:	Masahiro Sekiguchi <seki@sysrap.cs.fujitsu.co.jp>
1997-12-27 18:54:23 +00:00
brian
5d0e5c05ac Show who closes the diagnostic connection.
Show the IP range (if specified) in "show ipcp".
Close unused descriptors 0 and 2 in interactive mode.
Pass (size_t *) rather than (int *) to sysctl().
1997-12-27 13:45:57 +00:00
brian
75038f611f Remove bogus timeout code in Receive().
Don't read(fd, buffer, 0) and think ppp has closed the
connection when `buffer' is full, instead, flush most of
buffer to the terminal and read() for a reasonable length.
This fixes "show route" when there's more than 2k of
routing output.
1997-12-27 13:44:42 +00:00
brian
f6c1dec2d0 Allow (and document) execution of commands from within
our chat script.
You can now even run chat(8) - see ppp.conf.sample.
1997-12-27 07:22:12 +00:00
hoek
938dc036e9 "This is the add^H^H^Hinfo module."
Pedantic comment fix.

PR:		bin/5188
Submitted by:	Alex [3]garbanzo@hooked.net
1997-12-26 05:29:29 +00:00
hoek
b298ef3a0e Use consistent spelling,
writeable -> writable (recall prior debate over this? :-)
	initialise -> initialize
	recognise -> recognize

Merry Christmas! :)
1997-12-25 09:36:42 +00:00
wosch
c61a85fe81 Small bugfix: store $uid_start instead hard coded value 1000
in /etc/adduser.conf.
1997-12-24 11:44:14 +00:00
brian
f0ec6b0d77 Correct copyright.
Requested by: Eivind Eklund <perhaps@yes.no>
1997-12-24 10:28:38 +00:00
brian
14c2d8291d Cosmetic (style):
sizeof(var) -> sizeof var
  sizeof type -> sizeof(type)

Suggested by: J Wunsch <j@uriah.heep.sax.de>
1997-12-24 09:29:17 +00:00
brian
eb98bd2e03 Use sizeof cftypes128 for NCFTYPES128 macro, not sizeof cftypes !
Lucky that sizeof cftypes < sizeof cftypes128
1997-12-24 09:28:11 +00:00
brian
8723bc61b9 strncpy(x,y,sizeof(x)) --> strncpy(x,y,sizeof(x)-1)
Suggested by: Philippe Charnier <charnier@lirmm.fr>
              Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-23 22:38:55 +00:00
yokota
0fc42ca567 - Added support for a new MouseMan model (4 buttons, no wheel).
Based on the report from Dave Bodenstab.
- Turn off PnP COM device enumeration procedure if the user explicitly
  specifies a protocol type with the "-t" option.
- Accept "-t auto".  Now the user may entirely omit the "-t" option
  in the command line, or specify "-t auto" in order to make moused
  detect an appropriate protocol type automatically.  In the
  previous version, moused did so only if the "-t" option is absent
  in the command line. ("-t auto" won't disable PnP COM device
  enumeration.)
- Updated the man page.
1997-12-23 08:04:38 +00:00
alex
fa7e5c62c3 YTK fix. 1997-12-22 23:00:35 +00:00
brian
2166334fdf Don't forget to ntohs(sin.sin_port) (DUH!) 1997-12-22 02:28:18 +00:00
brian
0da7a994c9 Charles Mott created these (and told me via email that
they were BSD copyright).  Use his name, not mine.
1997-12-21 14:28:24 +00:00
brian
837a0f22aa Add (BSD) copyright headers. 1997-12-21 12:11:13 +00:00
brian
784a90b8a0 Cosmetic: Test for comment lines after the lenght has been established.
Pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-21 03:41:23 +00:00
brian
89240781bb Allow multiple (comma seperated) devices on the "set device" line.
Submitted by: Derek Inksetter <derek@saidev.com>
1997-12-21 03:16:19 +00:00
brian
decbe398a6 Cosmetic: Tidy up.
Submitted by:	Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-21 02:37:49 +00:00
brian
fcf6df2659 Mention that leading whitespace is ignored when identifying comments. 1997-12-21 02:34:27 +00:00
brian
aa8ef79946 Zero struct sockaddr_??s before filling them in.
Suggested by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-21 02:27:32 +00:00
brian
e0bc15794a Allow leading whitespace before '#' when identifying comments.
Submitted by: Dave Bodenstab <imdave@mcs.net>
1997-12-21 02:11:48 +00:00
brian
69560e83b8 Correct the "how to find out if the line is up" example. 1997-12-21 01:21:40 +00:00
brian
6a2c80b707 Cosmetic: Remove blank lines, add .Pp where necessary.
Submitted by:	Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-21 01:07:13 +00:00
sef
ddcc23c3f0 Add a copyright and license statement, at the request of Jordan. 1997-12-20 18:34:49 +00:00
bde
7a03d23784 Never create the destination directory at install time.
Don't build things at install time.
Don't override the (correct) clean rule.
Rewrote all the rules and cleaned up.
1997-12-20 00:40:05 +00:00
bde
a922ae59be Handle the ``maintenance'' case better.
Fixed some style bugs.
1997-12-19 23:56:18 +00:00
brian
5aec2da4d2 Reset our "ifaddr" to zero if the "set ifaddr" fails in
-auto mode.  This makes ppp correctly exit if you kick it
off twice in auto mode with the same label (read: interface).
1997-12-19 18:11:05 +00:00
brian
a5f2aef36d If the peer asks for IP 0.0.0.0, choose an IP ourselves
without looking for it in our IP list (and if found, trying
to ifconfig it!).
1997-12-19 04:49:53 +00:00
bde
25a4d2f91e Install sysctl in /sbin. It is used in some cases in network_pass1(),
before /usr is mounted if /usr has type nfs.
1997-12-18 15:34:08 +00:00
brian
3fc2aec878 Replace
strcpy(a, b);  /* a and b are the same size */

with

  strncpy(a, b, sizeof(a));
  a[sizeof(a)-1] = '\0';

Making the code `correct at a glance'.

Suggested by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-18 01:10:13 +00:00
brian
183a648b41 "No reply from ppp" -> "Connection closed".
"No reply" sounds like the message didn't get through (for
example when you `pppctl xxxx quit all'.
1997-12-18 00:29:56 +00:00
brian
f5589a83a0 Don't log the actual password when command-logging
"passwd xxxx".
1997-12-18 00:28:36 +00:00
brian
46ff19b9f3 Don't depend on a u_long being 32 bits.
Pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-17 21:22:05 +00:00
brian
ef180d798b char filename[200] => char filename[MAXPATHLEN]
Pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-17 21:22:01 +00:00
brian
2c382099b7 Log the source of client connections to the diagnostic port.
Disallow connections from port numbers <1024 as low port numbers
can only really mean trouble (ftp bounces etc.).

Discussed at length with: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-17 21:21:56 +00:00
brian
f76046ec73 Remove useless comparison. 1997-12-17 21:21:53 +00:00
brian
4a88e0001c If we've got a descriptor table that's bigger than an
fd_set, make sure that all descriptors >2 are closed
when we start - otherwise we're asking for a dump in
FD_SET().

Problem pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-17 21:21:47 +00:00
brian
3c6833ad80 o Log ******** instead of the actual password for "set authkey"
when command logging is switched on.
o Display ******** for the authkey for "show auth"
o Document how \P should be used, and document the other chat escapes
  while I'm there.
o Make sure the full command is displayed when a compound command
  fails - ie, "set novar rubbish" should say "set novar: Invalid command"
  rather than "novar: Invalid command"

Problem pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org> (among others)
1997-12-17 21:21:42 +00:00
wollman
01648d65d3 Add -Wno-unused so that ``make world'' can complete successfully.
GCC suppresses the warning for ``standard'' header files, but since the
headers do not come from the ``standard'' place in a ``make world'', GCC
doesn't get it.
1997-12-17 19:38:33 +00:00
bde
a8defea5f2 BSDify. 1997-12-17 19:32:54 +00:00
bde
a947da7732 Don't use LDDESTDIR. Just put the -L arg in LDADD. 1997-12-17 15:11:43 +00:00
bde
3cd85273b6 Use the default LIBOWN, etc. instead of clobbering the defaults to bin,
etc., so that (this part of) `LIBOWN=... make world' can be run by users
other than root.  Actually, use BINOWN instead of LIBOWN, since the files
that we install in /usr/libdata are not libraries, and LIBOWN is not
used for anything else in /usr/libdata.

Rewrote all the rules and cleaned up.
1997-12-17 13:04:18 +00:00
bde
2966f7c748 LIBOWN -> BINOWN, etc. There are no libraries here. 1997-12-17 12:38:42 +00:00
bde
91d0e4feae Use the default LIBOWN, etc. instead of clobbering the defaults to bin,
etc., so that (this part of) `LIBOWN=... make world' can be run by users
other than root.  Actually, BINOWN instead of LIBOWN, since fonts are not
libraries.  Only one owner of (non-setuid) installed files is really
supported.
1997-12-17 12:31:58 +00:00
bde
463e2bbf6c Fixed missing DPADD by removing empty LDADD. 1997-12-17 11:13:26 +00:00
bde
8c14db25ea Fixed building with NOSHARED=YES. libncurses depends on libmytinfo but
libmytinfo was not mentioned explicitly.  The bug was hidden by the
linkage of libncurses to libmytinfo in the shared library case.
1997-12-17 10:06:51 +00:00
brian
b722ca6c05 Remove an unnecessary (and wrong) cast. 1997-12-17 00:26:58 +00:00
brian
dfc961d91f Fix a potential overflow where, if the label passed on the command
line is > LINE_LEN (512 bytes), we scribble (*blush*).

Hinted at by: Theo de Raadt <deraadt@cvs.openbsd.org>

Change sprintf(buf, "fixedstring") to strcpy(buf, "fixedstring").
1997-12-17 00:19:25 +00:00
jraynard
fd888ae729 Typo alert (cosmetic). 1997-12-16 22:23:52 +00:00
bde
4a0ab2bd96 Fixed DPADD. 1997-12-16 17:53:39 +00:00
bde
509c7b3ff5 Fixed DPADD. 1997-12-16 17:43:33 +00:00
brian
22322123da Wrap long lines
Submitted by:	Greg Lehey <grog@lemis.com>
1997-12-16 00:32:35 +00:00
brian
d3e16d4b80 Correct return values from alias routines. 1997-12-15 23:34:05 +00:00
brian
24bf3adcc2 Use LogWARN for command usage messages and unrecognised
commands, not LogCOMMAND.
1997-12-15 20:21:47 +00:00
brian
ac180b7244 Do 2 passes when "delete all"ing. The first pass removes
all RTF_WASCLONED routes, and the second removes the
others.  This avoids the situation where we've added an
RTF_CLONING route (such as ``default''), created some
clones, then deleted the CLONING route before the
WASCLONED route(s).  Without the two passes, we get
errno (not rtm_errno) set to ESRCH when deleting the
WASCLONED route, despite the deletion succeeding !

Also:
  Enhance the route operation failure diagnostics.
  Make portability #ifdefs a bit more generic.
1997-12-15 20:21:15 +00:00
yokota
f197849e5f Oops, I forgot to set `cflag' in some cases when initializing the
mouse port.
1997-12-15 02:57:45 +00:00
guido
740bfe740c Oops..The default behaviour should be *not* to log all succeeded
requests. If you want this extra loggin, add the -l option.
1997-12-13 19:50:14 +00:00
jdp
9b79639834 Fix a segmentation violation that happened if "auth" was in the
options file but there was no suitable secret in the secrets file.
1997-12-13 05:27:29 +00:00
sef
49436fdfd5 Change the ioctls for procfs around a bit; in particular, whever possible,
change from

	ioctl(fd, PIOC<foo>, &i);

to

	ioctl(fd, PIOC<foo>, i);

This is going from the _IOW to _IO ioctl macro.  The kernel, procctl, and
truss must be in synch for it all to work (not doing so will get errors about
inappropriate ioctl's, fortunately).  Hopefully I didn't forget anything :).
1997-12-13 03:13:49 +00:00
brian
19859a97d5 Allow random IP number allocation to peer.
Validate the peers suggested IP by attempting to make a routing table
entry.
Give up IPCP negotiation if the peer NAKs us with an unusable IP.
Always SIOCDIFADDR then SIOCAIFADDR when configuring the tun device.
Using SIOCSIFDSTADDR allows duplicate dst addresses (which we don't
want)!!!
Allow up to 200 interface names (was 50) (now that ppp can play server
properly).
Up the version number (1.5 -> 1.6).

Cosmetic:
  Log unexpected CCP packets in the CCP log rather than the ERROR log.
  Log unexpected Config Reqs in the appropriate LCP/IPCP/CCP log rather
  than the ERROR log.
  Log failed route additions and deletions with WARN, not TCPIP.
  Log the option id and length for unrecognised IPCP options.
  Change some .Sq to .Ar in the man page.
1997-12-13 02:37:33 +00:00
bde
3c856a893d Fixed printing of and comparison with d_typename[]. It is not always
null terminated.
1997-12-12 18:01:57 +00:00
bde
7fbe90cce3 MF22 (oops, I committed it to the wrong tree yesterday).
Changed lots of %ld's in format strings back to %d.  %ld was right
when daddr_t was long, but Lite2 changed daddr_t to int32_t which
is implemented as `int' on i386's.
1997-12-12 17:58:31 +00:00
bde
c38483ca29 Fixed the usual multiplication overflow bug in an lseek() offset calculation.
The scan for bad sectors was broken for offsets >= 4G on 32-bit systems.
1997-12-11 07:27:06 +00:00
bde
50f14fbd5e Merged from Lite2 (fix misformattings in copyright). 1997-12-11 07:12:10 +00:00
guido
56668f863e Fix some style bugs.
Submitted by:	bruce
1997-12-10 20:33:59 +00:00
brian
f3ea7367b7 natd 1_10 => 1_11
Cosmetic style changes
  Use u_short for port values.
Submitted by:	Ari Suutari <ari@suutari.iki.fi>
1997-12-10 02:14:57 +00:00
guido
b094630dba Log all failed mount attempts.
Also add a flag (-l) so mountd will also log all succeeded requests
to mountd.
1997-12-09 18:43:44 +00:00
brian
390f8e60bd Deal with inflate() returning avail_in == avail_out == 0
We must call inflate again in case there's any pending output
despite our input buffer being empty.  If the output buffer
is in fact already flushed, inflate() returns Z_BUF_ERROR.
There isn't really an error !
1997-12-08 20:22:12 +00:00
brian
3e011f4579 Correct usage of add' and delete'. 1997-12-08 20:09:10 +00:00
yokota
cdf809fc75 Explicitly state that the -t option is required only when the
moused command is not able to detect the appropriate protocol for the
give mouse automatically.

Suggested by: sos
1997-12-08 11:54:42 +00:00
charnier
13bcd4bb42 Use Pa for files and Ar for arguments. 1997-12-08 07:43:13 +00:00
nate
9cdce0445e - Changed strcmp to strncmp for checking the CIS manufacturer strings,
since we only store CIS_MAXSTR data, and the users may stick the
  'entire' CIS string returned from the card in /etc/pccard.conf and
  cause the comparison to (bogusly) fail.

Submitted by:	Brad Karp <karp@eecs.harvard.edu>
1997-12-08 06:35:07 +00:00
brian
ca19055e93 Fix PAP, CHAP & LQR req (I broke the byte ordering when
I did the deflate re-org).
Make PAP & CHAP negotiation prettier in the log file.
If both PAP & CHAP are `enabled' and the peer NAKs CHAP
suggesting PAP, be friendly and REQ PAP the next time.
This is in line with the rfc.
1997-12-07 23:55:29 +00:00
jmb
ae027959e1 update hub.mc with the latest set of anti-spam rules
Submitted by:	jmb
1997-12-07 16:59:28 +00:00
yokota
7166a0913c The `moused' daemon is made to support various serial mouse
protocols to recognized extra buttons and wheel/roller. It now has
PnP COM device support code, thus, some recent mouse products are
automatically detected and an appropriate protocol is selected.
The `-i' option will print the result of auto-detection.

- Added support for the following SERIAL mice:
      ALPS GlidePoint, MS IntelliMouse, Kensington Thinking Mouse
  (Genius NetMouse, NetMouse Pro, ASCII MieMouse, Logitech MouseMan+,
  FirstMouse+ are compatible with MS IntelliMouse, when connected
  to a serial port, thus requires no explicit support)
- Added PnP serial mouse identification capability as defined
  by Microsoft and Hayes in "Plug and Play External COM Device
  Specification, rev 1.00".  This support will enable us to identify
  the correct protocol to use, or choose a compatible protocol for the
  given mouse.
- Utilize new ioctls defined in `mouse.h' to get hardware and protocol
  information on PS/2 and bus mouse devices.  Try to guess the correct
  protocol and port combination based on the obtained info.
- Use MOUSE_SETLEVEL ioctl.
- Use constants defined in `mouse.h' rather than using own definitions.
- A New command line option.  The -i option prints the information
  collected though the PnP code and psm/mse ioctls mentioned above,
  and just quits.  This is to test `moused's ability, or inability, to
  detect the correct protocol for the given mouse automatically.
- A new command line option.  The -m option maps a physical button
  to a logical button.
- A new command line option.  The -z option maps the Z axis movement to
  another axis or a pair of buttons.
- Add other options: -3, -C -F -P.
- Added a handler for SIGHUP.  This has been suggested by somebody in the
  past (I don't remember who).  He wanted this because he wants to attach
  or detach a mouse while his laptop is suspended.  Now `moused' will
  reopens and reinitialize the specified port whenever a SIGHUP is
  received.  I don't know how useful this can be...
1997-12-07 08:11:16 +00:00
brian
ae33fe186c Only allow one arg to `delete' - the mask & gateway aren't necessary.
Delete AF_LINK routes as well as AF_INET.
Allow the word `default' as the arg to `delete' or in place of the
first two args (dest & netmask) to `add'.
Accept INTERFACE as the third arg to `add'.

  You can now say `add default interface' to create a default route
  through the tun interface.  It's reported that subsequent bind()s
  will bind to a broadcast address and not to the address currently
  assigned to the tun device - this is the first step towards
  supporting that first connection that was around from before the
  dynamic IP negotiation....
1997-12-07 04:09:15 +00:00
peter
acacc98bcc explicitly set MAN8 since only MAN1 is defaulted. 1997-12-07 02:35:18 +00:00
peter
747c0a1cde Add $Id$ 1997-12-07 02:30:43 +00:00
peter
f61acd6db6 delete -static, add $Id$ 1997-12-07 02:29:28 +00:00
peter
8dfe2da6e0 add procctl 1997-12-07 02:27:48 +00:00
brian
d751bc42f2 Correct cftypes128 index. 1997-12-06 22:43:58 +00:00
jdp
88b8bf6869 Fix incorrect format string in call to errx(). 1997-12-06 17:55:07 +00:00
brian
66c99fc075 Reverse my previous change and use htons() on an int
instead of htonl() !

This results in the int a,b,c,d changing to b,a,c,d,
but as it's subsequently coerced to a u_short, the
ultimate answer is correct.

If this isn't fixed properly soon (by the author) I'll
have a look at it again.

Noted by:	eivind & ari@suutari.iki.fi
1997-12-06 12:00:32 +00:00
jdp
ff53b3b66e Add missing argument to warn() call. 1997-12-06 05:37:18 +00:00
sef
5b7f0945bd First checkin of the procctl program. 1997-12-06 04:19:09 +00:00
brian
2ebcf56fef Understand ``sockaddr_dl''s where sdl_nlen != 0 1997-12-04 18:49:39 +00:00
brian
fdb4ac5df0 Remove duplicate REJECTED macro.
Remove extraneous pointers.
1997-12-04 18:49:35 +00:00
brian
e14a950938 Initialize ccpstate when CCP comes down.
Remove extraneous pointers.
1997-12-04 18:49:32 +00:00
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
brian
d9b2164f58 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
93e25e4db2 Don't attempt to dial if "dial label" has specified
a restricted label.
1997-11-12 16:34:51 +00:00