The NetBSD Project

CVS log for src/sys/netinet6/in6_src.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.79.6.4: download - view: text, markup, annotated - select for diffs
Fri Aug 4 14:24:16 2023 UTC (16 months, 1 week ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.79.6.3: preferred, colored; branchpoint 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79.6.3: +3 -2 lines
Pull up following revision(s) (requested by ozaki-r in ticket #1883):

	sys/netinet6/in6_src.c: revision 1.92

in6: add missing rtcache_unref to in6_selectroute

By default, this issue is harmless.  However, if NET_MPSAFE
is enabled, it could eventually lead to a kernel panic.

Revision 1.85.6.2: download - view: text, markup, annotated - select for diffs
Fri Aug 4 14:23:02 2023 UTC (16 months, 1 week ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE
Diff to: previous 1.85.6.1: preferred, colored; branchpoint 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85.6.1: +3 -2 lines
Pull up following revision(s) (requested by ozaki-r in ticket #1706):

	sys/netinet6/in6_src.c: revision 1.92

in6: add missing rtcache_unref to in6_selectroute

By default, this issue is harmless.  However, if NET_MPSAFE
is enabled, it could eventually lead to a kernel panic.

Revision 1.91.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 4 14:21:48 2023 UTC (16 months, 1 week ago) by martin
Branches: netbsd-10
CVS tags: 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
Diff to: previous 1.91: preferred, colored; next MAIN 1.92: preferred, colored
Changes since revision 1.91: +3 -2 lines
Pull up following revision(s) (requested by ozaki-r in ticket #309):

	sys/netinet6/in6_src.c: revision 1.92

in6: add missing rtcache_unref to in6_selectroute

By default, this issue is harmless.  However, if NET_MPSAFE
is enabled, it could eventually lead to a kernel panic.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Thu Aug 3 04:24:55 2023 UTC (16 months, 1 week ago) by ozaki-r
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +3 -2 lines
in6: add missing rtcache_unref to in6_selectroute

By default, this issue is harmless.  However, if NET_MPSAFE
is enabled, it could eventually lead to a kernel panic.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Fri Nov 4 09:01:53 2022 UTC (2 years, 1 month ago) by ozaki-r
Branches: MAIN
CVS tags: netbsd-10-base
Branch point for: netbsd-10
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +9 -9 lines
inpcb: rename functions to in6pcb_*

Revision 1.90: download - view: text, markup, annotated - select for diffs
Fri Oct 28 05:25:36 2022 UTC (2 years, 1 month ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -4 lines
inpcb: separate inpcb again to reduce the size of PCB for IPv4

The data size of PCB for IPv4 increased because of the merge of
struct in6pcb.  The change decreases the size to the original size by
separating struct inpcb (again).  struct in4pcb and in6pcb that embed
struct inpcb are introduced.

Even after the separation, users don't need to realize the separation
and only have to use some macros to access dedicated data.  For example,
inp->inp_laddr is now accessed through in4p_laddr(inp).

Revision 1.89: download - view: text, markup, annotated - select for diffs
Fri Oct 28 05:18:39 2022 UTC (2 years, 1 month ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +20 -20 lines
inpcb: integrate data structures of PCB into one

Data structures of network protocol control blocks (PCBs), i.e.,
struct inpcb, in6pcb and inpcb_hdr, are not organized well.  Users of
the data structures have to handle them separately and thus the code
is cluttered and duplicated.

The commit integrates the data structures into one, struct inpcb.  As a
result, users of PCBs only have to handle just one data structure, so
the code becomes simple.

One drawback is that the data size of PCB for IPv4 increases by 40 bytes
(from 248 bytes to 288 bytes).

Revision 1.79.6.3: download - view: text, markup, annotated - select for diffs
Wed Aug 11 17:24:42 2021 UTC (3 years, 4 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.79.6.2: preferred, colored; branchpoint 1.79: preferred, colored
Changes since revision 1.79.6.2: +13 -4 lines
Pull up following revision(s) (requested by kardel in ticket #1690):

	sys/netinet6/in6_src.c: revision 1.88

PR kern/56348

MTU discovery fails with IPv6 sockets bound to IPv4 mapped address
pick up the IPv4 route for IPv4 mapped IPv6 address to get the correct
MTU and not any unrelated/inappropriate MTU from IPv6 routes. IPv4 mapped
IPv6 addresses are always handled by the IPv4 stack and MTU discovery
is solely handled with the IPv4 routing table.

Revision 1.85.6.1: download - view: text, markup, annotated - select for diffs
Wed Aug 11 17:22:17 2021 UTC (3 years, 4 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-3-RELEASE
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +13 -4 lines
Pull up following revision(s) (requested by kardel in ticket #1332):

	sys/netinet6/in6_src.c: revision 1.88

PR kern/56348

MTU discovery fails with IPv6 sockets bound to IPv4 mapped address
pick up the IPv4 route for IPv4 mapped IPv6 address to get the correct
MTU and not any unrelated/inappropriate MTU from IPv6 routes. IPv4 mapped
IPv6 addresses are always handled by the IPv4 stack and MTU discovery
is solely handled with the IPv4 routing table.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Tue Aug 10 06:29:56 2021 UTC (3 years, 4 months ago) by kardel
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +13 -4 lines
PR kern/56348
MTU discovery fails with IPv6 sockets bound to IPv4 mapped address

pick up the IPv4 route for IPv4 mapped IPv6 address to get the correct
MTU and not any unrelated/inappropriate MTU from IPv6 routes. IPv4 mapped
IPv6 addresses are always handled by the IPv4 stack and MTU discovery
is solely handled with the IPv4 routing table.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Fri Aug 28 06:32:24 2020 UTC (4 years, 3 months ago) by ozaki-r
Branches: 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
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +3 -2 lines
inet6: reduce silent packet discards

Revision 1.85.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:17 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85: +3 -4 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.86: download - view: text, markup, annotated - select for diffs
Wed Nov 13 02:51:22 2019 UTC (5 years ago) by ozaki-r
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +3 -4 lines
Get rid of unnecessary NULL checks for rt_ifa and ifa_ifp

They are always non-NULL nowadays.

Revision 1.84.2.1: download - view: text, markup, annotated - select for diffs
Wed May 2 07:20:23 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.84: preferred, colored; next MAIN 1.85: preferred, colored
Changes since revision 1.84: +2 -4 lines
Synch with HEAD

Revision 1.85: download - view: text, markup, annotated - select for diffs
Tue May 1 07:21:39 2018 UTC (6 years, 7 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-base, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, netbsd-9-base, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi, netbsd-9
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +2 -4 lines
Remove now unused net_osdep.h includes, the other BSDs did the same.

Revision 1.79.6.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 09:24:30 2017 UTC (7 years ago) by snj
Branches: 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
Diff to: previous 1.79.6.1: preferred, colored; branchpoint 1.79: preferred, colored
Changes since revision 1.79.6.1: +13 -7 lines
Pull up following revision(s) (requested by roy in ticket #390):
	sys/netinet/ip_input.c: 1.363
	sys/netinet6/ip6_input.c: 1.184-1.185
	sys/netinet6/ip6_output.c: 1.194-1.195
	sys/netinet6/in6_src.c: 1.83-1.84
Allow local communication over DETACHED addresses.
Allow binding to DETACHED or TENTATIVE addresses as we deny
sending upstream from them anyway.
Prefer non DETACHED or TENTATIVE addresses.
--
Attempt to restore v6 networking.   Not 100% certain that these
changes are all that is needed, but they're certainly a big part of it
(especially the ip6_input.c change.)
--
Treat unvalidated addresses as deprecated in rule 3.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Wed Dec 6 14:17:42 2017 UTC (7 years ago) by roy
Branches: 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
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +10 -8 lines
Treat unvalidated addresses as deprecated in rule 3.

Revision 1.53.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:04 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.53.2.1: preferred, colored; branchpoint 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53.2.1: +314 -278 lines
update from HEAD

Revision 1.83: download - view: text, markup, annotated - select for diffs
Fri Nov 24 14:03:25 2017 UTC (7 years ago) by roy
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +11 -7 lines
Allow local communication over DETACHED addresses.
Allow binding to DETACHED or TENTATIVE addresses as we deny
sending upstream from them anyway.
Prefer non DETACHED or TENTATIVE addresses.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Mon Nov 20 09:01:20 2017 UTC (7 years ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +5 -2 lines
Mention IPv6 address selection policy isn't MP-safe yet

Though it's not a problem until a policy is set.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Sun Sep 17 17:35:10 2017 UTC (7 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +10 -4 lines
Skip the scope test for loopback addresses in non-loopback interfaces.
While this test is also done in in6_setscope, testing here allows us
to log an error for other callers.

Revision 1.79.6.1: download - view: text, markup, annotated - select for diffs
Thu Aug 31 11:24:03 2017 UTC (7 years, 3 months ago) by martin
Branches: netbsd-8
CVS tags: matt-nb8-mediatek-base, matt-nb8-mediatek
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +7 -5 lines
Pull up following revision(s) (requested by christos in ticket #243):
	sys/netinet6/in6_src.c: revision 1.80
PR/52382: BERTRAND Joel: Fix mapped IPv4 source selection; this got broken
in the last code refactoring. in6_selectif failing is not fatal.
XXX: pullup-8

Revision 1.55.2.10: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:12 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.55.2.9: preferred, colored; branchpoint 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.2.9: +3 -3 lines
Sync with HEAD

Revision 1.80: download - view: text, markup, annotated - select for diffs
Sun Aug 27 12:34:21 2017 UTC (7 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +7 -5 lines
PR/52382: BERTRAND Joel: Fix mapped IPv4 source selection; this got broken
in the last code refactoring. in6_selectif failing is not fatal.
XXX: pullup-8

Revision 1.76.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:06 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.76: preferred, colored; next MAIN 1.77: preferred, colored
Changes since revision 1.76: +18 -11 lines
Sync with HEAD

Revision 1.63.2.5: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:51 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.63.2.4: preferred, colored; branchpoint 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.2.4: +18 -11 lines
Sync with HEAD

Revision 1.79: download - view: text, markup, annotated - select for diffs
Fri Feb 17 03:57:17 2017 UTC (7 years, 9 months ago) by ozaki-r
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +3 -3 lines
Rename if_acquire_NOMPSAFE to if_acquire

It can be used in MP-safe ways. So let's remove the confusing postfix.
If it's used in a unsafe way, warn NOMPSAFE in a comment.

Revision 1.55.2.9: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:59 2017 UTC (7 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.55.2.8: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.2.8: +39 -21 lines
Sync with HEAD

Revision 1.78: download - view: text, markup, annotated - select for diffs
Mon Jan 16 15:44:47 2017 UTC (7 years, 10 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20170204
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +15 -10 lines
ip6_sprintf -> IN6_PRINT so that we pass the size.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Mon Jan 16 07:33:36 2017 UTC (7 years, 10 months ago) by ryo
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +6 -4 lines
Make ip6_sprintf(), in_fmtaddr(), lla_snprintf() and icmp6_redirect_diag() mpsafe.

Reviewed by ozaki-r@

Revision 1.63.2.4: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:51 2017 UTC (7 years, 11 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.63.2.3: preferred, colored; branchpoint 1.63: preferred, colored
Changes since revision 1.63.2.3: +69 -121 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.76: download - view: text, markup, annotated - select for diffs
Thu Dec 8 05:16:34 2016 UTC (8 years ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-20170107, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +24 -13 lines
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.55.2.8: download - view: text, markup, annotated - select for diffs
Mon Dec 5 10:55:28 2016 UTC (8 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.55.2.7: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.2.7: +221 -286 lines
Sync with HEAD

Revision 1.75: download - view: text, markup, annotated - select for diffs
Fri Dec 2 00:19:54 2016 UTC (8 years ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20161204
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +4 -4 lines
CID 1396598, CID 1396634: Fix null pointer dereferences

Revision 1.74: download - view: text, markup, annotated - select for diffs
Thu Nov 10 04:13:53 2016 UTC (8 years, 1 month ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +52 -115 lines
Tidy up in6_select*

This change tidies up in6_select* functions, especially
selectroute.

selectroute is annoying because:
- It returns both/either of a rtentry and/or an ifp
  - Yes, it may return only an ifp!
    - It is valid but selectroute shouldn't handle the case
  - Such conditional behavior makes it difficult
    to apply locking/psref thingy
- It may return a rtentry even if error
- It may use opt->ip6po_nextroute rtcache implicitly
  - The caller can know if it is used
    by rtcache_validate(&opt->ip6po_nextroute)
    but it's racy in MP-safe world
  - Even if it uses opt->ip6po_nextroute, it may
    return a rtentry that isn't derived from the rtcache

The change includes:
- Rename selectroute to in6_selectroute
  - Let a remaining caller of selectroute, in6_selectif,
    use in6_selectroute instead
- Let in6_selectroute return only an rtentry
  - If error, it doesn't return an rtentry
  - A caller gets an ifp from a returned rtentry
- Allow in6_selectroute to modify a passed rtcache
  and a caller can know if opt->ip6po_nextroute is
  used via the rtcache
- Let callers (ip6_output and in6_selectif) handle
  the case that only an ifp is required

Inspired by OpenBSD
Proposed on tech-kern and tech-net
LGTM by roy@

Revision 1.63.2.3: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:21 2016 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.63.2.2: preferred, colored; branchpoint 1.63: preferred, colored
Changes since revision 1.63.2.2: +200 -206 lines
Sync with HEAD

Revision 1.73: download - view: text, markup, annotated - select for diffs
Mon Oct 31 04:57:10 2016 UTC (8 years, 1 month ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-20161104
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +149 -134 lines
Pull best address selection code out of in6_selectsrc

No functional change.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Mon Oct 31 04:16:25 2016 UTC (8 years, 1 month ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +17 -21 lines
Fix race condition of in6_selectsrc

in6_selectsrc returned a pointer to in6_addr that wan't guaranteed to be
safe by pserialize (or psref), which was racy. Let callers pass a pointer
to in6_addr and in6_selectsrc copy a result to it inside pserialize
critical sections.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Mon Oct 31 02:50:31 2016 UTC (8 years, 1 month ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +49 -62 lines
Remove unnecessary NULL checks

Revision 1.55.2.7: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:56:09 2016 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.55.2.6: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.2.6: +36 -17 lines
Sync with HEAD

Revision 1.70: download - view: text, markup, annotated - select for diffs
Fri Aug 26 20:29:31 2016 UTC (8 years, 3 months ago) by roy
Branches: MAIN
CVS tags: nick-nhusb-base-20161004, localcount-20160914
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +5 -9 lines
Simplify.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Fri Aug 26 19:45:55 2016 UTC (8 years, 3 months ago) by roy
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -4 lines
Allow explicit binding to detached addresss.
Fixes PR kern/51435.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Tue Aug 23 19:39:57 2016 UTC (8 years, 3 months ago) by roy
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +5 -5 lines
White space police.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Tue Aug 23 19:39:04 2016 UTC (8 years, 3 months ago) by roy
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +4 -3 lines
Sync denied flags.

Revision 1.63.2.2: download - view: text, markup, annotated - select for diffs
Sat Aug 6 00:19:10 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.63.2.1: preferred, colored; branchpoint 1.63: preferred, colored
Changes since revision 1.63.2.1: +33 -10 lines
Sync with HEAD

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Aug 1 03:15:31 2016 UTC (8 years, 4 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-20160806
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +33 -10 lines
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.63.2.1: download - view: text, markup, annotated - select for diffs
Tue Jul 26 03:24:23 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -3 lines
Sync with HEAD

Revision 1.65: download - view: text, markup, annotated - select for diffs
Fri Jul 15 07:40:09 2016 UTC (8 years, 4 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-20160726
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3 lines
Use sin6tosa and sin6tocsa macros

No functional change.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Fri Jul 15 07:33:41 2016 UTC (8 years, 4 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -3 lines
Use ifatoia6 macro

No functional change.

Revision 1.55.2.6: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:22 2016 UTC (8 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.55.2.5: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.2.5: +78 -36 lines
Sync with HEAD

Revision 1.63: download - view: text, markup, annotated - select for diffs
Mon Jul 4 06:48:14 2016 UTC (8 years, 5 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-base, nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3 lines
Use pslist(9) for the global in6_ifaddr list

psz and psref will be applied in another commit.

No functional change intended.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Tue Jun 21 10:25:27 2016 UTC (8 years, 5 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +67 -27 lines
Make sure returning ifp from in6_select* functions psref-ed

To this end, callers need to pass struct psref to the functions
and the fuctions acquire a reference of ifp with it. In some cases,
we can simply use if_get_byindex, however, in other cases
(say rt->rt_ifp and ia->ifa_ifp), we have no MP-safe way for now.
In order to take a reference anyway we use non MP-safe function
if_acquire_NOMPSAFE for the latter cases. They should be fixed in
the future somehow.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Tue Jun 21 03:28:27 2016 UTC (8 years, 5 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +7 -5 lines
Replace ifp of ip_moptions and ip6_moptions with if_index

The motivation is the same as the mbuf's rcvif case; avoid having a pointer
of an ifnet object in ip_moptions and ip6_moptions, which is not MP-safe.

ip_moptions and ip6_moptions can be stored in a PCB for inet or inet6
that's life time is different from ifnet one and so an ifnet object can be
disappeared anytime we get it via them. Thus we need to look up an ifnet
object by if_index every time for safe.

Revision 1.55.2.5: download - view: text, markup, annotated - select for diffs
Sun May 29 08:44:39 2016 UTC (8 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.55.2.4: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.2.4: +2 -6 lines
Sync with HEAD

Revision 1.60: download - view: text, markup, annotated - select for diffs
Wed May 18 09:32:05 2016 UTC (8 years, 6 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20160529
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +2 -6 lines
Get rid of unnecessary NULL check

It's already checked just some lines above.

Revision 1.55.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:10:07 2015 UTC (8 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.55.2.3: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.2.3: +4 -3 lines
Sync with HEAD (as of 26th Dec)

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sat Dec 12 23:34:25 2015 UTC (9 years ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +4 -3 lines
Hook up the addrctl stuff that's already there.

Revision 1.55.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:11 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.55.2.2: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.2.2: +4 -2 lines
Sync with HEAD

Revision 1.58: download - view: text, markup, annotated - select for diffs
Mon Aug 24 22:21:27 2015 UTC (9 years, 3 months ago) by pooka
Branches: MAIN
CVS tags: nick-nhusb-base-20150921
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +4 -2 lines
sprinkle _KERNEL_OPT

Revision 1.55.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:26 2015 UTC (9 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.55.2.1: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.2.1: +27 -12 lines
Sync with HEAD

Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Apr 27 02:59:44 2015 UTC (9 years, 7 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +17 -2 lines
Introduce in6_selecthlim_rt to consolidate an idiom for rt->rt_ifp

It consolidates a scattered routine:
(rt = rtcache_validate(&in6p->in6p_route)) != NULL ? rt->rt_ifp : NULL

Revision 1.55.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:23 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +2 -8 lines
Sync with HEAD

Revision 1.54.2.1: download - view: text, markup, annotated - select for diffs
Fri Jan 23 09:27:15 2015 UTC (9 years, 10 months ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, 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
Diff to: previous 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54: +2 -8 lines
Pull up following revision(s) (requested by pettai in ticket #441):
	sys/netinet6/ip6_var.h: revision 1.64
	sys/netinet6/in6.h: revision 1.82
	sys/netinet6/in6_src.c: revision 1.56
	sys/netinet6/mld6.c: revision 1.62
	sys/netinet6/ip6_input.c: revision 1.150
	sys/netinet6/ip6_output.c: revision 1.161
Add net.inet6.ip6.prefer_tempaddr sysctl knob so that we can prefer
IPv6 temporary addresses as the source address.
Fixes PR kern/47100 based on a patch by Dieter Roelants.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Tue Jan 20 21:27:36 2015 UTC (9 years, 10 months ago) by roy
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +2 -8 lines
Add net.inet6.ip6.prefer_tempaddr sysctl knob so that we can prefer
IPv6 temporary addresses as the source address.

Fixes PR kern/47100 based on a patch by Dieter Roelants.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Fri Sep 5 06:08:15 2014 UTC (10 years, 3 months ago) by matt
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +7 -8 lines
Don't use C++ keyword as variable.
Use different prefix for nd6_prefixctl members than for nd6_prefix members.

Revision 1.53.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:36 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -3 lines
Rebase to HEAD as of a few days ago.

Revision 1.53.12.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:56:30 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +3 -3 lines
Rebase.

Revision 1.53.4.2: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:13 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.53.4.1: preferred, colored; branchpoint 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53.4.1: +3 -2 lines
sync with head

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sat May 17 21:26:20 2014 UTC (10 years, 6 months ago) by rmind
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, rmind-smpnet-nbase, rmind-smpnet-base, netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -3 lines
Replace open-coded access (and boundary checking) of ifindex2ifnet with
if_byindex() function.

Revision 1.53.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 17 03:16:31 2013 UTC (11 years, 4 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +4 -4 lines
Checkpoint work in progress:
- Move PCB structures under __INPCB_PRIVATE, adjust most of the callers
  and thus make IPv4 PCB structures mostly opaque.  Any volunteers for
  merging in6pcb with inpcb (see rpaulo-netinet-merge-pcb branch)?
- Move various global vars to the modules where they belong, make them static.
- Some preliminary work for IPv4 PCB locking scheme.
- Make raw IP code mostly MP-safe.  Simplify some of it.
- Rework "fast" IP forwarding (ipflow) code to be mostly MP-safe.  It should
  run from a software interrupt, rather than hard.
- Rework tun(4) pseudo interface to be MP-safe.
- Work towards making some other interfaces more strict.

Revision 1.52.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:48 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +4 -4 lines
sync with head

Revision 1.53: download - view: text, markup, annotated - select for diffs
Mon Jun 25 15:28:39 2012 UTC (12 years, 5 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, 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, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, tls-earlyentropy, rmind-smpnet
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +4 -4 lines
rename rfc6056 -> portalgo, requested by yamt

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Sep 24 17:22:14 2011 UTC (13 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, 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, 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
Branch point for: yamt-pagecache
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +11 -64 lines
Add inet6 part of the rfc6056 code contributed by Vlad Balan as part of
Google SoC-2011

Revision 1.49.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:09:59 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49: +12 -3 lines
Sync with HEAD.

Revision 1.49.4.1: download - view: text, markup, annotated - select for diffs
Tue May 31 03:05:08 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49: +12 -3 lines
sync with head

Revision 1.51: download - view: text, markup, annotated - select for diffs
Tue May 17 04:39:57 2011 UTC (13 years, 6 months ago) by dholland
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +2 -1 lines
Add missing $NetBSD$ header.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue May 3 18:28:45 2011 UTC (13 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +11 -3 lines
Reduces the resources demanded by TCP sessions in TIME_WAIT-state using
methods called Vestigial Time-Wait (VTW) and Maximum Segment Lifetime
Truncation (MSLT).

MSLT and VTW were contributed by Coyote Point Systems, Inc.

Even after a TCP session enters the TIME_WAIT state, its corresponding
socket and protocol control blocks (PCBs) stick around until the TCP
Maximum Segment Lifetime (MSL) expires.  On a host whose workload
necessarily creates and closes down many TCP sockets, the sockets & PCBs
for TCP sessions in TIME_WAIT state amount to many megabytes of dead
weight in RAM.

Maximum Segment Lifetimes Truncation (MSLT) assigns each TCP session to
a class based on the nearness of the peer.  Corresponding to each class
is an MSL, and a session uses the MSL of its class.  The classes are
loopback (local host equals remote host), local (local host and remote
host are on the same link/subnet), and remote (local host and remote
host communicate via one or more gateways).  Classes corresponding to
nearer peers have lower MSLs by default: 2 seconds for loopback, 10
seconds for local, 60 seconds for remote.  Loopback and local sessions
expire more quickly when MSLT is used.

Vestigial Time-Wait (VTW) replaces a TIME_WAIT session's PCB/socket
dead weight with a compact representation of the session, called a
"vestigial PCB".  VTW data structures are designed to be very fast and
memory-efficient: for fast insertion and lookup of vestigial PCBs,
the PCBs are stored in a hash table that is designed to minimize the
number of cacheline visits per lookup/insertion.  The memory both
for vestigial PCBs and for elements of the PCB hashtable come from
fixed-size pools, and linked data structures exploit this to conserve
memory by representing references with a narrow index/offset from the
start of a pool instead of a pointer.  When space for new vestigial PCBs
runs out, VTW makes room by discarding old vestigial PCBs, oldest first.
VTW cooperates with MSLT.

It may help to think of VTW as a "FIN cache" by analogy to the SYN
cache.

A 2.8-GHz Pentium 4 running a test workload that creates TIME_WAIT
sessions as fast as it can is approximately 17% idle when VTW is active
versus 0% idle when VTW is inactive.  It has 103 megabytes more free RAM
when VTW is active (approximately 64k vestigial PCBs are created) than
when it is inactive.

Revision 1.45.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:32:52 2009 UTC (15 years, 4 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.45.2.1: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.2.1: +1 -21 lines
Sync with HEAD.

Revision 1.43.4.3: download - view: text, markup, annotated - select for diffs
Sat Jun 20 07:20:34 2009 UTC (15 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.43.4.2: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.4.2: +1 -21 lines
sync with head

Revision 1.49: download - view: text, markup, annotated - select for diffs
Mon May 25 22:49:23 2009 UTC (15 years, 6 months ago) by pooka
Branches: 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, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: rmind-uvmplock, jruoho-x86intr
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +1 -21 lines
Remove declaration of unused extern struct ifnet loif[NLOOP], which
was already removed once, but brought back in a wholesale import.
While here, mop up the #ifdef __SomeotherOS__ noise.

Revision 1.43.4.2: download - view: text, markup, annotated - select for diffs
Sat May 16 10:41:50 2009 UTC (15 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.43.4.1: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.4.1: +2 -2 lines
sync with head

Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:22:29 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +33 -12 lines
Sync with HEAD.

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

Revision 1.48: download - view: text, markup, annotated - select for diffs
Tue May 12 22:22:46 2009 UTC (15 years, 7 months ago) by elad
Branches: MAIN
CVS tags: yamt-nfs-mp-base4, jym-xensuspend-base
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +2 -2 lines
Implicit EPERM -> explicit EACCES.

Requested by ad@ and yamt@.

Revision 1.43.4.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:14:18 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +37 -18 lines
sync with head.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Apr 30 20:26:09 2009 UTC (15 years, 7 months ago) by elad
Branches: MAIN
CVS tags: yamt-nfs-mp-base3
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +31 -10 lines
Commit changes to netinet6/in6_src.c, forgot in previous commit:

    http://mail-index.netbsd.org/source-changes/2009/04/30/msg220547.html

Make in_pcbsetport() set the port number selected before passing "sin" to
kauth(9).

Revision 1.43.12.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:37:23 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.43.12.1: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.12.1: +3 -3 lines
Sync with HEAD.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed Mar 18 16:00:22 2009 UTC (15 years, 8 months ago) by cegger
Branches: MAIN
CVS tags: nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3 lines
bzero -> memset

Revision 1.43.12.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:20:14 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +5 -7 lines
Sync with HEAD.

Revision 1.40.14.3: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:33 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.40.14.2: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.14.2: +4 -6 lines
Sync with HEAD.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Jan 11 02:45:54 2009 UTC (15 years, 11 months ago) by christos
Branches: MAIN
CVS tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +4 -4 lines
merge christos-time_t

Revision 1.41.2.3: download - view: text, markup, annotated - select for diffs
Sat Dec 27 23:14:25 2008 UTC (15 years, 11 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.41.2.2: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.2.2: +2 -4 lines
merge with head.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Dec 17 20:51:37 2008 UTC (15 years, 11 months ago) by cegger
Branches: MAIN
CVS tags: christos-time_t-nbase, christos-time_t-base
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -4 lines
kill MALLOC and FREE macros.

Revision 1.41.2.2: download - view: text, markup, annotated - select for diffs
Sat Nov 1 21:22:28 2008 UTC (16 years, 1 month ago) by christos
Branches: christos-time_t
Diff to: previous 1.41.2.1: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.1: +3 -2 lines
Sync with head.

Revision 1.30.4.1: download - view: text, markup, annotated - select for diffs
Tue Jun 3 20:47:42 2008 UTC (16 years, 6 months ago) by skrll
Branches: wrstuden-fixsa
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +4 -3 lines
Sync with netbsd-4.

Revision 1.40.14.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:26 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.40.14.1: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.14.1: +2 -1 lines
Sync with HEAD.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Apr 15 03:57:04 2008 UTC (16 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, 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-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, nick-hppapmap
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -2 lines
Make ip6 and icmp6 stats per-cpu.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Tue Apr 8 23:37:43 2008 UTC (16 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -2 lines
Change IPv6 stats from a structure to an array of uint64_t's.

Note: This is ABI-compatible with the old ip6stat structure; old netstat
binaries will continue to work properly.

Revision 1.40.14.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:43:09 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +1 -1 lines
Sync with HEAD.

Revision 1.41.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 29 20:47:02 2008 UTC (16 years, 8 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -4 lines
Welcome to the time_t=long long dev_t=uint64_t branch.

Revision 1.40.10.2: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:16:24 2008 UTC (16 years, 8 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.40.10.1: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.10.1: +2 -2 lines
sync with head.

Revision 1.38.8.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:05:07 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.38.8.2: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.8.2: +2 -2 lines
sync with HEAD

Revision 1.21.2.7: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:15:42 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.21.2.6: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.6: +2 -2 lines
sync with head.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Wed Feb 27 19:40:56 2008 UTC (16 years, 9 months ago) by matt
Branches: MAIN
CVS tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: christos-time_t
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -2 lines
Convert to ansi definitions from old-style definitons.
Remember that func() is not ansi, func(void) is.

Revision 1.40.10.1: download - view: text, markup, annotated - select for diffs
Fri Feb 22 02:53:33 2008 UTC (16 years, 9 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +15 -15 lines
imported Mobile IPv6 code developed by the SHISA project
(http://www.mobileip.jp/).

Revision 1.30.2.1: download - view: text, markup, annotated - select for diffs
Fri Feb 1 14:47:37 2008 UTC (16 years, 10 months ago) by riz
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +4 -3 lines
Pull up following revision(s) (requested by yamt in ticket #1006):
	sys/netinet6/in6_src.c: revision 1.40
in6_pcbsetport: add missing htons.  (fixes ephemeral port allocation.)

Revision 1.38.8.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:57:35 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.38.8.1: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.8.1: +4 -3 lines
sync with HEAD

Revision 1.39.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:21:16 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39: +4 -3 lines
Sync with HEAD.

Revision 1.21.2.6: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:34:35 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.21.2.5: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.5: +4 -3 lines
sync with head

Revision 1.20.4.1: download - view: text, markup, annotated - select for diffs
Sun Dec 2 22:43:43 2007 UTC (17 years ago) by bouyer
Branches: netbsd-3
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +5 -4 lines
Pull up following revision(s) (requested by yamt in ticket #1881):
	sys/netinet6/in6_src.c: revision 1.40 via patch
in6_pcbsetport: add missing htons.  (fixes ephemeral port allocation.)

Revision 1.38.6.2: download - view: text, markup, annotated - select for diffs
Tue Nov 27 19:38:59 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.38.6.1: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.6.1: +4 -3 lines
Sync with HEAD. amd64 Xen support needs testing.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon Nov 26 08:12:33 2007 UTC (17 years ago) by yamt
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-base, jmcneill-pm-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386
Branch point for: mjf-devfs2, keiichi-mipv6
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +4 -3 lines
in6_pcbsetport: add missing htons.  (fixes ephemeral port allocation.)

Revision 1.38.12.1: download - view: text, markup, annotated - select for diffs
Tue Nov 13 16:02:55 2007 UTC (17 years, 1 month ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +2 -2 lines
Sync with HEAD

Revision 1.38.8.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:34:01 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -2 lines
sync with HEAD

Revision 1.21.2.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:36:12 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.21.2.4: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.4: +2 -2 lines
sync with head.

Revision 1.38.6.1: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:49:07 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -2 lines
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.39: download - view: text, markup, annotated - select for diffs
Wed Oct 24 06:37:21 2007 UTC (17 years, 1 month ago) by dyoung
Branches: MAIN
CVS tags: jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -2 lines
Replace rote sockaddr_in6 initializations (memset(), set sa6_family,
sa6_len, and sa6_add) with sockaddr_in6_init() calls.

De-__P().  Constify.  KNF.  Shorten a staircase.  Change bcmp() to
memcmp().

Extract subroutine in6_setzoneid() from in6_setscope(), for re-use
soon.

Revision 1.21.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:43:30 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.21.2.3: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.3: +44 -91 lines
sync with head.

Revision 1.36.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:11:41 2007 UTC (17 years, 5 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +38 -85 lines
Sync with head.

Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Fri Jun 8 14:17:54 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +38 -85 lines
Sync with head.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Wed May 23 17:15:02 2007 UTC (17 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6, jmcneill-pm, bouyer-xenamd64
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +23 -50 lines
Ansify + add a few comments, from Karl Sjödahl

Revision 1.34.2.3: download - view: text, markup, annotated - select for diffs
Mon May 7 10:56:03 2007 UTC (17 years, 7 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.34.2.2: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.2.2: +16 -36 lines
sync with head.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed May 2 20:40:26 2007 UTC (17 years, 7 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-idlelwp-base8
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +16 -36 lines
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.34.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:59:57 2007 UTC (17 years, 9 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.34.2.1: preferred, colored; branchpoint 1.34: preferred, colored
Changes since revision 1.34.2.1: +8 -8 lines
Sync with HEAD.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:03:26 2007 UTC (17 years, 9 months ago) by christos
Branches: MAIN
CVS tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +8 -8 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.34.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:55:02 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +45 -55 lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.21.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:11:51 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.21.2.2: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.2: +46 -56 lines
sync with head.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sat Feb 17 22:34:13 2007 UTC (17 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: ad-audiomp-base, ad-audiomp
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +45 -55 lines
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.28.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 01:04:15 2007 UTC (17 years, 11 months ago) by ad
Branches: newlock2
Diff to: previous 1.28.2.1: preferred, colored; branchpoint 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.2.1: +26 -63 lines
Sync with head.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Jan 4 19:07:04 2007 UTC (17 years, 11 months ago) by elad
Branches: MAIN
CVS tags: post-newlock2-merge, newlock2-nbase, newlock2-base
Branch point for: yamt-idlelwp
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +2 -2 lines
Consistent usage of KAUTH_GENERIC_ISSUSER.

Revision 1.21.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:38 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.21.2.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.1: +55 -84 lines
sync with head.

Revision 1.28.4.3: download - view: text, markup, annotated - select for diffs
Mon Dec 18 11:42:22 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.28.4.2: preferred, colored; branchpoint 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.4.2: +23 -54 lines
sync with head.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Dec 15 21:18:55 2006 UTC (18 years ago) by joerg
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +23 -54 lines
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.28.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:19:15 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.28.4.1: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.4.1: +21 -27 lines
sync with head.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat Dec 9 05:33:08 2006 UTC (18 years ago) by dyoung
Branches: MAIN
CVS tags: yamt-splraiseipl-base3
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +16 -22 lines
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.31: download - view: text, markup, annotated - select for diffs
Sat Dec 2 18:59:17 2006 UTC (18 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +5 -5 lines
Use the queue(3) macros instead of open-coding them.  Shorten
staircases.  Remove unnecessary casts.  Where appropriate, s/8/NBBY/.
De-__P().  KNF.

No functional changes intended.

Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:37 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -6 lines
Sync with head.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:45 2006 UTC (18 years ago) by christos
Branches: MAIN
CVS tags: wrstuden-fixsa-base-1, 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, matt-nb4-arm-base, matt-nb4-arm
Branch point for: wrstuden-fixsa, netbsd-4
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -2 lines
__unused removal on arguments; approved by core.

Revision 1.28.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:07:35 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -6 lines
sync with head

Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:32:39 2006 UTC (18 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -6 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.23.2.4: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:58:55 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.23.2.3: preferred, colored; branchpoint 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.2.3: +33 -23 lines
sync with head

Revision 1.23.6.3: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:25:42 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.23.6.2: preferred, colored; branchpoint 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.6.2: +26 -14 lines
sync with head.

Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Sun Sep 3 00:00:41 2006 UTC (18 years, 3 months ago) by riz
Branches: abandoned-netbsd-4
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +26 -14 lines
Pull up following revision(s) (requested by rpaulo in ticket #106):
	sys/netinet6/in6_src.c: revision 1.28
Restore historical kernel behavior: let an application bind(2) an
IPv6 interface address (e.g., sin6_addr fe80::200:24ff:fec3:4bac
sin6_scope_id 1), set a multicast interface with
setsockopt(,IPPROTO_IPV6,IPV6_MULTICAST_IF,), and sendto(2) multicast
destinations with "wildcard" scope ID, 0, without error EHOSTUNREACH.
Prior to this patch, sendto(2) would exit with EHOSTUNREACH, even
though the scope ID was unambiguously specified both by bind(2)
and setsockopt(2).  This was a bug because it broke old applications.
Thanks JINMEI Tatuya for the patch!

Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Sep 1 01:59:56 2006 UTC (18 years, 3 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +26 -14 lines
Restore historical kernel behavior: let an application bind(2) an
IPv6 interface address (e.g., sin6_addr fe80::200:24ff:fec3:4bac
sin6_scope_id 1), set a multicast interface with
setsockopt(,IPPROTO_IPV6,IPV6_MULTICAST_IF,), and sendto(2) multicast
destinations with "wildcard" scope ID, 0, without error EHOSTUNREACH.

Prior to this patch, sendto(2) would exit with EHOSTUNREACH, even
though the scope ID was unambiguously specified both by bind(2)
and setsockopt(2).  This was a bug because it broke old applications.

Thanks JINMEI Tatuya for the patch!

Revision 1.23.6.2: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:46:48 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.23.6.1: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.6.1: +5 -5 lines
sync with head

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Jul 23 22:06:13 2006 UTC (18 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base
Branch point for: abandoned-netbsd-4
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +5 -5 lines
Use the LWP cached credentials where sane.

Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:11:08 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +946 -255 lines
sync with head.

Revision 1.23.4.2: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:39:02 2006 UTC (18 years, 6 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.23.4.1: preferred, colored; branchpoint 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.4.1: +4 -6 lines
Sync with head.

Revision 1.23.10.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:45 2006 UTC (18 years, 6 months ago) by tron
Branches: peter-altq
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +5 -7 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.23.6.1: download - view: text, markup, annotated - select for diffs
Wed May 24 10:59:09 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +5 -7 lines
sync with head.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun May 14 21:19:34 2006 UTC (18 years, 7 months ago) by elad
Branches: 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
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -2 lines
integrate kauth.

Revision 1.23.8.5: download - view: text, markup, annotated - select for diffs
Thu May 11 23:31:35 2006 UTC (18 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.23.8.4: preferred, colored; branchpoint 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.8.4: +1 -5 lines
sync with head

Revision 1.23.8.4: download - view: text, markup, annotated - select for diffs
Sat May 6 23:32:11 2006 UTC (18 years, 7 months ago) by christos
Branches: elad-kernelauth
Diff to: previous 1.23.8.3: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.8.3: +2 -1 lines
- 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.25: download - view: text, markup, annotated - select for diffs
Fri May 5 00:03:22 2006 UTC (18 years, 7 months ago) by rpaulo
Branches: MAIN
CVS tags: elad-kernelauth-base
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +1 -5 lines
Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292).
* RFC 3542 isn't binary compatible with RFC 2292.
* RFC 2292 support is on by default but can be disabled.
* update ping6, telnet and traceroute6 to the new API.

From the KAME project (www.kame.net).
Reviewed by core.

Revision 1.23.4.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:40:12 2006 UTC (18 years, 7 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
Sync with head.

Revision 1.23.8.3: download - view: text, markup, annotated - select for diffs
Wed Apr 19 04:46:12 2006 UTC (18 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.23.8.2: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.8.2: +2 -2 lines
sync with head.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Apr 15 00:30:48 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
Coverity CID 607: Remove bogus test.

Revision 1.23.8.2: download - view: text, markup, annotated - select for diffs
Fri Mar 10 15:20:54 2006 UTC (18 years, 9 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.23.8.1: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.8.1: +2 -2 lines
generic_authorize() -> kauth_authorize_generic().

Revision 1.23.8.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 01:19:40 2006 UTC (18 years, 9 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -2 lines
Adapt to kernel authorization KPI.

Revision 1.23.2.3: download - view: text, markup, annotated - select for diffs
Thu Feb 23 16:11:13 2006 UTC (18 years, 9 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.23.2.2: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.2: +5 -5 lines
Last in6pcb in in6_selecthlim().

Revision 1.23.2.2: download - view: text, markup, annotated - select for diffs
Tue Feb 14 02:23:24 2006 UTC (18 years, 10 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.23.2.1: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.1: +9 -9 lines
Replace in6pcb with inpcb and IN6P_BOUND with INP_BOUND.

Revision 1.23.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 7 04:58:11 2006 UTC (18 years, 10 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +1 -4 lines
remove in6_pcb.h and include in_pcb.h.

Revision 1.22.2.1: download - view: text, markup, annotated - select for diffs
Wed Feb 1 14:52:41 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22: +947 -254 lines
sync with head.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Jan 21 00:15:36 2006 UTC (18 years, 10 months ago) by rpaulo
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +947 -254 lines
Better support of IPv6 scoped addresses.

- most of the kernel code will not care about the actual encoding of
  scope zone IDs and won't touch "s6_addr16[1]" directly.
- similarly, most of the kernel code will not care about link-local
  scoped addresses as a special case.
- scope boundary check will be stricter.  For example, the current
  *BSD code allows a packet with src=::1 and dst=(some global IPv6
  address) to be sent outside of the node, if the application do:
    s = socket(AF_INET6);
    bind(s, "::1");
    sendto(s, some_global_IPv6_addr);
  This is clearly wrong, since ::1 is only meaningful within a single
  node, but the current implementation of the *BSD kernel cannot
  reject this attempt.
- and, while there, don't try to remove the ff02::/32 interface route
  entry in in6_ifdetach() as it's already gone.

This also includes some level of support for the standard source
address selection algorithm defined in RFC3484, which will be
completed on in the future.

From the KAME project via JINMEI Tatuya.
Approved by core@.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:25:02 2005 UTC (19 years ago) by christos
Branches: MAIN
Branch point for: yamt-uio_vmspace
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
merge ktrace-lwp.

Revision 1.15.6.6: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:11:25 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.15.6.5: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.6.5: +14 -14 lines
Sync with HEAD. Here we go again...

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun May 29 21:43:51 2005 UTC (19 years, 6 months ago) by christos
Branches: 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
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +14 -14 lines
- avoid shadowed variables
- sprinkle const.

Revision 1.19.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:34 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +3 -3 lines
sync with -current

Revision 1.19.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 12 18:17:54 2005 UTC (19 years, 10 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +3 -3 lines
sync with head.

Revision 1.15.6.5: download - view: text, markup, annotated - select for diffs
Fri Feb 4 11:48:04 2005 UTC (19 years, 10 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.15.6.4: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.6.4: +3 -3 lines
Sync with HEAD.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Feb 1 14:56:17 2005 UTC (19 years, 10 months ago) by drochner
Branches: 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, kent-audio2-base
Branch point for: netbsd-3
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
sin6_scope_id maps to interface indices for link local addresses only!
(unlikely to be used with other scopes for now, but we should be
correct anyway)

Revision 1.15.6.4: download - view: text, markup, annotated - select for diffs
Sat Dec 18 09:33:06 2004 UTC (19 years, 11 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.15.6.3: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.6.3: +4 -8 lines
Sync with HEAD.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Dec 4 16:10:25 2004 UTC (20 years ago) by peter
Branches: MAIN
CVS tags: yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -8 lines
Convert lo(4) to a clonable device.

This also removes the loif array and changes all code to use the new
lo0ifp pointer which points to the lo0 ifnet structure.

Approved by christos.

Revision 1.15.6.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:37:34 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.15.6.2: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.6.2: +2 -2 lines
Fix the sync with head I botched.

Revision 1.15.6.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:55:14 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.15.6.1: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.6.1: +0 -0 lines
Sync with HEAD.

Revision 1.15.6.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:55:13 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +48 -41 lines
Sync with HEAD

Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Dec 10 11:46:33 2003 UTC (21 years ago) by itojun
Branches: MAIN
CVS tags: netbsd-2-base, 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, 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, netbsd-2
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +8 -5 lines
use if_indexlim (instead of if_index) and ifindex2ifnet[x] != NULL
to check if interface exists, as (1) if_index has different meaning
(2) ifindex2ifnet could become NULL when interface gets destroyed,
since when we have introduced dynamically-created interfaces.  from kame

Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Sep 4 09:17:08 2003 UTC (21 years, 3 months ago) by itojun
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +41 -33 lines
revamp inpcb/in6pcb so that they are more aligned with each other.
in6pcb lookup now uses hash(9).

Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:33:26 2003 UTC (21 years, 4 months ago) by agc
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -7 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.7.2.5: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:44:17 2002 UTC (22 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.7.2.4: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.4: +22 -22 lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.5.2.13: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:23:21 2002 UTC (22 years, 2 months ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.5.2.12: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.12: +20 -20 lines
Catch up to -current.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Sep 11 02:46:45 2002 UTC (22 years, 3 months ago) by itojun
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Branch point for: ktrace-lwp
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +22 -22 lines
KNF - return is not a function.  sync w/kame.

Revision 1.7.2.4: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:49:31 2002 UTC (22 years, 3 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.7.2.3: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.3: +4 -5 lines
sync kqueue branch with HEAD

Revision 1.10.8.3: download - view: text, markup, annotated - select for diffs
Thu Aug 29 00:56:51 2002 UTC (22 years, 3 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.10.8.2: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.8.2: +4 -5 lines
catch up with -current.

Revision 1.5.2.12: download - view: text, markup, annotated - select for diffs
Tue Aug 27 23:48:11 2002 UTC (22 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.5.2.11: preferred, colored
Changes since revision 1.5.2.11: +4 -5 lines
Catch up to -current.

Revision 1.10.10.1: download - view: text, markup, annotated - select for diffs
Tue Aug 27 09:33:27 2002 UTC (22 years, 3 months ago) by lukem
Branches: netbsd-1-6
CVS tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, 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
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +4 -5 lines
Pull up revision 1.14 (requested by itojun in ticket #731):
pass proc * to in6_pcbsetport.  PR 18073

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Aug 26 14:25:01 2002 UTC (22 years, 3 months ago) by itojun
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -5 lines
pass proc * to in6_pcbsetport.  PR 18073

Revision 1.5.2.11: download - view: text, markup, annotated - select for diffs
Mon Jul 15 20:33:01 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.5.2.10: preferred, colored
Changes since revision 1.5.2.10: +3 -3 lines
Whitespace.

Revision 1.5.2.10: download - view: text, markup, annotated - select for diffs
Fri Jul 12 01:40:33 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.5.2.9: preferred, colored
Changes since revision 1.5.2.9: +2 -3 lines
No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.5.2.9: download - view: text, markup, annotated - select for diffs
Mon Jun 24 22:11:49 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.5.2.8: preferred, colored
Changes since revision 1.5.2.8: +3 -3 lines
Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).

Revision 1.7.2.3: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:51:14 2002 UTC (22 years, 5 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.7.2.2: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.2: +5 -6 lines
catch up with -current on kqueue branch

Revision 1.10.8.2: download - view: text, markup, annotated - select for diffs
Thu Jun 20 15:52:43 2002 UTC (22 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.10.8.1: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.8.1: +4 -4 lines
catch up with -current.

Revision 1.5.2.8: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:49:18 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.5.2.7: preferred, colored
Changes since revision 1.5.2.7: +5 -6 lines
Catch up to -current.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Jun 8 20:06:44 2002 UTC (22 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -4 lines
whitespace cleanup

Revision 1.10.8.1: download - view: text, markup, annotated - select for diffs
Thu May 30 13:52:32 2002 UTC (22 years, 6 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -4 lines
Catch up with -current.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed May 29 07:53:41 2002 UTC (22 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3 lines
attach nd_ifinfo structure into if_afdata.
split IPv6 link MTU (advertised by RA) from real link MTU.
sync with kame

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed May 29 01:43:25 2002 UTC (22 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -3 lines
rm obsolete comment

Revision 1.5.2.7: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:15:14 2002 UTC (22 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.5.2.6: preferred, colored
Changes since revision 1.5.2.6: +6 -3 lines
Catch up to -current.

Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 11 20:10:40 2002 UTC (22 years, 10 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.7.2.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.1: +6 -3 lines
Sync w/ -current.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Jan 22 03:53:56 2002 UTC (22 years, 10 months ago) by itojun
Branches: MAIN
CVS tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RC1, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +6 -3 lines
make sure to check address family on route cache.  with IPv4 mapped
address we can see both AF_INET/INET6.

Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 20:03:19 2002 UTC (22 years, 11 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +5 -2 lines
Sync kqueue branch with -current.

Revision 1.5.2.6: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:18:09 2001 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.5.2.5: preferred, colored
Changes since revision 1.5.2.5: +4 -1 lines
Catch up to -current.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Nov 13 00:57:00 2001 UTC (23 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -1 lines
add RCSIDs

Revision 1.5.2.5: download - view: text, markup, annotated - select for diffs
Mon Oct 22 20:42:01 2001 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.5.2.4: preferred, colored
Changes since revision 1.5.2.4: +2 -2 lines
Catch up to -current.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Oct 16 06:24:44 2001 UTC (23 years, 2 months ago) by itojun
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
more whitespace/comment sync with kame

Revision 1.5.2.4: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:08:56 2001 UTC (23 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.5.2.3: preferred, colored
Changes since revision 1.5.2.3: +3 -2 lines
Catch up to -current.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Jun 6 06:07:06 2001 UTC (23 years, 6 months ago) by mrg
Branches: MAIN
CVS tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: kqueue
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -2 lines
fix a IPNOPRIVPORTS unused variable botch.  noted by proff.

Revision 1.4.2.4: download - view: text, markup, annotated - select for diffs
Sat Apr 21 17:46:55 2001 UTC (23 years, 7 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.4.2.3: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.3: +1 -8 lines
Sync with HEAD

Revision 1.5.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 9 01:58:38 2001 UTC (23 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.5.2.2: preferred, colored
Changes since revision 1.5.2.2: +1 -8 lines
Catch up with -current.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Mar 30 11:08:57 2001 UTC (23 years, 8 months ago) by itojun
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -8 lines
enable FAKE_LOOPBACK_IF case by default.
now traffic on loopback interface will be presented to bpf as normal wire
format packet (without KAME scopeid in s6_addr16[1]).

fix KAME PR 250 (host mistakenly accepts packets to fe80::x%lo0).

sync with kame.

Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Tue Mar 13 20:29:50 2001 UTC (23 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.5.2.1: preferred, colored
Changes since revision 1.5.2.1: +2 -2 lines
Be more careful not to dereference curproc when there might not be
a process context.

Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 5 22:49:57 2001 UTC (23 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -2 lines
Initial commit of scheduler activations and lightweight process support.

Revision 1.4.2.3: download - view: text, markup, annotated - select for diffs
Sun Feb 11 19:17:24 2001 UTC (23 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.4.2.2: preferred, colored
Changes since revision 1.4.2.2: +23 -8 lines
Sync with HEAD.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Feb 8 14:56:16 2001 UTC (23 years, 10 months ago) by itojun
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +23 -8 lines
amove in6_{embed,recover}scope prototypes to in6_var.h (kernel only).
add in6_clearscope.  sync with kame

Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Mon Nov 20 18:10:50 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.4.2.1: preferred, colored
Changes since revision 1.4.2.1: +515 -0 lines
Update thorpej_scsipi to -current as of a month ago

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Sun Aug 27 01:25:08 2000 UTC (24 years, 3 months ago) by itojun
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +6 -6 lines
pullup (approved by releng-1-5)

 > implement net.inet6.ip6.{anon,low}port{min,max} sysctl variable.

 > cvs rdiff -r1.67 -r1.68 basesrc/lib/libc/gen/sysctl.3
 > cvs rdiff -r1.53 -r1.54 basesrc/sbin/sysctl/sysctl.8
 > cvs rdiff -r1.18 -r1.19 syssrc/sys/netinet6/in6.h
 > cvs rdiff -r1.29 -r1.30 syssrc/sys/netinet6/in6_pcb.c
 > cvs rdiff -r1.3 -r1.4 syssrc/sys/netinet6/in6_src.c
 > cvs rdiff -r1.25 -r1.26 syssrc/sys/netinet6/ip6_input.c
 > cvs rdiff -r1.14 -r1.15 syssrc/sys/netinet6/ip6_var.h

Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 27 01:11:27 2000 UTC (24 years, 3 months ago) by itojun
Branches: netbsd-1-5
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -2 lines
pullup 1.2 -> 1.3 (approved by releng-1-5)

 > add missing IPNOPRIVPORTS case

Revision 1.4.2.1
Sat Aug 26 11:03:46 2000 UTC (24 years, 3 months ago) by bouyer
Branches: thorpej_scsipi
FILE REMOVED
Changes since revision 1.4: +0 -515 lines
file in6_src.c was added on branch thorpej_scsipi on 2000-11-20 18:10:50 +0000

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Aug 26 11:03:46 2000 UTC (24 years, 3 months ago) by itojun
Branches: MAIN
Branch point for: thorpej_scsipi
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +6 -6 lines
implement net.inet6.ip6.{anon,low}port{min,max} sysctl variable.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Aug 26 10:40:03 2000 UTC (24 years, 3 months ago) by itojun
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -1 lines
add missing IPNOPRIVPORTS case

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Jul 7 15:54:19 2000 UTC (24 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +127 -2 lines
sync with kame.
introduce in6_{recover,embed}scope, for in-kernel scoped-address manipulation.
improve in6_pcbnotify.

Revision 1.1.4.2: download - view: text, markup, annotated - select for diffs
Thu Jun 22 17:09:58 2000 UTC (24 years, 5 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.1.4.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.4.1: +388 -0 lines
Sync w/ netbsd-1-5-base.

Revision 1.1.4.1
Sat Jun 3 14:36:36 2000 UTC (24 years, 6 months ago) by minoura
Branches: minoura-xpg4dl
FILE REMOVED
Changes since revision 1.1: +0 -388 lines
file in6_src.c was added on branch minoura-xpg4dl on 2000-06-22 17:09:58 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Jun 3 14:36:36 2000 UTC (24 years, 6 months ago) by itojun
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5, minoura-xpg4dl
sync with kame.
- use latest source address selection code - in6_src.c.
- correct frag header insertion.
- deep copy ip6 header portion in ip6_mloopback to avoid overwrite.
- do not bark when we forward packet to loopback.
- some cosmetics.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>