OpenBSD CVS

CVS log for src/sys/net/if_sppp.h


[BACK] Up to [local] / src / sys / net

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.30 / (download) - annotate - [select for diffs], Wed Nov 17 18:00:24 2021 UTC (2 years, 6 months ago) by bket
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, HEAD
Changes since 1.29: +10 -3 lines
Diff to previous 1.29 (colored)

Display DNS information from sppp(4) in ifconfig(8)

Behaviour is similar to that of umb(4).

OK kn@

Revision 1.29 / (download) - annotate - [select for diffs], Wed Nov 10 15:04:26 2021 UTC (2 years, 7 months ago) by bket
Branch: MAIN
Changes since 1.28: +3 -1 lines
Diff to previous 1.28 (colored)

sppp(4) - support PPP IPCP extensions for DNS

RFC 1877 extends the family of network control protocols for
establishing and configuring the IPCP over PPP, defining the negotiation
of primary and secondary DNS addresses. After negotiation,
rtm_proposal() is used to send out DNS updates.

Feedback from claudio@ and kn@.

OK claudio@, kn@

Revision 1.28 / (download) - annotate - [select for diffs], Wed Mar 10 10:21:48 2021 UTC (3 years, 3 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

spelling

ok gnezdo@ semarie@ mpi@

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jun 24 21:36:53 2019 UTC (4 years, 11 months ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

Use timeout_add_sec(9)

Re-challenge timeouts are made up of single scalar factors which are
multiplied with the time unit lcp.timeout to compute the timeout period.

Simply reduce that unit of 1 * hz [ticks] to 1 [s] and use the appropiate
API.

OK mpi

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jan 24 10:08:30 2017 UTC (7 years, 4 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored)

A space here, a space there. Soon we're talking real whitespace
rectification.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jun 14 20:44:43 2016 UTC (7 years, 11 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.24: +1 -2 lines
Diff to previous 1.24 (colored)

Don't hardcode vlan/queue priority for pppoe packets; inherit it from the
new "llprio" setting on the pppoe(4) interface instead.

Tested by Daniel Gillen and myself, ok mikeb

Revision 1.24 / (download) - annotate - [select for diffs], Mon May 30 23:30:11 2016 UTC (8 years ago) by sthen
Branch: MAIN
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

Set pppoe(4) control frames to high (NC, "network control")
priority.  This is translated into an 802.1p priority tag when
sent over a vlan interface, reducing the risk of them being
crowded out by data packets on a busy link.

Some users have problems with ISPs that place specific
requirements on vlan priority (typically the packet header
value must be '0', relating to priority 1).  This diff
doesn't fix that yet, but gives a single place to patch
to change tags on control packets without affecting
normal vlan priority operation on other interfaces.

ok mikeb.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Nov 11 01:49:17 2015 UTC (8 years, 7 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

replace the ifqueue used for the pp_cpq with an mbuf_queue.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Nov 2 11:19:30 2015 UTC (8 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored)

sppp_pick is unused, it can go away.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Sep 30 09:45:20 2015 UTC (8 years, 8 months ago) by sthen
Branch: MAIN
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

remove cisco hdlc code from sppp(4), it's no longer used - pppoe(4) only uses
ppp framing, and the drivers for sync serial cards have been removed so the
sppp code is now only used to support pppoe(4).  ok mpi@, kill it chris@

Revision 1.20 / (download) - annotate - [select for diffs], Wed Nov 20 08:21:33 2013 UTC (10 years, 6 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.19: +14 -3 lines
Diff to previous 1.19 (colored)

Convert sppp(4) to taskq; ok mikeb@ mpi@

Revision 1.19 / (download) - annotate - [select for diffs], Thu Nov 14 16:52:33 2013 UTC (10 years, 6 months ago) by stsp
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Improvements for address assignment and related issues in IPv6CP.

Move address assignment to process context. This uses a workq at
present, conversion to taskq is on my todo list (discussed with dlg).
Instead of rummaging around in sockaddr_in6 structs, use the proper
netinet6 APIs to configure addresses.
Deal with IFID collisions instead of ignoring them. The whole point of
IPv6CP is to avoid IFID collisions. Use arc4random() during IFID generation.
Assign destination address to /128 point-to-point links.

tested by me and sthen with pppoe(4)
ok sthen

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jul 10 07:46:10 2013 UTC (10 years, 11 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.17: +54 -52 lines
Diff to previous 1.17 (colored)

Change the structure used in the SPPPIOSDEFS and SPPPIOGDEFS ioctls
to only include what is really needed.  In particular stop including
a "struct ifnet" and move kernel-only definition into the proper #if
dance.

While here remove the unused spppinfo() from ifconfig.

ok guenther@, sthen@, mikeb@

Revision 1.17 / (download) - annotate - [select for diffs], Sun Jan 29 10:21:54 2012 UTC (12 years, 4 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.16: +1 -2 lines
Diff to previous 1.16 (colored)

Remove fastq from struct sppp. Missed when I committed if_spppsubr.c r1.96,
pointed out / ok mikeb@

Revision 1.16 / (download) - annotate - [select for diffs], Sat Nov 12 12:32:59 2011 UTC (12 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Fix a comment
From Abel Abraham Camarillo Ojeda, reminded by Brad.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Feb 16 20:03:36 2009 UTC (15 years, 3 months ago) by canacar
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.14: +22 -8 lines
Diff to previous 1.14 (colored)

Allow username and password to be up to 255 characters in length.
Tested by many, thanks.
Put it in" deraadt@

Revision 1.14 / (download) - annotate - [select for diffs], Fri Feb 6 22:07:04 2009 UTC (15 years, 4 months ago) by grange
Branch: MAIN
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

Remove bogus casts of integer constants SPPPIO[GS]DEFS to caddr_t
and fix typo while here.

ok canacar@

Revision 1.13 / (download) - annotate - [select for diffs], Tue Dec 4 19:49:52 2007 UTC (16 years, 6 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)

1500 is a 'magic number' in the protocol that all implementations
must be able to handle as MRU but while testing pppoe(4) against a pppoe(8)
server I figured out that pppoe(8) insists on a MRU 1492. Because of this
we allow the offered MRU to be between PP_MIN_MRU and PP_MAX_MRU especially
because the MRU is not used at all as long as it is smaller then PP_MAX_MRU.
OK canacar@

Revision 1.12 / (download) - annotate - [select for diffs], Wed Sep 5 21:01:49 2007 UTC (16 years, 9 months ago) by canacar
Branch: MAIN
Changes since 1.11: +7 -3 lines
Diff to previous 1.11 (colored)

IPv6 support for sppp layer, based on NetBSD version.
ok claudio@

Revision 1.11 / (download) - annotate - [select for diffs], Tue Apr 17 21:36:58 2007 UTC (17 years, 1 month ago) by mpf
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.10: +6 -1 lines
Diff to previous 1.10 (colored)

Add support for setting the address of the ppp peer.
Use the proper in_ifscrub() / in_ifinit() calls for
address changes to generate routing messages.
The correct way to set the default route now
needs the -ifp option, e.g.
 route add default -ifp pppoe0 0.0.0.1
Since the route is set right after bringing
the interface up, it still works w/out -ifp though.

Changes mostly from NetBSD.

Tested by Matthias Bauer and bluhm@
OK canacar@

Revision 1.10 / (download) - annotate - [select for diffs], Fri Feb 24 20:34:34 2006 UTC (18 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Another gem from the the-world-runs-on-i386 departement. Using u_long in
a packet format causes some troubles on 64bit archs. This fixes a sppp(4)
panic I got on alpha and makes cisco HDLC mode actually work. More cleanup
needs to be done post 3.9. OK brad@ looks good canacar@

Revision 1.9 / (download) - annotate - [select for diffs], Wed Mar 23 00:26:06 2005 UTC (19 years, 2 months ago) by canacar
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (colored)

Merge some sppp improvements from NetBSD:
1. better timeout and keepalive handling
2. fix some memory leaks on error paths.
3. use arc4random instead of random
4. always send keepalives in cHDLC mode, from claudio@
Tested by Greg Mortensen (san) and jmc@ (pppoe), ok claudio@

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jan 8 20:35:59 2005 UTC (19 years, 5 months ago) by canacar
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Unslack and increase AUTHNAMELEN, since some ISP's prefer long usernames.
Reported long time ago by Marc Huber and more recently by Steffen Schutz.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Nov 28 23:39:45 2004 UTC (19 years, 6 months ago) by canacar
Branch: MAIN
Changes since 1.6: +6 -3 lines
Diff to previous 1.6 (colored)

In kernel pppoe client, a simple IPv4 only implementation.
Initial porting from NetBSD by David Berghoff.
Modified/simplified to match our sppp implementation.
ok deraadt@

Revision 1.1.4.4 / (download) - annotate - [select for diffs], Fri Mar 28 00:41:28 2003 UTC (21 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.1.4.3: +18 -5 lines
Diff to previous 1.1.4.3 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync the SMP branch with 3.3

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Tue Oct 29 00:36:45 2002 UTC (21 years, 7 months ago) by art
Branch: UBC
Changes since 1.5: +19 -6 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

sync to -current

Revision 1.6 / (download) - annotate - [select for diffs], Thu Sep 26 20:43:54 2002 UTC (21 years, 8 months ago) by chris
Branch: MAIN
CVS Tags: UBC_SYNC_B, UBC_SYNC_A, SMP_SYNC_B, SMP_SYNC_A, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.5: +19 -6 lines
Diff to previous 1.5 (colored)

BSD-style license from Serge Vakulenko <vak@cronyx.ru>

Revision 1.1.4.3 / (download) - annotate - [select for diffs], Wed Oct 31 03:29:02 2001 UTC (22 years, 7 months ago) by nate
Branch: SMP
Changes since 1.1.4.2: +1 -0 lines
Diff to previous 1.1.4.2 (colored) to branchpoint 1.1 (colored)

Sync the SMP branch to something just after 3.0

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jul 9 17:20:05 2001 UTC (22 years, 11 months ago) by fgsch
Branch: MAIN
CVS Tags: UBC_BASE, OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0
Branch point for: UBC
Changes since 1.4: +1 -0 lines
Diff to previous 1.4 (colored)

More lame OpenBSD tags.

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Wed Jul 4 10:54:06 2001 UTC (22 years, 11 months ago) by niklas
Branch: SMP
Changes since 1.1.4.1: +6 -18 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored)

Merge in -current from two days ago in the SMP branch.
As usual with merges, they do not indicate progress, so do not hold
your breath for working SMP, and do not mail me and ask about the
state of it.  It has not changed.  There is work ongoing, but very, very
slowly.  The commit is done in parts as to not lock up the tree in too
big chunks at a time.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jun 9 06:16:38 2001 UTC (23 years ago) by angelos
Branch: MAIN
Changes since 1.3: +6 -18 lines
Diff to previous 1.3 (colored)

By popular demand, protect from multiple inclusion, and fix to use the
same naming style.

Revision 1.1.4.1 / (download) - annotate - [select for diffs], Mon May 14 22:40:01 2001 UTC (23 years, 1 month ago) by niklas
Branch: SMP
Changes since 1.1: +7 -7 lines
Diff to previous 1.1 (colored)

merge in approximately 2.9 into SMP branch

Revision 1.3 / (download) - annotate - [select for diffs], Thu Mar 22 01:42:35 2001 UTC (23 years, 2 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.2: +7 -0 lines
Diff to previous 1.2 (colored)

new timeouts

Revision 1.2 / (download) - annotate - [select for diffs], Wed Apr 26 18:39:00 2000 UTC (24 years, 1 month ago) by chris
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.1: +0 -7 lines
Diff to previous 1.1 (colored)

SIOCSIFGENERIC is now in sys/sockio.h

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jul 1 23:10:40 1999 UTC (24 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: kame_19991208, SMP_BASE, OPENBSD_2_6_BASE, OPENBSD_2_6
Branch point for: SMP

lmc driver; ported by chris@dqc.org

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.