The NetBSD Project

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

[BACK] Up to [cvs.NetBSD.org] / src / sys / net

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.109 / (download) - annotate - [select for diffs], Sat Sep 3 02:47:59 2022 UTC (19 months, 2 weeks ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.108: +2 -3 lines
Diff to previous 1.108 (colored)

Garbage-collect the remaining vestiges of netisr.

Revision 1.107.10.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:35 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.107: +3 -12 lines
Diff to previous 1.107 (colored) next main 1.108 (colored)

Sync w/ HEAD.

Revision 1.108 / (download) - annotate - [select for diffs], Wed Jun 16 00:21:19 2021 UTC (2 years, 10 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.107: +3 -12 lines
Diff to previous 1.107 (colored)

if_attach and if_initialize cannot fail, don't test return value

These were originally made failable back in 2017 when if_initialize
allocated a softint in every interface for link state changes, so
that it could fail gracefully instead of panicking:

https://mail-index.NetBSD.org/source-changes/2017/10/23/msg089053.html

However, this spawned many seldom- or never-tested error branches,
which are risky to have around.  And that softint in every interface
has since been replaced by a single global workqueue, because link
state changes require thread context but not low latency or high
throughput:

https://mail-index.NetBSD.org/source-changes/2020/02/06/msg113759.html

So there is no longer any reason for if_initialize to fail.  (The
subroutine if_stats_init can't fail because percpu_alloc can't fail
either.)

There is a snag: the softint_establish in if_percpuq_create could
fail, potentially leading to bad consequences later on trying to use
the softint.  This change doesn't introduce any new bugs because of
the snag -- if_percpuq_attach was already broken.  However, the snag
can be better addressed without spawning error branches, either by
using a single softint or making softints less scarce.

(Separate commit will change the signatures of if_attach and
if_initialize to return void, scheduled to ride whatever is the next
convenient kernel bump.)

Patch and testing on amd64 and evbmips64-eb by maya@; commit message
soliloquy, and compile-testing on evbppc/i386/earmv7hf, by me.

Revision 1.105.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:57 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.105.2.1: +11 -12 lines
Diff to previous 1.105.2.1 (colored) to branchpoint 1.105 (colored) next main 1.106 (colored)

Merge changes from current as of 20200406

Revision 1.106.4.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:21:06 2020 UTC (4 years, 1 month ago) by ad
Branch: ad-namecache
Changes since 1.106: +11 -12 lines
Diff to previous 1.106 (colored) next main 1.107 (colored)

Sync with head.

Revision 1.107 / (download) - annotate - [select for diffs], Wed Jan 29 04:28:27 2020 UTC (4 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Branch point for: thorpej-i2c-spi-conf
Changes since 1.106: +11 -12 lines
Diff to previous 1.106 (colored)

Adopt <net/if_stats.h>.

Revision 1.105.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:45 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.105: +3 -3 lines
Diff to previous 1.105 (colored)

Sync with HEAD

Revision 1.106 / (download) - annotate - [select for diffs], Fri Apr 26 11:51:56 2019 UTC (4 years, 11 months ago) by pgoyette
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.105: +3 -3 lines
Diff to previous 1.105 (colored)

Some more empty-string --> NULL conversions for module dependencies

Revision 1.103.2.2 / (download) - annotate - [select for diffs], Sat Jul 28 04:38:10 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.103.2.1: +4 -4 lines
Diff to previous 1.103.2.1 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored)

Sync with HEAD

Revision 1.105 / (download) - annotate - [select for diffs], Tue Jun 26 06:48:02 2018 UTC (5 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi
Changes since 1.104: +4 -4 lines
Diff to previous 1.104 (colored)

 Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward
compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same
as FreeBSD.

 This change also fixes a bug that the direction is misunderstand on some
environment by passing the direction to bpf_mtap*() instead of checking
m->m_pkthdr.rcvif.

Revision 1.103.2.1 / (download) - annotate - [select for diffs], Wed May 2 07:20:22 2018 UTC (5 years, 11 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.103: +2 -4 lines
Diff to previous 1.103 (colored)

Synch with HEAD

Revision 1.104 / (download) - annotate - [select for diffs], Tue May 1 07:21:39 2018 UTC (5 years, 11 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502
Changes since 1.103: +2 -4 lines
Diff to previous 1.103 (colored)

Remove now unused net_osdep.h includes, the other BSDs did the same.

Revision 1.101.8.2 / (download) - annotate - [select for diffs], Sun Dec 10 10:10:25 2017 UTC (6 years, 4 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.101.8.1: +16 -7 lines
Diff to previous 1.101.8.1 (colored) to branchpoint 1.101 (colored) next main 1.102 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #427):
	sys/arch/amiga/dev/if_bah_zbus.c: 1.17
	sys/arch/arm/broadcom/bcm53xx_eth.c: 1.30
	sys/arch/powerpc/booke/dev/pq3etsec.c: 1.32
	sys/arch/usermode/dev/if_veth.c: 1.9
	sys/dev/ic/an.c: 1.66
	sys/dev/ic/athn.c: 1.17
	sys/dev/ic/atw.c: 1.162
	sys/dev/ic/bwi.c: 1.33
	sys/dev/ic/dwc_gmac.c: 1.41-1.42
	sys/dev/ic/malo.c: 1.10
	sys/dev/ic/rt2560.c: 1.31
	sys/dev/ic/rt2661.c: 1.36
	sys/dev/ic/rt2860.c: 1.29
	sys/dev/ic/rtw.c: 1.127
	sys/dev/ic/rtwvar.h: 1.46
	sys/dev/ic/smc90cx6.c: 1.71
	sys/dev/ic/smc90cx6var.h: 1.12
	sys/dev/ic/wi.c: 1.244
	sys/dev/pci/if_ipw.c: 1.66
	sys/dev/pci/if_iwi.c: 1.104
	sys/dev/pci/if_iwm.c: 1.76
	sys/dev/pci/if_iwn.c: 1.86
	sys/dev/pci/if_rtwn.c: 1.13
	sys/dev/pci/if_wm.c: 1.541
	sys/dev/pci/if_wpi.c: 1.79
	sys/dev/pci/ixgbe/ixgbe.c: 1.106
	sys/dev/pci/ixgbe/ixv.c: 1.73 via patch
	sys/dev/pcmcia/if_malo_pcmcia.c: 1.15
	sys/dev/scsipi/if_se.c: 1.95
	sys/dev/usb/if_upl.c: 1.60
	sys/net/if.c: 1.396
	sys/net/if.h: 1.241
	sys/net/if_arc.h: 1.23
	sys/net/if_arcsubr.c: 1.78
	sys/net/if_bridge.c: 1.136-1.137
	sys/net/if_etherip.c: 1.39
	sys/net/if_faith.c: 1.56
	sys/net/if_gif.c: 1.131
	sys/net/if_loop.c: 1.96
	sys/net/if_mpls.c: 1.30
	sys/net/if_pppoe.c: 1.129
	sys/net/if_srt.c: 1.27
	sys/net/if_stf.c: 1.102
	sys/net/if_tap.c: 1.100
	sys/net/if_vlan.c: 1.105
	sys/netinet/ip_carp.c: 1.91
	sys/rump/net/lib/libshmif/if_shmem.c: 1.73-1.74
	sys/rump/net/lib/libvirtif/if_virt.c: 1.55-1.56
 if_initalize() and if_attach() failed when resource allocation failed
(e.g. allocating softint). Without this change, it panics. It's bad because
resource shortage really occured when a lot of pseudo interface is created.
To avoid this problem, don't panic and change return value of if_initialize()
and if_attach() to int. Caller fanction will be recover from error cleanly by
checking the return value.
 Return if bah_attach_subr() failed.
 If if_attach() failed in the attach function, return.
- If if_initialize() failed in the attach function, free resources and return.
- Add some missing frees in bridge_clone_destroy().
- KNF
 If error occured in bcmeth_ccb_attach(), free resources and return.
 If error occured in pq3etsec_attach(), free resources and return.
 If error occured in the attach function, free resources and return.
- If if_initialize() failed in athn_attach(), free resources and return.
- Add missing pmf_event_deregister() in athn_detach().
- Free resources correctly on some errors in atw_attach().
- Use apint*() insread of printf() in the attach function.
 If if_initialize() failed in the attach function, return.
- If if_initialize() failed in the attach function, free resources and return.
- Add missing dwc_gmac_free_dma_rings() and mutex_destroy() when attach
   failed.
- If if_initialize() failed in the attach function, free resources and return.
- ifp is always not NULL in iwi_detach(). Check correctly with ifp->if_softc.
- If if_initialize() failed in the attach function, free resources and return.
- Fix error path in the attach function correctly.
 If if_initialize() failed in the attach function, free resources and return.
 If if_attach() failed in the attach function, free resources and return.
 - If if_initialize() failed in the attach function, free resources and return.
 - KNF
 - If if_attach() failed in the attach function, free resources and return.
 - KNF
 Fix compile error.
 Fix compile error.
We don't need '&mii', but just 'mii' for mii_detach().
Don't free sc_rthash twice

Revision 1.101.8.1 / (download) - annotate - [select for diffs], Sun Dec 10 09:41:31 2017 UTC (6 years, 4 months ago) by snj
Branch: netbsd-8
Changes since 1.101: +7 -7 lines
Diff to previous 1.101 (colored)

Pull up following revision(s) (requested by knakahara in ticket #419):
	sys/net/if_stf.c: revision 1.103
	sys/net/if_stf.h: revision 1.8
	sys/netinet/in_gif.c: revision 1.89
	sys/netinet/in_gif.h: revision 1.17
	sys/netinet/in_l2tp.c: revision 1.4
	sys/netinet/ip_encap.c: revision 1.66
	sys/netinet/ip_encap.h: revision 1.23
	sys/netinet/ip_mroute.c: revision 1.148
	sys/netinet6/in6_gif.c: revision 1.87
	sys/netinet6/in6_gif.h: revision 1.16
	sys/netinet6/in6_l2tp.c: revision 1.7
	sys/netipsec/xform.h: revision 1.13
	sys/netipsec/xform_ipip.c: revision 1.55
Add argument to encapsw->pr_input() instead of m_tag.

Revision 1.77.12.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:02 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.77.12.1: +99 -61 lines
Diff to previous 1.77.12.1 (colored) to branchpoint 1.77 (colored) next main 1.78 (colored)

update from HEAD

Revision 1.103 / (download) - annotate - [select for diffs], Wed Nov 15 10:42:41 2017 UTC (6 years, 5 months ago) by knakahara
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.102: +7 -7 lines
Diff to previous 1.102 (colored)

Add argument to encapsw->pr_input() instead of m_tag.

Revision 1.102 / (download) - annotate - [select for diffs], Mon Oct 23 09:32:55 2017 UTC (6 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.101: +16 -7 lines
Diff to previous 1.101 (colored)

 - If if_attach() failed in the attach function, free resources and return.
 - KNF

Revision 1.80.4.6 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:58 2017 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.80.4.5: +6 -4 lines
Diff to previous 1.80.4.5 (colored) to branchpoint 1.80 (colored) next main 1.81 (colored)

Sync with HEAD

Revision 1.96.2.2 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:50 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.96.2.1: +6 -4 lines
Diff to previous 1.96.2.1 (colored) to branchpoint 1.96 (colored) next main 1.97 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.101 / (download) - annotate - [select for diffs], Mon Dec 12 03:55:57 2016 UTC (7 years, 4 months ago) by ozaki-r
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.100: +4 -4 lines
Diff to previous 1.100 (colored)

Make the routing table and rtcaches MP-safe

See the following descriptions for details.

Proposed on tech-kern and tech-net


Overview
--------

We protect the routing table with a rwock and protect
rtcaches with another rwlock. Each rtentry is protected
from being freed or updated via reference counting and psref.

Global rwlocks
--------------

There are two rwlocks; one for the routing table (rt_lock) and
the other for rtcaches (rtcache_lock). rtcache_lock covers
all existing rtcaches; there may have room for optimizations
(future work).

The locking order is rtcache_lock first and rt_lock is next.

rtentry references
------------------

References to an rtentry is managed with reference counting
and psref. Either of the two mechanisms is used depending on
where a rtentry is obtained. Reference counting is used when
we obtain a rtentry from the routing table directly via
rtalloc1 and rtrequest{,1} while psref is used when we obtain
a rtentry from a rtcache via rtcache_* APIs. In both cases,
a caller can sleep/block with holding an obtained rtentry.

The reasons why we use two different mechanisms are (i) only
using reference counting hurts the performance due to atomic
instructions (rtcache case) (ii) ease of implementation;
applying psref to APIs such rtaloc1 and rtrequest{,1} requires
additional works (adding a local variable and an argument).

We will finally migrate to use only psref but we can do it
when we have a lockless routing table alternative.

Reference counting for rtentry
------------------------------

rt_refcnt now doesn't count permanent references such as for
rt_timers and rtcaches, instead it is used only for temporal
references when obtaining a rtentry via rtalloc1 and rtrequest{,1}.
We can do so because destroying a rtentry always involves
removing references of rt_timers and rtcaches to the rtentry
and we don't need to track such references. This also makes
it easy to wait for readers to release references on deleting
or updating a rtentry, i.e., we can simply wait until the
reference counter is 0 or 1. (If there are permanent references
the counter can be arbitrary.)

rt_ref increments a reference counter of a rtentry and rt_unref
decrements it. rt_ref is called inside APIs (rtalloc1 and
rtrequest{,1} so users don't need to care about it while
users must call rt_unref to an obtained rtentry after using it.

rtfree is removed and we use rt_unref and rt_free instead.
rt_unref now just decrements the counter of a given rtentry
and rt_free just tries to destroy a given rtentry.

See the next section for destructions of rtentries by rt_free.

Destructions of rtentries
-------------------------

We destroy a rtentry only when we call rtrequst{,1}(RTM_DELETE);
the original implementation can destroy in any rtfree where it's
the last reference. If we use reference counting or psref, it's
easy to understand if the place that a rtentry is destroyed is
fixed.

rt_free waits for references to a given rtentry to be released
before actually destroying the rtentry. rt_free uses a condition
variable (cv_wait) (and psref_target_destroy for psref) to wait.

Unfortunately rtrequst{,1}(RTM_DELETE) can be called in softint
that we cannot use cv_wait. In that case, we have to defer the
destruction to a workqueue.

rtentry#rt_cv, rtentry#rt_psref and global variables
(see rt_free_global) are added to conduct the procedure.

Updates of rtentries
--------------------

One difficulty to use refcnt/psref instead of rwlock for rtentry
is updates of rtentries. We need an additional mechanism to
prevent readers from seeing inconsistency of a rtentry being
updated.

We introduce RTF_UPDATING flag to rtentries that are updating.
While the flag is set to a rtentry, users cannot acquire the
rtentry. By doing so, we avoid users to see inconsistent
rtentries.

There are two options when a user tries to acquire a rtentry
with the RTF_UPDATING flag; if a user runs in softint context
the user fails to acquire a rtentry (NULL is returned).
Otherwise a user waits until the update completes by waiting
on cv.

The procedure of a updater is simpler to destruction of
a rtentry. Wait on cv (and psref) and after all readers left,
proceed with the update.

Global variables (see rt_update_global) are added to conduct
the procedure.

Currently we apply the mechanism to only RTM_CHANGE in
rtsock.c. We would have to apply other codes. See
"Known issues" section.

psref for rtentry
-----------------

When we obtain a rtentry from a rtcache via rtcache_* APIs,
psref is used to reference to the rtentry.

rtcache_ref acquires a reference to a rtentry with psref
and rtcache_unref releases the reference after using it.
rtcache_ref is called inside rtcache_* APIs and users don't
need to take care of it while users must call rtcache_unref
to release the reference.

struct psref and int bound that is needed for psref is
embedded into struct route. By doing so we don't need to
add local variables and additional argument to APIs.

However this adds another constraint to psref other than
reference counting one's; holding a reference of an rtentry
via a rtcache is allowed by just one caller at the same time.
So we must not acquire a rtentry via a rtcache twice and
avoid a recursive use of a rtcache. And also a rtcache must
be arranged to be used by a LWP/softint at the same time
somehow. For IP forwarding case, we have per-CPU rtcaches
used in softint so the constraint is guaranteed. For a h
rtcache of a PCB case, the constraint is guaranteed by the
solock of each PCB. Any other cases (pf, ipf, stf and ipsec)
are currently guaranteed by only the existence of the global
locks (softnet_lock and/or KERNEL_LOCK). If we've found the
cases that we cannot guarantee the constraint, we would need
to introduce other rtcache APIs that use simple reference
counting.

psref of rtcache is created with IPL_SOFTNET and so rtcache
shouldn't used at an IPL higher than IPL_SOFTNET.

Note that rtcache_free is used to invalidate a given rtcache.
We don't need another care by my change; just keep them as
they are.

Performance impact
------------------

When NET_MPSAFE is disabled the performance drop is 3% while
when it's enabled the drop is increased to 11%. The difference
comes from that currently we don't take any global locks and
don't use psref if NET_MPSAFE is disabled.

We can optimize the performance of the case of NET_MPSAFE
on by reducing lookups of rtcache that uses psref;
currently we do two lookups but we should be able to trim
one of two. This is a future work.

Known issues
------------

There are two known issues to be solved; one is that
a caller of rtrequest(RTM_ADD) may change rtentry (see rtinit).
We need to prevent new references during the update. Or
we may be able to remove the code (perhaps, need more
investigations).

The other is rtredirect that updates a rtentry. We need
to apply our update mechanism, however it's not easy because
rtredirect is called in softint and we cannot apply our
mechanism simply. One solution is to defer rtredirect to
a workqueue but it requires some code restructuring.

Revision 1.100 / (download) - annotate - [select for diffs], Thu Dec 8 05:16:33 2016 UTC (7 years, 4 months ago) by ozaki-r
Branch: MAIN
Changes since 1.99: +4 -2 lines
Diff to previous 1.99 (colored)

Add rtcache_unref to release points of rtentry stemming from rtcache

In the MP-safe world, a rtentry stemming from a rtcache can be freed at any
points. So we need to protect rtentries somehow say by reference couting or
passive references. Regardless of the method, we need to call some release
function of a rtentry after using it.

The change adds a new function rtcache_unref to release a rtentry. At this
point, this function does nothing because for now we don't add a reference
to a rtentry when we get one from a rtcache. We will add something useful
in a further commit.

This change is a part of changes for MP-safe routing table. It is separated
to avoid one big change that makes difficult to debug by bisecting.

Revision 1.80.4.5 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:08 2016 UTC (7 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.80.4.4: +44 -18 lines
Diff to previous 1.80.4.4 (colored) to branchpoint 1.80 (colored)

Sync with HEAD

Revision 1.99 / (download) - annotate - [select for diffs], Thu Aug 18 11:38:58 2016 UTC (7 years, 8 months ago) by knakahara
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914
Changes since 1.98: +4 -14 lines
Diff to previous 1.98 (colored)

eliminate stf(4)'s dependency on gif(4).

stf(4) depends on not gif(4) but ip_encap.

Revision 1.98 / (download) - annotate - [select for diffs], Sun Aug 7 17:38:34 2016 UTC (7 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.97: +37 -5 lines
Diff to previous 1.97 (colored)

modularize some more drivers and merge the module glue

Revision 1.96.2.1 / (download) - annotate - [select for diffs], Sat Aug 6 00:19:10 2016 UTC (7 years, 8 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.96: +8 -4 lines
Diff to previous 1.96 (colored)

Sync with HEAD

Revision 1.97 / (download) - annotate - [select for diffs], Mon Aug 1 03:15:30 2016 UTC (7 years, 8 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-20160806
Changes since 1.96: +8 -4 lines
Diff to previous 1.96 (colored)

Apply pserialize and psref to struct ifaddr and its variants

This change makes struct ifaddr and its variants (in_ifaddr and in6_ifaddr)
MP-safe by using pserialize and psref. At this moment, pserialize_perform
and psref_target_destroy are disabled because (1) we don't need them
because of softnet_lock (2) they cause a deadlock because of softnet_lock.
So we'll enable them when we remove softnet_lock in the future.

Revision 1.80.4.4 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:21 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.80.4.3: +23 -15 lines
Diff to previous 1.80.4.3 (colored) to branchpoint 1.80 (colored)

Sync with HEAD

Revision 1.96 / (download) - annotate - [select for diffs], Fri Jul 8 04:33:30 2016 UTC (7 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160726, nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored)

Replace macros to get an IP address with proper inline functions

The inline functions are more friendly for applying psz/psref;
they consist of only simple interations.

Revision 1.95 / (download) - annotate - [select for diffs], Thu Jul 7 09:32:02 2016 UTC (7 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.94: +3 -3 lines
Diff to previous 1.94 (colored)

Switch the address list of intefaces to pslist(9)

As usual, we leave the old list to avoid breaking kvm(3) users.

Revision 1.94 / (download) - annotate - [select for diffs], Wed Jul 6 08:42:34 2016 UTC (7 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.93: +3 -4 lines
Diff to previous 1.93 (colored)

Switch the IPv4 address list to pslist(9)

Note that we leave the old list just in case; it seems there are some
kvm(3) users accessing the list. We can remove it later if we confirmed
nobody does actually.

Revision 1.93 / (download) - annotate - [select for diffs], Mon Jul 4 04:35:09 2016 UTC (7 years, 9 months ago) by knakahara
Branch: MAIN
Changes since 1.92: +9 -3 lines
Diff to previous 1.92 (colored)

make encap_lock_{enter,exit} interruptable.

Revision 1.92 / (download) - annotate - [select for diffs], Mon Jul 4 04:17:25 2016 UTC (7 years, 9 months ago) by knakahara
Branch: MAIN
Changes since 1.91: +11 -6 lines
Diff to previous 1.91 (colored)

let gif(4) promise softint(9) contract (2/2) : ip_encap side

The last commit does not care encaptab. This commit fixes encaptab race which
is used not only gif(4).

Revision 1.91 / (download) - annotate - [select for diffs], Wed Jun 22 07:48:17 2016 UTC (7 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.90: +2 -4 lines
Diff to previous 1.90 (colored)

Remove unnecessary NULL checks of ifa->ifa_addr

If it's NULL, it should be a bug. There many IFADDR_FOREACH that don't do
NULL check. If it can be NULL, they should fire already.

Revision 1.90 / (download) - annotate - [select for diffs], Fri Jun 10 13:31:44 2016 UTC (7 years, 10 months ago) by ozaki-r
Branch: MAIN
Changes since 1.89: +4 -4 lines
Diff to previous 1.89 (colored)

Avoid storing a pointer of an interface in a mbuf

Having a pointer of an interface in a mbuf isn't safe if we remove big
kernel locks; an interface object (ifnet) can be destroyed anytime in any
packet processing and accessing such object via a pointer is racy. Instead
we have to get an object from the interface collection (ifindex2ifnet) via
an interface index (if_index) that is stored to a mbuf instead of an
pointer.

The change provides two APIs: m_{get,put}_rcvif_psref that use psref(9)
for sleep-able critical sections and m_{get,put}_rcvif that use
pserialize(9) for other critical sections. The change also adds another
API called m_get_rcvif_NOMPSAFE, that is NOT MP-safe and for transition
moratorium, i.e., it is intended to be used for places where are not
planned to be MP-ified soon.

The change adds some overhead due to psref to performance sensitive paths,
however the overhead is not serious, 2% down at worst.

Proposed on tech-kern and tech-net.

Revision 1.89 / (download) - annotate - [select for diffs], Fri Jun 10 13:27:16 2016 UTC (7 years, 10 months ago) by ozaki-r
Branch: MAIN
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored)

Introduce m_set_rcvif and m_reset_rcvif

The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.

Revision 1.80.4.3 / (download) - annotate - [select for diffs], Sun May 29 08:44:38 2016 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.80.4.2: +4 -4 lines
Diff to previous 1.80.4.2 (colored) to branchpoint 1.80 (colored)

Sync with HEAD

Revision 1.88 / (download) - annotate - [select for diffs], Thu Apr 28 00:16:56 2016 UTC (7 years, 11 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.87: +4 -4 lines
Diff to previous 1.87 (colored)

Constify rtentry of if_output

We no longer need to change rtentry below if_output.

The change makes it clear where rtentries are changed (or not)
and helps forthcoming locking (os psrefing) rtentries.

Revision 1.80.4.2 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:32 2016 UTC (8 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.80.4.1: +12 -22 lines
Diff to previous 1.80.4.1 (colored) to branchpoint 1.80 (colored)

Sync with HEAD

Revision 1.87 / (download) - annotate - [select for diffs], Thu Jan 28 00:28:11 2016 UTC (8 years, 2 months ago) by knakahara
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319
Changes since 1.86: +11 -13 lines
Diff to previous 1.86 (colored)

fix my wrong modification

Revision 1.86 / (download) - annotate - [select for diffs], Tue Jan 26 05:58:05 2016 UTC (8 years, 2 months ago) by knakahara
Branch: MAIN
Changes since 1.85: +20 -27 lines
Diff to previous 1.85 (colored)

implement encapsw instead of protosw and uniform prototype.

suggested and advised by riastradh@n.o, thanks.

BTW, It seems in_stf_input() had bugs...

Revision 1.85 / (download) - annotate - [select for diffs], Fri Jan 22 23:27:12 2016 UTC (8 years, 2 months ago) by riastradh
Branch: MAIN
Changes since 1.84: +16 -6 lines
Diff to previous 1.84 (colored)

Back out previous change to introduce struct encapsw.

This change was intended, but Nakahara-san had already made a better
one locally!  So I'll let him commit that one, and I'll try not to
step on anyone's toes again.

Revision 1.84 / (download) - annotate - [select for diffs], Fri Jan 22 05:15:10 2016 UTC (8 years, 2 months ago) by riastradh
Branch: MAIN
Changes since 1.83: +6 -16 lines
Diff to previous 1.83 (colored)

Don't abuse struct protosw for ip_encap -- introduce struct encapsw.

Mostly mechanical change to replace it, culling some now-needless
boilerplate around all the users.

This does not substantively change the ip_encap API or eliminate
abuse of sketchy pointer casts -- that will come later, and will be
easier now that it is not tangled up with struct protosw.

Revision 1.83 / (download) - annotate - [select for diffs], Wed Jan 20 21:43:59 2016 UTC (8 years, 2 months ago) by riastradh
Branch: MAIN
Changes since 1.82: +2 -3 lines
Diff to previous 1.82 (colored)

Eliminate struct protosw::pr_output.

You can't use this unless you know what it is a priori: the formal
prototype is variadic, and the different instances (e.g., ip_output,
route_output) have different real prototypes.

Convert the only user of it, raw_send in net/raw_cb.c, to take an
explicit callback argument.  Convert the only instances of it,
route_output and key_output, to such explicit callbacks for raw_send.
Use assertions to make sure the conversion to explicit callbacks is
warranted.

Discussed on tech-net with no objections:
https://mail-index.netbsd.org/tech-net/2016/01/16/msg005484.html

Revision 1.80.4.1 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:10 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.80: +7 -4 lines
Diff to previous 1.80 (colored)

Sync with HEAD

Revision 1.82 / (download) - annotate - [select for diffs], Mon Aug 24 22:21:26 2015 UTC (8 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.81: +5 -2 lines
Diff to previous 1.81 (colored)

sprinkle _KERNEL_OPT

Revision 1.81 / (download) - annotate - [select for diffs], Thu Aug 20 14:40:19 2015 UTC (8 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.80: +4 -4 lines
Diff to previous 1.80 (colored)

include "ioconf.h" to get the 'void <driver>attach(int count);' prototype.

Revision 1.77.12.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:34 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.77: +23 -19 lines
Diff to previous 1.77 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.77.26.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:15 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.77: +23 -19 lines
Diff to previous 1.77 (colored) next main 1.78 (colored)

Rebase.

Revision 1.80 / (download) - annotate - [select for diffs], Thu Jun 12 16:43:09 2014 UTC (9 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.79: +5 -2 lines
Diff to previous 1.79 (colored)

PR/48901: Fail at compile time when trying to compile stf without inet6,
and print an explanatory message.

Revision 1.79 / (download) - annotate - [select for diffs], Thu Jun 5 23:48:16 2014 UTC (9 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.78: +9 -15 lines
Diff to previous 1.78 (colored)

- Implement pktqueue interface for lockless IP input queue.
- Replace ipintrq and ip6intrq with the pktqueue mechanism.
- Eliminate kernel-lock from ipintr() and ip6intr().
- Some preparation work to push softnet_lock out of ipintr().

Discussed on tech-net.

Revision 1.78 / (download) - annotate - [select for diffs], Sun May 18 14:46:16 2014 UTC (9 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.77: +13 -6 lines
Diff to previous 1.77 (colored)

Add struct pr_usrreqs with a pr_generic function and prepare for the
dismantling of pr_usrreq in the protocols; no functional change intended.
PRU_ATTACH/PRU_DETACH changes will follow soon.

Bump for struct protosw.  Welcome to 6.99.62!

Revision 1.77.16.1 / (download) - annotate - [select for diffs], Wed Aug 28 15:21:48 2013 UTC (10 years, 7 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.77: +13 -6 lines
Diff to previous 1.77 (colored) next main 1.78 (colored)

Checkpoint work in progress:
- Initial split of the protocol user-request method into the following
  methods: pr_attach, pr_detach and pr_generic for old the pr_usrreq.
- Adjust socreate(9) and sonewconn(9) to call pr_attach without the
  socket lock held (as a preparation for the locking scheme adjustment).
- Adjust all pr_attach routines to assert that PCB is not set.
- Sprinkle various comments, document some routines and their locking.
- Remove M_PCB, replace with kmem(9).
- Fix few bugs spotted on the way.

Revision 1.77 / (download) - annotate - [select for diffs], Fri Oct 28 20:13:32 2011 UTC (12 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, agc-symver-base, agc-symver
Branch point for: tls-maxphys, tls-earlyentropy, rmind-smpnet
Changes since 1.76: +2 -10 lines
Diff to previous 1.76 (colored)

Don't kauth-orize SIOCSIFMTU in pppsioctl() and stf_ioctl(), ifioctl()
has already done that for us.

Revision 1.76 / (download) - annotate - [select for diffs], Sun Jul 17 20:54:52 2011 UTC (12 years, 9 months ago) by joerg
Branch: MAIN
Changes since 1.75: +2 -4 lines
Diff to previous 1.75 (colored)

Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.

Revision 1.65.10.3 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:54 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.65.10.2: +6 -9 lines
Diff to previous 1.65.10.2 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored)

sync with head.

Revision 1.74.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:18:01 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.74: +6 -9 lines
Diff to previous 1.74 (colored) next main 1.75 (colored)

sync with head

Revision 1.74.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:19 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.74: +6 -9 lines
Diff to previous 1.74 (colored) next main 1.75 (colored)

Sync with HEAD.

Revision 1.75 / (download) - annotate - [select for diffs], Mon Apr 5 07:22:24 2010 UTC (14 years ago) by joerg
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.74: +6 -9 lines
Diff to previous 1.74 (colored)

Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.

Revision 1.65.10.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:27 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.65.10.1: +8 -17 lines
Diff to previous 1.65.10.1 (colored) to branchpoint 1.65 (colored)

sync with head

Revision 1.74 / (download) - annotate - [select for diffs], Tue Jan 19 22:08:01 2010 UTC (14 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.73: +7 -17 lines
Diff to previous 1.73 (colored)

Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client.  This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached.  However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff.  ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Nov 8 18:44:45 2009 UTC (14 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.72: +3 -2 lines
Diff to previous 1.72 (colored)

PR/42285: PR/41559: Daniel Hagerty: if_stf doesn't count output bytes

Revision 1.68.4.1 / (download) - annotate - [select for diffs], Wed May 13 17:22:20 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.68: +10 -7 lines
Diff to previous 1.68 (colored) next main 1.69 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.65.10.1 / (download) - annotate - [select for diffs], Mon May 4 08:14:15 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.65: +16 -15 lines
Diff to previous 1.65 (colored)

sync with head.

Revision 1.67.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:16 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.67.2.1: +10 -7 lines
Diff to previous 1.67.2.1 (colored) to branchpoint 1.67 (colored) next main 1.68 (colored)

Sync with HEAD.

Revision 1.72 / (download) - annotate - [select for diffs], Sat Apr 18 14:58:05 2009 UTC (15 years ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.71: +4 -4 lines
Diff to previous 1.71 (colored)

Remove extra whitespace added by a stupid tool.
XXX: more in src/sys/arch

Revision 1.71 / (download) - annotate - [select for diffs], Wed Apr 15 20:44:25 2009 UTC (15 years ago) by elad
Branch: MAIN
Changes since 1.70: +7 -4 lines
Diff to previous 1.70 (colored)

Remove a few KAUTH_GENERIC_ISSUSER in favor of more descriptive
alternatives.

Discussed on tech-kern:

	http://mail-index.netbsd.org/tech-kern/2009/04/11/msg004798.html

Input from ad@, christos@, dyoung@, tsutsui@.

Okay ad@.

Revision 1.70 / (download) - annotate - [select for diffs], Wed Mar 18 17:06:51 2009 UTC (15 years, 1 month ago) by cegger
Branch: MAIN
Changes since 1.69: +4 -4 lines
Diff to previous 1.69 (colored)

bcopy -> memcpy

Revision 1.69 / (download) - annotate - [select for diffs], Wed Mar 18 15:14:31 2009 UTC (15 years, 1 month ago) by cegger
Branch: MAIN
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

bcmp -> memcmp

Revision 1.67.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:11 2009 UTC (15 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.67: +4 -4 lines
Diff to previous 1.67 (colored)

Sync with HEAD.

Revision 1.65.6.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:31 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.65.6.1: +4 -4 lines
Diff to previous 1.65.6.1 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored)

Sync with HEAD.

Revision 1.66.2.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:26 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.66: +6 -6 lines
Diff to previous 1.66 (colored) next main 1.67 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.68 / (download) - annotate - [select for diffs], Fri Nov 7 00:20:13 2008 UTC (15 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.67: +4 -4 lines
Diff to previous 1.67 (colored)

*** Summary ***

When a link-layer address changes (e.g., ifconfig ex0 link
02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor
Advertisement to update the network-/link-layer address bindings
on our LAN peers.

Refuse a change of ethernet address to the address 00:00:00:00:00:00
or to any multicast/broadcast address.  (Thanks matt@.)

Reorder ifnet ioctl operations so that driver ioctls may inherit
the functions of their "class"---ether_ioctl(), fddi_ioctl(), et
cetera---and the class ioctls may inherit from the generic ioctl,
ifioctl_common(), but both driver- and class-ioctls may override
the generic behavior.  Make network drivers share more code.

Distinguish a "factory" link-layer address from others for the
purposes of both protecting that address from deletion and computing
EUI64.

Return consistent, appropriate error codes from network drivers.

Improve readability.  KNF.

*** Details ***

In if_attach(), always initialize the interface ioctl routine,
ifnet->if_ioctl, if the driver has not already initialized it.
Delete if_ioctl == NULL tests everywhere else, because it cannot
happen.

In the ioctl routines of network interfaces, inherit common ioctl
behaviors by calling either ifioctl_common() or whichever ioctl
routine is appropriate for the class of interface---e.g., ether_ioctl()
for ethernets.

Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR.  In
the user->kernel interface, SIOCSIFADDR's argument was an ifreq,
but on the protocol->ifnet interface, SIOCSIFADDR's argument was
an ifaddr.  That was confusing, and it would work against me as I
make it possible for a network interface to overload most ioctls.
On the protocol->ifnet interface, replace SIOCSIFADDR with
SIOCINITIFADDR.  In ifioctl(), return EPERM if userland tries to
invoke SIOCINITIFADDR.

In ifioctl(), give the interface the first shot at handling most
interface ioctls, and give the protocol the second shot, instead
of the other way around. Finally, let compatibility code (COMPAT_OSOCK)
take a shot.

Pull device initialization out of switch statements under
SIOCINITIFADDR.  For example, pull ..._init() out of any switch
statement that looks like this:

        switch (...->sa_family) {
        case ...:
                ..._init();
                ...
                break;
        ...
        default:
                ..._init();
                ...
                break;
        }

Rewrite many if-else clauses that handle all permutations of IFF_UP
and IFF_RUNNING to use a switch statement,

        switch (x & (IFF_UP|IFF_RUNNING)) {
        case 0:
                ...
                break;
        case IFF_RUNNING:
                ...
                break;
        case IFF_UP:
                ...
                break;
        case IFF_UP|IFF_RUNNING:
                ...
                break;
        }

unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and
#ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).

In ipw(4), remove an if_set_sadl() call that is out of place.

In nfe(4), reuse the jumbo MTU logic in ether_ioctl().

Let ethernets register a callback for setting h/w state such as
promiscuous mode and the multicast filter in accord with a change
in the if_flags: ether_set_ifflags_cb() registers a callback that
returns ENETRESET if the caller should reset the ethernet by calling
if_init(), 0 on success, != 0 on failure.  Pull common code from
ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(),
and register if_flags callbacks for those drivers.

Return ENOTTY instead of EINVAL for inappropriate ioctls.  In
zyd(4), use ENXIO instead of ENOTTY to indicate that the device is
not any longer attached.

Add to if_set_sadl() a boolean 'factory' argument that indicates
whether a link-layer address was assigned by the factory or some
other source.  In a comment, recommend using the factory address
for generating an EUI64, and update in6_get_hw_ifid() to prefer a
factory address to any other link-layer address.

Add a routing message, RTM_LLINFO_UPD, that tells protocols to
update the binding of network-layer addresses to link-layer addresses.
Implement this message in IPv4 and IPv6 by sending a gratuitous
ARP or a neighbor advertisement, respectively.  Generate RTM_LLINFO_UPD
messages on a change of an interface's link-layer address.

In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address
that is broadcast/multicast or equal to 00:00:00:00:00:00.

Make ether_ioctl() call ifioctl_common() to handle ioctls that it
does not understand.

In gif(4), initialize if_softc and use it, instead of assuming that
the gif_softc and ifp overlap.

Let ifioctl_common() handle SIOCGIFADDR.

Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels
that certain invariants on a struct route are satisfied.

In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit
about the ioctls that we do not allow on an agr(4) member interface.

bzero -> memset.  Delete unnecessary casts to void *.  Use
sockaddr_in_init() and sockaddr_in6_init().  Compare pointers with
NULL instead of "testing truth".  Replace some instances of (type
*)0 with NULL.  Change some K&R prototypes to ANSI C, and join
lines.

Revision 1.67 / (download) - annotate - [select for diffs], Fri Oct 24 17:07:33 2008 UTC (15 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Branch point for: nick-hppapmap
Changes since 1.66: +4 -4 lines
Diff to previous 1.66 (colored)

Constify the rt_addrinfo argument to the ifa_rtrequest member
function of struct ifaddr.

Revision 1.65.6.1 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:18 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.65: +4 -6 lines
Diff to previous 1.65 (colored)

Sync with HEAD.

Revision 1.65.12.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:58 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.65: +4 -6 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.65.14.1 / (download) - annotate - [select for diffs], Wed Jun 18 16:33:50 2008 UTC (15 years, 10 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.65: +4 -6 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

Sync with head.

Revision 1.65.8.1 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:13 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.65: +4 -6 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

sync with head.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Jun 15 16:37:21 2008 UTC (15 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, haad-dm-base1
Branch point for: haad-dm
Changes since 1.65: +4 -6 lines
Diff to previous 1.65 (colored)

- add if_alloc (ours just mallocs), and if_initname and use them (from FreeBSD)
- kill memsets where M_ZERO can be used.

Revision 1.60.8.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:05 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.60.8.2: +10 -13 lines
Diff to previous 1.60.8.2 (colored) to branchpoint 1.60 (colored) next main 1.61 (colored)

sync with HEAD

Revision 1.48.2.8 / (download) - annotate - [select for diffs], Wed Feb 27 08:37:01 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.48.2.7: +6 -6 lines
Diff to previous 1.48.2.7 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

sync with head.

Revision 1.65 / (download) - annotate - [select for diffs], Wed Feb 20 17:05:53 2008 UTC (16 years, 2 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa, simonb-wapbl, mjf-devfs2
Changes since 1.64: +6 -6 lines
Diff to previous 1.64 (colored)

s/u_\(int[0-9]*_t\)/u\1/g
(change u_int*_t to uint*_t)

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:01 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.62: +6 -9 lines
Diff to previous 1.62 (colored) next main 1.63 (colored)

Sync with HEAD.

Revision 1.48.2.7 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:59 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.48.2.6: +6 -9 lines
Diff to previous 1.48.2.6 (colored) to branchpoint 1.48 (colored)

sync with head.

Revision 1.64 / (download) - annotate - [select for diffs], Thu Feb 7 01:22:02 2008 UTC (16 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: mjf-devfs-base
Changes since 1.63: +6 -9 lines
Diff to previous 1.63 (colored)

Start patching up the kernel so that a network driver always has
the opportunity to handle an ioctl before generic ifioctl handling
occurs.  This will ease extending the kernel and sharing of code
between drivers.

First steps:  Make the signature of ifioctl_common() match struct
ifinet->if_ioctl.  Convert SIOCSIFCAP and SIOCSIFMTU to the new
ifioctl() regime, throughout the kernel.

Revision 1.48.2.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:47:06 2008 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.48.2.5: +6 -5 lines
Diff to previous 1.48.2.5 (colored) to branchpoint 1.48 (colored)

sync with head

Revision 1.60.8.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:57:13 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.60.8.1: +6 -5 lines
Diff to previous 1.60.8.1 (colored) to branchpoint 1.60 (colored)

sync with HEAD

Revision 1.62.8.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:57:09 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.62: +6 -5 lines
Diff to previous 1.62 (colored) next main 1.63 (colored)

Sync with HEAD

Revision 1.62.4.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:33 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.62: +6 -5 lines
Diff to previous 1.62 (colored) next main 1.63 (colored)

Sync with head.

Revision 1.63 / (download) - annotate - [select for diffs], Thu Dec 20 19:53:30 2007 UTC (16 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.62: +6 -5 lines
Diff to previous 1.62 (colored)

Poison struct route->ro_rt uses in the kernel by changing the name
to _ro_rt.  Use rtcache_getrt() to access a route cache's struct
rtentry *.

Introduce struct ifnet->if_dl that always points at the interface
identifier/link-layer address.  Make code that treated the first
ifaddr on struct ifnet->if_addrlist as the interface address use
if_dl, instead.

Remove stale debugging code from net/route.c.  Move the rtflush()
code into rtcache_clear() and delete rtflush().  Delete rtalloc(),
because nothing uses it any more.

Make ND6_HINT an inline, lowercase subroutine, nd6_hint.

I've done my best to convert IP Filter, the ISO stack, and the
AppleTalk stack to rtcache_getrt().  They compile, but I have not
tested them.  I have given the changes to PF, GRE, IPv4 and IPv6
stacks a lot of exercise.

Revision 1.60.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:33:34 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.60: +5 -4 lines
Diff to previous 1.60 (colored)

sync with HEAD

Revision 1.48.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:36:03 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.48.2.4: +3 -3 lines
Diff to previous 1.48.2.4 (colored) to branchpoint 1.48 (colored)

sync with head.

Revision 1.60.6.2 / (download) - annotate - [select for diffs], Fri Oct 26 15:49:03 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.60.6.1: +3 -3 lines
Diff to previous 1.60.6.1 (colored) to branchpoint 1.60 (colored) next main 1.61 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.61.4.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:40:07 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

Sync with HEAD.

Revision 1.58.2.4 / (download) - annotate - [select for diffs], Tue Oct 23 20:17:17 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.58.2.3: +3 -3 lines
Diff to previous 1.58.2.3 (colored) next main 1.59 (colored)

Sync with head.

Revision 1.62 / (download) - annotate - [select for diffs], Fri Oct 19 12:16:45 2007 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2, mjf-devfs, bouyer-xeni386
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored)

machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.58.2.3 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:41 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.58.2.2: +4 -3 lines
Diff to previous 1.58.2.2 (colored)

Sync with head.

Revision 1.60.6.1 / (download) - annotate - [select for diffs], Mon Sep 3 16:48:57 2007 UTC (16 years, 7 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.60: +4 -3 lines
Diff to previous 1.60 (colored)

Sync with HEAD.

Revision 1.48.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:42:12 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.48.2.3: +21 -32 lines
Diff to previous 1.48.2.3 (colored) to branchpoint 1.48 (colored)

sync with head.

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:23:11 2007 UTC (16 years, 7 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.60: +4 -3 lines
Diff to previous 1.60 (colored) next main 1.61 (colored)

Sync with HEAD.

Revision 1.61 / (download) - annotate - [select for diffs], Sat Sep 1 04:32:51 2007 UTC (16 years, 7 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5
Branch point for: bouyer-xenamd64
Changes since 1.60: +4 -3 lines
Diff to previous 1.60 (colored)

Use ifreq_setaddr(), ifreq_getaddr(), sockaddr_in_init(), and
sockaddr_copy().  Constify.  Compare pointers with NULL, not 0.
Don't "test truth" of pointers, but compare with NULL.

Revision 1.58.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:10:59 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.58: +16 -28 lines
Diff to previous 1.58 (colored) next main 1.59 (colored)

Sync with head.

Revision 1.58.2.2 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:36 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.58.2.1: +14 -26 lines
Diff to previous 1.58.2.1 (colored)

Sync with head.

Revision 1.56.2.4 / (download) - annotate - [select for diffs], Mon May 7 10:55:54 2007 UTC (16 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.56.2.3: +14 -26 lines
Diff to previous 1.56.2.3 (colored) to branchpoint 1.56 (colored) next main 1.57 (colored)

sync with head.

Revision 1.60 / (download) - annotate - [select for diffs], Wed May 2 20:40:23 2007 UTC (16 years, 11 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, matt-armv6, jmcneill-pm
Changes since 1.59: +14 -26 lines
Diff to previous 1.59 (colored)

Eliminate address family-specific route caches (struct route, struct
route_in6, struct route_iso), replacing all caches with a struct
route.

The principle benefit of this change is that all of the protocol
families can benefit from route cache-invalidation, which is
necessary for correct routing.  Route-cache invalidation fixes an
ancient PR, kern/3508, at long last; it fixes various other PRs,
also.

Discussions with and ideas from Joerg Sonnenberger influenced this
work tremendously.  Of course, all design oversights and bugs are
mine.

DETAILS

1 I added to each address family a pool of sockaddrs.  I have
  introduced routines for allocating, copying, and duplicating,
  and freeing sockaddrs:

        struct sockaddr *sockaddr_alloc(sa_family_t af, int flags);
        struct sockaddr *sockaddr_copy(struct sockaddr *dst,
                                       const struct sockaddr *src);
        struct sockaddr *sockaddr_dup(const struct sockaddr *src, int flags);
        void sockaddr_free(struct sockaddr *sa);

  sockaddr_alloc() returns either a sockaddr from the pool belonging
  to the specified family, or NULL if the pool is exhausted.  The
  returned sockaddr has the right size for that family; sa_family
  and sa_len fields are initialized to the family and sockaddr
  length---e.g., sa_family = AF_INET and sa_len = sizeof(struct
  sockaddr_in).  sockaddr_free() puts the given sockaddr back into
  its family's pool.

  sockaddr_dup() and sockaddr_copy() work analogously to strdup()
  and strcpy(), respectively.  sockaddr_copy() KASSERTs that the
  family of the destination and source sockaddrs are alike.

  The 'flags' argumet for sockaddr_alloc() and sockaddr_dup() is
  passed directly to pool_get(9).

2 I added routines for initializing sockaddrs in each address
  family, sockaddr_in_init(), sockaddr_in6_init(), sockaddr_iso_init(),
  etc.  They are fairly self-explanatory.

3 structs route_in6 and route_iso are no more.  All protocol families
  use struct route.  I have changed the route cache, 'struct route',
  so that it does not contain storage space for a sockaddr.  Instead,
  struct route points to a sockaddr coming from the pool the sockaddr
  belongs to.  I added a new method to struct route, rtcache_setdst(),
  for setting the cache destination:

        int rtcache_setdst(struct route *, const struct sockaddr *);

  rtcache_setdst() returns 0 on success, or ENOMEM if no memory is
  available to create the sockaddr storage.

  It is now possible for rtcache_getdst() to return NULL if, say,
  rtcache_setdst() failed.  I check the return value for NULL
  everywhere in the kernel.

4 Each routing domain (struct domain) has a list of live route
  caches, dom_rtcache.  rtflushall(sa_family_t af) looks up the
  domain indicated by 'af', walks the domain's list of route caches
  and invalidates each one.

Revision 1.56.2.3 / (download) - annotate - [select for diffs], Sun Apr 15 16:03:58 2007 UTC (17 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.56.2.2: +4 -4 lines
Diff to previous 1.56.2.2 (colored) to branchpoint 1.56 (colored)

sync with head.

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Tue Apr 10 13:26:47 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.58: +4 -4 lines
Diff to previous 1.58 (colored)

Sync with head.

Revision 1.58.6.1 / (download) - annotate - [select for diffs], Thu Mar 29 19:27:59 2007 UTC (17 years ago) by reinoud
Branch: reinoud-bufcleanup
Changes since 1.58: +4 -4 lines
Diff to previous 1.58 (colored) next main 1.59 (colored)

Pullup to -current

Revision 1.59 / (download) - annotate - [select for diffs], Thu Mar 29 16:51:21 2007 UTC (17 years ago) by ad
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic
Changes since 1.58: +4 -4 lines
Diff to previous 1.58 (colored)

lwp::l_acflag is no longer used.

Revision 1.56.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:59:14 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.56.2.1: +5 -5 lines
Diff to previous 1.56.2.1 (colored) to branchpoint 1.56 (colored)

Sync with HEAD.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:17 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Branch point for: vmlocking, reinoud-bufcleanup, mjf-ufs-trans
Changes since 1.57: +5 -5 lines
Diff to previous 1.57 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.56.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:44 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.56: +14 -14 lines
Diff to previous 1.56 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.48.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:36 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.48.2.2: +14 -14 lines
Diff to previous 1.48.2.2 (colored) to branchpoint 1.48 (colored)

sync with head.

Revision 1.57 / (download) - annotate - [select for diffs], Sat Feb 17 22:34:09 2007 UTC (17 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.56: +14 -14 lines
Diff to previous 1.56 (colored)

KNF: de-__P, bzero -> memset, bcmp -> memcmp.  Remove extraneous
   parentheses in return statements.

Cosmetic: don't open-code TAILQ_FOREACH().

Cosmetic: change types of variables to avoid oodles of casts: in
   in6_src.c, avoid casts by changing several route_in6 pointers
   to struct route pointers.  Remove unnecessary casts to caddr_t
   elsewhere.

Pave the way for eliminating address family-specific route caches:
   soon, struct route will not embed a sockaddr, but it will hold
   a reference to an external sockaddr, instead.  We will set the
   destination sockaddr using rtcache_setdst().  (I created a stub
   for it, but it isn't used anywhere, yet.)  rtcache_free() will
   free the sockaddr.  I have extracted from rtcache_free() a helper
   subroutine, rtcache_clear().  rtcache_clear() will "forget" a
   cached route, but it will not forget the destination by releasing
   the sockaddr.  I use rtcache_clear() instead of rtcache_free()
   in rtcache_update(), because rtcache_update() is not supposed
   to forget the destination.

Constify:

   1 Introduce const accessor for route->ro_dst, rtcache_getdst().

   2 Constify the 'dst' argument to ifnet->if_output().  This
     led me to constify a lot of code called by output routines.

   3 Constify the sockaddr argument to protosw->pr_ctlinput.  This
     led me to constify a lot of code called by ctlinput routines.

   4 Introduce const macros for converting from a generic sockaddr
     to family-specific sockaddrs, e.g., sockaddr_in: satocsin6,
     satocsin, et cetera.

Revision 1.52.4.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:12 2007 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.52.4.1: +16 -12 lines
Diff to previous 1.52.4.1 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored)

Sync with head.

Revision 1.48.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:20 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.48.2.1: +21 -15 lines
Diff to previous 1.48.2.1 (colored) to branchpoint 1.48 (colored)

sync with head.

Revision 1.52.6.3 / (download) - annotate - [select for diffs], Mon Dec 18 11:42:16 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.52.6.2: +16 -10 lines
Diff to previous 1.52.6.2 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored)

sync with head.

Revision 1.56 / (download) - annotate - [select for diffs], Fri Dec 15 21:18:53 2006 UTC (17 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, post-newlock2-merge, newlock2-nbase, newlock2-base
Branch point for: yamt-idlelwp
Changes since 1.55: +16 -10 lines
Diff to previous 1.55 (colored)

Introduce new helper functions to abstract the route caching.
rtcache_init and rtcache_init_noclone lookup ro_dst and store
the result in ro_rt, taking care of the reference counting and
calling the domain specific route cache.
rtcache_free checks if a route was cashed and frees the reference.
rtcache_copy copies ro_dst of the given struct route, checking that
enough space is available and incrementing the reference count of the
cached rtentry if necessary.
rtcache_check validates that the cached route is still up. If it isn't,
it tries to look it up again. Afterwards ro_rt is either a valid again
or NULL.
rtcache_copy is used internally.

Adjust to callers of rtalloc/rtflush in the tree to check the sanity of
ro_dst first (if necessary). If it doesn't fit the expectations, free
the cache, otherwise check if the cached route is still valid. After
that combination, a single check for ro_rt == NULL is enough to decide
whether a new lookup needs to be done with a different ro_dst.
Make the route checking in gre stricter by repeating the loop check
after revalidation.
Remove some unused RADIX_MPATH code in in6_src.c. The logic is slightly
changed here to first validate the route and check RTF_GATEWAY
afterwards. This is sementically equivalent though.
etherip doesn't need sc_route_expire similiar to the gif changes from
dyoung@ earlier.

Based on the earlier patch from dyoung@, reviewed and discussed with
him.

Revision 1.52.6.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:19:00 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.52.6.1: +9 -11 lines
Diff to previous 1.52.6.1 (colored) to branchpoint 1.52 (colored)

sync with head.

Revision 1.55 / (download) - annotate - [select for diffs], Sat Dec 9 05:33:06 2006 UTC (17 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-splraiseipl-base3
Changes since 1.54: +4 -6 lines
Diff to previous 1.54 (colored)

Here are various changes designed to protect against bad IPv4
routing caused by stale route caches (struct route).  Route caches
are sprinkled throughout PCBs, the IP fast-forwarding table, and
IP tunnel interfaces (gre, gif, stf).

Stale IPv6 and ISO route caches will be treated by separate patches.

Thank you to Christoph Badura for suggesting the general approach
to invalidating route caches that I take here.

Here are the details:

Add hooks to struct domain for tracking and for invalidating each
domain's route caches: dom_rtcache, dom_rtflush, and dom_rtflushall.

Introduce helper subroutines, rtflush(ro) for invalidating a route
cache, rtflushall(family) for invalidating all route caches in a
routing domain, and rtcache(ro) for notifying the domain of a new
cached route.

Chain together all IPv4 route caches where ro_rt != NULL.  Provide
in_rtcache() for adding a route to the chain.  Provide in_rtflush()
and in_rtflushall() for invalidating IPv4 route caches.  In
in_rtflush(), set ro_rt to NULL, and remove the route from the
chain.  In in_rtflushall(), walk the chain and remove every route
cache.

In rtrequest1(), call rtflushall() to invalidate route caches when
a route is added.

In gif(4), discard the workaround for stale caches that involves
expiring them every so often.

Replace the pattern 'RTFREE(ro->ro_rt); ro->ro_rt = NULL;' with a
call to rtflush(ro).

Update ipflow_fastforward() and all other users of route caches so
that they expect a cached route, ro->ro_rt, to turn to NULL.

Take care when moving a 'struct route' to rtflush() the source and
to rtcache() the destination.

In domain initializers, use .dom_xxx tags.

KNF here and there.

Revision 1.52.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:29 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.52: +4 -3 lines
Diff to previous 1.52 (colored)

Sync with head.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:40 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.53: +7 -7 lines
Diff to previous 1.53 (colored)

__unused removal on arguments; approved by core.

Revision 1.52.6.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:24 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.52: +7 -6 lines
Diff to previous 1.52 (colored)

sync with head

Revision 1.53 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:28 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.52: +7 -6 lines
Diff to previous 1.52 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.50.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:58:06 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.50: +7 -4 lines
Diff to previous 1.50 (colored) next main 1.51 (colored)

sync with head

Revision 1.50.8.2 / (download) - annotate - [select for diffs], Fri Aug 11 15:46:16 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.50.8.1: +5 -4 lines
Diff to previous 1.50.8.1 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

sync with head

Revision 1.52 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:12 2006 UTC (17 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.51: +5 -4 lines
Diff to previous 1.51 (colored)

Use the LWP cached credentials where sane.

Revision 1.48.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:10:27 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.48: +38 -58 lines
Diff to previous 1.48 (colored)

sync with head.

Revision 1.50.6.1 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:38 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.50: +5 -3 lines
Diff to previous 1.50 (colored) next main 1.51 (colored)

Sync with head.

Revision 1.50.12.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:44 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.50: +5 -3 lines
Diff to previous 1.50 (colored) next main 1.51 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.50.8.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:56 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.50: +5 -3 lines
Diff to previous 1.50 (colored)

sync with head.

Revision 1.51 / (download) - annotate - [select for diffs], Sun May 14 21:19:33 2006 UTC (17 years, 11 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi
Changes since 1.50: +5 -3 lines
Diff to previous 1.50 (colored)

integrate kauth.

Revision 1.50.10.3 / (download) - annotate - [select for diffs], Sat May 6 23:31:59 2006 UTC (17 years, 11 months ago) by christos
Branch: elad-kernelauth
Changes since 1.50.10.2: +4 -2 lines
Diff to previous 1.50.10.2 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.50.10.2 / (download) - annotate - [select for diffs], Fri Mar 10 15:05:22 2006 UTC (18 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.50.10.1: +3 -3 lines
Diff to previous 1.50.10.1 (colored) to branchpoint 1.50 (colored)

generic_authorize() -> kauth_authorize_generic().

Revision 1.50.10.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:11:55 2006 UTC (18 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

Adapt to kernel authorization KPI.

Revision 1.50 / (download) - annotate - [select for diffs], Sun Dec 11 23:05:25 2005 UTC (18 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.49: +35 -57 lines
Diff to previous 1.49 (colored)

ANSI function decls and application of static.

Revision 1.49 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:51 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

merge ktrace-lwp.

Revision 1.33.2.9 / (download) - annotate - [select for diffs], Thu Nov 10 14:10:32 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.33.2.8: +5 -6 lines
Diff to previous 1.33.2.8 (colored) next main 1.34 (colored)

Sync with HEAD. Here we go again...

Revision 1.48 / (download) - annotate - [select for diffs], Thu Jun 2 15:21:35 2005 UTC (18 years, 10 months ago) by tron
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (colored)

Change the first argument of the encapsulation check function from
"const struct mbuf *" to "struct mbuf *". Without this change the
actual implementation cannot even use m_copydata() on the mbuf chain
which is broken.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Jun 2 10:54:58 2005 UTC (18 years, 10 months ago) by tron
Branch: MAIN
Changes since 1.46: +3 -4 lines
Diff to previous 1.46 (colored)

Remove type casts and lint directives which are now longer necessary
because the first argument of m_copydata() is "const struct mbuf *" now.

Revision 1.36.4.1 / (download) - annotate - [select for diffs], Sun May 8 17:40:58 2005 UTC (18 years, 11 months ago) by snj
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Changes since 1.36: +26 -10 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

Pull up revision 1.46 (requested by tron in ticket #1312):
Add support for changing the MTU to stf(4).

Revision 1.41.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:31 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.41: +34 -18 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

sync with -current

Revision 1.33.2.8 / (download) - annotate - [select for diffs], Fri Apr 1 14:31:34 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.33.2.7: +26 -10 lines
Diff to previous 1.33.2.7 (colored)

Sync with HEAD.

Revision 1.43.2.3 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:31 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.43.2.2: +28 -12 lines
Diff to previous 1.43.2.2 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Mar 11 13:28:25 2005 UTC (19 years, 1 month ago) by tron
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Changes since 1.45: +26 -10 lines
Diff to previous 1.45 (colored)

Add support for changing the MTU to stf(4).

Revision 1.33.2.7 / (download) - annotate - [select for diffs], Fri Mar 4 16:52:59 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.33.2.6: +4 -4 lines
Diff to previous 1.33.2.6 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.45 / (download) - annotate - [select for diffs], Sat Feb 26 22:45:09 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored)

nuke trailing whitespace

Revision 1.43.2.2 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:53 2005 UTC (19 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.43.2.1: +740 -0 lines
Diff to previous 1.43.2.1 (colored) to branchpoint 1.43 (colored)

sync with head.

Revision 1.33.2.6 / (download) - annotate - [select for diffs], Fri Feb 4 11:47:44 2005 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.33.2.5: +8 -8 lines
Diff to previous 1.33.2.5 (colored)

Sync with HEAD.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Jan 25 17:22:08 2005 UTC (19 years, 2 months ago) by matt
Branch: MAIN
CVS Tags: yamt-km-base2
Changes since 1.43: +8 -8 lines
Diff to previous 1.43 (colored)

Switch to using ifa for ifaddr's instead of ia (which are traditionally
used for in_ifaddr's) which could lead to confusion.

Revision 1.43.2.1, Tue Jan 25 11:20:37 2005 UTC (19 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.43: +0 -740 lines
FILE REMOVED

file if_stf.c was added on branch yamt-km on 2005-02-12 18:17:53 +0000

Revision 1.43 / (download) - annotate - [select for diffs], Tue Jan 25 11:20:37 2005 UTC (19 years, 2 months ago) by tron
Branch: MAIN
CVS Tags: yamt-km-base
Branch point for: yamt-km
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

Fix cut and paste error in last commit.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Jan 24 21:25:09 2005 UTC (19 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

Add IFNET_FOREACH and IFADDR_FOREACH macros and start using them.

Revision 1.33.2.5 / (download) - annotate - [select for diffs], Sat Dec 18 09:32:51 2004 UTC (19 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.33.2.4: +6 -4 lines
Diff to previous 1.33.2.4 (colored)

Sync with HEAD.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Dec 4 18:31:43 2004 UTC (19 years, 4 months ago) by peter
Branch: MAIN
CVS Tags: kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: kent-audio2
Changes since 1.40: +6 -4 lines
Diff to previous 1.40 (colored)

Change ifc_destroy to return an int instead of void, so that it
can pass back errors to ifconfig.

Revision 1.33.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:36:41 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.33.2.3: +2 -2 lines
Diff to previous 1.33.2.3 (colored)

Fix the sync with head I botched.

Revision 1.33.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:54:16 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.33.2.2: +2 -2 lines
Diff to previous 1.33.2.2 (colored)

Sync with HEAD.

Revision 1.33.2.2 / (download) - annotate - [select for diffs], Wed Aug 25 06:58:59 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.33.2.1: +6 -46 lines
Diff to previous 1.33.2.1 (colored)

Sync with HEAD.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Aug 19 20:58:24 2004 UTC (19 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.39: +6 -46 lines
Diff to previous 1.39 (colored)

Factor out the hand-crafting of mbufs from the interface files. Reviewed by
gimpy. XXX: I could have used bpf_mtap2 on some of the new functions, but I
chose not to, because I just wanted to do what amounts to a code move.

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:54:18 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.33: +8 -11 lines
Diff to previous 1.33 (colored)

Sync with HEAD

Revision 1.39 / (download) - annotate - [select for diffs], Mon Apr 26 01:41:15 2004 UTC (19 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.38: +2 -7 lines
Diff to previous 1.38 (colored)

Remove #else of #if __STDC__

Revision 1.38 / (download) - annotate - [select for diffs], Thu Apr 22 01:01:40 2004 UTC (20 years ago) by matt
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

Constify protosw arrays.  This can reduce the kernel .data section by
over 4K (if all the network protocols) are loaded.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Apr 21 18:40:41 2004 UTC (20 years ago) by itojun
Branch: MAIN
Changes since 1.36: +4 -3 lines
Diff to previous 1.36 (colored)

kill sprintf, use snprintf

Revision 1.36 / (download) - annotate - [select for diffs], Wed Nov 12 13:40:16 2003 UTC (20 years, 5 months ago) by cl
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0
Branch point for: netbsd-2
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

catch up with in_ifaddr -> in_ifaddrhead rename

Revision 1.35 / (download) - annotate - [select for diffs], Fri Aug 22 21:53:02 2003 UTC (20 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

change the additional arg to be passed to ip{,6}_output to struct socket *.

this fixes KAME policy lookup which was broken by the previous commit.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Aug 15 03:42:00 2003 UTC (20 years, 8 months ago) by jonathan
Branch: MAIN
Changes since 1.33: +4 -3 lines
Diff to previous 1.33 (colored)

(fast-ipsec): Add hooks to pass IPv4 IPsec traffic into fast-ipsec, if
configured with ``options FAST_IPSEC''.  Kernels with KAME IPsec or
with no IPsec should work as before.

All calls to ip_output() now always pass an additional compulsory
argument: the inpcb associated with the packet being sent,
or 0 if no inpcb is available.

Fast-ipsec tested with ICMP or UDP over ESP. TCP doesn't work, yet.

Revision 1.33 / (download) - annotate - [select for diffs], Thu May 1 07:52:59 2003 UTC (20 years, 11 months ago) by itojun
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.32: +4 -2 lines
Diff to previous 1.32 (colored)

bpf_mtap() does not care about M_PKTHDR at the top.  M_COPY_PKTHDR has some
consequences, so avoid it.  if we need to attach dummy headers, we should
use M_PREPEND instead.

Revision 1.12.2.8 / (download) - annotate - [select for diffs], Wed Dec 11 06:46:32 2002 UTC (21 years, 4 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.12.2.7: +23 -0 lines
Diff to previous 1.12.2.7 (colored) next main 1.13 (colored)

Sync with HEAD.

Revision 1.32 / (download) - annotate - [select for diffs], Sun Nov 17 19:29:31 2002 UTC (21 years, 5 months ago) by itojun
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.31: +25 -2 lines
Diff to previous 1.31 (colored)

more pickier packet validation, based on
draft-savola-v6ops-6to4-security-00.txt.  sync w/kame

Revision 1.12.2.7 / (download) - annotate - [select for diffs], Fri Oct 18 02:45:13 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.12.2.6: +22 -6 lines
Diff to previous 1.12.2.6 (colored)

Catch up to -current.

Revision 1.16.2.4 / (download) - annotate - [select for diffs], Thu Oct 10 18:43:48 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.16.2.3: +24 -8 lines
Diff to previous 1.16.2.3 (colored) next main 1.17 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.31 / (download) - annotate - [select for diffs], Tue Sep 17 06:32:49 2002 UTC (21 years, 7 months ago) by itojun
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Changes since 1.30: +2 -3 lines
Diff to previous 1.30 (colored)

fix comment, sync with kame

Revision 1.30 / (download) - annotate - [select for diffs], Tue Sep 17 05:56:37 2002 UTC (21 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.29: +25 -8 lines
Diff to previous 1.29 (colored)

reject SIOCAIFADDR if embedded address is in private address range.  sync w/kame

Revision 1.16.2.3 / (download) - annotate - [select for diffs], Fri Sep 6 08:48:59 2002 UTC (21 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.16.2.2: +22 -5 lines
Diff to previous 1.16.2.2 (colored)

sync kqueue branch with HEAD

Revision 1.23.8.2 / (download) - annotate - [select for diffs], Thu Aug 29 00:56:43 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.23.8.1: +13 -5 lines
Diff to previous 1.23.8.1 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

catch up with -current.

Revision 1.12.2.6 / (download) - annotate - [select for diffs], Tue Aug 27 23:47:54 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.12.2.5: +1 -1 lines
Diff to previous 1.12.2.5 (colored)

Catch up to -current.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Aug 14 00:23:28 2002 UTC (21 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

avoid swapping endian of ip_len and ip_off on mbuf, to meet with M_LEADINGSPACE
optimization made last year.  should solve PR 17867 and 10195.

IP_HDRINCL behavior of raw ip socket is kept unchanged.  we may want to
provide IP_HDRINCL variant that does not swap endian.

Revision 1.23.10.5 / (download) - annotate - [select for diffs], Tue Aug 6 05:57:43 2002 UTC (21 years, 8 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.23.10.4: +4 -6 lines
Diff to previous 1.23.10.4 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

Pull up revision 1.28 (requested by itojun in ticket #630):
backout previous.  i was looking at the wrong RFC.

Revision 1.28 / (download) - annotate - [select for diffs], Tue Aug 6 04:58:57 2002 UTC (21 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.27: +4 -6 lines
Diff to previous 1.27 (colored)

backout previous.  i was looking at the wrong RFC.

Revision 1.23.10.4 / (download) - annotate - [select for diffs], Tue Aug 6 00:09:44 2002 UTC (21 years, 8 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.23.10.3: +6 -4 lines
Diff to previous 1.23.10.3 (colored) to branchpoint 1.23 (colored)

Pull up revision 1.27 (requested by itojun in ticket #628):
based on RFC2529, stf(4) should have 1480 as MTU, not 1280.
tron found it, sync w/kame

Revision 1.27 / (download) - annotate - [select for diffs], Mon Aug 5 23:37:48 2002 UTC (21 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.26: +6 -4 lines
Diff to previous 1.26 (colored)

based on RFC2529, stf(4) should have 1480 as MTU, not 1280.
tron found it, sync w/kame

Revision 1.23.10.3 / (download) - annotate - [select for diffs], Mon Aug 5 07:12:23 2002 UTC (21 years, 8 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.23.10.2: +11 -4 lines
Diff to previous 1.23.10.2 (colored) to branchpoint 1.23 (colored)

Pull up revision 1.26 (requested by tron in ticket #623):
Increase interface output error count in case of a failure.

Revision 1.23.10.2 / (download) - annotate - [select for diffs], Mon Aug 5 07:11:28 2002 UTC (21 years, 8 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.23.10.1: +1 -0 lines
Diff to previous 1.23.10.1 (colored) to branchpoint 1.23 (colored)

Pull up revision 1.25 (requested by tron in ticket #623):
Increase interface output counter for every encapsulated packet sent to IP.

Revision 1.12.2.5 / (download) - annotate - [select for diffs], Thu Aug 1 02:46:42 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.12.2.4: +21 -4 lines
Diff to previous 1.12.2.4 (colored)

Catch up to -current.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jul 23 06:59:51 2002 UTC (21 years, 9 months ago) by tron
Branch: MAIN
Changes since 1.25: +11 -4 lines
Diff to previous 1.25 (colored)

Increase interface output error count in case of a failure.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jul 23 06:44:53 2002 UTC (21 years, 9 months ago) by tron
Branch: MAIN
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored)

Increase interface output counter for every encapsulated packet sent to IP.

Revision 1.23.8.1 / (download) - annotate - [select for diffs], Mon Jul 15 10:36:51 2002 UTC (21 years, 9 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.23: +11 -2 lines
Diff to previous 1.23 (colored)

catch up with -current.

Revision 1.23.10.1 / (download) - annotate - [select for diffs], Fri Jun 21 00:36:30 2002 UTC (21 years, 10 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.23: +11 -2 lines
Diff to previous 1.23 (colored)

Pull up revision 1.24 (requested by itojun in ticket #326):
reject packets with IPv4 private address range.  sync w/kame

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jun 20 07:43:39 2002 UTC (21 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.23: +11 -2 lines
Diff to previous 1.23 (colored)

reject packets with IPv4 private address range.  sync w/kame

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 20:02:14 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.16.2.1: +13 -87 lines
Diff to previous 1.16.2.1 (colored)

Sync kqueue branch with -current.

Revision 1.12.2.4 / (download) - annotate - [select for diffs], Tue Jan 8 00:33:55 2002 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.12.2.3: +9 -80 lines
Diff to previous 1.12.2.3 (colored)

Catch up to -current.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Dec 21 03:21:50 2001 UTC (22 years, 4 months ago) by itojun
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.22: +9 -80 lines
Diff to previous 1.22 (colored)

move protosw fragment for gif/stf to their own source code.
reduce #ifdef in stf code.  sync with kame

Revision 1.12.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:17:26 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.12.2.2: +8 -11 lines
Diff to previous 1.12.2.2 (colored)

Catch up to -current.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Nov 13 00:49:35 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.21: +2 -6 lines
Diff to previous 1.21 (colored)

remove unnecessary #if NFOO > 0    .... #endif  wrappers

Revision 1.21 / (download) - annotate - [select for diffs], Mon Nov 12 23:49:43 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.20: +4 -1 lines
Diff to previous 1.20 (colored)

add RCSIDs

Revision 1.17.4.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:19:19 2001 UTC (22 years, 5 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.17: +5 -7 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Nov 6 08:14:27 2001 UTC (22 years, 5 months ago) by itojun
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

too many curly brace.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Nov 6 06:26:34 2001 UTC (22 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Fix pr#14481

Revision 1.18 / (download) - annotate - [select for diffs], Mon Nov 5 18:02:16 2001 UTC (22 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.17: +5 -7 lines
Diff to previous 1.17 (colored)

Switch to using queue access macros instead of refering to the member
fields explicitly.

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Fri Aug 24 00:12:16 2001 UTC (22 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.12.2.1: +5 -5 lines
Diff to previous 1.12.2.1 (colored)

Catch up with -current.

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:52 2001 UTC (22 years, 8 months ago) by lukem
Branch: kqueue
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored)

update to -current

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jul 18 16:43:10 2001 UTC (22 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored)

bzero -> memset

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:08:14 2001 UTC (22 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.12: +50 -4 lines
Diff to previous 1.12 (colored)

Catch up to -current.

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Sun Jun 10 18:35:41 2001 UTC (22 years, 10 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.4.2.2: +25 -1 lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Pull up revision 1.16 (requested by itojun):
  Inject packets to bpf in outgoing path.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jun 8 00:17:05 2001 UTC (22 years, 10 months ago) by itojun
Branch: MAIN
Branch point for: kqueue
Changes since 1.15: +26 -2 lines
Diff to previous 1.15 (colored)

inject outgoing packet to bpf.  KAME PR 358.

Revision 1.15 / (download) - annotate - [select for diffs], Thu May 10 01:37:42 2001 UTC (22 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.14: +6 -2 lines
Diff to previous 1.14 (colored)

correct ecn consideration on tunnel encap/decap.  sync with kame.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Tue May 1 11:55:37 2001 UTC (22 years, 11 months ago) by he
Branch: netbsd-1-5
Changes since 1.4.2.1: +16 -2 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored)

Pull up revision 1.14 (partial, via patch, requested by itojun):
  Fix outbound outer IPv4 destination address selection.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Tue May 1 10:11:23 2001 UTC (22 years, 11 months ago) by he
Branch: netbsd-1-5
Changes since 1.4: +28 -18 lines
Diff to previous 1.4 (colored)

Pull up revision 1.10 (via patch, requested by itojun):
  Make it possible to turn off ingress filter on gif/stf tunnel
  egress by using IFF_LINK2.  Fixes (part of) PR#11163.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Apr 29 03:56:06 2001 UTC (22 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.13: +21 -3 lines
Diff to previous 1.13 (colored)

correct outbound outer IPv4 destination address selection.
IFF_LINK0 disables inbound path, removes security worries.
more examples in manpage.

Revision 1.5.2.9 / (download) - annotate - [select for diffs], Mon Apr 23 15:30:30 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.5.2.8: +2 -2 lines
Diff to previous 1.5.2.8 (colored) next main 1.6 (colored)

Kill unwanted differences with HEAD

Revision 1.5.2.8 / (download) - annotate - [select for diffs], Sat Apr 21 17:46:41 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.5.2.7: +2 -2 lines
Diff to previous 1.5.2.7 (colored)

Sync with HEAD

Revision 1.13 / (download) - annotate - [select for diffs], Fri Apr 13 23:30:16 2001 UTC (23 years ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Remove the use of splimp() from the NetBSD kernel.  splnet()
and only splnet() is allowed for the protection of data structures
used by network devices.

Revision 1.5.2.7 / (download) - annotate - [select for diffs], Mon Mar 12 13:31:48 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.5.2.6: +10 -9 lines
Diff to previous 1.5.2.6 (colored)

Sync with HEAD.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Feb 20 07:58:17 2001 UTC (23 years, 2 months ago) by itojun
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

explicitly use u_int32_t for DLT_NULL encapsulation.

correct gif address family.  from chopps, sync with kame.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Feb 17 04:29:59 2001 UTC (23 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.10: +10 -9 lines
Diff to previous 1.10 (colored)

update comment to meet 6to4 RFC.  sync with kame

Revision 1.5.2.6 / (download) - annotate - [select for diffs], Sun Feb 11 19:17:09 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.5.2.5: +28 -20 lines
Diff to previous 1.5.2.5 (colored)

Sync with HEAD.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jan 22 07:51:01 2001 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.9: +28 -20 lines
Diff to previous 1.9 (colored)

make it possible to turn off ingress filter on gif/stf tunnel egress,
by using IFF_LINK2.  (part of) PR 11163 from Ken Raeburn.

Revision 1.5.2.5 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:52 2001 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.5.2.4: +4 -11 lines
Diff to previous 1.5.2.4 (colored)

Sync with head (for UBC+NFS fixes, mostly).

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jan 17 04:05:42 2001 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.8: +3 -11 lines
Diff to previous 1.8 (colored)

pull post-4.4BSD change to sys/net/route.c from BSD/OS 4.2 (UCB copyrighted).

have sys/net/route.c:rtrequest1(), which takes rt_addrinfo * as the argument.
pass rt_addrinfo all the way down to rtrequest, and ifa->ifa_rtrequest.
3rd arg of ifa->ifa_rtrequest is now rt_addrinfo * instead of sockaddr *
(almost noone is using it anyways).

benefit: the follwoing command now works.  previously we need two route(8)
invocations, "add" then "change".
# route add -inet6 default ::1 -ifp gif0

remove unsafe typecast in rtrequest(), from rtentry * to sockaddr *.  it was
introduced by 4.3BSD-reno and never corrected.

XXX is eon_rtrequest() change correct regarding to 3rd arg?
eon_rtrequest() and rtrequest() were incorrect since 4.3BSD-reno,
so i do not have correct answer in the source code.
someone with more clue about netiso-over-ip, please help.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jan 17 00:30:52 2001 UTC (23 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

Fix a rather annoying problem where the sockaddr_dl which holds
the link level name for the interface (ifp->if_sadl) is allocated
before ifp->if_addrlen is initialized, which could lead to allocating
too little space for the link level address.

Do this by splitting allocation of the link level name out of
if_attach() and into if_alloc_sadl(), which is normally called
by functions like ether_ifattach().  Network interfaces which
don't have a link-specific attach routine must call if_alloc_sadl()
themselves (example: gif).

Link level names are freed by if_free_sadl(), which can be called
from e.g. ether_ifdetach().  Drivers never need call if_free_sadl()
themselves as if_detach() will do it if it is not already done.

While here, add the ability to pass an AF_LINK address to
SIOCSIFADDR in ether_ioctl() (this is what caused me to notice
the problem that the above fixes).

Revision 1.5.2.4 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:52 2001 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.5.2.3: +2 -1 lines
Diff to previous 1.5.2.3 (colored)

Sync with HEAD

Revision 1.7 / (download) - annotate - [select for diffs], Mon Dec 18 19:50:45 2000 UTC (23 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

Fill in if_dlt.

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Wed Dec 13 15:50:32 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.5.2.2: +1 -5 lines
Diff to previous 1.5.2.2 (colored)

Sync with HEAD (for UBC fixes).

Revision 1.6 / (download) - annotate - [select for diffs], Tue Dec 12 18:00:27 2000 UTC (23 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.5: +1 -5 lines
Diff to previous 1.5 (colored)

Adapt to bpfattach() changes, and further centralize the bpfattach()
and bpfdetach() calls into link-type subroutines where possible.

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Mon Nov 20 18:10:06 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.5.2.1: +752 -0 lines
Diff to previous 1.5.2.1 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.5.2.1, Wed Jul 5 17:08:18 2000 UTC (23 years, 9 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.5: +0 -752 lines
FILE REMOVED

file if_stf.c was added on branch thorpej_scsipi on 2000-11-20 18:10:06 +0000

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jul 5 17:08:18 2000 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
Branch point for: thorpej_scsipi
Changes since 1.4: +68 -52 lines
Diff to previous 1.4 (colored)

stf(4) is now a cloning network interface (although, only one is allowed
to be created).

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:09:42 2000 UTC (23 years, 10 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.3: +5 -4 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jun 10 08:02:20 2000 UTC (23 years, 10 months ago) by itojun
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Changes since 1.3: +5 -4 lines
Diff to previous 1.3 (colored)

update i-d #. (sync with kame)

Revision 1.3 / (download) - annotate - [select for diffs], Sun May 14 03:44:02 2000 UTC (23 years, 11 months ago) by itojun
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.2: +28 -6 lines
Diff to previous 1.2 (colored)

sync IPv4 rogue address filter with RFC1122.  (sync with kame)

Revision 1.2 / (download) - annotate - [select for diffs], Fri Apr 21 02:40:53 2000 UTC (24 years ago) by itojun
Branch: MAIN
Changes since 1.1: +6 -4 lines
Diff to previous 1.1 (colored)

update comment (analysis on 04 draft)

Revision 1.1 / (download) - annotate - [select for diffs], Wed Apr 19 06:30:53 2000 UTC (24 years ago) by itojun
Branch: MAIN

introduce sys/netinet/ip_encap.c, to dispatch inbound packets
to protocol handlers, based on src/dst (for ip proto #4/41).
see comment in ip_encap.c for details of the problem we have.
there are too many protocol specs for ip proto #4/41.
backward compatibility with MROUTING case is now provided in ip_encap.c.

fix ipip to work with gif (using ip_encap.c).  sorry for breakage.

gif now uses ip_encap.c.

introduce stf pseudo interface (implements 6to4, another IPv6-over-IPv4 code
with ip proto #41).

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.




CVSweb <webmaster@jp.NetBSD.org>