History log of /openbsd-current/usr.sbin/npppd/npppd/npppd_iface.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.15 01-Feb-2021 mvs

Remove dummy TUNSIFMODE ioctl(2) call from pppac(4) and npppd(8). Since
OpenBSD 6.7 npppd(8) can't work over tun(4).

ok yasuoka@


# 1.14 02-Jan-2021 mvs

Remove PIPEX{S,G}MODE ioctl(2) commands. This time they are pretty dummy
and were kept only for backward compatibility reasons.

ok mpi@ yasuoka@


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.13 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.


# 1.12 11-Oct-2015 guenther

Simplify and lock down priv_open():
* 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@


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

Remove old route to the tunnel interface when the interface's address is
changed.

From Yuuichi Someya at IIJ.


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

move to <limits.h> universe
ok yasuoka


# 1.9 25-Oct-2014 lteo

Remove unnecessary netinet/in_systm.h include.

ok millert@


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.8 13-Feb-2013 yasuoka

Pipex did panic when the 0 length mppe is given by ioctl. Return
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


# 1.7 18-Sep-2012 yasuoka

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.6 08-May-2012 yasuoka

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

ok mcbride henning


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE
# 1.5 02-Apr-2011 dlg

add support for pppx interfaces instead of tun interfaces.

pppx mode will create a pppx interface for each ppp session in the kernel,
and will rely on the kernel to handle the routing rather than doing it
itself. as a bonus it will configure the interfaces description with the
username of the person connecting (which makes systat if pretty).

ok claudio@ yasuoka@ as part of a larger diff
from jonathan matthew
weve been running all this in production for a month now..


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.4 02-Jul-2010 yasuoka

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


# 1.3 02-Jul-2010 yasuoka

fix mistakes that have been created by my porting to OpenBSD.
- delete a change only for debug
- add missing 'else'


# 1.2 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.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@.


# 1.14 02-Jan-2021 mvs

Remove PIPEX{S,G}MODE ioctl(2) commands. This time they are pretty dummy
and were kept only for backward compatibility reasons.

ok mpi@ yasuoka@


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.13 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.


# 1.12 11-Oct-2015 guenther

Simplify and lock down priv_open():
* 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@


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

Remove old route to the tunnel interface when the interface's address is
changed.

From Yuuichi Someya at IIJ.


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

move to <limits.h> universe
ok yasuoka


# 1.9 25-Oct-2014 lteo

Remove unnecessary netinet/in_systm.h include.

ok millert@


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.8 13-Feb-2013 yasuoka

Pipex did panic when the 0 length mppe is given by ioctl. Return
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


# 1.7 18-Sep-2012 yasuoka

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.6 08-May-2012 yasuoka

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

ok mcbride henning


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE
# 1.5 02-Apr-2011 dlg

add support for pppx interfaces instead of tun interfaces.

pppx mode will create a pppx interface for each ppp session in the kernel,
and will rely on the kernel to handle the routing rather than doing it
itself. as a bonus it will configure the interfaces description with the
username of the person connecting (which makes systat if pretty).

ok claudio@ yasuoka@ as part of a larger diff
from jonathan matthew
weve been running all this in production for a month now..


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.4 02-Jul-2010 yasuoka

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


# 1.3 02-Jul-2010 yasuoka

fix mistakes that have been created by my porting to OpenBSD.
- delete a change only for debug
- add missing 'else'


# 1.2 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.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.13 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.


# 1.12 11-Oct-2015 guenther

Simplify and lock down priv_open():
* 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@


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

Remove old route to the tunnel interface when the interface's address is
changed.

From Yuuichi Someya at IIJ.


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

move to <limits.h> universe
ok yasuoka


# 1.9 25-Oct-2014 lteo

Remove unnecessary netinet/in_systm.h include.

ok millert@


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.8 13-Feb-2013 yasuoka

Pipex did panic when the 0 length mppe is given by ioctl. Return
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


# 1.7 18-Sep-2012 yasuoka

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.6 08-May-2012 yasuoka

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

ok mcbride henning


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE
# 1.5 02-Apr-2011 dlg

add support for pppx interfaces instead of tun interfaces.

pppx mode will create a pppx interface for each ppp session in the kernel,
and will rely on the kernel to handle the routing rather than doing it
itself. as a bonus it will configure the interfaces description with the
username of the person connecting (which makes systat if pretty).

ok claudio@ yasuoka@ as part of a larger diff
from jonathan matthew
weve been running all this in production for a month now..


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.4 02-Jul-2010 yasuoka

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


# 1.3 02-Jul-2010 yasuoka

fix mistakes that have been created by my porting to OpenBSD.
- delete a change only for debug
- add missing 'else'


# 1.2 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.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@.