History log of /openbsd/usr.sbin/npppd/npppd/ppp.c (Results 1 – 25 of 32)
Revision Date Author Comments
# a168fdd3 01-Jul-2024 yasuoka <yasuoka@openbsd.org>

Modify IPCP to use {D,NB}NS servers from RADIUS. Also move the
radius related functions from ppp.c to npppd_radius.c.


# ad8a6471 26-Feb-2024 yasuoka <yasuoka@openbsd.org>

Add NAS-Identifier "npppd" for RADIUS requests. Also send Accouting-On
when RADIUS accounting is configured.


# f5c2ff87 29-Mar-2021 yasuoka <yasuoka@openbsd.org>

spellings
suggested by jsg


# 780112bc 01-Apr-2020 mpi <mpi@openbsd.org>

Put the interface down if the kernel fails to enable pipex.

This is necessary to not silently continue if pppx_ioctl() returns an
error.

Found out by and diff from Vitaliy Makkoveev.

ok yasuoka@


# bcb159da 27-Feb-2019 denis <denis@openbsd.org>

remove unused includes

OK yasuoka@


# d50b169a 11-Aug-2017 goda <goda@openbsd.org>

add a new option to set limits on user-max-sessions each AUTHENTICATION.

It can set limits on different user-max-sessions if there're using several
protocols such as PPPoE and L2TP/IPsec.

ok yasuok

add a new option to set limits on user-max-sessions each AUTHENTICATION.

It can set limits on different user-max-sessions if there're using several
protocols such as PPPoE and L2TP/IPsec.

ok yasuoka@

show more ...


# 90023272 05-Dec-2015 mmcc <mmcc@openbsd.org>

strings.h -> string.h to prevent an implicit declaration. Also remove a
bunch of NULL-checks before free().


# 579578a4 23-Jul-2015 yasuoka <yasuoka@openbsd.org>

Make npppd use libradius(3). Remove radius+ files.


# dbad4650 19-Jan-2015 deraadt <deraadt@openbsd.org>

move to <limits.h> universe
ok yasuoka


# 83f4f914 20-Nov-2014 krw <krw@openbsd.org>

Yet more #include de-duplication.

ok deraadt@ tedu@


# d077d9fd 22-Jul-2014 guenther <guenther@openbsd.org>

Correct the initializer for tunnconf_default_pptp

ok yasuoka@


# 1f03f1b3 30-May-2014 yasuoka <yasuoka@openbsd.org>

Use calloc instead of malloc and memset.

from Benjamin Baier


# 99d3c860 22-Mar-2014 yasuoka <yasuoka@openbsd.org>

Now tunnel can have multiple listen addresses.


# 34682664 22-Mar-2014 yasuoka <yasuoka@openbsd.org>

Reimplement control part of npppd(8) with imsg. Also add "monitor"
command for npppctl(8) to monitor PPP session start/stop events.


# de0a2dd6 13-Feb-2013 yasuoka <yasuoka@openbsd.org>

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 chang

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

show more ...


# 565dd868 07-Jan-2013 brad <brad@openbsd.org>

Remove inline from ppp_output() function to fix building with LLVM.

ok yasuoka@ millert@


# 821f7c56 18-Sep-2012 yasuoka <yasuoka@openbsd.org>

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


# f6b8cd1c 07-Sep-2012 yasuoka <yasuoka@openbsd.org>

fix typo and comment

from umezawa at iij


# 9a200ddf 08-May-2012 yasuoka <yasuoka@openbsd.org>

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_ctr

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

show more ...


# 7a7bab9d 08-May-2012 yasuoka <yasuoka@openbsd.org>

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

ok mcbride henning


# 3b5b2d97 23-Jan-2012 yasuoka <yasuoka@openbsd.org>

The ingress filter of pipex and npppd become configurable and disabled
by default. After this change we need to add

ppp.ingress_filter: true

to npppd.conf if it is needed.

ok sthen


# 363e4d4b 18-Jan-2012 yasuoka <yasuoka@openbsd.org>

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 npp

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

show more ...


# c46ae403 18-Jan-2012 yasuoka <yasuoka@openbsd.org>

Fix compiler warnings and some styles.

ok sebastia sthen


# e405d423 15-Oct-2011 yasuoka <yasuoka@openbsd.org>

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(/IPe

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.

show more ...


# 8daf7599 06-Jul-2011 yasuoka <yasuoka@openbsd.org>

Add RADIUS accounting support and some authentication related changes:

- Add functions to radius+.c that are required to implement RADIUS
accounting.
- Send RADIUS Account-Start and Account-Stop m

Add RADIUS accounting support and some authentication related changes:

- Add functions to radius+.c that are required to implement RADIUS
accounting.
- Send RADIUS Account-Start and Account-Stop messages with attributes that
are defined by RFC 2866, 2868, 2869.
- If any authentication realm is deleted from the configuration, npppd may
exit by segmentation fault.
- Delete radius_common.c, radius_common.h and eap.c because they are not
used.
- Retransmission and failover are reimplemented.
- Cleanup

show more ...


12