History log of /openbsd-current/usr.sbin/npppd/l2tp/l2tp_call.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.20 29-Mar-2021 yasuoka

spellings
suggested by jsg


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.19 05-Dec-2015 yasuoka

Pass the pppx_hdr when sending packets through the pppx device and use the
ppp_id in the pppx_hdr to find the associated ppp when receiving the packets
from the device.


Revision tags: OPENBSD_5_8_BASE
# 1.18 20-Jul-2015 yasuoka

Pass the errcode when disconnecting L2TP call.

From Yuuichi Someya at IIJ.


# 1.17 24-Jun-2015 yasuoka

Fix npppd to terminate all PPP sessions properly even in case the
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.


Revision tags: OPENBSD_5_7_BASE
# 1.16 19-Jan-2015 deraadt

move to <limits.h> universe
ok yasuoka


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.15 20-Sep-2013 yasuoka

Add length check for Proxy LCP and Authentication AVPs.


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.14 18-Sep-2012 yasuoka

branches: 1.14.2; 1.14.4;
New configuration syntax for npppd(8). `npppd.conf' will be based on
parse.y and `npppd-users' will be based on getcap(3). Add man pages.

feedback from giovanni


Revision tags: OPENBSD_5_2_BASE
# 1.13 13-Jul-2012 yasuoka

branches: 1.13.2;
npppd used wrong AVPs as a `calling number' because `break' in switch
case was missing.

ok claudio henning


# 1.12 08-May-2012 yasuoka

Trivial changes from the upstream(IIJ).
- 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


# 1.11 08-May-2012 yasuoka

Fix comments and styles. Delete unused variables and labels.
No binary changes.

ok mcbride henning


Revision tags: OPENBSD_5_1_BASE
# 1.10 23-Jan-2012 yasuoka

Add handling of `rx connect speed' avp to avoid the bug of xl2tpd.

Reported and tested by sebastia@
ok sthen sebastia giovanni


# 1.9 18-Jan-2012 yasuoka

Replace npppdctl(8) by new npppctl(8). npppctl was written from
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


# 1.8 15-Oct-2011 yasuoka

Added "provision for rewound PPP frames" that allows receiving
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.


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.7 20-Jan-2011 jasper

- tyop, recieve -> receive

ok sthen@


# 1.6 24-Sep-2010 yasuoka

Add support pipex for L2TP call and L2TP on IPv6.
- pipex requires unique session-id in protocol, so session-id
generation algorithm has been changed.
- change to fit the new PIPEX ioctl.
ok dlg@


Revision tags: OPENBSD_4_8_BASE
# 1.5 02-Jul-2010 yasuoka

add $OpenBSD$ and remove trailing space. no functional change.


# 1.4 01-Jul-2010 yasuoka

Translate Japanese comments or labels into English. Translation was
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.


Revision tags: OPENBSD_4_7_BASE
# 1.3 27-Jan-2010 yasuoka

Fixed 2 off-by-one problems.
(found by parfait, reported by jsg@)


# 1.2 13-Jan-2010 yasuoka

cleanup npppd code. delete IIJ local ifdef switches and fix warnings.
ok @dlg


# 1.1 11-Jan-2010 yasuoka

Initial import npppd(8). npppd is a new PPP daemon that handles many
ppp sessions as a server. It supports L2TP, PPTP and PPPoE as
tunneling.

ok mcbride@ dlg@ deraadt@ reyk@.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.19 05-Dec-2015 yasuoka

Pass the pppx_hdr when sending packets through the pppx device and use the
ppp_id in the pppx_hdr to find the associated ppp when receiving the packets
from the device.


Revision tags: OPENBSD_5_8_BASE
# 1.18 20-Jul-2015 yasuoka

Pass the errcode when disconnecting L2TP call.

From Yuuichi Someya at IIJ.


# 1.17 24-Jun-2015 yasuoka

Fix npppd to terminate all PPP sessions properly even in case the
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.


Revision tags: OPENBSD_5_7_BASE
# 1.16 19-Jan-2015 deraadt

move to <limits.h> universe
ok yasuoka


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.15 20-Sep-2013 yasuoka

Add length check for Proxy LCP and Authentication AVPs.


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.14 18-Sep-2012 yasuoka

branches: 1.14.2; 1.14.4;
New configuration syntax for npppd(8). `npppd.conf' will be based on
parse.y and `npppd-users' will be based on getcap(3). Add man pages.

feedback from giovanni


Revision tags: OPENBSD_5_2_BASE
# 1.13 13-Jul-2012 yasuoka

branches: 1.13.2;
npppd used wrong AVPs as a `calling number' because `break' in switch
case was missing.

ok claudio henning


# 1.12 08-May-2012 yasuoka

Trivial changes from the upstream(IIJ).
- 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


# 1.11 08-May-2012 yasuoka

Fix comments and styles. Delete unused variables and labels.
No binary changes.

ok mcbride henning


Revision tags: OPENBSD_5_1_BASE
# 1.10 23-Jan-2012 yasuoka

Add handling of `rx connect speed' avp to avoid the bug of xl2tpd.

Reported and tested by sebastia@
ok sthen sebastia giovanni


# 1.9 18-Jan-2012 yasuoka

Replace npppdctl(8) by new npppctl(8). npppctl was written from
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


# 1.8 15-Oct-2011 yasuoka

Added "provision for rewound PPP frames" that allows receiving
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.


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.7 20-Jan-2011 jasper

- tyop, recieve -> receive

ok sthen@


# 1.6 24-Sep-2010 yasuoka

Add support pipex for L2TP call and L2TP on IPv6.
- pipex requires unique session-id in protocol, so session-id
generation algorithm has been changed.
- change to fit the new PIPEX ioctl.
ok dlg@


Revision tags: OPENBSD_4_8_BASE
# 1.5 02-Jul-2010 yasuoka

add $OpenBSD$ and remove trailing space. no functional change.


# 1.4 01-Jul-2010 yasuoka

Translate Japanese comments or labels into English. Translation was
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.


Revision tags: OPENBSD_4_7_BASE
# 1.3 27-Jan-2010 yasuoka

Fixed 2 off-by-one problems.
(found by parfait, reported by jsg@)


# 1.2 13-Jan-2010 yasuoka

cleanup npppd code. delete IIJ local ifdef switches and fix warnings.
ok @dlg


# 1.1 11-Jan-2010 yasuoka

Initial import npppd(8). npppd is a new PPP daemon that handles many
ppp sessions as a server. It supports L2TP, PPTP and PPPoE as
tunneling.

ok mcbride@ dlg@ deraadt@ reyk@.