OpenBSD CVS

CVS log for src/sys/net/if_ppp.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.118 / (download) - annotate - [select for diffs], Wed Feb 28 16:08:34 2024 UTC (3 months ago) by denis
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.117: +47 -7 lines
Diff to previous 1.117 (colored)

Enable IPv6 AF for ppp(4)

OK claudio@

Revision 1.117 / (download) - annotate - [select for diffs], Fri Aug 21 22:59:27 2020 UTC (3 years, 9 months ago) by kn
Branch: MAIN
CVS Tags: 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, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.116: +1 -2 lines
Diff to previous 1.116 (colored)

Leave default ifq_maxlen handling to ifq_init()

Most clonable interface drivers (except bridge, enc, loop, pppx,
switch, trunk and vlan) initialise the send queue's length to IFQ_MAXLEN
during *_clone_create() even though ifq_init(), which is eventually called
through if_attach(), does the same.

Remove all early "ifq_set_maxlen(&ifq->if_snd, IFQ_MAXLEN);" lines to leave
it to ifq_init() and have clonable drivers a tad more in sync.

OK mvs

Revision 1.116 / (download) - annotate - [select for diffs], Fri Jul 10 13:26:42 2020 UTC (3 years, 10 months ago) by patrick
Branch: MAIN
Changes since 1.115: +3 -3 lines
Diff to previous 1.115 (colored)

Change users of IFQ_SET_MAXLEN() and IFQ_IS_EMPTY() to use the "new" API.

ok dlg@ tobhe@

Revision 1.115 / (download) - annotate - [select for diffs], Fri Jul 10 13:22:22 2020 UTC (3 years, 10 months ago) by patrick
Branch: MAIN
Changes since 1.114: +4 -4 lines
Diff to previous 1.114 (colored)

Change users of IFQ_DEQUEUE(), IFQ_ENQUEUE() and IFQ_LEN() to use the
"new" API.

ok dlg@ tobhe@

Revision 1.114 / (download) - annotate - [select for diffs], Wed Jun 24 22:03:42 2020 UTC (3 years, 11 months ago) by cheloha
Branch: MAIN
Changes since 1.113: +7 -7 lines
Diff to previous 1.113 (colored)

kernel: use gettime(9)/getuptime(9) in lieu of time_second(9)/time_uptime(9)

time_second(9) and time_uptime(9) are widely used in the kernel to
quickly get the system UTC or system uptime as a time_t.  However,
time_t is 64-bit everywhere, so it is not generally safe to use them
on 32-bit platforms: you have a split-read problem if your hardware
cannot perform atomic 64-bit reads.

This patch replaces time_second(9) with gettime(9), a safer successor
interface, throughout the kernel.  Similarly, time_uptime(9) is replaced
with getuptime(9).

There is a performance cost on 32-bit platforms in exchange for
eliminating the split-read problem: instead of two register reads you
now have a lockless read loop to pull the values from the timehands.
This is really not *too* bad in the grand scheme of things, but
compared to what we were doing before it is several times slower.

There is no performance cost on 64-bit (__LP64__) platforms.

With input from visa@, dlg@, and tedu@.

Several bugs squashed by visa@.

ok kettenis@

Revision 1.113 / (download) - annotate - [select for diffs], Wed May 20 06:44:30 2020 UTC (4 years ago) by mpi
Branch: MAIN
Changes since 1.112: +9 -9 lines
Diff to previous 1.112 (colored)

Use `if_bpf' directly instead of the non-initialized duplicated copy of it.

From Sergey Ryazanov.

Reviewed by Vitaliy Makkoveev, ok claudio@

Revision 1.112 / (download) - annotate - [select for diffs], Fri Nov 9 14:14:31 2018 UTC (5 years, 6 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.111: +3 -4 lines
Diff to previous 1.111 (colored)

M_LEADINGSPACE() and M_TRAILINGSPACE() are just wrappers for
m_leadingspace() and m_trailingspace(). Convert all callers to call
directly the functions and remove the defines.
OK krw@, mpi@

Revision 1.111 / (download) - annotate - [select for diffs], Mon Feb 19 08:59:52 2018 UTC (6 years, 3 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.110: +7 -7 lines
Diff to previous 1.110 (colored)

Remove almost unused `flags' argument of suser().

