summaryrefslogtreecommitdiff
path: root/usr.sbin/npppd/pptp
AgeCommit message (Collapse)Author
2021-03-29spellingsYASUOKA Masahiko
suggested by jsg
2021-03-10Fix "phone number" spelling.Patrick Wildt
ok yasuoka@
2021-03-05Fix some heap over-read in logging in PPTP protocol handler.YASUOKA Masahiko
2019-05-10Delete superfluous #includes of <ifaddrs.h>, <net/if_dl.h>, and <net/if_enc.h>Philip Guenther
ok krw@, jsg@
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-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@
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-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-05-12Fix an uninitialized variable access when pptp.hostname is configured.YASUOKA Masahiko
2015-01-19move to <limits.h> universeTheo de Raadt
ok yasuoka
2014-10-25Remove unnecessary netinet/in_systm.h include.Lawrence Teo
ok millert@
2014-07-10Tweak accept pacing in pptp. Add handling when accept_add() fails andYASUOKA Masahiko
add logging when accept() fails in EMFILE or ENFILE.
2014-05-30Use calloc instead of malloc and memset.YASUOKA Masahiko
from Benjamin Baier
2014-03-22Now tunnel can have multiple listen addresses.YASUOKA Masahiko
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
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-06Turn an error into a warning to be able to start l2tp tunnels even ifGiovanni Bechis
gre is not allowed. 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@
2012-11-13Add accept.c from ldpd and use it to handle file descriptor exhaustionYASUOKA Masahiko
in accept() case. "go for it" deraadt
2012-09-18New configuration syntax for npppd(8). `npppd.conf' will be based onYASUOKA Masahiko
parse.y and `npppd-users' will be based on getcap(3). Add man pages. feedback from giovanni
2012-05-08Trivial changes from the upstream(IIJ).YASUOKA Masahiko
- 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
2012-05-08Fix comments and styles. Delete unused variables and labels.YASUOKA Masahiko
No binary changes. ok mcbride henning
2012-01-18Replace npppdctl(8) by new npppctl(8). npppctl was written fromYASUOKA Masahiko
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
2012-01-18Fix compiler warnings and some styles.YASUOKA Masahiko
ok sebastia sthen
2011-10-15Added "provision for rewound PPP frames" that allows receivingYASUOKA Masahiko
reorder packets to pass to the upper layer without reorder. It will improve performance (throughput or loss rate) for PPTP or L2TP(/IPesc) on networks that latency is unstable such as mobile network. As our test environment (bandwidth: 6Mbps, latency: 50ms for 97% of traffic and 52ms for rest of traffic), throughput has changed from 0.76MB to 2.17MB on file upload by PPTP connected Windows Vista ftp.exe. Developed by UMEZAWA Takeshi at IIJ. ok jmatthew@ tested jmatthew@ and myself.
2011-03-16use timerclear macro. while here, fix spelling.Okan Demirmen
ok yasuoka@
2011-01-20- tyop, recieve -> receiveJasper Lievisse Adriaanse
ok sthen@
2010-09-27IP_PIPEX mistakenly was applied to the 1723/tcp socket. Apply the optionYASUOKA Masahiko
to the gre socket.
2010-09-24Add support pipex for L2TP call and L2TP on IPv6.YASUOKA Masahiko
- pipex requires unique session-id in protocol, so session-id generation algorithm has been changed. - change to fit the new PIPEX ioctl. ok dlg@
2010-07-02add $OpenBSD$ and remove trailing space. no functional change.YASUOKA Masahiko
2010-07-01Translate Japanese comments or labels into English. Translation wasYASUOKA Masahiko
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.
2010-01-31privilege separation of npppd.YASUOKA Masahiko
- Drop privilege after daemon initializing. - Some system calls that requires root privileges were replaced to wrapper functions that communicate with a separated privileged process via IPC. And the privileged process checks whether the operations are acceptable.
2010-01-13cleanup npppd code. delete IIJ local ifdef switches and fix warnings.YASUOKA Masahiko
ok @dlg
2010-01-11Initial import npppd(8). npppd is a new PPP daemon that handles manyYASUOKA Masahiko
ppp sessions as a server. It supports L2TP, PPTP and PPPoE as tunneling. ok mcbride@ dlg@ deraadt@ reyk@.