summaryrefslogtreecommitdiffstats
path: root/usr.sbin/npppd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Install npppd.conf(5) with mode 0600 instead of 0640. npppd.conf(5) canmvs2020-06-221-3/+3
| | | | | | store radius passwords and nothing requires it to be group readable. ok yasuoka@
* remove the reference to tun(4), as suggested by kaya saman,jmc2020-06-131-3/+2
| | | | and advised by dlg;
* Prepare buffer for both receive and transmit side so that a client canyasuoka2020-06-092-58/+104
| | | | | use them separately. Actually a version of CISCO does and expects the peer does the same. Also fix some typos.
* replace examples of "Ic arg Ic arg" with "Ic arg arg" and stop the spread;jmc2020-04-231-3/+3
|
* Put the interface down if the kernel fails to enable pipex.mpi2020-04-011-3/+7
| | | | | | | | | This is necessary to not silently continue if pppx_ioctl() returns an error. Found out by and diff from Vitaliy Makkoveev. ok yasuoka@
* do not Xr both pppx and pppac in SEE ALSO, since they are the same page;jmc2020-01-231-2/+1
|
* use pppac(4) instead of tun(4)dlg2020-01-232-12/+12
|
* allow npppd to use pppac(4) (once i wire it up)dlg2020-01-231-20/+17
|
* More correction of section 3 layout. directory->opendir, fts->fts_open,deraadt2019-09-021-5/+5
| | | | | getcap->cgetent. pwcache->user_from_uid. And then repair references. ok jmc
* Delete superfluous #includes of <ifaddrs.h>, <net/if_dl.h>, and <net/if_enc.h>guenther2019-05-104-12/+8
| | | | ok krw@, jsg@
* macro fix;jmc2019-04-081-3/+3
|
* fix some cases of spaces before full stops, where none were neccessary;jmc2019-03-101-3/+3
|
* remove unused includesdenis2019-02-2710-29/+18
| | | | OK yasuoka@
* errror -> error in log messages; from alessandro gallojmc2019-02-222-6/+6
|
* fix attribute namedenis2019-02-201-3/+3
|
* (unsigned) means (unsigned int) which on ptrdiff_t or size_t or otherderaadt2019-02-131-3/+3
| | | | | | larger types really is a range reduction... Almost any cast to (unsigned) is a bug. ok millert tb benno
* PF_ROUTE -> AF_ROUTE in the scattered sock()/setsockopt() callskrw2019-01-221-2/+2
| | | | | | where the "wrong" #define was used. ok dlg@
* Delete unnecessary <libgen.h> #includesguenther2018-12-301-3/+2
| | | | ok deraadt@
* - odd condition/test in PF lexersashan2018-11-011-2/+3
| | | | | | | | | | | | | | (and other lexers too) This commit rectifies earlier change: in the lex... even inside quotes, a \ followed by space or tab should expand to space or tab, and a \ followed by newline should be ignored (as a line continuation). compatible with the needs of hoststated (which has the most strict quoted string requirements), and ifstated (where one commonly does line continuations in strings). OK deraadt@, OK millert@
* Fix the prefix length of the IP address in the error message which showsyasuoka2018-07-251-3/+3
| | | | | failure of assigning requested IP address on IPCP, it was mistakenly "-1" on little endians. Found by IIJ.
* No need to mention which memory allocation entry point failed (malloc,krw2018-07-091-4/+4
| | | | | | | | | calloc or strdup), we just need to log that we ran out of memory in a particular function. Recommended by florian@ and deraadt@ ok benno@ henning@ tb@
* Be consistent in warn() and log_warn() usage whenkrw2018-07-081-3/+3
| | | | | | | | running out of memory. Next step, be correct *and* consistent. ok dennis@ tb@ benno@ schwarze@
* remove the SECTIONS header, since a one line DESCRIPTION is a bit silly;jmc2018-06-181-4/+4
| | | | | | | use a more general text for the sections, and avoid the catchup issue that was trying to document how many there were; ok benno rob
* Consistently spell "IPsec" in comments and debug outputs.mpi2018-03-161-3/+3
| | | | From Raf Czlonka, ok sthen@
* Remove useless <sys/socketvar.h> includes.mpi2018-01-051-2/+1
| | | | ok kettenis@, visa@, claudio@, deraadt@
* The problem when npppd receives a zero length 1701/udp packet seemed toyasuoka2017-10-061-3/+3
| | | | be fixed at 1.16, but it wasn't fixed. Fix it again.
* add a new option to set limits on max-sessions each IPCP.goda2017-08-126-10/+148
| | | | | | | It can set limits on different max-sessions if there're using several protocols such as PPPoE and L2TP/IPsec. ok yasuoka@
* add a new option to set limits on user-max-sessions each AUTHENTICATION.goda2017-08-118-22/+60
| | | | | | | It can set limits on different user-max-sessions if there're using several protocols such as PPPoE and L2TP/IPsec. ok yasuoka@
* display MRU each sessions in npppctl session commandgoda2017-08-112-2/+4
| | | | ok yasuoka@
* man pages with pseudo synopses which list filenames end up creatingjmc2017-07-131-4/+7
| | | | | | | | | | very ugly output in man -k; after some discussion with ingo, we feel the simplest fix is to remove such SYNOPSIS sections: the info is hardly helpful at page top, is contained already in FILES, and there are sufficiently few that just zapping them is simple; ok schwarze, who also helpfully ran things through a build to check output;
* no need to generate y.tab.h if nothing uses it, set YFLAGS to nothingespie2017-07-031-1/+2
| | | | | | instead of CLEANFILES += y.tab.h okay millert@
* Remove never used ifdefs, define FATAL macro properly and define functionyasuoka2017-05-303-153/+31
| | | | parameters in modern way.
* Stop using __P macro.yasuoka2017-05-3011-129/+114
|
* Switch base tools from /dev/bpf0 to /dev/bpf. Now that /dev/bpf has beennatano2017-04-192-5/+5
| | | | | | around for two releases, it should be safe to do so. ok bluhm deraadt sthen tb yasuoka
* Warn if pipex(4) is disabled but the configuration uses it.yasuoka2017-04-181-5/+19
|
* Delete #include lines which are unnecessary.yasuoka2017-04-181-9/+2
|
* From a syslog perspective it does not make sense to log fatal andbluhm2017-03-211-6/+6
| | | | | | warn with the same severity. Switch log_warn() to LOG_ERR and keep fatal() at LOG_CRIT. OK reyk@ florian@
* The default for the strip-nt-domain attribute is "yes", so fix uppatrick2017-02-221-3/+3
| | | | | | the manpage to not tell lies. ok yasuoka@
* Delete lines which are misleading and unneeded.yasuoka2017-02-221-5/+2
| | | | spotted patrick
* Stop using "DEBUG" make variable for extra debugs.yasuoka2017-02-211-11/+10
|
* Replace hand-rolled for(;;) traversal of ctl_conns TAILQ withkrw2017-01-091-4/+5
| | | | | | | | TAILQ_FOREACH(). No intentional functional change. ok reyk@
* Remove the use of cast. It is unnecessary and potentially problematic.yasuoka2016-09-211-3/+3
| | | | | input semarie ok deraadt
* Fix about the default value of pptp-hostname. It's an empty string.yasuoka2016-09-071-4/+3
| | | | Reported by Joe Holden.
* Replace the /dev/bpf* open loop with a plain open("/dev/bpf0", ...).natano2016-05-282-19/+8
| | | | ok deraadt jca
* Improve and clarify a few bits; with input from jmc@, ok yasuoka, jmcmikeb2016-05-261-12/+13
|
* Change last non-/gnu/ fcntl(x, F_GETFL, 0) strays to fcntl(x, F_GETFL).krw2016-04-162-7/+7
| | | | | | No functional change. ok millert@
* Move more fcntl(,F_GETFL,0) -> fcntl(,F_GETFL).krw2016-04-051-4/+3
| | | | | | No functional change. ok guenther@
* Log the reply message from RADIUS server when the authenticaion fails.yasuoka2016-03-222-4/+34
| | | | Diff from Yuuichi Someya
* Cleanup control sockets in control_cleanup().yasuoka2016-03-221-1/+7
| | | | Diff from Yuuichi Someya.
* Use SOCK_NONBLOCK in socket() and accept4() instead of a separate fcntl()krw2016-03-221-20/+4
| | | | | | | | dance. Inspired by guenther@ ok millert@ yasuoka@