The account flag `ASU' will no longer be set but that makes suser()
mpsafe since it no longer mess with a per-process field.

No objection from millert@, ok tedu@, bluhm@

Revision 1.110 / (download) - annotate - [select for diffs], Tue Jan 9 15:24:24 2018 UTC (6 years, 4 months ago) by bluhm
Branch: MAIN
Changes since 1.109: +2 -5 lines
Diff to previous 1.109 (colored)

Creating a cloned interface could return ENOMEM due to temporary
memory shortage.  As it is invoked from a system call, it should
not fail and wait instead.
OK visa@ mpi@

Revision 1.109 / (download) - annotate - [select for diffs], Fri Aug 11 21:24:19 2017 UTC (6 years, 9 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.108: +11 -14 lines
Diff to previous 1.108 (colored)

Remove NET_LOCK()'s argument.

Tested by Hrvoje Popovski, ok bluhm@

Revision 1.108 / (download) - annotate - [select for diffs], Tue May 30 07:50:37 2017 UTC (7 years ago) by mpi
Branch: MAIN
Changes since 1.107: +3 -5 lines
Diff to previous 1.107 (colored)

Introduce ipv{4,6}_input(), two wrappers around IP queues.

This will help transitionning to an un-KERNEL_LOCK()ed IP
forwarding path.

Disucssed with bluhm@, ok claudio@

Revision 1.107 / (download) - annotate - [select for diffs], Sat May 27 18:39:17 2017 UTC (7 years ago) by mpi
Branch: MAIN
Changes since 1.106: +9 -6 lines
Diff to previous 1.106 (colored)

Protect the global list of softc with the NET_LOCK().

ok sashan@

Revision 1.106 / (download) - annotate - [select for diffs], Tue May 16 12:24:01 2017 UTC (7 years ago) by mpi
Branch: MAIN
Changes since 1.105: +2 -2 lines
Diff to previous 1.105 (colored)

Replace remaining splsoftassert(IPL_SOFTNET) by NET_ASSERT_LOCKED().

ok visa@

Revision 1.105 / (download) - annotate - [select for diffs], Wed Mar 8 11:35:34 2017 UTC (7 years, 2 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.104: +2 -2 lines
Diff to previous 1.104 (colored)

No need to clear IFF_UP after calling if_down().

Revision 1.104 / (download) - annotate - [select for diffs], Fri Mar 3 08:00:36 2017 UTC (7 years, 3 months ago) by mpi
Branch: MAIN
Changes since 1.103: +6 -22 lines
Diff to previous 1.103 (colored)

Remove non longer needed splsoftnet()/splx() dances.

Revision 1.103 / (download) - annotate - [select for diffs], Sun Jan 1 15:39:01 2017 UTC (7 years, 5 months ago) by mpi
Branch: MAIN
Changes since 1.102: +4 -3 lines
Diff to previous 1.102 (colored)

Grab the NET_LOCK() in pppdealloc(), prevent an assert reported by stsp@.

ok visa@, bluhm@

Revision 1.102 / (download) - annotate - [select for diffs], Wed Nov 16 14:23:10 2016 UTC (7 years, 6 months ago) by mpi
Branch: MAIN
Changes since 1.101: +2 -6 lines
Diff to previous 1.101 (colored)

Kill outdated comment talking about sofnet.

Revision 1.101 / (download) - annotate - [select for diffs], Thu Oct 6 19:09:08 2016 UTC (7 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.100: +3 -4 lines
Diff to previous 1.100 (colored)

Remove redundant comments that say a function must be called at
splsoftnet() if the function does a splsoftassert(IPL_SOFTNET)
anyway.

Revision 1.100 / (download) - annotate - [select for diffs], Wed Jun 22 19:44:26 2016 UTC (7 years, 11 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.99: +2 -3 lines
Diff to previous 1.99 (colored)

No modules thus no need for extra space for additional ppp compressions.

ok deraadt@ mikeb@

Revision 1.99 / (download) - annotate - [select for diffs], Mon May 23 15:22:44 2016 UTC (8 years ago) by tedu
Branch: MAIN
Changes since 1.98: +2 -2 lines
Diff to previous 1.98 (colored)

remove the function pointer from mbufs. this memory is shared with data
via unions, and we don't want to make it easy to control the target.
instead an integer index into an array of acceptable functions is used.
drivers using custom functions must register them to receive an index.
ok deraadt

Revision 1.98 / (download) - annotate - [select for diffs], Wed Apr 13 11:41:15 2016 UTC (8 years, 1 month ago) by mpi
Branch: MAIN
Changes since 1.97: +1 -2 lines
Diff to previous 1.97 (colored)

We're always ready!  So send IFQ_SET_READY() to the bitbucket.

Revision 1.97 / (download) - annotate - [select for diffs], Fri Nov 20 06:22:09 2015 UTC (8 years, 6 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.96: +2 -2 lines
Diff to previous 1.96 (colored)

correctly indent a line to make the intent clear
ok dlg@

Revision 1.96 / (download) - annotate - [select for diffs], Wed Nov 11 01:38:55 2015 UTC (8 years, 6 months ago) by dlg
Branch: MAIN
Changes since 1.95: +7 -7 lines
Diff to previous 1.95 (colored)

use time_uptime instead of time_second.

this avoids wall clock jumps skewing the idle times.

Revision 1.95 / (download) - annotate - [select for diffs], Fri Nov 6 07:07:19 2015 UTC (8 years, 6 months ago) by dlg
Branch: MAIN
Changes since 1.94: +11 -22 lines
Diff to previous 1.94 (colored)

replace sc_npqueue and sc_npqtail with a simple mbuf_list.

Revision 1.94 / (download) - annotate - [select for diffs], Thu Nov 5 10:53:54 2015 UTC (8 years, 6 months ago) by dlg
Branch: MAIN
Changes since 1.93: +1060 -1010 lines
Diff to previous 1.93 (colored)

apply some knf.

ok many
no objections from anyone

Revision 1.93 / (download) - annotate - [select for diffs], Wed Nov 4 01:54:14 2015 UTC (8 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.92: +2 -3 lines
Diff to previous 1.92 (colored)

use mq_purge to free a queue of mbufs.

Revision 1.92 / (download) - annotate - [select for diffs], Mon Nov 2 23:39:20 2015 UTC (8 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.91: +5 -52 lines
Diff to previous 1.91 (colored)

get rid of the "fastq", which is where this driver puts ip packets
with IPTOS_LOWDELAY set.

this complicates efforts to clean up the send queue, and is probably
better done by queues in pf than unconditionally in a single driver.

ok sthen@

Revision 1.91 / (download) - annotate - [select for diffs], Sun Oct 25 11:58:11 2015 UTC (8 years, 7 months ago) by mpi
Branch: MAIN
Changes since 1.90: +2 -2 lines
Diff to previous 1.90 (colored)

Introduce if_rtrequest() the successor of ifa_rtrequest().

L2 resolution depends on the protocol (encoded in the route entry) and
an ``ifp''.  Not having to care about an ``ifa'' makes our life easier
in our MP effort.  Fewer dependencies between data structures implies
fewer headaches.

Discussed with bluhm@, ok claudio@

Revision 1.90 / (download) - annotate - [select for diffs], Mon Oct 12 13:17:58 2015 UTC (8 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored)

the pattr argument to IFQ_ENQUEUE is unused, so let's get rid of it.

also the comment above IFQ_ENQUEUE that says the pattr argument is unused.

ok mpi@

Revision 1.89 / (download) - annotate - [select for diffs], Mon Oct 5 19:05:09 2015 UTC (8 years, 7 months ago) by uebayasi
Branch: MAIN
Changes since 1.88: +4 -8 lines
Diff to previous 1.88 (colored)

Revert if_oqdrops accounting changes done in kernel, per request from mpi@.

(Especially adding IF_DROP() after IFQ_ENQUEUE() was completely wrong because
IFQ_ENQUEUE() already does it.  Oops.)

After this revert, the situation becomes:

- if_snd.ifq_drops is incremented in either IFQ_ENQUEUE() or IF_DROP(), but
  it is not shown to userland, and

- if_data.ifi_oqdrops is shown to userland, but it is not incremented by
  anyone.

Revision 1.88 / (download) - annotate - [select for diffs], Mon Oct 5 15:57:27 2015 UTC (8 years, 7 months ago) by uebayasi
Branch: MAIN
Changes since 1.87: +9 -5 lines
Diff to previous 1.87 (colored)

Count IFQ_ENQUEUE() failure as output drop.

mpi@ prefers checking IFQ_ENQUEUE() error, and this matches that.

OK dlg@

Revision 1.87 / (download) - annotate - [select for diffs], Wed Jul 15 22:16:41 2015 UTC (8 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.86: +4 -5 lines
Diff to previous 1.86 (colored)

m_freem() can handle NULL, do not check for this condition beforehands.
ok stsp mpi

Revision 1.86 / (download) - annotate - [select for diffs], Wed Jul 8 07:21:50 2015 UTC (8 years, 10 months ago) by mpi
Branch: MAIN
Changes since 1.85: +2 -2 lines
Diff to previous 1.85 (colored)

MFREE(9) is dead, long live m_freem(9)!

ok bluhm@, claudio@, dlg@

Revision 1.85 / (download) - annotate - [select for diffs], Tue Jun 16 11:09:39 2015 UTC (8 years, 11 months ago) by mpi
Branch: MAIN
Changes since 1.84: +2 -2 lines
Diff to previous 1.84 (colored)

Store a unique ID, an interface index, rather than a pointer to the
receiving interface in the packet header of every mbuf.

The interface pointer should now be retrieved when necessary with
if_get().  If a NULL pointer is returned by if_get(), the interface
has probably been destroy/removed and the mbuf should be freed.

Such mechanism will simplify garbage collection of mbufs and limit
problems with dangling ifp pointers.

Tested by jmatthew@ and krw@, discussed with many.

ok mikeb@, bluhm@, dlg@

Revision 1.84 / (download) - annotate - [select for diffs], Wed Jun 3 00:50:09 2015 UTC (9 years ago) by dlg
Branch: MAIN
Changes since 1.83: +112 -51 lines
Diff to previous 1.83 (colored)

there's been a long standing issue in ppp on a tty/serial line where it allocates mbufs at IPL_SOFTTTY, which is above the IPL_NET the mbuf layer protects itself at.

recent improvements to diagnostics in pools and mbufs now panic
instead of letting these things silently corrupt.

this reworks the ppp handling in the tty layer so it has its own
private pool to allocate packet memory out of. these packets get
built and then queued for softnet to process. softnet dequeues the
packet and attaches it to mbufs as external storage before handing
it on to the rest of the stack.

this was reported on bugs@ and tested by both Walter Daugherity and
Martin van den Nieuwelaar
ok deraadt@ mpi@

Revision 1.83 / (download) - annotate - [select for diffs], Wed May 13 10:42:46 2015 UTC (9 years ago) by jsg
Branch: MAIN
Changes since 1.82: +2 -2 lines
Diff to previous 1.82 (colored)

test mbuf pointers against NULL not 0
ok krw@ miod@

Revision 1.82 / (download) - annotate - [select for diffs], Fri Apr 10 13:58:20 2015 UTC (9 years, 1 month ago) by dlg
Branch: MAIN
Changes since 1.81: +20 -25 lines
Diff to previous 1.81 (colored)

replace the use of ifqueues for most input queues serviced by netisr
with niqueues.

this change is so big because there's a lot of code that takes
pointers to different input queues (eg, ether_input picks between
ipv4, ipv6, pppoe, arp, and mpls input queues) and falls through
to code to enqueue packets against the pointer. if i changed only
one of the input queues id have to add sepearate code paths, one
for ifqueues and one for niqueues in each of these places

by flipping all these input queues at once i can keep the currently
common code common.

testing by mpi@ sthen@ and rafael zalamena
ok mpi@ sthen@ claudio@ henning@

Revision 1.81 / (download) - annotate - [select for diffs], Wed Mar 18 12:23:15 2015 UTC (9 years, 2 months ago) by dlg
Branch: MAIN
Changes since 1.80: +2 -3 lines
Diff to previous 1.80 (colored)

remove the congestion handling from struct ifqueue.

its only used for the ip and ip6 network stack input queues, so it
seems unfair that every instance of ifqueue has to carry a pointer
around for this specific use case.

this moves the congestion marker to a kernel global. if we detect
that we're congested, we assume the whole system is busy and punish
all input queues.

marking a system as congested is done by setting the global to the
current value of ticks. as the system moves away from that value,
it moves away from being congested until the comparison fails.

written at s2k15
ok henning@ beck@ bluhm@ claudio@

Revision 1.80 / (download) - annotate - [select for diffs], Fri Dec 19 17:14:39 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.79: +1 -13 lines
Diff to previous 1.79 (colored)

unifdef INET in net code as a precursor to removing the pretend option.
long live the one true internet.
ok henning mikeb

Revision 1.79 / (download) - annotate - [select for diffs], Sat Dec 13 21:05:33 2014 UTC (9 years, 5 months ago) by doug
Branch: MAIN
Changes since 1.78: +4 -3 lines
Diff to previous 1.78 (colored)

yet more mallocarray() changes.

ok tedu@ deraadt@

Revision 1.78 / (download) - annotate - [select for diffs], Fri Dec 5 15:50:04 2014 UTC (9 years, 5 months ago) by mpi
Branch: MAIN
Changes since 1.77: +2 -1 lines
Diff to previous 1.77 (colored)

Explicitly include <net/if_var.h> instead of pulling it in <net/if.h>.

ok mikeb@, krw@, bluhm@, tedu@

Revision 1.77 / (download) - annotate - [select for diffs], Thu Nov 20 14:51:42 2014 UTC (9 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.76: +1 -4 lines
Diff to previous 1.76 (colored)

Yet more #include de-duplication.

ok deraadt@ tedu@

Revision 1.76 / (download) - annotate - [select for diffs], Tue Jul 22 11:06:09 2014 UTC (9 years, 10 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.75: +1 -2 lines
Diff to previous 1.75 (colored)

Fewer <netinet/in_systm.h> !

Revision 1.75 / (download) - annotate - [select for diffs], Sat Jul 12 18:44:22 2014 UTC (9 years, 10 months ago) by tedu
Branch: MAIN
Changes since 1.74: +8 -8 lines
Diff to previous 1.74 (colored)

add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.

Revision 1.74 / (download) - annotate - [select for diffs], Mon May 5 11:44:33 2014 UTC (10 years, 1 month ago) by mpi
Branch: MAIN
Changes since 1.73: +2 -1 lines
Diff to previous 1.73 (colored)

Use a custom ifa_rtrequest function for point-to-point interfaces
instead of relying on hacks in nd6_rtrequest() to add a route to
loopback for each address configured on such interfaces.

While here document that abusing lo0 for local traffic is not safe
for interfaces in a non-default rdomain.

Tested by claudio@, jca@ and sthen@, ok sthen@

Revision 1.73 / (download) - annotate - [select for diffs], Sat Apr 19 12:08:10 2014 UTC (10 years, 1 month ago) by henning
Branch: MAIN
Changes since 1.72: +2 -10 lines
Diff to previous 1.72 (colored)

remove altq special casing.
big WTF regarding the fastq use there while verifying w/ claudio, but
that's for the ppp maintainer and unrelated

Revision 1.72 / (download) - annotate - [select for diffs], Mon Apr 14 09:06:42 2014 UTC (10 years, 1 month ago) by mpi
Branch: MAIN
Changes since 1.71: +5 -5 lines
Diff to previous 1.71 (colored)

"struct pkthdr" holds a routing table ID, not a routing domain one.
Avoid the confusion by using an appropriate name for the variable.

Note that since routing domain IDs are a subset of the set of routing
table IDs, the following idiom is correct:

	rtableid = rdomain

But to get the routing domain ID corresponding to a given routing table
ID, you must call rtable_l2(9).

claudio@ likes it, ok mikeb@

Revision 1.71 / (download) - annotate - [select for diffs], Wed Oct 23 15:12:42 2013 UTC (10 years, 7 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.70: +1 -2 lines
Diff to previous 1.70 (colored)

Remove the number of in_var.h inclusions by moving some functions and
global variables to in.h.

ok mikeb@, deraadt@

Revision 1.70 / (download) - annotate - [select for diffs], Sat Oct 19 14:46:30 2013 UTC (10 years, 7 months ago) by mpi
Branch: MAIN
Changes since 1.69: +1 -14 lines
Diff to previous 1.69 (colored)

Uniformize drivers doing nothing with their multicast filters to make
them ignore the SIOC{ADD,DEL}MULTI ioctls.

ok reyk@, claudio@

Revision 1.69 / (download) - annotate - [select for diffs], Thu Mar 28 16:55:27 2013 UTC (11 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.68: +1 -2 lines
Diff to previous 1.68 (colored)

do not include machine/cpu.h from a .c file; it is the responsibility of
.h files to pull it in, if needed
ok tedu

Revision 1.68 / (download) - annotate - [select for diffs], Tue Mar 26 13:19:26 2013 UTC (11 years, 2 months ago) by mpi
Branch: MAIN
Changes since 1.67: +5 -5 lines
Diff to previous 1.67 (colored)

Remove various read-only *maxlen variables and use IFQ_MAXLEN directly.

ok beck@, mikeb@

Revision 1.67 / (download) - annotate - [select for diffs], Thu Nov 29 22:56:08 2012 UTC (11 years, 6 months ago) by yasuoka
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.66: +2 -2 lines
Diff to previous 1.66 (colored)

Delete needless check for NULL.  From Michael W. Bombardieri.

no binary changes on i386.

Revision 1.66 / (download) - annotate - [select for diffs], Mon Nov 26 20:21:14 2012 UTC (11 years, 6 months ago) by markus
Branch: MAIN
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

do not steal mbuf types (leads to a panic if M_ZEROIZE gets set on
readonly mbufs) but use M_PROTO1 and M_LINK0 instead; ok mikeb@

Revision 1.65 / (download) - annotate - [select for diffs], Wed Mar 28 19:39:33 2012 UTC (12 years, 2 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

More p_pid to p_p->ps_pid updates. OK deraadt@, guenther@

Revision 1.64 / (download) - annotate - [select for diffs], Fri Jan 20 23:36:53 2012 UTC (12 years, 4 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.63: +21 -50 lines
Diff to previous 1.63 (colored)

Ansify ppp... function definitions.
from Michael W. Bombardieri

Revision 1.63 / (download) - annotate - [select for diffs], Thu Jul 7 20:42:56 2011 UTC (12 years, 10 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored)

use IF_LEN/IFQ_LEN to access and ifqueue's length field. ryan ok
with this nothing in the tree fiddles if ifqueue internals any more, of
course except if.c and if.h (and some altq)

Revision 1.62 / (download) - annotate - [select for diffs], Wed Jul 6 22:08:50 2011 UTC (12 years, 11 months ago) by henning
Branch: MAIN
Changes since 1.61: +1 -12 lines
Diff to previous 1.61 (colored)

ppp_ifstart unconditionally. depending on ALTQ for this is ridiculous.
one tree less in my forest (for a few seconds)! ok claudio

Revision 1.61 / (download) - annotate - [select for diffs], Wed Jul 6 02:42:28 2011 UTC (12 years, 11 months ago) by henning
Branch: MAIN
Changes since 1.60: +4 -4 lines
Diff to previous 1.60 (colored)

cosnistently use IFQ_SET_MAXLEN, surfaced in a discussion with + ok bluhm

Revision 1.60 / (download) - annotate - [select for diffs], Tue Jul 5 19:59:18 2011 UTC (12 years, 11 months ago) by henning
Branch: MAIN
Changes since 1.59: +4 -3 lines
Diff to previous 1.59 (colored)

use IFQ_IS_EMPTY instead of fiddling with ifqueue internals - 3 cases
why bother with APIs when you can muck with internals directly, it's obvious
there'll NEVER be changes, right. ok claudio ryan

Revision 1.59 / (download) - annotate - [select for diffs], Mon Jul 4 20:40:58 2011 UTC (12 years, 11 months ago) by dhill
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

use mtod.

no change in binary

"Sure" claudio@

Revision 1.58 / (download) - annotate - [select for diffs], Sun May 2 22:34:31 2010 UTC (14 years, 1 month ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

The line-discipline-specific ioctls return -1 to indicate that
the non-line-discipline-specific ioctl handler should be tried.
So changing these to return ENOTTY was wrong.

Noted on misc@ because of resulting pppd log spam (but it didn't break
anything serious): http://marc.info/?l=openbsd-misc&m=127258856501621&w=2

ok sthen@, miod@

Revision 1.57 / (download) - annotate - [select for diffs], Sat May 1 08:14:26 2010 UTC (14 years, 1 month ago) by mk
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

incomming -> incoming

The ones found in gnu/ left out by intention.

ok jmc

Revision 1.56 / (download) - annotate - [select for diffs], Sat Apr 24 08:00:12 2010 UTC (14 years, 1 month ago) by stsp
Branch: MAIN
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored)

Make if_ppp and if_sl ioctl handlers return ENOTTY for unsupported
ioctls, instead of -1 or EINVAL. ENOTTY audit suggested to me by uwe.
ok dlg tedu

Revision 1.55 / (download) - annotate - [select for diffs], Tue Nov 3 10:59:04 2009 UTC (14 years, 7 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.54: +4 -6 lines
Diff to previous 1.54 (colored)

rtables are stacked on rdomains (it is possible to have multiple routing
tables on top of a rdomain) but until now our code was a crazy mix so that
it was impossible to correctly use rtables in that case. Additionally pf(4)
only knows about rtables and not about rdomains. This is especially bad when
tracking (possibly conflicting) states in various domains.
This diff fixes all or most of these issues. It adds a lookup function to
get the rdomain id based on a rtable id. Makes pf understand rdomains and
allows pf to move packets between rdomains (it is similar to NAT).
Because pf states now track the rdomain id as well it is necessary to modify
the pfsync wire format. So old and new systems will not sync up.
A lot of help by dlg@, tested by sthen@, jsg@ and probably more
OK dlg@, mpf@, deraadt@

Revision 1.54 / (download) - annotate - [select for diffs], Wed Jul 8 15:01:50 2009 UTC (14 years, 10 months ago) by claudio
Branch: MAIN
Changes since 1.53: +14 -1 lines
Diff to previous 1.53 (colored)

Add the same routing domain assignments and checks into the not so used
protocols as it is currently in if_ethersubr.c. OK reyk@

Revision 1.53 / (download) - annotate - [select for diffs], Sun Mar 15 19:40:41 2009 UTC (15 years, 2 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.52: +4 -4 lines
Diff to previous 1.52 (colored)

Introduce splsoftassert(), similar to splassert() but for soft interrupt
levels. This will allow for platforms where soft interrupt levels do not
map to real hardware interrupt levels to have soft ipl values overlapping
hard ipl values without breaking spl asserts.

Revision 1.52 / (download) - annotate - [select for diffs], Wed Oct 22 23:04:45 2008 UTC (15 years, 7 months ago) by mpf
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

#if INET  => #ifdef INET
#if INET6 => #ifdef INET6

Revision 1.51 / (download) - annotate - [select for diffs], Wed Sep 17 20:10:37 2008 UTC (15 years, 8 months ago) by chl
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

remove dead stores and newly created unused variables.

fix potential use of uninitialized value in trunk_port_ioctl() function.

Found by LLVM/Clang Static Analyzer.

ok mpf@ henning@

Revision 1.50 / (download) - annotate - [select for diffs], Sat Sep 15 16:43:51 2007 UTC (16 years, 8 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.49: +10 -12 lines
Diff to previous 1.49 (colored)

malloc sweep:
-remove useless casts
-MALLOC/FREE -> malloc/free
-use M_ZERO where appropriate instead of seperate bzero
feedback & ok krw, hshoexer

Revision 1.49 / (download) - annotate - [select for diffs], Sat May 26 17:13:31 2007 UTC (17 years ago) by jason
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.48: +1 -2 lines
Diff to previous 1.48 (colored)

one extern seems to be better than 20 for ifqmaxlen; ok krw

Revision 1.48 / (download) - annotate - [select for diffs], Wed Apr 11 14:50:55 2007 UTC (17 years, 1 month ago) by claudio
Branch: MAIN
Changes since 1.47: +9 -15 lines
Diff to previous 1.47 (colored)

Don't use m_prepend() even if it is used mostly correct here.
m_prepend() should never be called directly, use M_PREPEND() instead.
Doing so simplifies the code. Tested by fkr@ and Paul de Weerd.
OK henning@

Revision 1.47 / (download) - annotate - [select for diffs], Thu Dec 28 20:06:11 2006 UTC (17 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored)

check if ifqueue has anything queued before doing the dance of
splnet/IF_DEQUEUE/splx; ok various people

Revision 1.46 / (download) - annotate - [select for diffs], Sat Mar 25 22:41:47 2006 UTC (18 years, 2 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

allow bpf(4) to ignore packets based on their direction (inbound or
outbound), using a new BIOCSDIRFILT ioctl;
guidance, feedback and ok canacar@

Revision 1.45 / (download) - annotate - [select for diffs], Sun Mar 12 00:18:07 2006 UTC (18 years, 2 months ago) by brad
Branch: MAIN
Changes since 1.44: +21 -1 lines
Diff to previous 1.44 (colored)

remove BPF filter support if the bpfilter device is removed.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Mar 4 22:40:15 2006 UTC (18 years, 3 months ago) by brad
Branch: MAIN
Changes since 1.43: +20 -20 lines
Diff to previous 1.43 (colored)

With the exception of two other small uncommited diffs this moves
the remainder of the network stack from splimp to splnet.

ok miod@

Revision 1.43 / (download) - annotate - [select for diffs], Wed Jan 4 06:04:42 2006 UTC (18 years, 5 months ago) by canacar
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.42: +1 -4 lines
Diff to previous 1.42 (colored)

Remove redundant calls to bpfdetach.
ok brad@

Revision 1.42 / (download) - annotate - [select for diffs], Mon Jun 21 23:50:36 2004 UTC (19 years, 11 months ago) by tholo
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.41: +5 -6 lines
Diff to previous 1.41 (colored)

First step towards more sane time handling in the kernel -- this changes
things such that code that only need a second-resolution uptime or wall
time, and used to get that from time.tv_secs or mono_time.tv_secs now get
this from separate time_t globals time_second and time_uptime.

ok art@ niklas@ nordin@

Revision 1.15.2.10 / (download) - annotate - [select for diffs], Sat Jun 5 23:11:23 2004 UTC (20 years ago) by niklas
Branch: SMP
Changes since 1.15.2.9: +2 -0 lines
Diff to previous 1.15.2.9 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

Merge with the trunk

Revision 1.41 / (download) - annotate - [select for diffs], Sun Apr 25 18:50:01 2004 UTC (20 years, 1 month ago) by henning
Branch: MAIN
CVS Tags: SMP_SYNC_B, SMP_SYNC_A
Changes since 1.40: +3 -1 lines
Diff to previous 1.40 (colored)

check for input queue congestion on those as well and call if_congestion when
needed; these  are slightly different so that we cannot use the new
IF_INPUT_ENQUEUE macro
deraadt ok

Revision 1.15.2.9 / (download) - annotate - [select for diffs], Thu Feb 19 10:57:21 2004 UTC (20 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.15.2.8: +86 -43 lines
Diff to previous 1.15.2.8 (colored) to branchpoint 1.15 (colored)

Merge of current from two weeks agointo the SMP branch

Revision 1.40 / (download) - annotate - [select for diffs], Tue Dec 16 20:33:25 2003 UTC (20 years, 5 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.39: +5 -4 lines
Diff to previous 1.39 (colored)

return error in ifc_destroy; ok deraadt, itojun, cedric, hshoexer

Revision 1.39 / (download) - annotate - [select for diffs], Sat Dec 13 10:01:16 2003 UTC (20 years, 5 months ago) by markus
Branch: MAIN
Changes since 1.38: +26 -4 lines
Diff to previous 1.38 (colored)

initial support ifconfig destroy; ok deraadt@

Revision 1.38 / (download) - annotate - [select for diffs], Wed Dec 10 07:22:42 2003 UTC (20 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.37: +7 -7 lines
Diff to previous 1.37 (colored)

de-register.  deraadt ok

Revision 1.37 / (download) - annotate - [select for diffs], Sun Dec 7 15:41:27 2003 UTC (20 years, 6 months ago) by markus
Branch: MAIN
Changes since 1.36: +51 -31 lines
Diff to previous 1.36 (colored)

support ifconfig create; ok deraadt

Revision 1.36 / (download) - annotate - [select for diffs], Fri Aug 15 20:32:19 2003 UTC (20 years, 9 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.35: +7 -7 lines
Diff to previous 1.35 (colored)

change arguments to suser.  suser now takes the process, and a flags
argument.  old cred only calls user suser_ucred.  this will allow future
work to more flexibly implement the idea of a root process.  looks like
something i saw in freebsd, but a little different.
use of suser_ucred vs suser in file system code should be looked at again,
for the moment semantics remain unchanged.
review and input from art@  testing and further review miod@

Revision 1.15.2.8 / (download) - annotate - [select for diffs], Sat Jun 7 11:06:06 2003 UTC (21 years ago) by ho
Branch: SMP
Changes since 1.15.2.7: +2 -6 lines
Diff to previous 1.15.2.7 (colored) to branchpoint 1.15 (colored)

Sync SMP branch to -current

Revision 1.35 / (download) - annotate - [select for diffs], Mon Jun 2 23:28:12 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.34: +2 -6 lines
Diff to previous 1.34 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.25.4.3 / (download) - annotate - [select for diffs], Mon May 19 22:30:41 2003 UTC (21 years ago) by tedu
Branch: UBC
Changes since 1.25.4.2: +5 -6 lines
Diff to previous 1.25.4.2 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored)

sync

Revision 1.15.2.7 / (download) - annotate - [select for diffs], Tue May 13 19:36:15 2003 UTC (21 years ago) by ho
Branch: SMP
Changes since 1.15.2.6: +2 -2 lines
Diff to previous 1.15.2.6 (colored) to branchpoint 1.15 (colored)

Sync the SMP branch to -current. This includes moving to ELF.

Revision 1.34 / (download) - annotate - [select for diffs], Sat May 3 21:15:11 2003 UTC (21 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: UBC_SYNC_A
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

string fixes; tedu ok

Revision 1.15.2.6 / (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.15.2.5: +75 -37 lines
Diff to previous 1.15.2.5 (colored) to branchpoint 1.15 (colored)

Sync the SMP branch with 3.3

Revision 1.33 / (download) - annotate - [select for diffs], Wed Feb 12 14:41:07 2003 UTC (21 years, 3 months ago) by jason
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored)

Remove commons; inspired by netbsd.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Jan 7 09:00:33 2003 UTC (21 years, 5 months ago) by kjc
Branch: MAIN
Changes since 1.31: +2 -5 lines
Diff to previous 1.31 (colored)

remove the altq classifier code which is replaced by pf and no longer used.

ok henning@, deraadt@

Revision 1.25.4.2 / (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.25.4.1: +73 -34 lines
Diff to previous 1.25.4.1 (colored) to branchpoint 1.25 (colored)

sync to -current

Revision 1.31 / (download) - annotate - [select for diffs], Mon Jul 1 19:31:34 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: UBC_SYNC_B, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.30: +37 -21 lines
Diff to previous 1.30 (colored)

license update of CMU parts.  due to communication with wcw+@andrew.cmu.edu,
pushed for by tygs@netcologne.de.  Apparently we also now known how to talk
to the lawyers there, if we were so mad.  Note that a few other copyright
issues in pppd still remain, so this does not close this story.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Jun 30 13:04:36 2002 UTC (21 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.29: +2 -1 lines
Diff to previous 1.29 (colored)

allocate sockaddr_dl for ifnet in if_alloc_sadl(), as we don't always know
the size of sockaddr_dl on if_attach() - for instance, see ether_ifattach().
from netbsd.  fgs ok

Revision 1.29 / (download) - annotate - [select for diffs], Wed Jun 19 08:48:57 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.28: +30 -14 lines
Diff to previous 1.28 (colored)

this was derived from UCB if_sl.  therefore, we can update the UCB if_sl
copyright contained in this.  a license problem remains, of course...

Revision 1.28 / (download) - annotate - [select for diffs], Tue Jun 11 04:27:40 2002 UTC (21 years, 11 months ago) by art
Branch: MAIN
Changes since 1.27: +8 -2 lines
Diff to previous 1.27 (colored)

sprinkle splasserts where function comments tell us to.

Revision 1.25.4.1 / (download) - annotate - [select for diffs], Tue Jun 11 03:30:45 2002 UTC (21 years, 11 months ago) by art
Branch: UBC
Changes since 1.25: +29 -7 lines
Diff to previous 1.25 (colored)

Sync UBC branch to -current

Revision 1.15.2.5 / (download) - annotate - [select for diffs], Thu Mar 28 14:57:37 2002 UTC (22 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.15.2.4: +7 -7 lines
Diff to previous 1.15.2.4 (colored) to branchpoint 1.15 (colored)

Merge in -current from roughly a week ago

Revision 1.27 / (download) - annotate - [select for diffs], Thu Mar 14 01:27:09 2002 UTC (22 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.26: +8 -8 lines
Diff to previous 1.26 (colored)

First round of __P removal in sys

Revision 1.15.2.4 / (download) - annotate - [select for diffs], Wed Mar 6 02:15:06 2002 UTC (22 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.15.2.3: +23 -1 lines
Diff to previous 1.15.2.3 (colored) to branchpoint 1.15 (colored)

Merge in trunk

Revision 1.26 / (download) - annotate - [select for diffs], Wed Feb 13 08:14:48 2002 UTC (22 years, 3 months ago) by kjc
Branch: MAIN
Changes since 1.25: +23 -1 lines
Diff to previous 1.25 (colored)

sync with KAME.

make altq actually work with kernl ppp.
add if_start for the altq case to kick transmission.
don't call ppp_restart() to prevent useless interrupt
loop under rate-limiting.

Revision 1.15.2.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.15.2.2: +8 -6 lines
Diff to previous 1.15.2.2 (colored) to branchpoint 1.15 (colored)

Sync the SMP branch to something just after 3.0

Revision 1.16.6.1 / (download) - annotate - [select for diffs], Sun Oct 14 20:44:49 2001 UTC (22 years, 7 months ago) by jason
Branch: OPENBSD_2_9
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

MFS (from millert):
Add some missing lengths checks when passing data from userland to
kernel.  From based on NetBSD patches.

Revision 1.16.4.1 / (download) - annotate - [select for diffs], Sun Sep 16 15:22:03 2001 UTC (22 years, 8 months ago) by miod
Branch: OPENBSD_2_8
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

MFC:
Add some missing lengths checks when passing data from userland to the
kernel. From NetBSD via millert@

Revision 1.25 / (download) - annotate - [select for diffs], Sun Sep 16 00:42:44 2001 UTC (22 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: UBC_BASE, OPENBSD_3_0_BASE, OPENBSD_3_0
Branch point for: UBC
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored)

Add some missing lengths checks when passing data from userland to
kernel.  From based on NetBSD patches.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Jul 20 22:47:15 2001 UTC (22 years, 10 months ago) by mickey
Branch: MAIN
Changes since 1.23: +6 -5 lines
Diff to previous 1.23 (colored)

use a variable, not it's default value from constant

Revision 1.15.2.2 / (download) - annotate - [select for diffs], Wed Jul 4 10:54:04 2001 UTC (22 years, 11 months ago) by niklas
Branch: SMP
Changes since 1.15.2.1: +49 -20 lines
Diff to previous 1.15.2.1 (colored) to branchpoint 1.15 (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.23 / (download) - annotate - [select for diffs], Wed Jun 27 06:07:42 2001 UTC (22 years, 11 months ago) by kjc
Branch: MAIN
Changes since 1.22: +47 -15 lines
Diff to previous 1.22 (colored)

introduce the ALTQ queue macros into sys/net files.
the new model removes direct references to the fields in ifp->if_snd,
and defines the following macros to manipulate ifp->if_snd.
  IFQ_ENQUEUE(ifq, m, pktattr, err)
  IFQ_DEQUEUE(ifq, m)
  IFQ_POLL(ifq, m)
  IFQ_PURGE(ifq)
  IFQ_IS_EMPTY(ifq)

the new model also enforces some rules regarding how to use these macros.
details are descrined in
http://www.csl.sony.co.jp/~kjc/software/altq-new-design.txt

Revision 1.22 / (download) - annotate - [select for diffs], Wed Jun 27 03:49:53 2001 UTC (22 years, 11 months ago) by angelos
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Get rid of M_COPY_* macros; either use M_MOVE_* or M_DUP_*, depending
on how macros should be treated. Code by fgsch@, ok by me and itojun@

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jun 25 01:50:17 2001 UTC (22 years, 11 months ago) by fgsch
Branch: MAIN
Changes since 1.20: +2 -5 lines
Diff to previous 1.20 (colored)

Move common post M_COPY_HDR manipulation to the macro itself; angelos@ ok.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jun 15 03:38:34 2001 UTC (22 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.19: +1 -3 lines
Diff to previous 1.19 (colored)

change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange.
follows BSD/OS practice and ucd-snmp code (FreeBSD does it for specific
interfaces only).

was: if_lastchange get updated on every packet transmission/receipt.
now: if_lastchange get updated when IFF_UP is changed.

Revision 1.19 / (download) - annotate - [select for diffs], Mon May 28 07:53:04 2001 UTC (23 years ago) by angelos
Branch: MAIN
Changes since 1.18: +6 -4 lines
Diff to previous 1.18 (colored)

Copy the packet header only if the original mbuf had a packet header
(just general paranoia).

Revision 1.18 / (download) - annotate - [select for diffs], Sun May 27 11:57:09 2001 UTC (23 years ago) by angelos
Branch: MAIN
Changes since 1.17: +4 -1 lines
Diff to previous 1.17 (colored)

Fixup tags on old mbuf chain head.

Revision 1.17 / (download) - annotate - [select for diffs], Wed May 16 12:53:34 2001 UTC (23 years ago) by ho
Branch: MAIN
Changes since 1.16: +1 -4 lines
Diff to previous 1.16 (colored)

No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Fri Mar 24 09:09:32 2000 UTC (24 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.15: +1 -8 lines
Diff to previous 1.15 (colored)

Sync with -current

Revision 1.16 / (download) - annotate - [select for diffs], Tue Mar 21 23:31:27 2000 UTC (24 years, 2 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_8_BASE, OPENBSD_2_7_BASE, OPENBSD_2_7
Branch point for: OPENBSD_2_9, OPENBSD_2_8
Changes since 1.15: +1 -8 lines
Diff to previous 1.15 (colored)

add SIOCGIFMTU/SIOCSIFMTU; remediate redundant code of tun, ppp, sppp; chris@ ok

Revision 1.15 / (download) - annotate - [select for diffs], Wed Dec 8 06:50:18 1999 UTC (24 years, 6 months ago) by itojun
Branch: MAIN
CVS Tags: kame_19991208, SMP_BASE
Branch point for: SMP
Changes since 1.14: +7 -1 lines
Diff to previous 1.14 (colored)

bring in KAME IPv6 code, dated 19991208.
replaces NRL IPv6 layer.  reuses NRL pcb layer.  no IPsec-on-v6 support.
see sys/netinet6/{TODO,IMPLEMENTATION} for more details.

GENERIC configuration should work fine as before.  GENERIC.v6 works fine
as well, but you'll need KAME userland tools to play with IPv6 (will be
bringed into soon).

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jul 12 04:33:20 1998 UTC (25 years, 10 months ago) by angelos
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.13: +22 -29 lines
Diff to previous 1.13 (colored)

Remove the NPMODE_KEEPLAST defs; they're not really necessary. Also,
sync with NetBSD (the recent splhigh->splimp changes).

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jul 1 21:02:23 1998 UTC (25 years, 11 months ago) by angelos
Branch: MAIN
Changes since 1.12: +6 -3 lines
Diff to previous 1.12 (colored)

Add NPMODE_KEEPLAST conditions; not supported yet (act like NPMODE_QUEUE).

Revision 1.12 / (download) - annotate - [select for diffs], Fri May 8 05:02:09 1998 UTC (26 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (colored)

Add support for RFC-comliant deflate protocol

Revision 1.11 / (download) - annotate - [select for diffs], Fri Sep 5 04:26:58 1997 UTC (26 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.10: +149 -173 lines
Diff to previous 1.10 (colored)

Minor changes from ppp 2.3.1

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jan 2 11:10:18 1997 UTC (27 years, 5 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

PPP_BSDCOMP not PPP_BSD_COMP

Revision 1.9 / (download) - annotate - [select for diffs], Thu Dec 19 13:45:16 1996 UTC (27 years, 5 months ago) by mickey
Branch: MAIN
Changes since 1.8: +14 -9 lines
Diff to previous 1.8 (colored)

sync to 2.3b3

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jul 25 14:20:50 1996 UTC (27 years, 10 months ago) by joshd
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.7: +161 -144 lines
Diff to previous 1.7 (colored)

Kernel changes for ppp2.3a4.

Revision 1.7 / (download) - annotate - [select for diffs], Fri May 10 12:31:10 1996 UTC (28 years ago) by deraadt
Branch: MAIN
Changes since 1.6: +24 -23 lines
Diff to previous 1.6 (colored)

if_name/if_unit -> if_xname/if_softc

Revision 1.6 / (download) - annotate - [select for diffs], Sun Apr 21 22:28:32 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.5: +163 -43 lines
Diff to previous 1.5 (colored)

partial sync with netbsd 960418, more to come

Revision 1.5 / (download) - annotate - [select for diffs], Fri Apr 19 18:12:29 1996 UTC (28 years, 1 month ago) by mickey
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

According to the latest config stuff changes (as for if_ppp.c).
the other stuff is just for IPX support.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Mar 3 21:07:07 1996 UTC (28 years, 3 months ago) by niklas
Branch: MAIN
Changes since 1.3: +20 -26 lines
Diff to previous 1.3 (colored)

From NetBSD: 960217 merge

Revision 1.3 / (download) - annotate - [select for diffs], Thu Dec 28 19:10:28 1995 UTC (28 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +0 -16 lines
Diff to previous 1.2 (colored)

from netbsd; ppp code no longer needs to recalculate intr masks on the i386

Revision 1.2 / (download) - annotate - [select for diffs], Mon Dec 18 17:51:23 1995 UTC (28 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +14 -1 lines
Diff to previous 1.1 (colored)

enable multicast, so that multicast packets can flow through ppp links. idea from freebsd

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:53:06 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:53:06 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

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.