summaryrefslogtreecommitdiff
path: root/usr.sbin/npppd
AgeCommit message (Collapse)Author
2014-03-22Now tunnel can have multiple listen addresses.YASUOKA Masahiko
2014-03-22Reimplement control part of npppd(8) with imsg. Also add "monitor"YASUOKA Masahiko
command for npppctl(8) to monitor PPP session start/stop events.
2014-03-22Add an assert not to call radius_cancel_request() on callback. If theYASUOKA Masahiko
assert is disabled by compile time, the function returns immediatly on that condition.
2014-03-22Fixed a bug in npppd_auth_get_user() which caused segmentation faults afterYASUOKA Masahiko
a user authentication is succeeded in case the authentication config option has `username-suffix' and 'strip-atmark-realm' is yes. Delete `username-prefix' from authentication setting. This config option was mis-leading and useless.
2014-03-22In RADIUS accounting, realm_framed_ip_address was mistakenly used forYASUOKA Masahiko
Framed-IP-Address. acct_framed_ip_address should be used for that purpose.
2014-03-22Don't stop listening 1723/tcp when accept() is failed.YASUOKA Masahiko
2014-03-22Stop output "Stopped" log message of the tunnel protocols.YASUOKA Masahiko
2014-03-16lint is dead (long live the lint!), so stop using it as a cpp conditionalPhilip Guenther
(namespace pollution!) or talking about its opinion on code. ok krw@
2013-11-25use u_char for buffers in yylex, for ctype callsSebastian Benoit
found by millert@, ok deraadt@
2013-09-20Don't assume the length of chap challenges.YASUOKA Masahiko
2013-09-20Add length check for Proxy LCP and Authentication AVPs.YASUOKA Masahiko
2013-09-13fix some gcc warningsYASUOKA Masahiko
2013-09-11some npppd.conf(5) should be npppd(8).YASUOKA Masahiko
2013-08-26replace rand(3)/random(3) calls with secure arc4random*()Christian Weisgerber
npppd ok yasuoka@ ok millert@
2013-08-24Extraneous local variable with useless increment applied.Mike Larkin
found by Maxime Villard
2013-08-12Clarify what "mru" config option does.YASUOKA Masahiko
input and ok giovanni jmc
2013-06-03Stop doing pipex ioctl if no tunnel interface is configured.YASUOKA Masahiko
2013-04-26fix typo in comment; OK yasuoka@Gleydson Soares
2013-04-20Don't use random() because it's not safe. Use arc4random() instead ofYASUOKA Masahiko
it. Suggested by deraadt.
2013-04-20PPPoE server was broken since last configuration rework. CallingYASUOKA Masahiko
pppoed_init() was accidentally deleted. Revert it in npppd_init() and rearrange l2tpd_init() and pptpd_init() to the same place. ok todd
2013-04-16Fix some AVPs of SCCRP to comply RFC 2661.YASUOKA Masahiko
- Firmware revision and vendor name AVP are not mandatory. - Hostname AVP must have 1 octect at least.
2013-04-16Fixed `max-session' and `user-max-session'. They has been broken by theYASUOKA Masahiko
configuration reworking.
2013-04-16Existing authentication realms are removed mistakenly whenYASUOKA Masahiko
the configuration is reloaded.
2013-04-16Configuration option `strip-nt-domain' and `strip-atmark-realm' didn'tYASUOKA Masahiko
work since the parser mistakenly treated them as `eap-capable' option. Pointed out by markus
2013-04-16pppoed didn't work since it has been broken after the lastYASUOKA Masahiko
configuration parser change. pointed out by todd.
2013-04-06Turn an error into a warning to be able to start l2tp tunnels even ifGiovanni Bechis
gre is not allowed. ok yasuoka@
2013-03-19typo: icpp/ipcp; from Renaud AllardStuart Henderson
2013-03-14Install npppd.conf with perms 0640, there could be the radius config on this ↵Giovanni Bechis
file ok yasuoka@
2013-03-14Remove some faith-related #ifdef'd code that was only used for old IIJMartin Pieuchot
products and never enabled in our tree. ok yasuoka@
2013-03-11handle ECONNABORTED errors from accept(). In many code blocks they can beTheo de Raadt
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories...
2013-03-11do not start npppd if a pptp tunnel is configured but the gre protocol is notGiovanni Bechis
enabled. ok yasuoka@
2013-02-13Pipex did panic when the 0 length mppe is given by ioctl. ReturnYASUOKA Masahiko
EINVAL instead of panic. Also npppd called ioctl with the invalid argument because of the bugs introduced by the config parser change commit. Fixed those bugs and make sure not to use 0 length keys for MPPE. reported by csszep at gmail and giovanni ok giovanni
2013-02-08Fix memory leak in privsep.c. Free the memories which were allocated byYASUOKA Masahiko
getcap(3).
2013-02-08add mention about 'mppe' configuration option which is missing.YASUOKA Masahiko
pointed out by csszep at gmail.com
2013-02-08Because of the getcap(3) limitation, colon(':') can not be used forYASUOKA Masahiko
password or username in npppd.conf. Add this in the BUGS section. pointed out by and ok giovanni
2013-02-08Listening on IPv6 address is not supported for pptp tunnel. DocumentYASUOKA Masahiko
this to the man page and refuse it by the config parser.
2013-02-06remove unused constant definitionGiovanni Bechis
ok yasuoka@
2013-02-06remove duplicated CPPFLAGS definitionGiovanni Bechis
ok yasuoka@
2013-01-31port numbers for radius servers were not configured correctly.YASUOKA Masahiko
pointed out by mxb and Robert Blacquiere
2013-01-31Deleting ip address of tun inteface was failed. This was caused byYASUOKA Masahiko
passing wrong inteface name to ioctl(). pointed out by csszep at gmail.com
2013-01-29Add pppx.4 and enable links to it.YASUOKA Masahiko
ok dlg@
2013-01-07Remove inline from ppp_output() function to fix building with LLVM.Brad Smith
ok yasuoka@ millert@
2012-12-19Remove extra semicolon in "if (...);" which caused an incorrect flag toStuart Henderson
be set in _this->keylenbits. Found by scanning the tree using coccinelle. ok yasuoka
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2012-11-28Including ../../Makefile.inc was loop when npppd/obj is not a symbolic link.YASUOKA Masahiko
Delete Makefile.inc and define BINDIR at npppd/Makefile directly.
2012-11-13Add accept.c from ldpd and use it to handle file descriptor exhaustionYASUOKA Masahiko
in accept() case. "go for it" deraadt
2012-11-13Constify arguments to sendto_nat_t and add missingYASUOKA Masahiko
#include "recvfromto.h" to l2tp_ctrl.c. no binary changes.
2012-09-28framed-ip-address and framed-ip-netmask were not working.YASUOKA Masahiko
pointed out by Andrew Ngo.
2012-09-22gcc2 doesn't like unnamed fields. make this compile on vax again.Marc Espie
"looks right" deraadt@
2012-09-22various fixes; ok yasuokaJason McIntyre