summaryrefslogtreecommitdiff
path: root/usr.sbin/npppd
AgeCommit message (Collapse)Author
2020-04-23replace examples of "Ic arg Ic arg" with "Ic arg arg" and stop the spread;Jason McIntyre
2020-04-01Put the interface down if the kernel fails to enable pipex.Martin Pieuchot
This is necessary to not silently continue if pppx_ioctl() returns an error. Found out by and diff from Vitaliy Makkoveev. ok yasuoka@
2020-01-23do not Xr both pppx and pppac in SEE ALSO, since they are the same page;Jason McIntyre
2020-01-23use pppac(4) instead of tun(4)David Gwynne
2020-01-23allow npppd to use pppac(4) (once i wire it up)David Gwynne
2019-09-02More correction of section 3 layout. directory->opendir, fts->fts_open,Theo de Raadt
getcap->cgetent. pwcache->user_from_uid. And then repair references. ok jmc
2019-05-10Delete superfluous #includes of <ifaddrs.h>, <net/if_dl.h>, and <net/if_enc.h>Philip Guenther
ok krw@, jsg@
2019-04-08macro fix;Jason McIntyre
2019-03-10fix some cases of spaces before full stops, where none were neccessary;Jason McIntyre
2019-02-27remove unused includesdenis
OK yasuoka@
2019-02-22errror -> error in log messages; from alessandro galloJason McIntyre
2019-02-20fix attribute namedenis
2019-02-13(unsigned) means (unsigned int) which on ptrdiff_t or size_t or otherTheo de Raadt
larger types really is a range reduction... Almost any cast to (unsigned) is a bug. ok millert tb benno
2019-01-22PF_ROUTE -> AF_ROUTE in the scattered sock()/setsockopt() callsKenneth R Westerback
where the "wrong" #define was used. ok dlg@
2018-12-30Delete unnecessary <libgen.h> #includesPhilip Guenther
ok deraadt@
2018-11-01- odd condition/test in PF lexerAlexandr Nedvedicky
(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@
2018-07-25Fix the prefix length of the IP address in the error message which showsYASUOKA Masahiko
failure of assigning requested IP address on IPCP, it was mistakenly "-1" on little endians. Found by IIJ.
2018-07-09No need to mention which memory allocation entry point failed (malloc,Kenneth R Westerback
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@
2018-07-08Be consistent in warn() and log_warn() usage whenKenneth R Westerback
running out of memory. Next step, be correct *and* consistent. ok dennis@ tb@ benno@ schwarze@
2018-06-18remove the SECTIONS header, since a one line DESCRIPTION is a bit silly;Jason McIntyre
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
2018-03-16Consistently spell "IPsec" in comments and debug outputs.Martin Pieuchot
From Raf Czlonka, ok sthen@
2018-01-05Remove useless <sys/socketvar.h> includes.Martin Pieuchot
ok kettenis@, visa@, claudio@, deraadt@
2017-10-06The problem when npppd receives a zero length 1701/udp packet seemed toYASUOKA Masahiko
be fixed at 1.16, but it wasn't fixed. Fix it again.
2017-08-12add a new option to set limits on max-sessions each IPCP.Kazuya Goda
It can set limits on different max-sessions if there're using several protocols such as PPPoE and L2TP/IPsec. ok yasuoka@
2017-08-11add a new option to set limits on user-max-sessions each AUTHENTICATION.Kazuya Goda
It can set limits on different user-max-sessions if there're using several protocols such as PPPoE and L2TP/IPsec. ok yasuoka@
2017-08-11display MRU each sessions in npppctl session commandKazuya Goda
ok yasuoka@
2017-07-13man pages with pseudo synopses which list filenames end up creatingJason McIntyre
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;
2017-07-03no need to generate y.tab.h if nothing uses it, set YFLAGS to nothingMarc Espie
instead of CLEANFILES += y.tab.h okay millert@
2017-05-30Remove never used ifdefs, define FATAL macro properly and define functionYASUOKA Masahiko
parameters in modern way.
2017-05-30Stop using __P macro.YASUOKA Masahiko
2017-04-19Switch base tools from /dev/bpf0 to /dev/bpf. Now that /dev/bpf has beenMartin Natano
around for two releases, it should be safe to do so. ok bluhm deraadt sthen tb yasuoka
2017-04-18Warn if pipex(4) is disabled but the configuration uses it.YASUOKA Masahiko
2017-04-18Delete #include lines which are unnecessary.YASUOKA Masahiko
2017-03-21From a syslog perspective it does not make sense to log fatal andAlexander Bluhm
warn with the same severity. Switch log_warn() to LOG_ERR and keep fatal() at LOG_CRIT. OK reyk@ florian@
2017-02-22The default for the strip-nt-domain attribute is "yes", so fix upPatrick Wildt
the manpage to not tell lies. ok yasuoka@
2017-02-22Delete lines which are misleading and unneeded.YASUOKA Masahiko
spotted patrick
2017-02-21Stop using "DEBUG" make variable for extra debugs.YASUOKA Masahiko
2017-01-09Replace hand-rolled for(;;) traversal of ctl_conns TAILQ withKenneth R Westerback
TAILQ_FOREACH(). No intentional functional change. ok reyk@
2016-09-21Remove the use of cast. It is unnecessary and potentially problematic.YASUOKA Masahiko
input semarie ok deraadt
2016-09-07Fix about the default value of pptp-hostname. It's an empty string.YASUOKA Masahiko
Reported by Joe Holden.
2016-05-28Replace the /dev/bpf* open loop with a plain open("/dev/bpf0", ...).Martin Natano
ok deraadt jca
2016-05-26Improve and clarify a few bits; with input from jmc@, ok yasuoka, jmcMike Belopuhov
2016-04-16Change last non-/gnu/ fcntl(x, F_GETFL, 0) strays to fcntl(x, F_GETFL).Kenneth R Westerback
No functional change. ok millert@
2016-04-05Move more fcntl(,F_GETFL,0) -> fcntl(,F_GETFL).Kenneth R Westerback
No functional change. ok guenther@
2016-03-22Log the reply message from RADIUS server when the authenticaion fails.YASUOKA Masahiko
Diff from Yuuichi Someya
2016-03-22Cleanup control sockets in control_cleanup().YASUOKA Masahiko
Diff from Yuuichi Someya.
2016-03-22Use SOCK_NONBLOCK in socket() and accept4() instead of a separate fcntl()Kenneth R Westerback
dance. Inspired by guenther@ ok millert@ yasuoka@
2016-03-21Instead of creating a socket with socket() or accept() and thenPhilip Guenther
setting the O_NONBLOCK flag on it with fcntl(F_SETFL) afterwards, just pass SOCK_NONBLOCK to socket() or accept4() and get it right to begin with. ok millert@ krw@ beck@ deraadt@ jca@
2016-03-16More "(<blah> *)0" -> NULL, avoiding any stdarg functions.Kenneth R Westerback
Feedback millert@ kettenis@
2016-03-16Fix a typo in comment. Diff from Yuuichi Someya.YASUOKA Masahiko