summaryrefslogtreecommitdiff
path: root/usr.sbin/npppd
AgeCommit message (Collapse)Author
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
2016-03-16Transition to "Req-Sent" had been missing when RTA in "Opened". This causedYASUOKA Masahiko
a timer event leak. Diff from Yuuichi Someya.
2016-03-08Fix: "authconf.users_file_path" is a char[] but is checked as a char*.YASUOKA Masahiko
Diff from Mathieu Papineau (via Claer)
2016-03-08Remove __cplusplus include guard.YASUOKA Masahiko
Diff from Tiago Silva
2016-02-02Remove setproctitle() for the parent process. Because rc.d(8) uses processStuart Henderson
titles (including flags) to distinguish between daemons, this makes it possible to manage multiple copies of a daemon using the normal infrastructure by symlinking rc.d scripts to a new name. ok jung@ ajacoutot@, smtpd ok gilles@
2015-12-17s/failes/failed/gmmcc
2015-12-17Replace 'arc4random() % (2^k - 1)' by 'arc4random() & (2^k - 1)' totb
avoid modulo bias. Part of a diff by Matthew Martin, reviewed by deraadt@ and me. ok deraadt@
2015-12-17Add missing $OpenBSD$ tags.tb
2015-12-17Replace arc4random() % i by arc4random_uniform(i) to avoid modulo bias.tb
Part of a diff by Matthew Martin, reviewed by deraadt@ and me. ok deraadt@
2015-12-05strings.h -> string.h to prevent an implicit declaration. Also remove ammcc
bunch of NULL-checks before free().
2015-12-05Pass the pppx_hdr when sending packets through the pppx device and use theYASUOKA Masahiko
ppp_id in the pppx_hdr to find the associated ppp when receiving the packets from the device.
2015-12-05EAGAIN handling for imsg_read. OK henning@ benno@Claudio Jeker
2015-12-04Fix typo in #include line.YASUOKA Masahiko
2015-12-04Remove files which had been unused.YASUOKA Masahiko
2015-12-02comment typommcc