summaryrefslogtreecommitdiffstats
path: root/usr.sbin/npppd/common (follow)
Commit message (Collapse)AuthorAgeFilesLines
* spellingsyasuoka2021-03-293-8/+8
| | | | suggested by jsg
* getifaddrs() can return entries where ifa_addr is NULL. Check for thisbenno2020-12-301-4/+5
| | | | | before accessing anything in ifa_addr. ok claudio@
* Remove useless <sys/socketvar.h> includes.mpi2018-01-051-2/+1
| | | | ok kettenis@, visa@, claudio@, deraadt@
* Remove never used ifdefs, define FATAL macro properly and define functionyasuoka2017-05-302-150/+30
| | | | parameters in modern way.
* Stop using __P macro.yasuoka2017-05-305-53/+45
|
* Remove the use of cast. It is unnecessary and potentially problematic.yasuoka2016-09-211-3/+3
| | | | | input semarie ok deraadt
* More "(<blah> *)0" -> NULL, avoiding any stdarg functions.krw2016-03-161-2/+2
| | | | Feedback millert@ kettenis@
* s/failes/failed/gmmcc2015-12-171-6/+6
|
* Add missing $OpenBSD$ tags.tb2015-12-1717-3/+20
|
* Replace arc4random() % i by arc4random_uniform(i) to avoid modulo bias.tb2015-12-171-1/+2
| | | | | | Part of a diff by Matthew Martin, reviewed by deraadt@ and me. ok deraadt@
* strings.h -> string.h to prevent an implicit declaration. Also remove ammcc2015-12-053-10/+6
| | | | bunch of NULL-checks before free().
* stdlib.h is in scope; do not cast malloc/calloc/realloc*deraadt2015-08-202-6/+5
|
* Add size and NULL checks in debugutil.cyasuoka2015-07-201-5/+14
| | | | Poined out by Yuuichi Someya at IIJ.
* gcc 2.x is deadguenther2015-04-041-4/+0
| | | | ok millert@
* move to <limits.h> universederaadt2015-01-193-13/+10
| | | | ok yasuoka
* Nuke more obvious #include duplications.krw2014-11-181-2/+1
| | | | ok deraadt@ millert@ tedu@
* Use calloc instead of malloc and memset.yasuoka2014-05-301-7/+4
| | | | from Benjamin Baier
* Reimplement control part of npppd(8) with imsg. Also add "monitor"yasuoka2014-03-221-0/+1
| | | | command for npppctl(8) to monitor PPP session start/stop events.
* lint is dead (long live the lint!), so stop using it as a cpp conditionalguenther2014-03-161-4/+0
| | | | | | (namespace pollution!) or talking about its opinion on code. ok krw@
* Don't use random() because it's not safe. Use arc4random() instead ofyasuoka2013-04-202-3/+1
| | | | it. Suggested by deraadt.
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-051-7/+0
| | | | ok guenther millert kettenis
* Constify arguments to sendto_nat_t and add missingyasuoka2012-11-132-2/+2
| | | | #include "recvfromto.h" to l2tp_ctrl.c. no binary changes.
* remove files that became unused by new configuration syntax.yasuoka2012-09-198-1997/+0
|
* add IP_IPSECFLOWINFO option to sendmsg() and recvmsg(), so npppd(4)markus2012-07-162-1/+78
| | | | | | | can use this to select the IPsec tunnel for sending L2TP packets. this fixes Windows (always binding to 1701) and Android clients (negotiating wildcard flows); feedback mpf@ and yasuoka@; ok henning@ and yasuoka@; ok jmc@ for the manpage
* Delete rtev* that was to work around routing socket overflows.yasuoka2012-05-084-943/+0
| | | | This was forgotten on the prior commit.
* Trivial changes from the upstream(IIJ).yasuoka2012-05-082-13/+7
| | | | | | | | | | | - fix styles, compile errors in some ifdef condition and compiler warnings. - delete rtev* that was to work around routing socket overflows. - delete is_ctrl argument from l2tp_ctrl_send_packet(). It's not used. - tweak returning the exit status. - use IPV6_IPSEC_POLICY for IPv6 socket. (though npppd cannot set up a ipsec policy to the socket yet.) ok mcbride henning
* Fix comments and styles. Delete unused variables and labels.yasuoka2012-05-0810-18/+19
| | | | | | No binary changes. ok mcbride henning
* Correct the spelling of "transferred" and "transferring"guenther2012-02-241-3/+3
| | | | from Tobias Ulmer (tobiasu at tmux.org); ok jmc@, krw@
* Replace npppdctl(8) by new npppctl(8). npppctl was written fromyasuoka2012-01-183-0/+83
| | | | | | | | | | | | | scratch, it uses parser.c derived from ikectl(8) to have OpenBSD's fashion. This includes related changes listed below: - changed npppd control IPC heavyly. - support IPv6 as tunnel source address. - deleted support changing the configuration of npppd_ctl on running. Because it is not so needed but it requires privilege operations. - refactors. man page helps from jmc. tested by sebastia. ok deraadt sebastia sthen
* Improved npppd privileged separations:yasuoka2011-07-081-0/+6
| | | | | | | | | | | | | | | - Changed finalizing way to the privileged process. In old way, the privileged process could not aware abnormal exit of the process in jail. Then the processes in jail remained as zombies. Created a pipe to monitor the privileged process, the privileged process can exit in peace by using the pipe. - npppd will exit abnormally when the privileged process exits abnormally. - PF_KEY socket requires privileges. - Return correct "errno" to the jail in priv_open(). - Cleanup. ok hsuenaga@
* Add support pipex for L2TP call and L2TP on IPv6.yasuoka2010-09-241-7/+1
| | | | | | | - pipex requires unique session-id in protocol, so session-id generation algorithm has been changed. - change to fit the new PIPEX ioctl. ok dlg@
* Add the same license text to these files as the rest of npppd.jsg2010-09-234-5/+102
| | | | ok yasuoka@
* remove support for talking to the zebra routing socket whichjsg2010-09-233-465/+0
| | | | | | was not enabled, we use a kernel routing socket for such things. ok yasuoka@ claudio@
* add $OpenBSD$ and remove trailing space. no functional change.yasuoka2010-07-0216-107/+107
|
* Translate Japanese comments or labels into English. Translation wasyasuoka2010-07-0119-266/+270
| | | | | | | | | | | done by IIJ people (MATSUI Yoshihiro, SAITOH Masanobu, Tomoyuki Sahara), yuo@ and myself. This diff also includes - delete part of useless comments, correct spelling. - add man page of npppdctl. There is no functional change.
* Initial import npppd(8). npppd is a new PPP daemon that handles manyyasuoka2010-01-1138-0/+8148
ppp sessions as a server. It supports L2TP, PPTP and PPPoE as tunneling. ok mcbride@ dlg@ deraadt@ reyk@.