The NetBSD Project

CVS log for src/sys/netinet/ip_encap.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.77 / (download) - annotate - [selected], Wed Dec 7 08:33:02 2022 UTC (16 months, 1 week ago) by knakahara
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, HEAD
Changes since 1.76: +11 -414 lines
Diff to previous 1.76 (colored)

Refactor ip_encap.[ch]

    - remove encap_attach() which is no longer used
    - remove USE_RADIX code in ip_encap.c, which is used for
      encap_attach() only
    - remove mask members in encaptab

Revision 1.76 / (download) - annotate - [select for diffs], Wed Dec 7 08:28:46 2022 UTC (16 months, 1 week ago) by knakahara
Branch: MAIN
Changes since 1.75: +270 -2 lines
Diff to previous 1.75 (colored) to selected 1.77 (colored)

Implement encap_attach_addr() which is used by IP-encaped tunnels.

The tunnels attached by encap_attach() can process receiving packets
fastly as the softc is searched by radix-tree.  However, the tunnels
cannot use priority function which decides tunnel's softc by not only
source and destination but also other informations.
On the other hand, the tunnels attached by encap_attach_func() can
use priority function. However, the tunnels can be slow receiving
processing as the softc is searched by linear search (and uses each
priority function).

encap_attach_addr() can be used for tunnels which is fixed tunnel
source address and tunnel destination address.  The tunnels attached
by encap_attach_addr() is searched by thmap(9), so the receiving processing
can be fast.  Moreover, the tunnels can use priority function.

Revision 1.75 / (download) - annotate - [select for diffs], Wed Dec 7 08:27:03 2022 UTC (16 months, 1 week ago) by knakahara
Branch: MAIN
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored) to selected 1.77 (colored)

refactor: use typedef for ip_encap priority function

Revision 1.74 / (download) - annotate - [select for diffs], Sat Aug 22 01:43:07 2020 UTC (3 years, 7 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored) to selected 1.77 (colored)

Mark KASSERT-only variable __diagused.

Revision 1.73 / (download) - annotate - [select for diffs], Thu Aug 20 21:21:32 2020 UTC (3 years, 7 months ago) by riastradh
Branch: MAIN
Changes since 1.72: +26 -64 lines
Diff to previous 1.72 (colored) to selected 1.77 (colored)

[ozaki-r] Changes to the kernel core for wireguard

Revision 1.69.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:58 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.69.2.1: +6 -5 lines
Diff to previous 1.69.2.1 (colored) to branchpoint 1.69 (colored) next main 1.70 (colored) to selected 1.77 (colored)

Merge changes from current as of 20200406

Revision 1.71.4.1 / (download) - annotate - [select for diffs], Sat Jan 25 22:38:52 2020 UTC (4 years, 2 months ago) by ad
Branch: ad-namecache
Changes since 1.71: +6 -5 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.77 (colored)

Sync with head.

Revision 1.65.2.5 / (download) - annotate - [select for diffs], Thu Jan 23 10:22:42 2020 UTC (4 years, 2 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE
Changes since 1.65.2.4: +6 -5 lines
Diff to previous 1.65.2.4 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored) to selected 1.77 (colored)

