summaryrefslogtreecommitdiff
path: root/usr.sbin/npppd
AgeCommit message (Collapse)Author
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
2015-11-09Remove -h from the command line options.YASUOKA Masahiko
diff from Benjamin Baier
2015-10-11Simplify and lock down priv_open():Philip Guenther
* kill the 'mode' argument * fail if passed any flags other than O_ACCMODE OR O_NONBLOCK * paranoia: mask O_CREAT when calling open() with only two arguments * instead of using ioctl(FIONBIO) after the fact, pass O_NONBLOCK to priv_open() "good start" deraadt@ ok yasuoka@
2015-10-11YYSTYPE.number is int64_t, so format with <inttypes.h>'s PRId64Philip Guenther
ok yasuoka@
2015-09-21typo in documentation.Igor Sobrado
2015-09-13Set the index of the interface in handroller link_addr(3) like code.Martin Pieuchot
This is now necessary on OpenBSD because our routing interface no longer use ifunit() to find the corresponding interface. ok yasuoka@, dlg@
2015-08-20stdlib.h is in scope; do not cast malloc/calloc/realloc*Theo de Raadt
2015-07-23Make npppd use libradius(3). Remove radius+ files.YASUOKA Masahiko
2015-07-20Add size and NULL checks in debugutil.cYASUOKA Masahiko
Poined out by Yuuichi Someya at IIJ.
2015-07-20Pass the errcode when disconnecting L2TP call.YASUOKA Masahiko
From Yuuichi Someya at IIJ.
2015-07-20Remove old route to the tunnel interface when the interface's address isYASUOKA Masahiko
changed. From Yuuichi Someya at IIJ.
2015-07-20Add missing initializations in privsep.cYASUOKA Masahiko
From Yuuichi Someya at IIJ.
2015-06-25Fixed a use-after-free. When handing the L2TP Proxy-LCP, a timer was usedYASUOKA Masahiko
to open LCP. If the PPP session is terminated before the timer fires, the timer had been fired with the freed context. Stop using the timer to open LCP.
2015-06-25Reset the LCP option state for dialin-proxy only if re-negotiation isYASUOKA Masahiko
enabled.
2015-06-24tweak previous;Jason McIntyre
2015-06-24Fix npppd to terminate all PPP sessions properly even in case theYASUOKA Masahiko
sending window for L2TP control is full when the control is terminating (by a L2TP keepalive failure or other reasons). In that case, if the L2TP peer didn't respond at all, npppd had kept some PPP sessions forever.
2015-06-24Use the return value of event_loop() properly. Also abort(3) ifYASUOKA Masahiko
event_loop() returns abnormally which is unexpected. diff from Yuuichi Someya
2015-06-24Improve and fix typo in the comment.YASUOKA Masahiko
2015-06-24Mention that pipex should be also configured by sysctl.YASUOKA Masahiko
2015-06-23Fix npppd to check the size of received GRE packets properly.YASUOKA Masahiko
2015-06-23Fix the problem when npppd receives a zero length 1701/udp packet. IfYASUOKA Masahiko
it receives such packets when the errno is not EAGAIN or EINTR, it had closed all L2TP sessions and stoppped the L2TP server. Also fix the receiving GRE packet since it potentially has the same problem.
2015-06-10Typos: equalivant, fucntion, libary.Miod Vallat
2015-05-12Fix an uninitialized variable access when pptp.hostname is configured.YASUOKA Masahiko
2015-05-12Move the logit() prototype so parse.y will see it.Jonathan Gray
ok yasuoka@
2015-04-04gcc 2.x is deadPhilip Guenther
ok millert@
2015-02-17Fix garbage in error message; ok yasuoka@Miod Vallat