summaryrefslogtreecommitdiff
path: root/usr.sbin/npppd
AgeCommit message (Collapse)Author
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
2015-01-22Replace some obvious '$OpenBSD' and '$OpenBSD:' typos with '$OpenBSD$'.Kenneth R Westerback
Pointed out by dickman@. ok sthen@ phessler@
2015-01-19move to <limits.h> universeTheo de Raadt
ok yasuoka
2015-01-08Count number of sessions correctly.YASUOKA Masahiko
2014-11-27Fix typos in comments.Tobias Stoeckmann
ok jmc, yasuoka
2014-11-20Yet more #include de-duplication.Kenneth R Westerback
ok deraadt@ tedu@
2014-11-20Don't allow embedded nul characters in strings.Jonathan Gray
Fixes a pfctl crash with an anchor name containing an embedded nul found with the afl fuzzer. pfctl parse.y patch from and ok deraadt@
2014-11-20remove nt and lanman functions which aren't used. ok reyk yasuokaTed Unangst
2014-11-18Nuke more obvious #include duplications.Kenneth R Westerback
ok deraadt@ millert@ tedu@
2014-11-16Convert the logic in yyerror(). Instead of creating a temporaryAlexander Bluhm
format string, create a temporary message. OK doug@
2014-11-14Add gcc printf format attributes to yyerror() in parse.y files.Doug Hogan
No yyerror() calls needed to be changed. ok bluhm@
2014-11-13Fix a condition which selects log level for errors on routing socket,YASUOKA Masahiko
since it was logically reverse.
2014-11-13When the pool address is changed and there is a PPP session which usesYASUOKA Masahiko
the pool to be deleted, then the PPP session is to be deleted. But the internal radish tree had kept the deleted session. This causes "use-after-free", and it had made npppd crash.
2014-10-25Remove unnecessary netinet/in_systm.h include.Lawrence Teo
ok millert@
2014-10-18Use reallocarray()Theo de Raadt
ok doug
2014-08-23close fd when fdopen failsdoug
ok yasuoka@