Pull up following revision(s) (requested by knakahara in ticket #1489):

	sys/netinet/ip_encap.c: revision 1.72

Fix PR security/54881.  Pointed out by ohishi@IIJ, thanks.

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Thu Jan 23 10:14:30 2020 UTC (4 years, 2 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2
Changes since 1.71: +6 -5 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.77 (colored)

Pull up following revision(s) (requested by knakahara in ticket #644):

	sys/netinet/ip_encap.c: revision 1.72

Fix PR security/54881.  Pointed out by ohishi@IIJ, thanks.

Revision 1.72 / (download) - annotate - [select for diffs], Thu Jan 23 09:09:59 2020 UTC (4 years, 2 months ago) by knakahara
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2
Changes since 1.71: +6 -5 lines
Diff to previous 1.71 (colored) to selected 1.77 (colored)

Fix PR security/54881.  Pointed out by ohishi@IIJ, thanks.

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

Sync with HEAD

Revision 1.65.2.4 / (download) - annotate - [select for diffs], Wed May 29 15:47:05 2019 UTC (4 years, 10 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-1-RELEASE
Changes since 1.65.2.3: +3 -2 lines
Diff to previous 1.65.2.3 (colored) to branchpoint 1.65 (colored) to selected 1.77 (colored)

Pull up following revision(s) (requested by knakahara in ticket #1271):

	sys/netinet/ip_encap.c: revision 1.71

Fix build failure when INET6 is disabled. Pointed out by ozaki-r@n.o, thanks.

Revision 1.71 / (download) - annotate - [select for diffs], Wed May 15 03:33:41 2019 UTC (4 years, 11 months ago) by knakahara
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-0-RC1, ad-namecache-base1, ad-namecache-base
Branch point for: netbsd-9, ad-namecache
Changes since 1.70: +3 -2 lines
Diff to previous 1.70 (colored) to selected 1.77 (colored)

Fix build failure when INET6 is disabled and NET_MPSAFE is enabled. Pointed out by ozaki-r@n.o, thanks.

Revision 1.67.2.3 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:56 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.67.2.2: +3 -10 lines
Diff to previous 1.67.2.2 (colored) to branchpoint 1.67 (colored) next main 1.68 (colored) to selected 1.77 (colored)

Ssync with HEAD

Revision 1.70 / (download) - annotate - [select for diffs], Fri Sep 14 05:09:51 2018 UTC (5 years, 7 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, isaki-audio2-base, isaki-audio2
Changes since 1.69: +3 -10 lines
Diff to previous 1.69 (colored) to selected 1.77 (colored)

Use non-variadic function pointer in protosw::pr_input.

Revision 1.65.2.3 / (download) - annotate - [select for diffs], Fri Jul 13 14:26:47 2018 UTC (5 years, 9 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-1-RC1, netbsd-8-0-RELEASE
Changes since 1.65.2.2: +9 -3 lines
Diff to previous 1.65.2.2 (colored) to branchpoint 1.65 (colored) to selected 1.77 (colored)

Pull up following revision(s) via patch (requested by knakahara in ticket #905):

	sys/netinet/ip_mroute.c: revision 1.160
	sys/netinet6/in6_l2tp.c: revision 1.16
	sys/net/if.h: revision 1.263
	sys/netinet/in_l2tp.c: revision 1.15
	sys/netinet/ip_icmp.c: revision 1.172
	sys/netinet/igmp.c: revision 1.68
	sys/netinet/ip_encap.c: revision 1.69
	sys/netinet6/ip6_mroute.c: revision 1.129

sbappendaddr() is required any lock. Currently, softnet_lock is appropriate.

When rip_input() is called as inetsw[].pr_input, rip_iput() is always called
with holding softnet_lock, that is, in case of !defined(NET_MPSAFE) it is
acquired in ipintr(), otherwise(defined(NET_MPSAFE)) it is acquire in
PR_WRAP_INPUT macro.

However, some function calls rip_input() directly without holding softnet_lock.
That causes assertion failure in sbappendaddr().
rip6_input() and icmp6_rip6_input() are also required softnet_lock for the same
reason.

Revision 1.67.2.2 / (download) - annotate - [select for diffs], Mon Jun 25 07:26:06 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.67.2.1: +9 -3 lines
Diff to previous 1.67.2.1 (colored) to branchpoint 1.67 (colored) to selected 1.77 (colored)

Sync with HEAD

Revision 1.69 / (download) - annotate - [select for diffs], Thu Jun 21 10:37:50 2018 UTC (5 years, 9 months ago) by knakahara
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.68: +9 -3 lines
Diff to previous 1.68 (colored) to selected 1.77 (colored)

sbappendaddr() is required any lock. Currently, softnet_lock is appropriate.

When rip_input() is called as inetsw[].pr_input, rip_iput() is always called
with holding softnet_lock, that is, in case of !defined(NET_MPSAFE) it is
acquired in ipintr(), otherwise(defined(NET_MPSAFE)) it is acquire in
PR_WRAP_INPUT macro.
However, some function calls rip_input() directly without holding softnet_lock.
That causes assertion failure in sbappendaddr().
rip6_input() and icmp6_rip6_input() are also required softnet_lock for the same
reason.

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

Synch with HEAD

Revision 1.68 / (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-0521, pgoyette-compat-0502
Changes since 1.67: +2 -4 lines
Diff to previous 1.67 (colored) to selected 1.77 (colored)

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

Revision 1.65.2.2 / (download) - annotate - [select for diffs], Fri Mar 30 11:12:15 2018 UTC (6 years ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.65.2.1: +5 -3 lines
Diff to previous 1.65.2.1 (colored) to branchpoint 1.65 (colored) to selected 1.77 (colored)

Pull up following revision(s) (requested by maxv in ticket #661):

	sys/netinet/ip_encap.c: revision 1.67

Fix memory leak, found by Mootja.

Revision 1.67 / (download) - annotate - [select for diffs], Sun Jan 14 16:18:11 2018 UTC (6 years, 3 months ago) by maxv
Branch: MAIN
CVS Tags: 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.66: +5 -3 lines
Diff to previous 1.66 (colored) to selected 1.77 (colored)

Fix memory leak, found by Mootja.

Revision 1.65.2.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.65: +5 -34 lines
Diff to previous 1.65 (colored) to selected 1.77 (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.39.12.1 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:04 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.39: +340 -119 lines
Diff to previous 1.39 (colored) next main 1.40 (colored) to selected 1.77 (colored)

update from HEAD

Revision 1.66 / (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
Changes since 1.65: +5 -34 lines
Diff to previous 1.65 (colored) to selected 1.77 (colored)

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

Revision 1.39.30.8 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:12 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.39.30.7: +8 -14 lines
Diff to previous 1.39.30.7 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored) to selected 1.77 (colored)

Sync with HEAD

Revision 1.65 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:14 2017 UTC (6 years, 10 months ago) by chs
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: netbsd-8
Changes since 1.64: +2 -4 lines
Diff to previous 1.64 (colored) to selected 1.77 (colored)

remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.61.2.2 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:29 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.61.2.1: +8 -12 lines
Diff to previous 1.61.2.1 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored) to selected 1.77 (colored)

Sync with HEAD

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:06 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.62: +8 -12 lines
Diff to previous 1.62 (colored) next main 1.63 (colored) to selected 1.77 (colored)

Sync with HEAD

Revision 1.64 / (download) - annotate - [select for diffs], Sat Apr 15 17:06:45 2017 UTC (7 years ago) by riastradh
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, bouyer-socketcan-base1
Changes since 1.63: +2 -12 lines
Diff to previous 1.63 (colored) to selected 1.77 (colored)

No need for membar_datadep_consumer here.

PSLIST_READER_FOREACH takes care of it already.
PSLIST_WRITER_FOREACH is exclusive so doesn't need it.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Apr 7 03:31:50 2017 UTC (7 years ago) by ozaki-r
Branch: MAIN
CVS Tags: jdolecek-ncq-base, jdolecek-ncq
Changes since 1.62: +8 -2 lines
Diff to previous 1.62 (colored) to selected 1.77 (colored)

Commit a forgotten change for "Prepare netipsec for rump-ification"

- Allow encapinit to be called twice (by ifinit and ipe4_attach)
  - ifinit didn't call encapinit if IPSEC is enabled (ipe4_attach called
    it instead), however, on a rump kernel ipe4_attach may not be called
    even if IPSEC is enabled. So we need to allow ifinit to call it anyway

Revision 1.39.30.7 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:59 2017 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.39.30.6: +2 -7 lines
Diff to previous 1.39.30.6 (colored) to branchpoint 1.39 (colored) to selected 1.77 (colored)

Sync with HEAD

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:51 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.61: +2 -7 lines
Diff to previous 1.61 (colored) to selected 1.77 (colored)

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

Revision 1.62 / (download) - annotate - [select for diffs], Thu Dec 22 04:54:54 2016 UTC (7 years, 3 months ago) by knakahara
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320, pgoyette-localcount-20170107, nick-nhusb-base-20170204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.61: +2 -7 lines
Diff to previous 1.61 (colored) to selected 1.77 (colored)

pserialize_perform() is required *after* PSLIST_WRITER_REMOVE.

Revision 1.39.30.6 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:22 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.39.30.5: +417 -46 lines
Diff to previous 1.39.30.5 (colored) to branchpoint 1.39 (colored) to selected 1.77 (colored)

Sync with HEAD

Revision 1.61 / (download) - annotate - [select for diffs], Mon Jul 4 04:40:13 2016 UTC (7 years, 9 months ago) by knakahara
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.60: +21 -3 lines
Diff to previous 1.60 (colored) to selected 1.77 (colored)

make gif(4) and ip_encap MP-ify

Revision 1.60 / (download) - annotate - [select for diffs], Mon Jul 4 04:38:14 2016 UTC (7 years, 9 months ago) by knakahara
Branch: MAIN
Changes since 1.59: +7 -23 lines
Diff to previous 1.59 (colored) to selected 1.77 (colored)

refactor: merge encap_init_once() to encapinit()

Revision 1.59 / (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.58: +42 -15 lines
Diff to previous 1.58 (colored) to selected 1.77 (colored)

make encap_lock_{enter,exit} interruptable.

Revision 1.58 / (download) - annotate - [select for diffs], Mon Jul 4 04:32:55 2016 UTC (7 years, 9 months ago) by knakahara
Branch: MAIN
Changes since 1.57: +7 -3 lines
Diff to previous 1.57 (colored) to selected 1.77 (colored)

remove extra pserialize_perform()

Revision 1.57 / (download) - annotate - [select for diffs], Mon Jul 4 04:31:04 2016 UTC (7 years, 9 months ago) by knakahara
Branch: MAIN
Changes since 1.56: +42 -2 lines
Diff to previous 1.56 (colored) to selected 1.77 (colored)

use pserialize(9) and psref(9) (2/2) : ip_encap radix tree care

Revision 1.56 / (download) - annotate - [select for diffs], Mon Jul 4 04:29:11 2016 UTC (7 years, 9 months ago) by knakahara
Branch: MAIN
Changes since 1.55: +198 -76 lines
Diff to previous 1.55 (colored) to selected 1.77 (colored)

use pserialize(9) and psref(9) (1/2) : without ip_encap radix tree care

Revision 1.55 / (download) - annotate - [select for diffs], Mon Jul 4 04:26:00 2016 UTC (7 years, 9 months ago) by knakahara
Branch: MAIN
Changes since 1.54: +103 -5 lines
Diff to previous 1.54 (colored) to selected 1.77 (colored)

restore ifdef USE_RADIX (revert ip_encap.c:r1.44)

To help future ip_encap optimaization works.

Revision 1.54 / (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.53: +81 -3 lines
Diff to previous 1.53 (colored) to selected 1.77 (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.39.30.5 / (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.39.30.4: +2 -3 lines
Diff to previous 1.39.30.4 (colored) to branchpoint 1.39 (colored) to selected 1.77 (colored)

Sync with HEAD

Revision 1.53 / (download) - annotate - [select for diffs], Tue Apr 26 08:44:44 2016 UTC (7 years, 11 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.52: +2 -3 lines
Diff to previous 1.52 (colored) to selected 1.77 (colored)

Sweep unnecessary route.h inclusions

Revision 1.39.30.4 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:33 2016 UTC (8 years ago) by skrll
Branch: nick-nhusb
Changes since 1.39.30.3: +20 -24 lines
Diff to previous 1.39.30.3 (colored) to branchpoint 1.39 (colored) to selected 1.77 (colored)

Sync with HEAD

Revision 1.52 / (download) - annotate - [select for diffs], Fri Feb 26 07:35:17 2016 UTC (8 years, 1 month ago) by knakahara
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored) to selected 1.77 (colored)

To eliminate gif_softc_list linear search, add extra argument to encapsw.pr_ctlinput().

Revision 1.51 / (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.50: +20 -20 lines
Diff to previous 1.50 (colored) to selected 1.77 (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.50 / (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.49: +18 -21 lines
Diff to previous 1.49 (colored) to selected 1.77 (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.49 / (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.48: +21 -18 lines
Diff to previous 1.48 (colored) to selected 1.77 (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.48 / (download) - annotate - [select for diffs], Wed Jan 20 05:58:49 2016 UTC (8 years, 2 months ago) by knakahara
Branch: MAIN
Changes since 1.47: +2 -6 lines
Diff to previous 1.47 (colored) to selected 1.77 (colored)

remove unused variable.

Revision 1.39.30.3 / (download) - annotate - [select for diffs], Sun Dec 27 12:10:07 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.39.30.2: +13 -12 lines
Diff to previous 1.39.30.2 (colored) to branchpoint 1.39 (colored) to selected 1.77 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.47 / (download) - annotate - [select for diffs], Wed Dec 9 06:00:51 2015 UTC (8 years, 4 months ago) by knakahara
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226
Changes since 1.46: +13 -12 lines
Diff to previous 1.46 (colored) to selected 1.77 (colored)

ip_encap uses kmem_alloc APIs instead of malloc.

Revision 1.39.30.2 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:11 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.39.30.1: +4 -2 lines
Diff to previous 1.39.30.1 (colored) to branchpoint 1.39 (colored) to selected 1.77 (colored)

Sync with HEAD

Revision 1.46 / (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-20150921
Changes since 1.45: +4 -2 lines
Diff to previous 1.45 (colored) to selected 1.77 (colored)

sprinkle _KERNEL_OPT

Revision 1.39.30.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:25 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.39: +17 -125 lines
Diff to previous 1.39 (colored) to selected 1.77 (colored)

Sync with HEAD

Revision 1.45 / (download) - annotate - [select for diffs], Mon Apr 20 07:34:48 2015 UTC (8 years, 11 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.44: +5 -106 lines
Diff to previous 1.44 (colored) to selected 1.77 (colored)

Remove non-USE_RADIX case and USE_RADIX switch

It seems that we have been using ip_encap only with USE_RADIX
for long years. Let's remove unused non-USE_RADIX case.

No objection on tech-kern and tech-net.

Double-checked by knakahara@

Revision 1.44 / (download) - annotate - [select for diffs], Thu Apr 16 06:50:16 2015 UTC (9 years ago) by ozaki-r
Branch: MAIN
Changes since 1.43: +2 -6 lines
Diff to previous 1.43 (colored) to selected 1.77 (colored)

Remove garbage undef

Revision 1.43 / (download) - annotate - [select for diffs], Wed Apr 15 13:02:16 2015 UTC (9 years ago) by riastradh
Branch: MAIN
Changes since 1.42: +6 -4 lines
Diff to previous 1.42 (colored) to selected 1.77 (colored)

KASSERT x then y, not x && y, to give more specific errors.

Revision 1.42 / (download) - annotate - [select for diffs], Wed Apr 15 08:47:28 2015 UTC (9 years ago) by ozaki-r
Branch: MAIN
Changes since 1.41: +4 -4 lines
Diff to previous 1.41 (colored) to selected 1.77 (colored)

Use LIST_FOREACH_SAFE

We have to use LIST_FOREACH_SAFE because LIST_REMOVE is used
inside the loop through encap_remove.

Revision 1.41 / (download) - annotate - [select for diffs], Wed Apr 15 03:38:50 2015 UTC (9 years ago) by ozaki-r
Branch: MAIN
Changes since 1.40: +12 -18 lines
Diff to previous 1.40 (colored) to selected 1.77 (colored)

Replace DIAGNOSTIC & panic with KASSERT/KASSERTMSG

Revision 1.40 / (download) - annotate - [select for diffs], Wed Apr 15 03:32:23 2015 UTC (9 years ago) by ozaki-r
Branch: MAIN
Changes since 1.39: +2 -1 lines
Diff to previous 1.39 (colored) to selected 1.77 (colored)

Add $NetBSD$ at the top of the file

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jul 17 20:54:53 2011 UTC (12 years, 9 months ago) by joerg
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, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, 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, 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, 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, nick-nhusb
Changes since 1.38: +1 -3 lines
Diff to previous 1.38 (colored) to selected 1.77 (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.33.4.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:48 2009 UTC (14 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.33.4.1: +6 -6 lines
Diff to previous 1.33.4.1 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored) to selected 1.77 (colored)

Sync with HEAD.

Revision 1.32.2.2 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:34 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.32.2.1: +6 -6 lines
Diff to previous 1.32.2.1 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored) to selected 1.77 (colored)

sync with head

Revision 1.38 / (download) - annotate - [select for diffs], Wed May 27 17:46:49 2009 UTC (14 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.37: +6 -6 lines
Diff to previous 1.37 (colored) to selected 1.77 (colored)

Make it possible to register delayed radix tree head inits which
will be processed when the radix "subsystem" is initialized -- all
users must be attached before any inits to know the max keylength.
Use of link sets is no longer required, and only attached domains
need to be considered.

Revision 1.33.4.1 / (download) - annotate - [select for diffs], Wed May 13 17:22:28 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.33: +14 -14 lines
Diff to previous 1.33 (colored) to selected 1.77 (colored)

Sync with HEAD.

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

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Mon May 4 08:14:17 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.32: +26 -53 lines
Diff to previous 1.32 (colored) to selected 1.77 (colored)

sync with head.

Revision 1.32.10.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:22 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.32.10.1: +14 -14 lines
Diff to previous 1.32.10.1 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored) to selected 1.77 (colored)

Sync with HEAD.

Revision 1.37 / (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-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.36: +5 -5 lines
Diff to previous 1.36 (colored) to selected 1.77 (colored)

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

Revision 1.36 / (download) - annotate - [select for diffs], Wed Mar 18 17:06:52 2009 UTC (15 years, 1 month ago) by cegger
Branch: MAIN
Changes since 1.35: +5 -5 lines
Diff to previous 1.35 (colored) to selected 1.77 (colored)

bcopy -> memcpy

Revision 1.35 / (download) - annotate - [select for diffs], Wed Mar 18 16:00:22 2009 UTC (15 years, 1 month ago) by cegger
Branch: MAIN
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored) to selected 1.77 (colored)

bzero -> memset

Revision 1.34 / (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.33: +7 -7 lines
Diff to previous 1.33 (colored) to selected 1.77 (colored)

bcmp -> memcmp

Revision 1.32.10.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:13 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.32: +13 -40 lines
Diff to previous 1.32 (colored) to selected 1.77 (colored)

Sync with HEAD.

Revision 1.31.28.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:32 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.31.28.1: +12 -39 lines
Diff to previous 1.31.28.1 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored) to selected 1.77 (colored)

Sync with HEAD.

Revision 1.32.8.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:27 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.32: +13 -40 lines
Diff to previous 1.32 (colored) next main 1.33 (colored) to selected 1.77 (colored)

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

Revision 1.33 / (download) - annotate - [select for diffs], Tue Nov 25 18:28:05 2008 UTC (15 years, 4 months ago) by pooka
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.32: +13 -40 lines
Diff to previous 1.32 (colored) to selected 1.77 (colored)

Make dom_maxrtkey of inet/inet6domain the size of the ip_encap pack
structures.  This is far from optimal, but gets rid of iffy
#ifdef INET in radix.c.  The radix bonsai still needs lots of love
before loading domains dynamically is possible...

Revision 1.31.28.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:24 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.31: +6 -5 lines
Diff to previous 1.31 (colored) to selected 1.77 (colored)

Sync with HEAD.

Revision 1.31.30.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:28 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.31: +6 -5 lines
Diff to previous 1.31 (colored) next main 1.32 (colored) to selected 1.77 (colored)

sync with head.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Apr 24 11:38:37 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, yamt-nfs-mp-base, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, 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, hpcarm-cleanup-nbase, haad-dm-base1
Branch point for: yamt-nfs-mp, nick-hppapmap, haad-dm
Changes since 1.31: +6 -5 lines
Diff to previous 1.31 (colored) to selected 1.77 (colored)

Merge the socket locking patch:

- Socket layer becomes MP safe.
- Unix protocols become MP safe.
- Allows protocol processing interrupts to safely block on locks.
- Fixes a number of race conditions.

With much feedback from matt@ and plunky@.

Revision 1.26.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:42:50 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.26.2.2: +12 -12 lines
Diff to previous 1.26.2.2 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored) to selected 1.77 (colored)

sync with head.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Sun Jul 15 13:27:57 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.30: +6 -6 lines
Diff to previous 1.30 (colored) next main 1.31 (colored) to selected 1.77 (colored)

Sync with head.

Revision 1.30.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:11:22 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.30: +6 -6 lines
Diff to previous 1.30 (colored) next main 1.31 (colored) to selected 1.77 (colored)

Sync with head.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Jun 13 04:55:25 2007 UTC (16 years, 10 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1
Branch point for: yamt-pf42, mjf-devfs2
Changes since 1.30: +6 -6 lines
Diff to previous 1.30 (colored) to selected 1.77 (colored)

Use LIST_FOREACH().

Revision 1.28.12.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:59:37 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.28.12.1: +7 -7 lines
Diff to previous 1.28.12.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored) to selected 1.77 (colored)

Sync with HEAD.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:21 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.29: +7 -7 lines
Diff to previous 1.29 (colored) to selected 1.77 (colored)

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

Revision 1.28.12.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:55 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored) to selected 1.77 (colored)

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

Revision 1.26.2.2 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:44 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.26.2.1: +2 -2 lines
Diff to previous 1.26.2.1 (colored) to branchpoint 1.26 (colored) to selected 1.77 (colored)

sync with head.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Feb 17 22:34:11 2007 UTC (17 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored) to selected 1.77 (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.27.4.2 / (download) - annotate - [select for diffs], Sat Sep 9 02:58:47 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.27.4.1: +1 -9 lines
Diff to previous 1.27.4.1 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored) to selected 1.77 (colored)

sync with head

Revision 1.27.8.1 / (download) - annotate - [select for diffs], Mon Jun 26 12:53:57 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.27: +1 -9 lines
Diff to previous 1.27 (colored) next main 1.28 (colored) to selected 1.77 (colored)

sync with head.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:11:01 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.26: +1 -9 lines
Diff to previous 1.26 (colored) to selected 1.77 (colored)

sync with head.

Revision 1.27.14.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:09:48 2006 UTC (17 years, 10 months ago) by chap
Branch: chap-midi
Changes since 1.27: +1 -9 lines
Diff to previous 1.27 (colored) next main 1.28 (colored) to selected 1.77 (colored)

Sync with head.

Revision 1.27.6.1 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:47 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.27: +1 -9 lines
Diff to previous 1.27 (colored) next main 1.28 (colored) to selected 1.77 (colored)

Sync with head.

Revision 1.28 / (download) - annotate - [select for diffs], Sun May 28 11:07:04 2006 UTC (17 years, 10 months ago) by liamjfoy
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, post-newlock2-merge, newlock2-nbase, newlock2-base, newlock2, 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, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-idlelwp
Changes since 1.27: +1 -9 lines
Diff to previous 1.27 (colored) to selected 1.77 (colored)

remove some dead code

ok christos@

Revision 1.27.4.1 / (download) - annotate - [select for diffs], Sun Feb 5 03:09:11 2006 UTC (18 years, 2 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored) to selected 1.77 (colored)

<netinet6/in6_pcb.h> went away. Bye!

Revision 1.27 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:57 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, peter-altq, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, chap-midi
Changes since 1.26: +1 -1 lines
Diff to previous 1.26 (colored) to selected 1.77 (colored)

merge ktrace-lwp.

Revision 1.13.2.7 / (download) - annotate - [select for diffs], Thu Nov 10 14:11:07 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.13.2.6: +2 -2 lines
Diff to previous 1.13.2.6 (colored) next main 1.14 (colored) to selected 1.77 (colored)

Sync with HEAD. Here we go again...

Revision 1.26 / (download) - annotate - [select for diffs], Mon Jun 6 06:06:50 2005 UTC (18 years, 10 months ago) by martin
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.25: +2 -2 lines
Diff to previous 1.25 (colored) to selected 1.77 (colored)

Since we decided "const struct mbuf *" would not do the right thing (tm),
remove ~all const from mbuf pointers.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jun 3 21:40:56 2005 UTC (18 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored) to selected 1.77 (colored)

Sprinkle some const

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jun 2 15:21:35 2005 UTC (18 years, 10 months ago) by tron
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored) to selected 1.77 (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.17.4.1 / (download) - annotate - [select for diffs], Fri May 6 01:06:58 2005 UTC (18 years, 11 months ago) by riz
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.17: +5 -5 lines
Diff to previous 1.17 (colored) next main 1.18 (colored) to selected 1.77 (colored)

Pull up revision 1.20 (requested by bouyer in ticket #1188):
get zero-cleared field on malloc.  kame-pr-856

Revision 1.19.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:33 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.19: +41 -74 lines
Diff to previous 1.19 (colored) next main 1.20 (colored) to selected 1.77 (colored)

sync with -current

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:54 2005 UTC (19 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.21: +35 -69 lines
Diff to previous 1.21 (colored) next main 1.22 (colored) to selected 1.77 (colored)

sync with head.

Revision 1.13.2.6 / (download) - annotate - [select for diffs], Fri Feb 4 11:47:48 2005 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.13.2.5: +35 -69 lines
Diff to previous 1.13.2.5 (colored) to selected 1.77 (colored)

Sync with HEAD.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Feb 3 03:49:01 2005 UTC (19 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, 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.22: +25 -57 lines
Diff to previous 1.22 (colored) to selected 1.77 (colored)

ANSIfy function prototypes. (Still have about 3/5ths of the C files in
netinet to go...)

Revision 1.22 / (download) - annotate - [select for diffs], Wed Feb 2 21:41:55 2005 UTC (19 years, 2 months ago) by perry
Branch: MAIN
Changes since 1.21: +12 -14 lines
Diff to previous 1.21 (colored) to selected 1.77 (colored)

de-__P -- will ANSIfy .c files later.

Revision 1.13.2.5 / (download) - annotate - [select for diffs], Mon Jan 24 08:35:53 2005 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.13.2.4: +7 -6 lines
Diff to previous 1.13.2.4 (colored) to selected 1.77 (colored)

Sync with HEAD.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jan 24 04:46:49 2005 UTC (19 years, 2 months ago) by enami
Branch: MAIN
CVS Tags: yamt-km-base
Branch point for: yamt-km
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (colored) to selected 1.77 (colored)

To fix bad pointer dereference on start up when gif is used,
- Allow rn_init() to be called multiple times, but do nothing except the
  first call.
- Include opt_inet.h so that #ifdef INET works.
- Call rn_init() from encap_init() explicitly rather than depending on the
  order of initialization.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jan 24 02:42:49 2005 UTC (19 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.19: +5 -5 lines
Diff to previous 1.19 (colored) to selected 1.77 (colored)

get zero-cleared field on malloc.  kame-pr-856

Revision 1.13.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:37:11 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.13.2.3: +1 -1 lines
Diff to previous 1.13.2.3 (colored) to selected 1.77 (colored)

Fix the sync with head I botched.

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

Sync with HEAD.

Revision 1.13.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.13.2.1: +14 -5 lines
Diff to previous 1.13.2.1 (colored) to selected 1.77 (colored)

Sync with HEAD.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Aug 17 07:05:34 2004 UTC (19 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: kent-audio2
Changes since 1.18: +14 -5 lines
Diff to previous 1.18 (colored) to selected 1.77 (colored)

initialize max_keylen for ip_encap.c earlier

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:54:37 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.13: +22 -39 lines
Diff to previous 1.13 (colored) to selected 1.77 (colored)

Sync with HEAD

Revision 1.18 / (download) - annotate - [select for diffs], Mon Apr 26 01:31:56 2004 UTC (19 years, 11 months ago) by matt
Branch: MAIN
CVS Tags: BEFORE-IPF413
Changes since 1.17: +1 -7 lines
Diff to previous 1.17 (colored) to selected 1.77 (colored)

Remove #else clause of __STDC__

Revision 1.17 / (download) - annotate - [select for diffs], Thu Mar 4 15:15:06 2004 UTC (20 years, 1 month ago) by wiz
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, BEFORE-IPF411
Branch point for: netbsd-2
Changes since 1.16: +1 -5 lines
Diff to previous 1.16 (colored) to selected 1.77 (colored)

No need to include netinet/ip_mroute.h twice.
Closes PR 24652 by Kailash Sethuraman.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Oct 30 01:43:08 2003 UTC (20 years, 5 months ago) by simonb
Branch: MAIN
Changes since 1.15: +1 -7 lines
Diff to previous 1.15 (colored) to selected 1.77 (colored)

Remove some assigned-to but otherwise unused variables.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Oct 28 20:27:22 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.14: +22 -24 lines
Diff to previous 1.14 (colored) to selected 1.77 (colored)

Do the previous differently.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Oct 25 18:32:45 2003 UTC (20 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored) to selected 1.77 (colored)

Fix uninitialized variable warning

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jan 21 03:23:44 2003 UTC (21 years, 3 months ago) by itojun
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored) to selected 1.77 (colored)

correct panic when ip-in-ip encapsulation is used.  found by Masanori Kanaoka

Revision 1.4.4.8 / (download) - annotate - [select for diffs], Fri Jan 17 16:37:18 2003 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.4.4.7: +11 -12 lines
Diff to previous 1.4.4.7 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored) to selected 1.77 (colored)

Sync with HEAD.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Jan 17 08:11:56 2003 UTC (21 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base
Changes since 1.11: +11 -12 lines
Diff to previous 1.11 (colored) to selected 1.77 (colored)

switch from kame-based m_aux mbuf auxiliary data, to openbsd m_tag
implementation.  it will simplify porting across *bsd (such as kame/altq),
and make us more synchronized.  from Joel Wilsson

Revision 1.4.4.7 / (download) - annotate - [select for diffs], Wed Dec 11 06:46:37 2002 UTC (21 years, 4 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.4.4.6: +2 -2 lines
Diff to previous 1.4.4.6 (colored) to branchpoint 1.4 (colored) to selected 1.77 (colored)

Sync with HEAD.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Nov 25 02:03:42 2002 UTC (21 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored) to selected 1.77 (colored)

Avoid strict-alias warnings.

Revision 1.5.2.4 / (download) - annotate - [select for diffs], Fri Sep 6 08:49:10 2002 UTC (21 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.5.2.3: +4 -4 lines
Diff to previous 1.5.2.3 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored) to selected 1.77 (colored)

sync kqueue branch with HEAD

Revision 1.8.6.2 / (download) - annotate - [select for diffs], Thu Aug 29 00:56:45 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.8.6.1: +4 -4 lines
Diff to previous 1.8.6.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored) to selected 1.77 (colored)

catch up with -current.

Revision 1.8.8.1 / (download) - annotate - [select for diffs], Fri Aug 2 00:34:13 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.8: +4 -4 lines
Diff to previous 1.8 (colored) next main 1.9 (colored) to selected 1.77 (colored)

Pull up revision 1.10 (requested by itojun in ticket #593):
remove packed attribute as it will cause data be unaligned

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

Catch up to -current.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jul 31 03:18:04 2002 UTC (21 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gehenna-devsw-base
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored) to selected 1.77 (colored)

remove packed attribute as it will cause data be unaligned

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 17:50:47 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.5.2.2: +2 -2 lines
Diff to previous 1.5.2.2 (colored) to branchpoint 1.5 (colored) to selected 1.77 (colored)

catch up with -current on kqueue branch

Revision 1.8.6.1 / (download) - annotate - [select for diffs], Thu Jun 20 15:52:17 2002 UTC (21 years, 10 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored) to selected 1.77 (colored)

catch up with -current.

Revision 1.4.4.5 / (download) - annotate - [select for diffs], Thu Jun 20 03:48:38 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.4.4.4: +2 -2 lines
Diff to previous 1.4.4.4 (colored) to branchpoint 1.4 (colored) to selected 1.77 (colored)

Catch up to -current.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jun 9 16:33:39 2002 UTC (21 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored) to selected 1.77 (colored)

whitespace

Revision 1.4.4.4 / (download) - annotate - [select for diffs], Mon Apr 1 07:48:32 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.4.4.3: +3 -8 lines
Diff to previous 1.4.4.3 (colored) to branchpoint 1.4 (colored) to selected 1.77 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Sat Mar 16 16:02:12 2002 UTC (22 years, 1 month ago) by jdolecek
Branch: kqueue
Changes since 1.5.2.1: +3 -8 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored) to selected 1.77 (colored)

Catch up with -current.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Mar 4 13:24:12 2002 UTC (22 years, 1 month ago) by sommerfeld
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.7: +3 -8 lines
Diff to previous 1.7 (colored) to selected 1.77 (colored)

The "gif*" tunnelling interface does everything ipip does.
Move usage example from ipip.4 to gif.4
Excise ipip and stitch up the scars.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 20:02:44 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.5: +536 -107 lines
Diff to previous 1.5 (colored) to selected 1.77 (colored)

Sync kqueue branch with -current.

Revision 1.4.4.3 / (download) - annotate - [select for diffs], Tue Jan 8 00:34:04 2002 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.4.4.2: +534 -108 lines
Diff to previous 1.4.4.2 (colored) to branchpoint 1.4 (colored) to selected 1.77 (colored)

Catch up to -current.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Dec 21 06:30:43 2001 UTC (22 years, 4 months ago) by itojun
Branch: MAIN
CVS Tags: ifpoll-base
Changes since 1.6: +534 -108 lines
Diff to previous 1.6 (colored) to selected 1.77 (colored)

use radix table for inbound tunnel lookup (would increase performance
for machines with a lot of tunnels).
update route cache for IPvX-over-IPv6 tunnel on path MTU discovery.
snyc with kame

Revision 1.4.4.2 / (download) - annotate - [select for diffs], Wed Nov 14 19:17:46 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.4.4.1: +4 -1 lines
Diff to previous 1.4.4.1 (colored) to branchpoint 1.4 (colored) to selected 1.77 (colored)

Catch up to -current.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Nov 13 00:32:36 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.5: +4 -1 lines
Diff to previous 1.5 (colored) to selected 1.77 (colored)

add RCSIDs

Revision 1.4.4.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:08:33 2001 UTC (22 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.4: +1 -12 lines
Diff to previous 1.4 (colored) to selected 1.77 (colored)

Catch up to -current.

Revision 1.5 / (download) - annotate - [select for diffs], Tue May 8 10:07:15 2001 UTC (22 years, 11 months ago) by itojun
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: kqueue
Changes since 1.4: +1 -12 lines
Diff to previous 1.4 (colored) to selected 1.77 (colored)

pull encapsulated packet for vif* via ip_encap framework.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Mon Nov 20 18:10:25 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.4.2.1: +545 -0 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored) to selected 1.77 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.4.2.1, Mon Oct 2 03:55:42 2000 UTC (23 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.4: +0 -545 lines
FILE REMOVED

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

Revision 1.4 / (download) - annotate - [select for diffs], Mon Oct 2 03:55:42 2000 UTC (23 years, 6 months ago) by itojun
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: thorpej_scsipi, nathanw_sa
Changes since 1.3: +27 -60 lines
Diff to previous 1.3 (colored) to selected 1.77 (colored)

fix compilation without INET.  fix confusion between ipsecstat and ipsec6stat.
sync with kame.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jul 5 21:32:51 2000 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.2: +7 -1 lines
Diff to previous 1.2 (colored) to selected 1.77 (colored)

Make that note that we really should be checking the viftable
in ip_mroute.c for duplicate tunnel entries, too.  Well, what
really needs to happen is that the mrouting code needs to be
changed to work w/ `gif' tunnels... but...

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jul 5 18:45:26 2000 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored) to selected 1.77 (colored)

Use LIST_HEAD_INITIALIZER(), for correctness sake.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Apr 19 06:30:54 2000 UTC (24 years ago) by itojun
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Diff to selected 1.77 (colored)

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>