summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't test for conflicting combinations of PPP_FILTER/BPFILTER here.bde1997-11-181-29/+9
| | | | | | | | | | | | | | Testing in if_ppp.c is good enough. Added comments about bogus #includes and #defines. Removed unused #includes. Don't depend on gcc's misfeature of rewriting short args in old-style function definitions to match wrong prototypes. I just changed the function definition to match the prototype, since this is easy to verify automatically (it causes no changes in the object code), but it breaks K&R1 support and doesn't fix the pessimal type.
* Cleaned up PPP_FILTER/NBPFILTER ifdefs.bde1997-11-181-15/+6
| | | | | | Use gettime() instead of microtime() to set if_lastchange for i/o's. microtime() is probably too expensive. However, setting if_lastchange for i/o's may be wrong.
* Use gettime() instead of assignment from `time'. (`time' is toobde1997-11-182-6/+5
| | | | | | | | volatile to use outside of splclock(). microtime() is probably too expensive to use for every i/o. However, setting ifi_lastchange for every i/o is just wrong according to the comment about ifi_lastchange in <net/if.h>. It is set then for atm, fddi and the latest version of ppp.)
* Removed an unused #include.bde1997-11-181-3/+1
| | | | Fixed a style bug (one of many KNF breakages in vfs_subr.c moved here).
* Get tty ioctl numbers by #including <sys/ttycom.h> instead ofbde1997-11-181-3/+2
| | | | | <sys/tty.h>. Don't #include <sys/fcntl.h> (the select -> poll changes removed all dependencies on it).
* Removed an unused #include. Added an unsed #include of <sys/ucred.h>bde1997-11-181-8/+9
| | | | | to prepare for not including it in <sys/param.h>. Moved conditionally used #includes inside an ifdef.
* Removed an unused #include. Ifdefed a conditionally used #include.bde1997-11-181-2/+3
|
* Removed unused #include.bde1997-11-183-9/+3
|
* Get select stuff by including <sys/select.h> instead of <sys/proc.h>,bde1997-11-181-6/+7
| | | | | | | | | | and don't include <sys/fcntl.h>. (The select -> poll changes replaced fcntl macros by poll macros.) Use <machine/*.h> instead of <i386/include/*.h>. Fail the probe instead of crashing in the unlikely event that malloc() fails.
* Don't #include <i386/isa/isa_device.h>. It is now a prerequisite.bde1997-11-181-3/+1
|
* Removed unused #includes.bde1997-11-181-5/+3
| | | | | | Fixed #include order. <i386/isa/isa_device.h> will soon be a prerequisite for <i386/isa/pnp.h>. Including both in alphebetical order gets this right naturally.
* Removed an unused #included.bde1997-11-183-9/+30
| | | | Ifdefed #includes that are not used in the SMP case.
* Get select stuff by #including <sys/select.h> instead of <sys/proc.h>.bde1997-11-182-4/+4
|
* Removed #unused includes.bde1997-11-185-15/+20
| | | | Added a used #include (don't depend on yet to be fixed namespace pollution).
* Removed unused #include of <sys/malloc.h>. This file now uses onlybde1997-11-181-2/+1
| | | | | zalloc(). Many more cases like this are probably obscured by not including <vm/zone.h> explicitly (it is spammed into <sys/malloc.h>).
* Removed code for the !KERNEL case. It hasn't been maintained for 4bde1997-11-181-28/+8
| | | | | | | | | | years and gives a "laugh"able number of compile-time errors (see the comment). main() just printed the struct sizes. This can be done better by compiling with -g and reading off the sizes from the stabs. Sorted #includes. Fixed an unsigned vs signed comparison.
* Get locking stuff by #including <sys/lock.h> instead of <sys/vnode.h>.bde1997-11-181-2/+2
|
* Don't #include <machine/smp.h> even in the SMP case. Fixed the onebde1997-11-182-2/+8
| | | | | | | place that depended on it. The "bazillion warnings" mentioned in the log for rev.1.45 apparently aren't a problem any more. It is hard to be sure because the SIMPLELOCK_DEBUG option turns off (and breaks) things in the SMP case.
* Don't #include <machine/smp.h> even in the SMP case. Fixed the onebde1997-11-181-9/+2
| | | | | | | | | | | place that depended on it. The "bazillion warnings" mentioned in the log for rev.1.45 apparently aren't a problem any more. It is hard to be sure because the SIMPLELOCK_DEBUG option turns off (and breaks) things in the SMP case. Don't forward declare structs that are already implicitly forward declared. Fixed a disordered declaration.
* Remove the outq error in "show modem".brian1997-11-181-2/+2
|
* Don't #include <sys/types.h>. I mistakenly #included it unconditionallybde1997-11-181-4/+2
| | | | | | | | | to fix some broken application. Application breakage is now hidden by a recently introduced wrong #include of <sys/types.h> in <sys/time.h>. <sys/time.h> is a prerequisite for <sys/resource.h>, so the <sys/types.h> prereqisite is automatically supplied. Cast RLIM_INFINITY to the correct (signed) type.
* DropClient() when read() returns 0 (as it did before).brian1997-11-181-2/+2
|
* Fixed pedantic syntax errors caused by trailing semicolon in thebde1997-11-181-3/+5
| | | | | __ELF__ case of the definition of MAKE_SET() and in the PSEUDO_LKM case of the definition of PSEUDO_SET().
* Fixed pedantic syntax errors caused by the trailing semicolon in thebde1997-11-181-2/+2
| | | | definition of DOMAIN_SET().
* Fix: too many arguments passed to fprintf().jdp1997-11-181-2/+2
|
* Fix: too many arguments for format in call to sprintf().jdp1997-11-181-1/+1
|
* Fix: too many arguments for format string in 4 calls to warnx().jdp1997-11-181-5/+4
|
* Fix erroneous format string.jdp1997-11-181-2/+2
|
* Add cross-references to rfork(2).jdp1997-11-182-1/+3
|
* Add missing argument detected by "-Wformat". Make messages morejdp1997-11-182-6/+6
| | | | consistent.
* Fix incorrect format string detected by "-Wformat".jdp1997-11-181-2/+2
|
* Add missing argument detected by "-Wformat".jdp1997-11-183-5/+7
|
* Don't generate new prototype files with the extra int retval[] arg atpeter1997-11-181-3/+3
| | | | | | the end since pdk deleted them. Forgotten by: phk
* Add missing arguments detected by "-Wformat".jdp1997-11-181-3/+4
|
* Fix missing arguments detected by "-Wformat".jdp1997-11-181-2/+3
|
* Fix two missing arguments detected by "-Wformat".jdp1997-11-182-4/+8
|
* Add Id string.brian1997-11-181-0/+4
|
* Notice that ppp has closed the connection properly.brian1997-11-182-69/+47
| | | | | | | | 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.
* Add and use a DropClient() function for closing the diagnostic port.brian1997-11-184-35/+30
| | | | Call DropClient() from Cleanup() too.
* Make sure you do not get unexpected surprises whena remote file starts with '|'.guido1997-11-171-2/+13
| | | | Reviewed by: Joerg Wunsch
* Add `writeable'wosch1997-11-171-0/+1
|
* Typo fix.alex1997-11-173-6/+6
| | | | | PR: 5068 Submitted by: Studded@dal.net
* fix Jonathan Mini's email address per his requestjmg1997-11-172-4/+4
|
* Added support for linux sound ioctls:ahasty1997-11-174-6/+48
| | | | | | | | | LINUX_SNDCTL_DSP_GETOPTR LINUX_SNDCTL_DSP_GETIPTR LINUX_SNDCTL_DSP_SETTRIGGER LINUX_SNDCTL_DSP_GETCAPS With this rev level the linux realaudio player 5 and xquake should work.
* Don't SetLabel() 'till we've done the SelectSystem(). Thisbrian1997-11-171-13/+17
| | | | | | | 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''.
* Add id strings to tun.[ch].brian1997-11-176-18/+43
| | | | Don't try to open ppp.secret if we're never going to use it.
* Abstract data read from and written to the tun device,brian1997-11-168-55/+130
| | | | | | | | | | | | | | 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).
* Document the new clear_tmp_enable option in the manpage.steve1997-11-161-1/+7
| | | | Prodded by: max
* Note in manpage how extraneous output in initialization scriptssteve1997-11-161-2/+17
| | | | | | | | can cause rdist to fail. PR: bin/4954 Reviewed by: wollman Submitted by: jhs
* Resurrect a modified version of the /tmp clearing code from rev 1.119.steve1997-11-162-2/+24
| | | | | | | | Enable this by setting clear_tmp_enable in rc.conf to YES. Beware there can be serious side-effects of enabling this, so use at you own risk. PR: misc/4982, misc/5054
OpenPOWER on IntegriCloud