CVS log for src/sys/net/if_gif.c
Up to [cvs.NetBSD.org] / src / sys / net
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.157.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 21 12:22:36 2024 UTC (2 months, 2 weeks ago) by martin
Branches: netbsd-10
Diff to: previous 1.157: preferred, colored; next MAIN 1.158: preferred, colored
Changes since revision 1.157: +5 -4
lines
Pull up following revision(s) (requested by rin in ticket #901):
sys/net/if_gif.c: revision 1.159
Drop locks before freeing unreferenced memory in gif_set_tunnel
Revision 1.159: download - view: text, markup, annotated - select for diffs
Sun Sep 15 09:46:45 2024 UTC (2 months, 3 weeks ago) by skrll
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +5 -4
lines
Drop locks before freeing unreferenced memory in gif_set_tunnel
Revision 1.158: download - view: text, markup, annotated - select for diffs
Sat Feb 10 18:43:53 2024 UTC (10 months ago) by andvar
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +3 -3
lines
Fix various typos in comments, log messages and documentation.
Revision 1.157.8.2: download - view: text, markup, annotated - select for diffs
Thu Nov 16 05:13:13 2023 UTC (12 months, 3 weeks ago) by thorpej
Branches: thorpej-ifq
Diff to: previous 1.157.8.1: preferred, colored; branchpoint 1.157: preferred, colored; next MAIN 1.158: preferred, colored
Changes since revision 1.157.8.1: +3 -3
lines
if_transmit_lock() and if_enqueue() are equivalent. if_enqueue() is
a better name, so collapse everything down to that and garbage-collect
if_transmit_lock().
Revision 1.157.8.1: download - view: text, markup, annotated - select for diffs
Thu Nov 16 04:30:22 2023 UTC (12 months, 3 weeks ago) by thorpej
Branches: thorpej-ifq
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +3 -3
lines
IFQ_CLASSIFY() -> ifq_classify_packet().
Revision 1.157: download - view: text, markup, annotated - select for diffs
Sat Sep 3 02:47:59 2022 UTC (2 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-altq-separation-base,
thorpej-altq-separation,
netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Branch point for: thorpej-ifq,
netbsd-10
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +2 -3
lines
Garbage-collect the remaining vestiges of netisr.
Revision 1.156: download - view: text, markup, annotated - select for diffs
Mon Oct 11 05:13:11 2021 UTC (3 years, 2 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +23 -7
lines
Make pktq_rps_hash() pluggable for each interface type. Reviewed by gdt@n.o, thorpej@n.o, and riastradh@n.o, thanks.
Revision 1.154.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:35 2021 UTC (3 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.154: preferred, colored; next MAIN 1.155: preferred, colored
Changes since revision 1.154: +3 -6
lines
Sync w/ HEAD.
Revision 1.155: download - view: text, markup, annotated - select for diffs
Wed Jun 16 00:21:19 2021 UTC (3 years, 5 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
thorpej-cfargs2
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +3 -6
lines
if_attach and if_initialize cannot fail, don't test return value
These were originally made failable back in 2017 when if_initialize
allocated a softint in every interface for link state changes, so
that it could fail gracefully instead of panicking:
https://mail-index.NetBSD.org/source-changes/2017/10/23/msg089053.html
However, this spawned many seldom- or never-tested error branches,
which are risky to have around. And that softint in every interface
has since been replaced by a single global workqueue, because link
state changes require thread context but not low latency or high
throughput:
https://mail-index.NetBSD.org/source-changes/2020/02/06/msg113759.html
So there is no longer any reason for if_initialize to fail. (The
subroutine if_stats_init can't fail because percpu_alloc can't fail
either.)
There is a snag: the softint_establish in if_percpuq_create could
fail, potentially leading to bad consequences later on trying to use
the softint. This change doesn't introduce any new bugs because of
the snag -- if_percpuq_attach was already broken. However, the snag
can be better addressed without spawning error branches, either by
using a single softint or making softints less scarce.
(Separate commit will change the signatures of if_attach and
if_initialize to return void, scheduled to ride whatever is the next
convenient kernel bump.)
Patch and testing on amd64 and evbmips64-eb by maya@; commit message
soliloquy, and compile-testing on evbppc/i386/earmv7hf, by me.
Revision 1.154: download - view: text, markup, annotated - select for diffs
Wed Oct 14 15:22:17 2020 UTC (4 years, 1 month ago) by roy
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-futex,
thorpej-cfargs-base,
thorpej-cfargs,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +8 -3
lines
gif: Set the link state UP if we have a tunnel, otherwise DOWN.
Revision 1.143.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:15 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.143.2.2: preferred, colored; branchpoint 1.143: preferred, colored; next MAIN 1.144: preferred, colored
Changes since revision 1.143.2.2: +109 -39
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.143.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:57 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.143.2.1: preferred, colored; branchpoint 1.143: preferred, colored
Changes since revision 1.143.2.1: +21 -29
lines
Merge changes from current as of 20200406
Revision 1.153: download - view: text, markup, annotated - select for diffs
Mon Mar 30 11:57:50 2020 UTC (4 years, 8 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
is-mlppp-base,
is-mlppp,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +9 -11
lines
On detach, destroy the mutex attach created, otherwise we crash with LOCKDEBUG.
XXX: other interface drivers have this issue.
Revision 1.150.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:21:06 2020 UTC (4 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.150: preferred, colored; next MAIN 1.151: preferred, colored
Changes since revision 1.150: +14 -20
lines
Sync with head.
Revision 1.152: download - view: text, markup, annotated - select for diffs
Sat Feb 1 02:57:45 2020 UTC (4 years, 10 months ago) by riastradh
Branches: MAIN
CVS tags: ad-namecache-base3
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +4 -5
lines
Switch if_gif to atomic_load/store_*.
Revision 1.151: download - view: text, markup, annotated - select for diffs
Wed Jan 29 04:18:34 2020 UTC (4 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +12 -17
lines
Adopt <net/if_stats.h>.
Revision 1.150: download - view: text, markup, annotated - select for diffs
Wed Oct 30 03:45:59 2019 UTC (5 years, 1 month ago) by knakahara
Branches: MAIN
CVS tags: phil-wifi-20191119,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +104 -2
lines
Add sysctl nodes to control fragmentation with IPv[46] over IPv6 gif(4).
New sysctl node "net.inet6.ip6.gifpmtu" means
- 0 (default)
Fragment by IPV6_MMTU. All packets reach the destination certainly,
however the long packet performance is poor.
This is same behavior as before.
- 1
Fragment by outer interface's MTU. The long packet performance would
be good, however the packets may be dropped in some network paths
whose path MTU less than the interface's MTU.
- others
undefined yet
New sysctl node "net.interfaces.gif*.pmtu" means
- -1 (default)
Use system default value (net.inet6.ip6.gifpmtu).
- 0
Fragment by IPV6_MMTU for this gif(4) tunnel.
- 1
Fragment by outer interface's MTU for this gif(4) tunnel.
- others
undefined yet
See RFC4459 for more information and other solutions.
Revision 1.126.2.15: download - view: text, markup, annotated - select for diffs
Tue Sep 24 18:27:09 2019 UTC (5 years, 2 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE
Diff to: previous 1.126.2.14: preferred, colored; branchpoint 1.126: preferred, colored; next MAIN 1.127: preferred, colored
Changes since revision 1.126.2.14: +4 -35
lines
Pull up following revision(s) (requested by knakahara in ticket #1385):
sys/net/if.c 1.461
sys/net/if.h 1.277
sys/net/if_gif.c 1.149
sys/net/if_gif.h 1.33
sys/net/if_ipsec.c 1.19,1.20,1.24
sys/net/if_ipsec.h 1.5
sys/net/if_l2tp.c 1.33,1.36-1.39
sys/net/if_l2tp.h 1.7,1.8
sys/net/route.c 1.220,1.221
sys/net/route.h 1.125
sys/netinet/in_gif.c 1.95
sys/netinet/in_l2tp.c 1.17
sys/netinet/ip_input.c 1.391,1.392
sys/netinet/wqinput.c 1.6
sys/netinet6/in6_gif.c 1.94
sys/netinet6/in6_l2tp.c 1.18
sys/netinet6/ip6_forward.c 1.97
sys/netinet6/ip6_input.c 1.210,1.211
sys/netipsec/ipsec_output.c 1.82,1.83 (patched)
sys/netipsec/ipsecif.c 1.12,1.13,1.15,1.17 (patched)
sys/netipsec/key.c 1.259,1.260
ipsecif(4) support input drop packet counter.
ipsecif(4) should not increment drop counter by errors not related to if_snd. Pointed out by ozaki-r@n.o, thanks.
Remove unnecessary addresses in PF_KEY message.
MOBIKE Extensions for PF_KEY draft-schilcher-mobike-pfkey-extension-01.txt says
====================
5. SPD Update
// snip
SADB_X_SPDADD:
// snip
sadb_x_ipsecrequest_reqid:
An ID for that SA can be passed to the kernel in the
sadb_x_ipsecrequest_reqid field.
If tunnel mode is specified, the sadb_x_ipsecrequest structure is
followed by two sockaddr structures that define the tunnel
endpoint addresses. In the case that transport mode is used, no
additional addresses are specified.
====================
see: <a rel="nofollow" href="https://tools.ietf.org/html/draft-schilcher-mobike-pfkey-extension-01">https://tools.ietf.org/html/draft-schilcher-mobike-pfkey-extension-01</a>
ipsecif(4) uses transport mode, so it should not add addresses.
ipsecif(4) supports multiple peers in the same NAPT.
E.g. ipsec0 connects between NetBSD_A and NetBSD_B, ipsec1 connects
NetBSD_A and NetBSD_C at the following figure.
+----------+
+----| NetBSD_B |
+----------+ +------+ | +----------+
| NetBSD_A |--- ... ---| NAPT |---+
+----------+ +------+ | +----------+
+----| NetBSD_C |
+----------+
Add ATF later.
l2tp(4): fix output bytes counter. Pointed by k-goda@IIJ, thanks.
remove a variable which is no longer used.
l2tp: initialize mowner variables for MBUFTRACE
Avoid having a rtcache directly in a percpu storage
percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users. If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.
A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.
Using rtcache, i.e., packet processing, typically involves sleepable operations
such as rwlock so we must avoid dereferencing a rtcache that is directly stored
in a percpu storage during packet processing. Address this situation by having
just a pointer to a rtcache in a percpu storage instead.
Reviewed by knakahara@ and yamaguchi@
wqinput: avoid having struct wqinput_worklist directly in a percpu storage
percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users. If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.
A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.
Input handlers of wqinput normally involves sleepable operations so we must
avoid dereferencing a percpu data (struct wqinput_worklist) after executing
an input handler. Address this situation by having just a pointer to the data
in a percpu storage instead.
Reviewed by knakahara@ and yamaguchi@
Add missing #include <sys/kmem.h>
Divide Tx context of l2tp(4) to improve performance.
It seems l2tp(4) call path is too long for instruction cache. So, dividing
l2tp(4) Tx context improves CPU use efficiency.
After this commit, l2tp(4) throughput gains 10% on my machine(Atom C3000).
Apply some missing changes lost on the previous commit
Avoid having a rtcache directly in a percpu storage for tunnel protocols.
percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users. If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.
A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.
Using rtcache, i.e., packet processing, typically involves sleepable operations
such as rwlock so we must avoid dereferencing a rtcache that is directly stored
in a percpu storage during packet processing. Address this situation by having
just a pointer to a rtcache in a percpu storage instead.
Reviewed by ozaki-r@ and yamaguchi@
l2tp(4): avoid having struct ifqueue directly in a percpu storage.
percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users. If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.
A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.
Tx processing of l2tp(4) uses normally involves sleepable operations so we
must avoid dereferencing a percpu data (struct ifqueue) after executing Tx
processing. Address this situation by having just a pointer to the data in
a percpu storage instead.
Reviewed by ozaki-r@ and yamaguchi@
Revision 1.148.2.1: download - view: text, markup, annotated - select for diffs
Tue Sep 24 03:10:35 2019 UTC (5 years, 2 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1
Diff to: previous 1.148: preferred, colored; next MAIN 1.149: preferred, colored
Changes since revision 1.148: +4 -35
lines
Pull up following revision(s) (requested by ozaki-r in ticket #238):
sys/netipsec/ipsec_output.c: revision 1.83
sys/net/route.h: revision 1.125
sys/netinet6/ip6_input.c: revision 1.210
sys/netinet6/ip6_input.c: revision 1.211
sys/net/if.c: revision 1.461
sys/net/if_gif.h: revision 1.33
sys/net/route.c: revision 1.220
sys/net/route.c: revision 1.221
sys/net/if.h: revision 1.277
sys/netinet6/ip6_forward.c: revision 1.97
sys/netinet/wqinput.c: revision 1.6
sys/net/if_ipsec.h: revision 1.5
sys/netinet6/in6_l2tp.c: revision 1.18
sys/netinet6/in6_gif.c: revision 1.94
sys/net/if_l2tp.h: revision 1.7
sys/net/if_gif.c: revision 1.149
sys/net/if_l2tp.h: revision 1.8
sys/netinet/in_gif.c: revision 1.95
sys/netinet/in_l2tp.c: revision 1.17
sys/netipsec/ipsecif.c: revision 1.17
sys/net/if_ipsec.c: revision 1.24
sys/net/if_l2tp.c: revision 1.37
sys/netinet/ip_input.c: revision 1.391
sys/net/if_l2tp.c: revision 1.38
sys/netinet/ip_input.c: revision 1.392
sys/net/if_l2tp.c: revision 1.39
Avoid having a rtcache directly in a percpu storage
percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users. If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.
A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.
Using rtcache, i.e., packet processing, typically involves sleepable operations
such as rwlock so we must avoid dereferencing a rtcache that is directly stored
in a percpu storage during packet processing. Address this situation by having
just a pointer to a rtcache in a percpu storage instead.
Reviewed by knakahara@ and yamaguchi@
-
wqinput: avoid having struct wqinput_worklist directly in a percpu storage
percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users. If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.
A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.
Input handlers of wqinput normally involves sleepable operations so we must
avoid dereferencing a percpu data (struct wqinput_worklist) after executing
an input handler. Address this situation by having just a pointer to the data
in a percpu storage instead.
Reviewed by knakahara@ and yamaguchi@
-
Add missing #include <sys/kmem.h>
-
Divide Tx context of l2tp(4) to improve performance.
It seems l2tp(4) call path is too long for instruction cache. So, dividing
l2tp(4) Tx context improves CPU use efficiency.
After this commit, l2tp(4) throughput gains 10% on my machine(Atom C3000).
-
Apply some missing changes lost on the previous commit
-
Avoid having a rtcache directly in a percpu storage for tunnel protocols.
percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users. If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.
A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.
Using rtcache, i.e., packet processing, typically involves sleepable operations
such as rwlock so we must avoid dereferencing a rtcache that is directly stored
in a percpu storage during packet processing. Address this situation by having
just a pointer to a rtcache in a percpu storage instead.
Reviewed by ozaki-r@ and yamaguchi@
-
l2tp(4): avoid having struct ifqueue directly in a percpu storage.
percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users. If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.
A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.
Tx processing of l2tp(4) uses normally involves sleepable operations so we
must avoid dereferencing a percpu data (struct ifqueue) after executing Tx
processing. Address this situation by having just a pointer to the data in
a percpu storage instead.
Reviewed by ozaki-r@ and yamaguchi@
Revision 1.149: download - view: text, markup, annotated - select for diffs
Thu Sep 19 06:07:24 2019 UTC (5 years, 2 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +4 -35
lines
Avoid having a rtcache directly in a percpu storage for tunnel protocols.
percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users. If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.
A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.
Using rtcache, i.e., packet processing, typically involves sleepable operations
such as rwlock so we must avoid dereferencing a rtcache that is directly stored
in a percpu storage during packet processing. Address this situation by having
just a pointer to a rtcache in a percpu storage instead.
Reviewed by ozaki-r@ and yamaguchi@
Revision 1.148: download - view: text, markup, annotated - select for diffs
Tue Jun 25 12:30:50 2019 UTC (5 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: netbsd-9-base
Branch point for: netbsd-9
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +3 -4
lines
Simplify "LIST_HEAD();" to make the code more understandable.
No functional change.
Revision 1.147: download - view: text, markup, annotated - select for diffs
Tue Jun 18 07:50:43 2019 UTC (5 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +6 -6
lines
No functional change:
- Fix typo (s/configureation/configuration/)
- KNF
Revision 1.143.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:45 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +9 -9
lines
Sync with HEAD
Revision 1.126.2.14: download - view: text, markup, annotated - select for diffs
Mon Apr 22 09:06:49 2019 UTC (5 years, 7 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-1-RELEASE,
netbsd-8-1-RC1
Diff to: previous 1.126.2.13: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.13: +3 -3
lines
Pull up following revision(s) (requested by knakahara in ticket #1241):
sys/net/if_gif.c: revision 1.146
fix a potential bug of gif(4) check for tunnel duplicate.
This problem has not actualized thanks to check for duplicate
in encap_attach().
Revision 1.146: download - view: text, markup, annotated - select for diffs
Mon Apr 22 08:09:59 2019 UTC (5 years, 7 months ago) by knakahara
Branches: MAIN
CVS tags: phil-wifi-20190609
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +3 -3
lines
fix a potential bug of gif(4) check for tunnel duplicate.
This problem has not actualized thanks to check for duplicate
in encap_attach().
Revision 1.139.2.5: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:50 2018 UTC (6 years ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.139.2.4: preferred, colored; branchpoint 1.139: preferred, colored; next MAIN 1.140: preferred, colored
Changes since revision 1.139.2.4: +4 -3
lines
Sync with HEAD, resolve a couple of conflicts
Revision 1.126.2.13: download - view: text, markup, annotated - select for diffs
Mon Nov 12 08:50:18 2018 UTC (6 years, 1 month ago) by martin
Branches: netbsd-8
Diff to: previous 1.126.2.12: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.12: +4 -3
lines
Pull up following revision(s) (requested by knakahara in ticket #1087):
sys/net/if_gif.c: revision 1.145
Fix ALTQ on gif(4). Reported and tested by Anthony Mallet, advised by Greg Troxel, thanks.
l2tp(4) and ipsecif(4) don't support ALTQ yet. So, they don't require this fix.
XXX pullup-8
Revision 1.145: download - view: text, markup, annotated - select for diffs
Mon Nov 12 03:37:33 2018 UTC (6 years, 1 month ago) by knakahara
Branches: MAIN
CVS tags: pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
isaki-audio2-base,
isaki-audio2
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +4 -3
lines
Fix ALTQ on gif(4). Reported and tested by Anthony Mallet, advised by Greg Troxel, thanks.
l2tp(4) and ipsecif(4) don't support ALTQ yet. So, they don't require this fix.
XXX pullup-8
Revision 1.126.2.12: download - view: text, markup, annotated - select for diffs
Sun Oct 21 11:55:54 2018 UTC (6 years, 1 month ago) by martin
Branches: netbsd-8
Diff to: previous 1.126.2.11: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.11: +6 -7
lines
Pull up following revision(s) (requested by knakahara in ticket #1066):
sys/net/if_vlan.c: revision 1.133
sys/net/if_gif.h: revision 1.32
sys/net/if_ipsec.c: revision 1.18
sys/net/if_ipsec.h: revision 1.4
sys/net/if_gif.c: revision 1.144
sys/net/if_l2tp.h: revision 1.6
sys/net/if_l2tp.c: revision 1.30
Fix panic when doing ioctl to multiple pseudo interfaces. Pointed out by k-goda@IIJ.
XXX pullup-8
Revision 1.139.2.4: download - view: text, markup, annotated - select for diffs
Sat Oct 20 06:58:45 2018 UTC (6 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.139.2.3: preferred, colored; branchpoint 1.139: preferred, colored
Changes since revision 1.139.2.3: +6 -7
lines
Sync with head
Revision 1.144: download - view: text, markup, annotated - select for diffs
Fri Oct 19 00:12:56 2018 UTC (6 years, 1 month ago) by knakahara
Branches: MAIN
CVS tags: pgoyette-compat-1020
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +6 -7
lines
Fix panic when doing ioctl to multiple pseudo interfaces. Pointed out by k-goda@IIJ.
XXX pullup-8
Revision 1.139.2.3: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:38:10 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.139.2.2: preferred, colored; branchpoint 1.139: preferred, colored
Changes since revision 1.139.2.2: +5 -5
lines
Sync with HEAD
Revision 1.143: download - view: text, markup, annotated - select for diffs
Tue Jun 26 06:48:02 2018 UTC (6 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728
Branch point for: phil-wifi
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +5 -5
lines
Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward
compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same
as FreeBSD.
This change also fixes a bug that the direction is misunderstand on some
environment by passing the direction to bpf_mtap*() instead of checking
m->m_pkthdr.rcvif.
Revision 1.139.2.2: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:26:06 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.139.2.1: preferred, colored; branchpoint 1.139: preferred, colored
Changes since revision 1.139.2.1: +3 -3
lines
Sync with HEAD
Revision 1.126.2.11: download - view: text, markup, annotated - select for diffs
Thu Jun 7 17:42:25 2018 UTC (6 years, 6 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-0-RELEASE,
netbsd-8-0-RC2
Diff to: previous 1.126.2.10: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.10: +3 -3
lines
Pull up following revision(s) (requested by ozaki-r in ticket #843):
sys/dev/pci/ixgbe/ixv.c: revision 1.101
sys/net/if_bridge.c: revision 1.156
sys/net/if_pppoe.c: revision 1.138
sys/dev/pci/if_wm.c: revision 1.580
sys/dev/pci/ixgbe/ixgbe.c: revision 1.156
sys/net/if_gif.c: revision 1.142
Ensure to call if_register after interface initializations finish
Revision 1.142: download - view: text, markup, annotated - select for diffs
Fri May 25 04:40:27 2018 UTC (6 years, 6 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-compat-0625
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +3 -3
lines
Ensure to call if_register after interface initializations finish
Revision 1.126.2.10: download - view: text, markup, annotated - select for diffs
Thu May 17 14:07:03 2018 UTC (6 years, 6 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.126.2.9: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.9: +4 -4
lines
Pull up following revision(s) (requested by knakahara in ticket #829):
sys/net/if_l2tp.c: revision 1.24
sys/net/if_ipsec.c: revision 1.13
sys/net/if_gif.h: revision 1.31
sys/netipsec/ipsecif.c: revision 1.8
sys/net/if_gif.c: revision 1.140
sys/netinet6/in6_l2tp.c: revision 1.15
sys/net/if_ipsec.h: revision 1.3
sys/netinet6/in6_gif.c: revision 1.92
sys/net/if_l2tp.h: revision 1.5
sys/netinet/in_l2tp.c: revision 1.13
sys/netinet/in_gif.c: revision 1.93
Fix LOCKDEBUG kernel panic when many(about 200) tunnel interfaces is created.
The tunnel interfaces are gif(4), l2tp(4), and ipsecif(4). They use mutex
itself in percpu area. When percpu_cpu_enlarge() run, the address of the
mutex in percpu area becomes different from the address which lockdebug
saved. That can cause "already initialized" false detection.
Revision 1.139.2.1: download - view: text, markup, annotated - select for diffs
Wed May 2 07:20:22 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +4 -6
lines
Synch with HEAD
Revision 1.141: 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: pgoyette-compat-0521,
pgoyette-compat-0502
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +2 -4
lines
Remove now unused net_osdep.h includes, the other BSDs did the same.
Revision 1.140: download - view: text, markup, annotated - select for diffs
Fri Apr 27 09:55:27 2018 UTC (6 years, 7 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +4 -4
lines
Fix LOCKDEBUG kernel panic when many(about 200) tunnel interfaces is created.
The tunnel interfaces are gif(4), l2tp(4), and ipsecif(4). They use mutex
itself in percpu area. When percpu_cpu_enlarge() run, the address of the
mutex in percpu area becomes different from the address which lockdebug
saved. That can cause "already initialized" false detection.
Revision 1.126.2.9: download - view: text, markup, annotated - select for diffs
Thu Mar 8 13:22:26 2018 UTC (6 years, 9 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-0-RC1
Diff to: previous 1.126.2.8: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.8: +6 -3
lines
Pull up following revision(s) (requested by knakahara in ticket #613):
sys/net/if_pppoe.c: revision 1.130,1.134
sys/net/if_spppsubr.c: revision 1.172,1.175,1.179
sys/net/if_gif.c: revision 1.138,1.139
Mark callouts of pppoe(4) CALLOUT_MPSAFE. Suggested by ozaki-r@n.o.
fix non-diagnostic compilation
Fix spl leak.
ifconfig gif0 create
ifconfig gif0 destroy
WARNING: SPL NOT LOWERED ON ...
Fix breaking character limit. Pointed out by ozaki-r@n.o, thanks.
Use m_freem instead of m_free. Otherwise we're leaking the next mbufs in
the chain.
Revision 1.139: download - view: text, markup, annotated - select for diffs
Mon Feb 12 15:38:14 2018 UTC (6 years, 9 months ago) by maxv
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.138: preferred, colored
Changes since revision 1.138: +3 -3
lines
Use m_freem instead of m_free. Otherwise we're leaking the next mbufs in
the chain.
Revision 1.126.2.8: download - view: text, markup, annotated - select for diffs
Sun Feb 11 21:17:34 2018 UTC (6 years, 10 months ago) by snj
Branches: netbsd-8
Diff to: previous 1.126.2.7: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.7: +3 -29
lines
Pull up following revision(s) (requested by ozaki-r in ticket #536):
distrib/sets/lists/base/shl.mi: 1.825
distrib/sets/lists/comp/mi: 1.2168-1.2169
distrib/sets/lists/comp/shl.mi: 1.310
distrib/sets/lists/debug/mi: 1.234
distrib/sets/lists/debug/shl.mi: 1.188
distrib/sets/lists/man/mi: 1.1570
distrib/sets/lists/tests/mi: 1.772
etc/mtree/NetBSD.dist.tests: 1.150
share/man/man4/Makefile: 1.650
share/man/man4/ipsec.4: 1.42-1.43
share/man/man4/ipsecif.4: 1.1-1.5
sys/arch/amd64/conf/ALL: 1.77
sys/arch/amd64/conf/GENERIC: 1.480
sys/conf/files: 1.1191
sys/net/Makefile: 1.34
sys/net/files.net: 1.14
sys/net/if.c: 1.404
sys/net/if.h: 1.248
sys/net/if_gif.c: 1.135
sys/net/if_ipsec.c: 1.1-1.3
sys/net/if_ipsec.h: 1.1
sys/net/if_l2tp.c: 1.16
sys/net/if_types.h: 1.28
sys/netinet/in.c: 1.214
sys/netinet/in.h: 1.103
sys/netinet/in_gif.c: 1.92
sys/netinet/ip_var.h: 1.122
sys/netinet6/in6.c: 1.257
sys/netinet6/in6.h: 1.88
sys/netinet6/in6_gif.c: 1.90
sys/netinet6/ip6_var.h: 1.75
sys/netipsec/Makefile: 1.6
sys/netipsec/files.netipsec: 1.13
sys/netipsec/ipsec.h: 1.62
sys/netipsec/ipsecif.c: 1.1
sys/netipsec/ipsecif.h: 1.1
sys/netipsec/key.c: 1.246-1.247
sys/netipsec/key.h: 1.34
sys/rump/net/Makefile.rumpnetcomp: 1.20
sys/rump/net/lib/libipsec/IPSEC.ioconf: 1.1
sys/rump/net/lib/libipsec/Makefile: 1.1
sys/rump/net/lib/libipsec/ipsec_component.c: 1.1
tests/net/Makefile: 1.34
tests/net/if_ipsec/Makefile: 1.1
tests/net/if_ipsec/t_ipsec.sh: 1.1-1.2
Don't touch an SP without a reference to it
unify processing to check nesting count for some tunnel protocols.
add ipsec(4) interface, which is used for route-based VPN.
man and ATF are added later, please see man for details.
reviewed by christos@n.o, joerg@n.o and ozaki-r@n.o, thanks.
https://mail-index.netbsd.org/tech-net/2017/12/18/msg006557.html
ipsec(4) interface supports rump now.
add ipsec(4) interface ATF.
add ipsec(4) interface man as ipsecif.4.
add ipsec(4) interface to amd64/GENERIC and amd64/ALL configs.
apply in{,6}_tunnel_validate() to gif(4).
Spell IPsec that way. Simplify macro usage. Sort SEE ALSO. Bump
date for previous.
Improve wording and macro use.
Some parts are not clear to me, so someone with knowledge of ipsecif(4)
should improve this some more.
Improve ipsecif.4. Default port ipsec(4) NAT-T is tested now.
pointed out by wiz@n.o and suggested by ozaki-r@n.o, thanks.
Change the prefix of test names to ipsecif_ to distinguish from tests for ipsec(4)
New sentence, new line. Remove empty macro.
Fix PR kern/52920. Pointed out by David Binderman, thanks.
Improve wording, and put a new drawing, from me and Kengo Nakahara.
apply a little more #ifdef INET/INET6. fixes !INET6 builds.
Revision 1.138: download - view: text, markup, annotated - select for diffs
Mon Jan 15 09:26:21 2018 UTC (6 years, 10 months ago) by maxv
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +5 -2
lines
Fix spl leak.
ifconfig gif0 create
ifconfig gif0 destroy
WARNING: SPL NOT LOWERED ON ...
Revision 1.126.2.7: download - view: text, markup, annotated - select for diffs
Tue Jan 2 10:48:51 2018 UTC (6 years, 11 months ago) by snj
Branches: netbsd-8
Diff to: previous 1.126.2.6: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.6: +277 -211
lines
Pull up following revision(s) (requested by knakahara in ticket #462):
sys/net/if_gif.c: revision 1.133, 1.134, 1.137
sys/net/if_gif.h: revision 1.28-1.29
sys/netinet/in_gif.c: revision 1.90-1.91
sys/netinet/in_gif.h: revision 1.18
sys/netinet6/in6_gif.c: revision 1.88-1.89
sys/netinet6/in6_gif.h: revision 1.17
preserve gif(4) configs by psref(9) like vlan(4) and l2tp(4).
After Tx side does not use softint, gif(4) can use psref(9) for config
preservation like vlan(4) and l2tp(4).
update locking notes later.
--
update gif(4) locking notes.
--
IFF_RUNNING checking in Rx and Tx processing is unnecessary now.
Because the configs of gif (members of gif_var) are protected by psref(9).
--
remove duplicated null ckeck
Revision 1.126.2.6: download - view: text, markup, annotated - select for diffs
Tue Jan 2 10:20:33 2018 UTC (6 years, 11 months ago) by snj
Branches: netbsd-8
Diff to: previous 1.126.2.5: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.5: +3 -3
lines
Pull up following revision(s) (requested by ozaki-r in ticket #456):
sys/arch/arm/sunxi/sunxi_emac.c: 1.9
sys/dev/ic/dwc_gmac.c: 1.43-1.44
sys/dev/pci/if_iwm.c: 1.75
sys/dev/pci/if_wm.c: 1.543
sys/dev/pci/ixgbe/ixgbe.c: 1.112
sys/dev/pci/ixgbe/ixv.c: 1.74
sys/kern/sys_socket.c: 1.75
sys/net/agr/if_agr.c: 1.43
sys/net/bpf.c: 1.219
sys/net/if.c: 1.397, 1.399, 1.401-1.403, 1.406-1.410, 1.412-1.416
sys/net/if.h: 1.242-1.247, 1.250, 1.252-1.257
sys/net/if_bridge.c: 1.140 via patch, 1.142-1.146
sys/net/if_etherip.c: 1.40
sys/net/if_ethersubr.c: 1.243, 1.246
sys/net/if_faith.c: 1.57
sys/net/if_gif.c: 1.132
sys/net/if_l2tp.c: 1.15, 1.17
sys/net/if_loop.c: 1.98-1.101
sys/net/if_media.c: 1.35
sys/net/if_pppoe.c: 1.131-1.132
sys/net/if_spppsubr.c: 1.176-1.177
sys/net/if_tun.c: 1.142
sys/net/if_vlan.c: 1.107, 1.109, 1.114-1.121
sys/net/npf/npf_ifaddr.c: 1.3
sys/net/npf/npf_os.c: 1.8-1.9
sys/net/rtsock.c: 1.230
sys/netcan/if_canloop.c: 1.3-1.5
sys/netinet/if_arp.c: 1.255
sys/netinet/igmp.c: 1.65
sys/netinet/in.c: 1.210-1.211
sys/netinet/in_pcb.c: 1.180
sys/netinet/ip_carp.c: 1.92, 1.94
sys/netinet/ip_flow.c: 1.81
sys/netinet/ip_input.c: 1.362
sys/netinet/ip_mroute.c: 1.147
sys/netinet/ip_output.c: 1.283, 1.285, 1.287
sys/netinet6/frag6.c: 1.61
sys/netinet6/in6.c: 1.251, 1.255
sys/netinet6/in6_pcb.c: 1.162
sys/netinet6/ip6_flow.c: 1.35
sys/netinet6/ip6_input.c: 1.183
sys/netinet6/ip6_output.c: 1.196
sys/netinet6/mld6.c: 1.90
sys/netinet6/nd6.c: 1.239-1.240
sys/netinet6/nd6_nbr.c: 1.139
sys/netinet6/nd6_rtr.c: 1.136
sys/netipsec/ipsec_output.c: 1.65
sys/rump/net/lib/libnetinet/netinet_component.c: 1.9-1.10
kmem_intr_free kmem_intr_[z]alloced memory
the underlying pools are the same but api-wise those should match
Unify IFEF_*_MPSAFE into IFEF_MPSAFE
There are already two flags for if_output and if_start, however, it seems such
MPSAFE flags are eventually needed for all if_XXX operations. Having discrete
flags for each operation is wasteful of if_extflags bits. So let's unify
the flags into one: IFEF_MPSAFE.
Fortunately IFEF_*_MPSAFE flags have never been included in any releases, so
we can change them without breaking backward compatibility of the releases
(though the kernel version of -current should be bumped).
Note that if an interface have both MP-safe and non-MP-safe operations at a
time, we have to set the IFEF_MPSAFE flag and let callees of non-MP-safe
opeartions take the kernel lock.
Proposed on tech-kern@ and tech-net@
Provide macros for softnet_lock and KERNEL_LOCK hiding NET_MPSAFE switch
It reduces C&P codes such as "#ifndef NET_MPSAFE KERNEL_LOCK(1, NULL); ..."
scattered all over the source code and makes it easy to identify remaining
KERNEL_LOCK and/or softnet_lock that are held even if NET_MPSAFE.
No functional change
Hold KERNEL_LOCK on if_ioctl selectively based on IFEF_MPSAFE
If IFEF_MPSAFE is set, hold the lock and otherwise don't hold.
This change requires additions of KERNEL_LOCK to subsequence functions from
if_ioctl such as ifmedia_ioctl and ifioctl_common to protect non-MP-safe
components.
Proposed on tech-kern@ and tech-net@
Ensure to hold if_ioctl_lock when calling if_flags_set
Fix locking against myself on ifpromisc
vlan_unconfig_locked could be called with holding if_ioctl_lock.
Ensure to not turn on IFF_RUNNING of an interface until its initialization completes
And ensure to turn off it before destruction as per IFF_RUNNING's description
"resource allocated". (The description is a bit doubtful though, I believe the
change is still proper.)
Ensure to hold if_ioctl_lock on if_up and if_down
One exception for if_down is if_detach; in the case the lock isn't needed
because it's guaranteed that no other one can access ifp at that point.
Make if_link_queue MP-safe if IFEF_MPSAFE
if_link_queue is a queue to store events of link state changes, which is
used to pass events from (typically) an interrupt handler to
if_link_state_change softint. The queue was protected by KERNEL_LOCK so far,
but if IFEF_MPSAFE is enabled, it becomes unsafe because (perhaps) an interrupt
handler of an interface with IFEF_MPSAFE doesn't take KERNEL_LOCK. Protect it
by a spin mutex.
Additionally with this change KERNEL_LOCK of if_link_state_change softint is
omitted if NET_MPSAFE is enabled.
Note that the spin mutex is now ifp->if_snd.ifq_lock as well as the case of
if_timer (see the comment).
Use IFADDR_WRITER_FOREACH instead of IFADDR_READER_FOREACH
At that point no other one modifies the list so IFADDR_READER_FOREACH
is unnecessary. Use of IFADDR_READER_FOREACH is harmless in general though,
if we try to detect contract violations of pserialize, using it violates
the contract. So avoid using it makes life easy.
Ensure to call if_addr_init with holding if_ioctl_lock
Get rid of outdated comments
Fix build of kernels without ether
By throwing out if_enable_vlan_mtu and if_disable_vlan_mtu that
created a unnecessary dependency from if.c to if_ethersubr.c.
PR kern/52790
Rename IFNET_LOCK to IFNET_GLOBAL_LOCK
IFNET_LOCK will be used in another lock, if_ioctl_lock (might be renamed then).
Wrap if_ioctl_lock with IFNET_* macros (NFC)
Also if_ioctl_lock perhaps needs to be renamed to something because it's now
not just for ioctl...
Reorder some destruction routines in if_detach
- Destroy if_ioctl_lock at the end of the if_detach because it's used in various
destruction routines
- Move psref_target_destroy after pr_purgeif because we want to use psref in
pr_purgeif (otherwise destruction procedures can be tricky)
Ensure to call if_mcast_op with holding IFNET_LOCK
Note that CARP doesn't deal with IFNET_LOCK yet.
Remove IFNET_GLOBAL_LOCK where it's unnecessary because IFNET_LOCK is held
Describe which lock is used to protect each member variable of struct ifnet
Requested by skrll@
Write a guideline for converting an interface to IFEF_MPSAFE
Requested by skrll@
Note that IFNET_LOCK must not be held in softint
Don't set IFEF_MPSAFE unless NET_MPSAFE at this point
Because recent investigations show that interfaces with IFEF_MPSAFE need to
follow additional restrictions to work with the flag safely. We should enable it
on an interface by default only if the interface surely satisfies the
restrictions, which are described in if.h.
Note that enabling IFEF_MPSAFE solely gains a few benefit on performance because
the network stack is still serialized by the big kernel locks by default.
Revision 1.126.2.5: download - view: text, markup, annotated - select for diffs
Thu Dec 21 19:14:41 2017 UTC (6 years, 11 months ago) by snj
Branches: netbsd-8
Diff to: previous 1.126.2.4: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.4: +3 -3
lines
Pull up following revision(s) (requested by pgoyette in ticket #436):
distrib/sets/lists/modules/mi: revision 1.112
sys/modules/Makefile: revision 1.196
sys/modules/ip_ecn/Makefile: revision 1.1
sys/modules/if_gif/Makefile: revision 1.3
sys/net/if_gif.c: revision 1.136
sys/netinet/ip_ecn.c: revision 1.17
Split ip_ecn code into its own module, so it can be shared between
gif(4), stf(4), and ipsec(4). Without this, loading the if_gif
module can result in redefined global symbols if either ipsec(4) or
stf(4) but not gif(4) is built into the kernel.
Fixes PR kern/52795 (as reported by martin@ via irc).
Revision 1.137: download - view: text, markup, annotated - select for diffs
Thu Dec 21 09:35:38 2017 UTC (6 years, 11 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +3 -6
lines
remove duplicated null ckeck
Revision 1.126.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 10 10:10:25 2017 UTC (7 years ago) by snj
Branches: netbsd-8
Diff to: previous 1.126.2.3: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.3: +18 -8
lines
Pull up following revision(s) (requested by msaitoh in ticket #427):
sys/arch/amiga/dev/if_bah_zbus.c: 1.17
sys/arch/arm/broadcom/bcm53xx_eth.c: 1.30
sys/arch/powerpc/booke/dev/pq3etsec.c: 1.32
sys/arch/usermode/dev/if_veth.c: 1.9
sys/dev/ic/an.c: 1.66
sys/dev/ic/athn.c: 1.17
sys/dev/ic/atw.c: 1.162
sys/dev/ic/bwi.c: 1.33
sys/dev/ic/dwc_gmac.c: 1.41-1.42
sys/dev/ic/malo.c: 1.10
sys/dev/ic/rt2560.c: 1.31
sys/dev/ic/rt2661.c: 1.36
sys/dev/ic/rt2860.c: 1.29
sys/dev/ic/rtw.c: 1.127
sys/dev/ic/rtwvar.h: 1.46
sys/dev/ic/smc90cx6.c: 1.71
sys/dev/ic/smc90cx6var.h: 1.12
sys/dev/ic/wi.c: 1.244
sys/dev/pci/if_ipw.c: 1.66
sys/dev/pci/if_iwi.c: 1.104
sys/dev/pci/if_iwm.c: 1.76
sys/dev/pci/if_iwn.c: 1.86
sys/dev/pci/if_rtwn.c: 1.13
sys/dev/pci/if_wm.c: 1.541
sys/dev/pci/if_wpi.c: 1.79
sys/dev/pci/ixgbe/ixgbe.c: 1.106
sys/dev/pci/ixgbe/ixv.c: 1.73 via patch
sys/dev/pcmcia/if_malo_pcmcia.c: 1.15
sys/dev/scsipi/if_se.c: 1.95
sys/dev/usb/if_upl.c: 1.60
sys/net/if.c: 1.396
sys/net/if.h: 1.241
sys/net/if_arc.h: 1.23
sys/net/if_arcsubr.c: 1.78
sys/net/if_bridge.c: 1.136-1.137
sys/net/if_etherip.c: 1.39
sys/net/if_faith.c: 1.56
sys/net/if_gif.c: 1.131
sys/net/if_loop.c: 1.96
sys/net/if_mpls.c: 1.30
sys/net/if_pppoe.c: 1.129
sys/net/if_srt.c: 1.27
sys/net/if_stf.c: 1.102
sys/net/if_tap.c: 1.100
sys/net/if_vlan.c: 1.105
sys/netinet/ip_carp.c: 1.91
sys/rump/net/lib/libshmif/if_shmem.c: 1.73-1.74
sys/rump/net/lib/libvirtif/if_virt.c: 1.55-1.56
if_initalize() and if_attach() failed when resource allocation failed
(e.g. allocating softint). Without this change, it panics. It's bad because
resource shortage really occured when a lot of pseudo interface is created.
To avoid this problem, don't panic and change return value of if_initialize()
and if_attach() to int. Caller fanction will be recover from error cleanly by
checking the return value.
Return if bah_attach_subr() failed.
If if_attach() failed in the attach function, return.
- If if_initialize() failed in the attach function, free resources and return.
- Add some missing frees in bridge_clone_destroy().
- KNF
If error occured in bcmeth_ccb_attach(), free resources and return.
If error occured in pq3etsec_attach(), free resources and return.
If error occured in the attach function, free resources and return.
- If if_initialize() failed in athn_attach(), free resources and return.
- Add missing pmf_event_deregister() in athn_detach().
- Free resources correctly on some errors in atw_attach().
- Use apint*() insread of printf() in the attach function.
If if_initialize() failed in the attach function, return.
- If if_initialize() failed in the attach function, free resources and return.
- Add missing dwc_gmac_free_dma_rings() and mutex_destroy() when attach
failed.
- If if_initialize() failed in the attach function, free resources and return.
- ifp is always not NULL in iwi_detach(). Check correctly with ifp->if_softc.
- If if_initialize() failed in the attach function, free resources and return.
- Fix error path in the attach function correctly.
If if_initialize() failed in the attach function, free resources and return.
If if_attach() failed in the attach function, free resources and return.
- If if_initialize() failed in the attach function, free resources and return.
- KNF
- If if_attach() failed in the attach function, free resources and return.
- KNF
Fix compile error.
Fix compile error.
We don't need '&mii', but just 'mii' for mii_detach().
Don't free sc_rthash twice
Revision 1.136: download - view: text, markup, annotated - select for diffs
Sat Dec 9 08:03:06 2017 UTC (7 years ago) by pgoyette
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +3 -3
lines
Split ip_ecn code into its own module, so it can be shared between
gif(4), stf(4), and ipsec(4). Without this, loading the if_gif
module can result in redefined global symbols if either ipsec(4) or
stf(4) but not gif(4) is built into the kernel.
Fixes PR kern/52795 (as reported by martin@ via irc).
XXX pullup to netbsd-8
Revision 1.135: download - view: text, markup, annotated - select for diffs
Wed Dec 6 08:23:17 2017 UTC (7 years ago) by knakahara
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +3 -29
lines
unify processing to check nesting count for some tunnel protocols.
Revision 1.80.12.4: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:02 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.80.12.3: preferred, colored; branchpoint 1.80: preferred, colored; next MAIN 1.81: preferred, colored
Changes since revision 1.80.12.3: +630 -208
lines
update from HEAD
Revision 1.134: download - view: text, markup, annotated - select for diffs
Mon Nov 27 05:05:50 2017 UTC (7 years ago) by knakahara
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +4 -5
lines
IFF_RUNNING checking in Rx and Tx processing is unnecessary now.
Because the configs of gif (members of gif_var) are protected by psref(9).
Revision 1.133: download - view: text, markup, annotated - select for diffs
Mon Nov 27 05:02:22 2017 UTC (7 years ago) by knakahara
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +279 -209
lines
preserve gif(4) configs by psref(9) like vlan(4) and l2tp(4).
After Tx side does not use softint, gif(4) can use psref(9) for config
preservation like vlan(4) and l2tp(4).
update locking notes later.
Revision 1.132: download - view: text, markup, annotated - select for diffs
Thu Nov 16 03:07:18 2017 UTC (7 years ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +3 -3
lines
Unify IFEF_*_MPSAFE into IFEF_MPSAFE
There are already two flags for if_output and if_start, however, it seems such
MPSAFE flags are eventually needed for all if_XXX operations. Having discrete
flags for each operation is wasteful of if_extflags bits. So let's unify
the flags into one: IFEF_MPSAFE.
Fortunately IFEF_*_MPSAFE flags have never been included in any releases, so
we can change them without breaking backward compatibility of the releases
(though the kernel version of -current should be bumped).
Note that if an interface have both MP-safe and non-MP-safe operations at a
time, we have to set the IFEF_MPSAFE flag and let callees of non-MP-safe
opeartions take the kernel lock.
Proposed on tech-kern@ and tech-net@
Revision 1.126.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 24 08:47:24 2017 UTC (7 years, 1 month ago) by snj
Branches: netbsd-8
CVS tags: matt-nb8-mediatek-base,
matt-nb8-mediatek
Diff to: previous 1.126.2.2: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.2: +50 -12
lines
Pull up following revision(s) (requested by knahakara in ticket #303):
sys/net/if_gif.c: 1.129-1.130
sys/net/if_gif.h: 1.26-1.27
sys/netinet/in_gif.c: 1.88
sys/netinet6/in6_gif.c: 1.86
add lock for percpu route like l2tp(4).
--
add lock for sclist to exclude ifconfig gifX add/delete and ifconfig gifX tunnel
--
update locking notes.
Revision 1.131: download - view: text, markup, annotated - select for diffs
Mon Oct 23 09:31:18 2017 UTC (7 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +18 -8
lines
If if_initialize() failed in the attach function, free resources and return.
Revision 1.130: download - view: text, markup, annotated - select for diffs
Thu Sep 21 09:46:14 2017 UTC (7 years, 2 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +20 -7
lines
add lock for sclist to exclude ifconfig gifX add/delete and ifconfig gifX tunnel
Revision 1.129: download - view: text, markup, annotated - select for diffs
Thu Sep 21 09:42:03 2017 UTC (7 years, 2 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +32 -7
lines
add lock for percpu route like l2tp(4).
Revision 1.83.4.10: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:11 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.83.4.9: preferred, colored; branchpoint 1.83: preferred, colored; next MAIN 1.84: preferred, colored
Changes since revision 1.83.4.9: +30 -44
lines
Sync with HEAD
Revision 1.126.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 9 05:51:50 2017 UTC (7 years, 4 months ago) by snj
Branches: netbsd-8
Diff to: previous 1.126.2.1: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.1: +25 -22
lines
Pull up following revision(s) (requested by knakahara in ticket #201):
sys/net/if_gif.c: revision 1.128
fix leak when encap_attach() fails twice.
Revision 1.128: download - view: text, markup, annotated - select for diffs
Tue Aug 8 03:14:50 2017 UTC (7 years, 4 months ago) by knakahara
Branches: MAIN
CVS tags: nick-nhusb-base-20170825
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +25 -22
lines
fix leak when encap_attach() fails twice.
XXX need pullup to -8 branch
Revision 1.126.2.1: download - view: text, markup, annotated - select for diffs
Fri Jun 30 06:17:51 2017 UTC (7 years, 5 months ago) by snj
Branches: netbsd-8
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +8 -3
lines
Pull up following revision(s) (requested by knakahara in ticket #58):
sys/net/if_gif.c: revision 1.127
I have forgotten to commit this gif(4) MP-ify patch for a long time, sorry.
Revision 1.127: download - view: text, markup, annotated - select for diffs
Thu Jun 22 09:26:43 2017 UTC (7 years, 5 months ago) by knakahara
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base,
perseant-stdc-iso10646
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +8 -3
lines
I have forgotten to commit this gif(4) MP-ify patch for a long time, sorry.
Revision 1.126: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:14 2017 UTC (7 years, 6 months ago) by chs
Branches: MAIN
CVS tags: netbsd-8-base
Branch point for: netbsd-8
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +2 -6
lines
remove checks for failure after memory allocation calls that cannot fail:
kmem_alloc() with KM_SLEEP
kmem_zalloc() with KM_SLEEP
percpu_alloc()
pserialize_create()
psref_class_create()
all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.
Revision 1.124.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:05 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.124: preferred, colored; next MAIN 1.125: preferred, colored
Changes since revision 1.124: +2 -20
lines
Sync with HEAD
Revision 1.119.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:49 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.119.2.2: preferred, colored; branchpoint 1.119: preferred, colored; next MAIN 1.120: preferred, colored
Changes since revision 1.119.2.2: +2 -20
lines
Sync with HEAD
Revision 1.125: download - view: text, markup, annotated - select for diffs
Mon Feb 13 04:05:19 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,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +2 -20
lines
Remove unnecessary splnet
ok @knakahara
Revision 1.83.4.9: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:58 2017 UTC (7 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.83.4.8: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.4.8: +15 -4
lines
Sync with HEAD
Revision 1.119.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:50 2017 UTC (7 years, 11 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.119.2.1: preferred, colored; branchpoint 1.119: preferred, colored
Changes since revision 1.119.2.1: +15 -4
lines
Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
Revision 1.124: download - view: text, markup, annotated - select for diffs
Wed Dec 14 11:19:15 2016 UTC (7 years, 11 months ago) by knakahara
Branches: MAIN
CVS tags: pgoyette-localcount-20170107,
nick-nhusb-base-20170204,
bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +15 -4
lines
fix race of gif_softc->gif_ro when we send multiple flows over gif on NET_MPSAFE enabled kernel.
make gif_softc->gif_ro percpu as well as ipforward_rt to resolve this race.
and add future TODO comment for etherip(4).
Revision 1.119.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:20 2016 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +4 -11
lines
Sync with HEAD
Revision 1.83.4.8: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:56:08 2016 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.83.4.7: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.4.7: +80 -17
lines
Sync with HEAD
Revision 1.123: download - view: text, markup, annotated - select for diffs
Thu Sep 15 06:59:32 2016 UTC (8 years, 2 months ago) by knakahara
Branches: MAIN
CVS tags: pgoyette-localcount-20161104,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +4 -11
lines
kmem_alloc(size, KM_SLEEP) return value NULL check is not required any more.
kmem_alloc(size, KM_SLEEP) is already fixed, that is, it never return NULL.
see: sys/kern/subr_kmem.c:r1.62
Revision 1.122: download - view: text, markup, annotated - select for diffs
Thu Sep 1 06:50:09 2016 UTC (8 years, 3 months ago) by knakahara
Branches: MAIN
CVS tags: localcount-20160914
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +5 -2
lines
gif(4)'s if_output() is already MP-safe. It should enable IFEF_OUTPUT_MPSAFE.
Revision 1.121: download - view: text, markup, annotated - select for diffs
Thu Aug 18 11:44:22 2016 UTC (8 years, 3 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +34 -2
lines
fix: failed to create sysctl entries for module version gif(4).
The sysctl entries are below 2 entries.
- net.inet.ip.gifttl
- net.inet6.ip6.gifhlim
Revision 1.120: download - view: text, markup, annotated - select for diffs
Sun Aug 7 17:38:33 2016 UTC (8 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +43 -8
lines
modularize some more drivers and merge the module glue
Revision 1.83.4.7: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:21 2016 UTC (8 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.83.4.6: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.4.6: +198 -109
lines
Sync with HEAD
Revision 1.119: download - view: text, markup, annotated - select for diffs
Mon Jul 4 04:43:46 2016 UTC (8 years, 5 months ago) by knakahara
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +71 -23
lines
Don't use IFQ_ENQUEUE/IFQ_DEQUEUE in the MP-ified interface without whole lock.
That causes reoder per flow, as there can be below situation
(1) CPU#A does IFQ_DEQUEUE
(2) CPU#A sleeps by some reason
(3) CPU#B does IFQ_DEQUEUE
Revision 1.118: download - view: text, markup, annotated - select for diffs
Mon Jul 4 04:40:13 2016 UTC (8 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +48 -13
lines
make gif(4) and ip_encap MP-ify
Revision 1.117: download - view: text, markup, annotated - select for diffs
Mon Jul 4 04:35:09 2016 UTC (8 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +13 -4
lines
make encap_lock_{enter,exit} interruptable.
Revision 1.116: download - view: text, markup, annotated - select for diffs
Mon Jul 4 04:22:47 2016 UTC (8 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +23 -3
lines
fix: gif(4) receive side race
A panic cause in rn_match() called by encap[46]_lookup(). The reason is that
gif(4) does not suspend receive packet processing in spite of suspending
transmit packet processing while anyone is doing gif(4) ioctl.
Revision 1.115: download - view: text, markup, annotated - select for diffs
Mon Jul 4 04:17:25 2016 UTC (8 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +9 -32
lines
let gif(4) promise softint(9) contract (2/2) : ip_encap side
The last commit does not care encaptab. This commit fixes encaptab race which
is used not only gif(4).
Revision 1.114: download - view: text, markup, annotated - select for diffs
Mon Jul 4 04:14:47 2016 UTC (8 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +60 -4
lines
let gif(4) promise softint(9) contract (1/2) : gif(4) side
To prevent calling softint_schedule() after called softint_disestablish(),
the following modifications are added
+ ioctl (writing configuration) side
- off IFF_RUNNING flag before changing configuration
- wait softint handler completion before changing configuration
+ packet processing (reading configuraiotn) side
- if IFF_RUNNING flag is on, do nothing
+ in whole
- add gif_list_lock_{enter,exit} to prevent the same configuration is
set to other gif(4) interfaces
Revision 1.113: download - view: text, markup, annotated - select for diffs
Mon Jun 27 09:06:56 2016 UTC (8 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +3 -2
lines
gif(4) does not need link state changing interrupts
Revision 1.112: download - view: text, markup, annotated - select for diffs
Fri Jun 24 06:32:47 2016 UTC (8 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +4 -3
lines
eliminate unused softint for gif(4) Rx
Revision 1.111: download - view: text, markup, annotated - select for diffs
Fri Jun 24 04:38:12 2016 UTC (8 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +17 -83
lines
eliminate gif(4) Tx softint
- remove gif_si from struct gif_softc
- directly call gifintr() from gif_output()
- rename gifintr() to gif_start()
- remove Tx softint processing from gif_set_tunnel() and gif_delete_tunnel()
Revision 1.110: download - view: text, markup, annotated - select for diffs
Fri Jun 10 13:27:16 2016 UTC (8 years, 6 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +3 -3
lines
Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.
No functional change.
Revision 1.109: download - view: text, markup, annotated - select for diffs
Tue May 31 03:52:40 2016 UTC (8 years, 6 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +15 -7
lines
modify some functions static. no functional change.
Revision 1.83.4.6: download - view: text, markup, annotated - select for diffs
Sun May 29 08:44:38 2016 UTC (8 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.83.4.5: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.4.5: +3 -3
lines
Sync with HEAD
Revision 1.108: download - view: text, markup, annotated - select for diffs
Thu Apr 28 00:16:56 2016 UTC (8 years, 7 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20160529
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +3 -3
lines
Constify rtentry of if_output
We no longer need to change rtentry below if_output.
The change makes it clear where rtentries are changed (or not)
and helps forthcoming locking (os psrefing) rtentries.
Revision 1.83.4.5: download - view: text, markup, annotated - select for diffs
Fri Apr 22 15:44:17 2016 UTC (8 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.83.4.4: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.4.4: +4 -5
lines
Sync with HEAD
Revision 1.107: download - view: text, markup, annotated - select for diffs
Wed Apr 20 09:01:04 2016 UTC (8 years, 7 months ago) by knakahara
Branches: MAIN
CVS tags: nick-nhusb-base-20160422
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +4 -5
lines
IFQ_ENQUEUE refactor (3/3) : eliminate pktattr argument from IFQ_ENQUEUE caller
Revision 1.83.4.4: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:32 2016 UTC (8 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.83.4.3: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.4.3: +40 -53
lines
Sync with HEAD
Revision 1.106: download - view: text, markup, annotated - select for diffs
Fri Feb 26 07:35:17 2016 UTC (8 years, 9 months ago) by knakahara
Branches: MAIN
CVS tags: nick-nhusb-base-20160319
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +3 -3
lines
To eliminate gif_softc_list linear search, add extra argument to encapsw.pr_ctlinput().
Revision 1.105: download - view: text, markup, annotated - select for diffs
Mon Jan 18 06:08:26 2016 UTC (8 years, 10 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +2 -4
lines
Refactor protosw codes in gif(4). No functional change.
- remove unnecessary include
- reduce scopes
Revision 1.104: download - view: text, markup, annotated - select for diffs
Fri Jan 8 03:55:39 2016 UTC (8 years, 11 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +31 -2
lines
eliminate ip_input.c and ip6_input.c dependency on gif(4)
Revision 1.103: download - view: text, markup, annotated - select for diffs
Mon Jan 4 07:50:08 2016 UTC (8 years, 11 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +10 -50
lines
Revert extra wating codes.
PR kern/50522 is actually fixed by sys/kern/kern_softint.c:r1.42, so waiting
codes in if_gif.c is not required.
Revision 1.83.4.3: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:10:06 2015 UTC (8 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.83.4.2: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.4.2: +249 -88
lines
Sync with HEAD (as of 26th Dec)
Revision 1.102: download - view: text, markup, annotated - select for diffs
Fri Dec 11 07:59:14 2015 UTC (9 years ago) by knakahara
Branches: MAIN
CVS tags: nick-nhusb-base-20151226
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +93 -6
lines
PR kern/50522: gif(4) ioctl causes panic while someone is using the gif(4) interface.
It is required to wait other CPU's softint completion before disestablishing
the softint handler.
Revision 1.101: download - view: text, markup, annotated - select for diffs
Fri Dec 11 04:29:24 2015 UTC (9 years ago) by knakahara
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +4 -3
lines
revert KASSERT. It should use 'if' instead of KASSERT.
see updated(later than r1.18) kmem(9) man.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Thu Dec 10 08:11:03 2015 UTC (9 years ago) by knakahara
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +3 -4
lines
kmem_zalloc(, KM_SLEEP) must not return NULL.
Revision 1.99: download - view: text, markup, annotated - select for diffs
Thu Dec 10 01:20:12 2015 UTC (9 years ago) by knakahara
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +4 -2
lines
add NULL check
Revision 1.98: download - view: text, markup, annotated - select for diffs
Wed Dec 9 05:56:24 2015 UTC (9 years ago) by knakahara
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +5 -4
lines
gif(4) uses kmem_alloc APIs instead of malloc.
Revision 1.97: download - view: text, markup, annotated - select for diffs
Wed Dec 9 03:33:32 2015 UTC (9 years ago) by knakahara
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +62 -41
lines
Refactor gif_set_tunnel(). No functional change.
Revision 1.96: download - view: text, markup, annotated - select for diffs
Wed Dec 9 03:31:28 2015 UTC (9 years ago) by knakahara
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +75 -50
lines
Improve gif_set_tunnel() rollback code.
Revision 1.95: download - view: text, markup, annotated - select for diffs
Fri Dec 4 02:26:11 2015 UTC (9 years ago) by knakahara
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +42 -17
lines
gif(4): Infinite recursion calls prevention code works again now.
The prevention code haven't worked since gif(4) was changed
to use softint(9). To work this prevention, git_output uses
m_tag(9) like FreeBSD and OpenBSD.
I tested with following code.
====================
# ifconfig gif0 create
# ifconfig gif0 tunnel 10.1.1.1 10.1.1.2
# ifconfig gif0 inet 192.168.100.1 192.168.100.100
# ifconfig gif1 create
# ifconfig gif1 tunnel 192.168.100.1 192.168.100.100
# ifconfig gif1 inet 192.168.101.1 192.168.101.101
# ifconfig gif2 create
# ifconfig gif2 tunnel 192.168.101.1 192.168.101.101
# ifconfig gif2 inet 192.168.102.1 192.168.102.102
# ping -w 1 -c 1 192.168.102.102
# dmesg | tail -n 1
gif0: recursively called too many times(2)
====================
Revision 1.94: download - view: text, markup, annotated - select for diffs
Thu Dec 3 03:03:58 2015 UTC (9 years ago) by knakahara
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +3 -3
lines
LIST_REMOVE should be done before clearing members of the list element.
Revision 1.93: download - view: text, markup, annotated - select for diffs
Thu Dec 3 02:50:49 2015 UTC (9 years ago) by knakahara
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +2 -8
lines
remove extra encap_detach().
encap_detach() is already done in gif_delete_tunnel()->in{,6}_gif_detach().
Revision 1.83.2.1.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 18 08:30:24 2015 UTC (9 years ago) by msaitoh
Branches: netbsd-7-0
CVS tags: netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE
Diff to: previous 1.83.2.1.2.1: preferred, colored; branchpoint 1.83.2.1: preferred, colored; next MAIN 1.83.2.2: preferred, colored
Changes since revision 1.83.2.1.2.1: +9 -9
lines
Pull up following revision(s) (requested by knakahara in ticket #1034):
sys/net/if_gif.c: revision 1.91
sys/net/if_gif.c: revision 1.92
fix panic after "ifconfig gifX tunnel src dst" failed for the reason of address pair duplication.
e.g.
====================
# ifconfig gif0 create
# ifconfig gif0 tunnel 192.168.0.1 192.168.0.2
# ifconfig gif0 inet 172.16.0.1/24 172.16.0.2
# route add 10.1.0.0/24 172.16.0.1
# ifconfig gif1 create
# ifconfig gif1 tunnel 192.168.0.1 192.168.0.3
# ifconfig gif0 tunnel 192.168.0.1 192.168.0.3
ifconfig: SIOCSLIFPHYADDR: Can't assign requested address # expected
# ping 10.1.0.1
(panic)
====================
fix CID 980463
Revision 1.83.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 18 08:29:21 2015 UTC (9 years ago) by msaitoh
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
Diff to: previous 1.83.2.2: preferred, colored; branchpoint 1.83: preferred, colored; next MAIN 1.84: preferred, colored
Changes since revision 1.83.2.2: +9 -9
lines
Pull up following revision(s) (requested by knakahara in ticket #1034):
sys/net/if_gif.c: revision 1.91
sys/net/if_gif.c: revision 1.92
fix panic after "ifconfig gifX tunnel src dst" failed for the reason of address pair duplication.
e.g.
====================
# ifconfig gif0 create
# ifconfig gif0 tunnel 192.168.0.1 192.168.0.2
# ifconfig gif0 inet 172.16.0.1/24 172.16.0.2
# route add 10.1.0.0/24 172.16.0.1
# ifconfig gif1 create
# ifconfig gif1 tunnel 192.168.0.1 192.168.0.3
# ifconfig gif0 tunnel 192.168.0.1 192.168.0.3
ifconfig: SIOCSLIFPHYADDR: Can't assign requested address # expected
# ping 10.1.0.1
(panic)
====================
fix CID 980463
Revision 1.83.2.1.2.1: download - view: text, markup, annotated - select for diffs
Wed Nov 18 08:26:14 2015 UTC (9 years ago) by msaitoh
Branches: netbsd-7-0
Diff to: previous 1.83.2.1: preferred, colored
Changes since revision 1.83.2.1: +26 -20
lines
Pull up following revision(s) (requested by knakahara in ticket #1033):
sys/net/if_gif.c: revision 1.89
sys/net/if_gif.c: revision 1.90
CID 980463: Provide common error path for rollback. Remove extra check for
success.
Revision 1.83.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 18 08:21:52 2015 UTC (9 years ago) by msaitoh
Branches: netbsd-7
Diff to: previous 1.83.2.1: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.2.1: +26 -20
lines
Pull up following revision(s) (requested by knakahara in ticket #1033):
sys/net/if_gif.c: revision 1.89
sys/net/if_gif.c: revision 1.90
CID 980463: Provide common error path for rollback. Remove extra check for
success.
Revision 1.80.14.2: download - view: text, markup, annotated - select for diffs
Wed Nov 18 07:41:57 2015 UTC (9 years ago) by msaitoh
Branches: netbsd-6-0
Diff to: previous 1.80.14.1: preferred, colored; branchpoint 1.80: preferred, colored; next MAIN 1.81: preferred, colored
Changes since revision 1.80.14.1: +9 -9
lines
Pull up following revision(s) (requested by knakahara in ticket #1345):
sys/net/if_gif.c: revision 1.91
sys/net/if_gif.c: revision 1.92
fix panic after "ifconfig gifX tunnel src dst" failed for the reason of address pair duplication.
e.g.
====================
# ifconfig gif0 create
# ifconfig gif0 tunnel 192.168.0.1 192.168.0.2
# ifconfig gif0 inet 172.16.0.1/24 172.16.0.2
# route add 10.1.0.0/24 172.16.0.1
# ifconfig gif1 create
# ifconfig gif1 tunnel 192.168.0.1 192.168.0.3
# ifconfig gif0 tunnel 192.168.0.1 192.168.0.3
ifconfig: SIOCSLIFPHYADDR: Can't assign requested address # expected
# ping 10.1.0.1
(panic)
====================
fix CID 980463
Revision 1.80.8.1.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 18 07:41:17 2015 UTC (9 years ago) by msaitoh
Branches: netbsd-6-1
Diff to: previous 1.80.8.1.2.1: preferred, colored; branchpoint 1.80.8.1: preferred, colored; next MAIN 1.80.8.2: preferred, colored
Changes since revision 1.80.8.1.2.1: +9 -9
lines
Pull up following revision(s) (requested by knakahara in ticket #1345):
sys/net/if_gif.c: revision 1.91
sys/net/if_gif.c: revision 1.92
fix panic after "ifconfig gifX tunnel src dst" failed for the reason of address pair duplication.
e.g.
====================
# ifconfig gif0 create
# ifconfig gif0 tunnel 192.168.0.1 192.168.0.2
# ifconfig gif0 inet 172.16.0.1/24 172.16.0.2
# route add 10.1.0.0/24 172.16.0.1
# ifconfig gif1 create
# ifconfig gif1 tunnel 192.168.0.1 192.168.0.3
# ifconfig gif0 tunnel 192.168.0.1 192.168.0.3
ifconfig: SIOCSLIFPHYADDR: Can't assign requested address # expected
# ping 10.1.0.1
(panic)
====================
fix CID 980463
Revision 1.80.14.1: download - view: text, markup, annotated - select for diffs
Wed Nov 18 07:36:22 2015 UTC (9 years ago) by msaitoh
Branches: netbsd-6-0
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +26 -20
lines
Pull up following revision(s) (requested by knakahara in ticket #1344):
sys/net/if_gif.c: revision 1.89
sys/net/if_gif.c: revision 1.90
CID 980463: Provide common error path for rollback. Remove extra check for
success.
Revision 1.80.8.1.2.1: download - view: text, markup, annotated - select for diffs
Wed Nov 18 07:34:41 2015 UTC (9 years ago) by msaitoh
Branches: netbsd-6-1
Diff to: previous 1.80.8.1: preferred, colored
Changes since revision 1.80.8.1: +26 -20
lines
Pull up following revision(s) (requested by knakahara in ticket #1344):
sys/net/if_gif.c: revision 1.89
sys/net/if_gif.c: revision 1.90
CID 980463: Provide common error path for rollback. Remove extra check for
success.
Revision 1.80.8.3: download - view: text, markup, annotated - select for diffs
Sun Nov 15 21:09:37 2015 UTC (9 years ago) by bouyer
Branches: netbsd-6
Diff to: previous 1.80.8.2: preferred, colored; branchpoint 1.80: preferred, colored; next MAIN 1.81: preferred, colored
Changes since revision 1.80.8.2: +9 -9
lines
Pull up following revision(s) (requested by knakahara in ticket #1345):
sys/net/if_gif.c: revision 1.91
sys/net/if_gif.c: revision 1.92
fix panic after "ifconfig gifX tunnel src dst" failed for the reason of address pair duplication.
e.g.
====================
# ifconfig gif0 create
# ifconfig gif0 tunnel 192.168.0.1 192.168.0.2
# ifconfig gif0 inet 172.16.0.1/24 172.16.0.2
# route add 10.1.0.0/24 172.16.0.1
# ifconfig gif1 create
# ifconfig gif1 tunnel 192.168.0.1 192.168.0.3
# ifconfig gif0 tunnel 192.168.0.1 192.168.0.3
ifconfig: SIOCSLIFPHYADDR: Can't assign requested address # expected
# ping 10.1.0.1
(panic)
====================
fix CID 980463
Revision 1.80.8.2: download - view: text, markup, annotated - select for diffs
Sun Nov 15 21:04:53 2015 UTC (9 years ago) by bouyer
Branches: netbsd-6
Diff to: previous 1.80.8.1: preferred, colored; branchpoint 1.80: preferred, colored
Changes since revision 1.80.8.1: +26 -20
lines
Pull up following revision(s) (requested by knakahara in ticket #1344):
sys/net/if_gif.c: revision 1.89
sys/net/if_gif.c: revision 1.90
CID 980463: Provide common error path for rollback. Remove extra check for
success.
correct mistake in previous
Revision 1.92: download - view: text, markup, annotated - select for diffs
Wed Nov 11 03:57:57 2015 UTC (9 years, 1 month ago) by knakahara
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +4 -4
lines
fix CID 980463
Revision 1.91: download - view: text, markup, annotated - select for diffs
Wed Nov 11 02:57:17 2015 UTC (9 years, 1 month ago) by knakahara
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +8 -8
lines
fix panic after "ifconfig gifX tunnel src dst" failed for the reason of address pair duplication.
e.g.
====================
# ifconfig gif0 create
# ifconfig gif0 tunnel 192.168.0.1 192.168.0.2
# ifconfig gif0 inet 172.16.0.1/24 172.16.0.2
# route add 10.1.0.0/24 172.16.0.1
# ifconfig gif1 create
# ifconfig gif1 tunnel 192.168.0.1 192.168.0.3
# ifconfig gif0 tunnel 192.168.0.1 192.168.0.3
ifconfig: SIOCSLIFPHYADDR: Can't assign requested address # expected
# ping 10.1.0.1
(panic)
====================
Revision 1.90: download - view: text, markup, annotated - select for diffs
Tue Nov 10 18:22:46 2015 UTC (9 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +10 -12
lines
correct mistake in previous
Revision 1.89: download - view: text, markup, annotated - select for diffs
Tue Nov 10 17:59:37 2015 UTC (9 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +25 -17
lines
CID 980463: Provide common error path for rollback. Remove extra check for
success.
Revision 1.83.4.2: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:10 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.83.4.1: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.4.1: +6 -4
lines
Sync with HEAD
Revision 1.88: download - view: text, markup, annotated - select for diffs
Mon Aug 24 22:21:26 2015 UTC (9 years, 3 months ago) by pooka
Branches: MAIN
CVS tags: nick-nhusb-base-20150921
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +4 -2
lines
sprinkle _KERNEL_OPT
Revision 1.87: download - view: text, markup, annotated - select for diffs
Thu Aug 20 14:40:19 2015 UTC (9 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +4 -4
lines
include "ioconf.h" to get the 'void <driver>attach(int count);' prototype.
Revision 1.83.4.1: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:25 2015 UTC (9 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +9 -2
lines
Sync with HEAD
Revision 1.83.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 4 09:44:57 2015 UTC (9 years, 6 months ago) by msaitoh
Branches: netbsd-7
CVS tags: netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1
Branch point for: netbsd-7-0
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +7 -2
lines
Pull up following revision(s) (requested by hsuenaga in ticket #822):
sys/net/if_gif.c: revision 1.85
sys/net/if_gif.c: revision 1.86
Obtain softnet_lock before entering IP networking stack from gif software
interrupt.
Include <sys/socketvar.h> for softnet_lock.
Revision 1.86: download - view: text, markup, annotated - select for diffs
Wed Jun 3 13:06:26 2015 UTC (9 years, 6 months ago) by martin
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +3 -2
lines
Include <sys/socketvar.h> for softnet_lock.
Revision 1.85: download - view: text, markup, annotated - select for diffs
Wed Jun 3 02:17:51 2015 UTC (9 years, 6 months ago) by hsuenaga
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +6 -2
lines
Obtain softnet_lock before entering IP networking stack from gif software
interrupt.
Revision 1.84: download - view: text, markup, annotated - select for diffs
Mon Apr 20 10:19:54 2015 UTC (9 years, 7 months ago) by roy
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +4 -2
lines
Introduce p2p_rtrequest() so that IFF_POINTOPOINT interfaces can work
with RTF_LOCAL.
Fixes PR kern/49829.
Revision 1.80.12.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:34 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.80.12.2: preferred, colored; branchpoint 1.80: preferred, colored
Changes since revision 1.80.12.2: +13 -23
lines
Rebase to HEAD as of a few days ago.
Revision 1.82.10.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:56:15 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.82: preferred, colored; next MAIN 1.83: preferred, colored
Changes since revision 1.82: +15 -25
lines
Rebase.
Revision 1.83: download - view: text, markup, annotated - select for diffs
Thu Jun 5 23:48:16 2014 UTC (10 years, 6 months ago) by rmind
Branches: MAIN
CVS tags: tls-maxphys-base,
tls-earlyentropy-base,
nick-nhusb-base-20150406,
nick-nhusb-base,
netbsd-7-base
Branch point for: nick-nhusb,
netbsd-7
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +15 -25
lines
- Implement pktqueue interface for lockless IP input queue.
- Replace ipintrq and ip6intrq with the pktqueue mechanism.
- Eliminate kernel-lock from ipintr() and ip6intr().
- Some preparation work to push softnet_lock out of ipintr().
Discussed on tech-net.
Revision 1.80.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:09 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.80.2.1: preferred, colored; branchpoint 1.80: preferred, colored; next MAIN 1.81: preferred, colored
Changes since revision 1.80.2.1: +2 -104
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.80.12.2: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:25 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.80.12.1: preferred, colored; branchpoint 1.80: preferred, colored
Changes since revision 1.80.12.1: +2 -104
lines
resync from head
Revision 1.82: download - view: text, markup, annotated - select for diffs
Fri Mar 1 18:25:56 2013 UTC (11 years, 9 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base9,
rmind-smpnet-nbase,
rmind-smpnet-base,
rmind-smpnet,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: tls-earlyentropy
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +2 -104
lines
Retire OSI network stack. OK core@
Revision 1.80.12.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:30:01 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +2 -5
lines
resync with head
Revision 1.80.8.1: download - view: text, markup, annotated - select for diffs
Fri Feb 8 20:42:51 2013 UTC (11 years, 10 months ago) by riz
Branches: netbsd-6
CVS tags: 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
Branch point for: netbsd-6-1
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +2 -5
lines
Pull up following revision(s) (requested by degroote in ticket #792):
sys/net/if_gif.c: revision 1.81
PR kern/47419: Antony Mallet: ifconfig doesn't diplay MTU on gif(4)
There is no special treatment for SIOCGITMTU in gif(4), so just pass it to
ifioctl_common().
Revision 1.80.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:25 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +2 -5
lines
sync with head
Revision 1.81: download - view: text, markup, annotated - select for diffs
Sat Jan 19 16:18:32 2013 UTC (11 years, 10 months ago) by degroote
Branches: MAIN
CVS tags: yamt-pagecache-base8
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +2 -5
lines
PR kern/47419: Antony Mallet: ifconfig doesn't diplay MTU on gif(4)
There is no special treatment for SIOCGITMTU in gif(4), so just pass it to
ifioctl_common().
Revision 1.80: download - view: text, markup, annotated - select for diffs
Fri Oct 28 16:42:52 2011 UTC (13 years, 1 month ago) by dyoung
Branches: MAIN
CVS tags: yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
netbsd-6-base,
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,
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,
tls-maxphys,
netbsd-6-0,
netbsd-6
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +2 -20
lines
Don't kauth-orize SIOCDIFPHYADDR, SIOCSIFFLAGS, SIOCSIFMTU, or
SIOCSLIFPHYADDR, in gif_ioctl() or in gre_ioctl(), because those
operations are ordinarily kauth-orized already in ifioctl().
Kauth-orizing SIOCSIFFLAGS in gre_ioctl() caused a panic ("panic:
bpf_detachd: ifpromisc failed: 1") when tcpdump(8) was interrupted.
Somehow bpf(4) enables promiscuous mode using different credentials than
it uses to disable promiscuous mode, hence the ifpromisc failure. This
may have something to do with privilege-separation in tcpdump(8). I.e.,
an LWP with SIOCSIFFLAGS privilege opens /dev/bpf, but an LWP without
SIOCSIFFLAGS privilege closes it.
Revision 1.79: download - view: text, markup, annotated - select for diffs
Thu Oct 27 20:04:57 2011 UTC (13 years, 1 month ago) by dyoung
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +6 -5
lines
Fix gif(4)/gre(4) operation over interfaces such as wm(4) that do IPv4
checksum-offload. Note well: it really is necessary to clear the
csum_data.
While I'm here, remove the do-nothing case for SIOCSIFDSTADDR and let
ifioctl_common() or the protocol handle it.
Revision 1.74.10.3: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:53 2010 UTC (14 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.74.10.2: preferred, colored; branchpoint 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.10.2: +6 -9
lines
sync with head.
Revision 1.77.4.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:18:01 2010 UTC (14 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77: +6 -9
lines
sync with head
Revision 1.77.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:44:19 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77: +6 -9
lines
Sync with HEAD.
Revision 1.78: download - view: text, markup, annotated - select for diffs
Mon Apr 5 07:22:23 2010 UTC (14 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
jruoho-x86intr,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +6 -9
lines
Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.
Revision 1.74.10.2: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:26 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.74.10.1: preferred, colored; branchpoint 1.74: preferred, colored
Changes since revision 1.74.10.1: +7 -15
lines
sync with head
Revision 1.77: download - view: text, markup, annotated - select for diffs
Tue Jan 19 22:08:00 2010 UTC (14 years, 10 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
uebayasi-xip-base
Branch point for: uebayasi-xip,
rmind-uvmplock
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +7 -15
lines
Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client. This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached. However, callers of bpf can
now be modularized.
Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff. ... and I'm not going to ponder the depths of unload
here.
Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
Revision 1.74.10.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:14:14 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +14 -20
lines
sync with head.
Revision 1.75.4.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:20:11 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +12 -16
lines
Sync with HEAD.
Revision 1.74.6.2: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:31 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.74.6.1: preferred, colored; branchpoint 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.6.1: +10 -14
lines
Sync with HEAD.
Revision 1.75.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:25 2008 UTC (16 years ago) by haad
Branches: haad-dm
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +12 -16
lines
Update haad-dm branch to haad-dm-base2.
Revision 1.76: download - view: text, markup, annotated - select for diffs
Fri Nov 7 00:20:13 2008 UTC (16 years, 1 month ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base2,
nick-hppapmap-base,
mjf-devfs2-base,
matt-premerge-20091211,
jymxensuspend-base,
jym-xensuspend-nbase,
jym-xensuspend-base,
jym-xensuspend,
haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +12 -16
lines
*** Summary ***
When a link-layer address changes (e.g., ifconfig ex0 link
02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor
Advertisement to update the network-/link-layer address bindings
on our LAN peers.
Refuse a change of ethernet address to the address 00:00:00:00:00:00
or to any multicast/broadcast address. (Thanks matt@.)
Reorder ifnet ioctl operations so that driver ioctls may inherit
the functions of their "class"---ether_ioctl(), fddi_ioctl(), et
cetera---and the class ioctls may inherit from the generic ioctl,
ifioctl_common(), but both driver- and class-ioctls may override
the generic behavior. Make network drivers share more code.
Distinguish a "factory" link-layer address from others for the
purposes of both protecting that address from deletion and computing
EUI64.
Return consistent, appropriate error codes from network drivers.
Improve readability. KNF.
*** Details ***
In if_attach(), always initialize the interface ioctl routine,
ifnet->if_ioctl, if the driver has not already initialized it.
Delete if_ioctl == NULL tests everywhere else, because it cannot
happen.
In the ioctl routines of network interfaces, inherit common ioctl
behaviors by calling either ifioctl_common() or whichever ioctl
routine is appropriate for the class of interface---e.g., ether_ioctl()
for ethernets.
Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR. In
the user->kernel interface, SIOCSIFADDR's argument was an ifreq,
but on the protocol->ifnet interface, SIOCSIFADDR's argument was
an ifaddr. That was confusing, and it would work against me as I
make it possible for a network interface to overload most ioctls.
On the protocol->ifnet interface, replace SIOCSIFADDR with
SIOCINITIFADDR. In ifioctl(), return EPERM if userland tries to
invoke SIOCINITIFADDR.
In ifioctl(), give the interface the first shot at handling most
interface ioctls, and give the protocol the second shot, instead
of the other way around. Finally, let compatibility code (COMPAT_OSOCK)
take a shot.
Pull device initialization out of switch statements under
SIOCINITIFADDR. For example, pull ..._init() out of any switch
statement that looks like this:
switch (...->sa_family) {
case ...:
..._init();
...
break;
...
default:
..._init();
...
break;
}
Rewrite many if-else clauses that handle all permutations of IFF_UP
and IFF_RUNNING to use a switch statement,
switch (x & (IFF_UP|IFF_RUNNING)) {
case 0:
...
break;
case IFF_RUNNING:
...
break;
case IFF_UP:
...
break;
case IFF_UP|IFF_RUNNING:
...
break;
}
unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and
#ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).
In ipw(4), remove an if_set_sadl() call that is out of place.
In nfe(4), reuse the jumbo MTU logic in ether_ioctl().
Let ethernets register a callback for setting h/w state such as
promiscuous mode and the multicast filter in accord with a change
in the if_flags: ether_set_ifflags_cb() registers a callback that
returns ENETRESET if the caller should reset the ethernet by calling
if_init(), 0 on success, != 0 on failure. Pull common code from
ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(),
and register if_flags callbacks for those drivers.
Return ENOTTY instead of EINVAL for inappropriate ioctls. In
zyd(4), use ENXIO instead of ENOTTY to indicate that the device is
not any longer attached.
Add to if_set_sadl() a boolean 'factory' argument that indicates
whether a link-layer address was assigned by the factory or some
other source. In a comment, recommend using the factory address
for generating an EUI64, and update in6_get_hw_ifid() to prefer a
factory address to any other link-layer address.
Add a routing message, RTM_LLINFO_UPD, that tells protocols to
update the binding of network-layer addresses to link-layer addresses.
Implement this message in IPv4 and IPv6 by sending a gratuitous
ARP or a neighbor advertisement, respectively. Generate RTM_LLINFO_UPD
messages on a change of an interface's link-layer address.
In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address
that is broadcast/multicast or equal to 00:00:00:00:00:00.
Make ether_ioctl() call ifioctl_common() to handle ioctls that it
does not understand.
In gif(4), initialize if_softc and use it, instead of assuming that
the gif_softc and ifp overlap.
Let ifioctl_common() handle SIOCGIFADDR.
Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels
that certain invariants on a struct route are satisfied.
In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit
about the ioctls that we do not allow on an agr(4) member interface.
bzero -> memset. Delete unnecessary casts to void *. Use
sockaddr_in_init() and sockaddr_in6_init(). Compare pointers with
NULL instead of "testing truth". Replace some instances of (type
*)0 with NULL. Change some K&R prototypes to ANSI C, and join
lines.
Revision 1.74.6.1: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:18 2008 UTC (16 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +4 -6
lines
Sync with HEAD.
Revision 1.74.12.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:57 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +4 -6
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.74.14.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 16:33:50 2008 UTC (16 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +4 -6
lines
Sync with head.
Revision 1.74.8.1: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:15:13 2008 UTC (16 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +4 -6
lines
sync with head.
Revision 1.75: download - view: text, markup, annotated - select for diffs
Sun Jun 15 16:37:21 2008 UTC (16 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-pf42-base4,
wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
simonb-wapbl-nbase,
simonb-wapbl-base,
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,
haad-dm-base1
Branch point for: nick-hppapmap,
haad-dm
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +4 -6
lines
- add if_alloc (ours just mallocs), and if_initname and use them (from FreeBSD)
- kill memsets where M_ZERO can be used.
Revision 1.70.8.2: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:05:04 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.70.8.1: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.8.1: +9 -14
lines
sync with HEAD
Revision 1.54.2.7: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:37:00 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.54.2.6: preferred, colored; branchpoint 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54.2.6: +5 -5
lines
sync with head.
Revision 1.74: download - view: text, markup, annotated - select for diffs
Wed Feb 20 17:05:53 2008 UTC (16 years, 9 months ago) by matt
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-nfs-mp-base2,
yamt-nfs-mp-base,
yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
nick-net80211-sync-base,
nick-net80211-sync,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-nbase,
hpcarm-cleanup-base,
ad-socklock-base1
Branch point for: yamt-pf42,
yamt-nfs-mp,
wrstuden-revivesa,
simonb-wapbl,
mjf-devfs2
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +5 -5
lines
s/u_\(int[0-9]*_t\)/u\1/g
(change u_int*_t to uint*_t)
Revision 1.72.4.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:07:01 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +6 -11
lines
Sync with HEAD.
Revision 1.54.2.6: download - view: text, markup, annotated - select for diffs
Mon Feb 11 14:59:59 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.54.2.5: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.2.5: +6 -11
lines
sync with head.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Thu Feb 7 01:22:00 2008 UTC (16 years, 10 months ago) by dyoung
Branches: MAIN
CVS tags: mjf-devfs-base
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +6 -11
lines
Start patching up the kernel so that a network driver always has
the opportunity to handle an ioctl before generic ifioctl handling
occurs. This will ease extending the kernel and sharing of code
between drivers.
First steps: Make the signature of ifioctl_common() match struct
ifinet->if_ioctl. Convert SIOCSIFCAP and SIOCSIFMTU to the new
ifioctl() regime, throughout the kernel.
Revision 1.70.8.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:33:30 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +21 -31
lines
sync with HEAD
Revision 1.54.2.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:36:00 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.54.2.4: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.2.4: +21 -31
lines
sync with head.
Revision 1.70.6.2: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:49:00 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.70.6.1: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.6.1: +9 -10
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.71.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 14 11:48:58 2007 UTC (17 years, 2 months ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +9 -10
lines
sync with head.
Revision 1.67.2.6: download - view: text, markup, annotated - select for diffs
Tue Oct 9 15:22:25 2007 UTC (17 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.67.2.5: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67.2.5: +14 -23
lines
Sync with head.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Mon Oct 8 16:18:05 2007 UTC (17 years, 2 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base3,
vmlocking2-base2,
vmlocking2-base1,
vmlocking2,
vmlocking-nbase,
vmlocking-base,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
matt-armv6-base,
jmcneill-pm-base,
jmcneill-base,
cube-autoconf-base,
cube-autoconf,
bouyer-xeni386-nbase,
bouyer-xeni386-merge1,
bouyer-xeni386-base,
bouyer-xeni386,
bouyer-xenamd64-base2,
bouyer-xenamd64-base,
bouyer-xenamd64
Branch point for: mjf-devfs
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +9 -10
lines
Use the softint API.
Revision 1.70.6.1: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:29:14 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +14 -23
lines
Sync with HEAD.
Revision 1.71: download - view: text, markup, annotated - select for diffs
Sun Sep 16 18:09:51 2007 UTC (17 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-x86pmap-base2,
yamt-x86pmap-base
Branch point for: yamt-x86pmap
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +14 -23
lines
Save some lines of code, use sockaddr_dup(), sockaddr_free(),
sockaddr_cmp(). No functional change intended.
Bug fix: pass M_WAITOK, not M_WAIT, to malloc(9).
Revision 1.54.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:42:06 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.54.2.3: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.2.3: +21 -51
lines
sync with head.
Revision 1.67.2.5: download - view: text, markup, annotated - select for diffs
Sun Jul 15 15:52:59 2007 UTC (17 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.67.2.4: preferred, colored
Changes since revision 1.67.2.4: +2 -15
lines
Sync with head.
Revision 1.67.2.4: download - view: text, markup, annotated - select for diffs
Sun Jul 15 13:27:53 2007 UTC (17 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.67.2.3: preferred, colored
Changes since revision 1.67.2.3: +2 -16
lines
Sync with head.
Revision 1.70: download - view: text, markup, annotated - select for diffs
Sat Jul 14 21:02:40 2007 UTC (17 years, 5 months ago) by ad
Branches: MAIN
CVS tags: nick-csl-alignment-base5,
nick-csl-alignment-base,
nick-csl-alignment,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: matt-armv6,
jmcneill-pm
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +2 -29
lines
Generic soft interrupts are mandatory.
Revision 1.67.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:10:56 2007 UTC (17 years, 5 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +13 -16
lines
Sync with head.
Revision 1.67.2.3: download - view: text, markup, annotated - select for diffs
Sun Jun 17 21:31:50 2007 UTC (17 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.67.2.2: preferred, colored
Changes since revision 1.67.2.2: +9 -10
lines
- Increase the number of thread priorities from 128 to 256. How the space
is set up is to be revisited.
- Implement soft interrupts as kernel threads. A generic implementation
is provided, with hooks for fast-path MD code that can run the interrupt
threads over the top of other threads executing in the kernel.
- Split vnode::v_flag into three fields, depending on how the flag is
locked (by the interlock, by the vnode lock, by the file system).
- Miscellaneous locking fixes and improvements.
Revision 1.67.2.2: download - view: text, markup, annotated - select for diffs
Fri Jun 8 14:17:35 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.67.2.1: preferred, colored
Changes since revision 1.67.2.1: +3 -3
lines
Sync with head.
Revision 1.64.4.4: download - view: text, markup, annotated - select for diffs
Mon May 7 10:55:53 2007 UTC (17 years, 7 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.64.4.3: preferred, colored; branchpoint 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.4.3: +3 -3
lines
sync with head.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Sun May 6 02:15:34 2007 UTC (17 years, 7 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-idlelwp-base8,
mjf-ufs-trans-base
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3
lines
Free the route cache after detaching the interface w/ if_detach()
instead of before, because if_detach() may cause the cache to be
reloaded. (I already fixed this in both etherip(4) and gre(4).
Ewww, rampant code duplication.)
Revision 1.67.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 10 13:26:46 2007 UTC (17 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +12 -15
lines
Sync with head.
Revision 1.50.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 31 13:59:57 2007 UTC (17 years, 8 months ago) by bouyer
Branches: netbsd-3
Diff to: previous 1.50.2.1: preferred, colored; branchpoint 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50.2.1: +7 -0
lines
Pull up following revision(s) (requested by msaitoh in ticket #1684):
sys/net/if_gif.c: revision 1.58
fix memory leak when resetting the source address and destination address.
Revision 1.44.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 31 12:44:36 2007 UTC (17 years, 8 months ago) by bouyer
Branches: netbsd-2-0
Diff to: previous 1.44.2.1: preferred, colored; branchpoint 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44.2.1: +2 -9
lines
Revert previous, this was for netbsd-2 only.
Revision 1.44.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 31 12:40:41 2007 UTC (17 years, 8 months ago) by bouyer
Branches: netbsd-2-0
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +9 -2
lines
Pull up following revision(s) (requested by msaitoh in ticket #11137):
sys/net/if_gif.c: revision 1.58
fix memory leak when resetting the source address and destination address.
Revision 1.44.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 31 12:33:33 2007 UTC (17 years, 8 months ago) by bouyer
Branches: netbsd-2
Diff to: previous 1.44.4.1: preferred, colored; branchpoint 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44.4.1: +9 -2
lines
Pull up following revision(s) (requested by msaitoh in ticket #11137):
sys/net/if_gif.c: revision 1.58
fix memory leak when resetting the source address and destination address.
Revision 1.64.4.3: download - view: text, markup, annotated - select for diffs
Sat Mar 24 14:56:08 2007 UTC (17 years, 8 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.64.4.2: preferred, colored; branchpoint 1.64: preferred, colored
Changes since revision 1.64.4.2: +12 -15
lines
sync with head.
Revision 1.67.6.1: download - view: text, markup, annotated - select for diffs
Sun Mar 18 00:06:45 2007 UTC (17 years, 8 months ago) by reinoud
Branches: reinoud-bufcleanup
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +12 -15
lines
First attempt to bring branch in sync with HEAD
Revision 1.68: download - view: text, markup, annotated - select for diffs
Sat Mar 17 06:36:05 2007 UTC (17 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: thorpej-atomic-base,
thorpej-atomic
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +12 -15
lines
bcopy -> memcpy, bcmp -> memcmp.
Don't open-code LIST_FOREACH().
Revision 1.64.4.2: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:59:11 2007 UTC (17 years, 9 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.64.4.1: preferred, colored; branchpoint 1.64: preferred, colored
Changes since revision 1.64.4.1: +17 -17
lines
Sync with HEAD.
Revision 1.67: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:03:15 2007 UTC (17 years, 9 months ago) by christos
Branches: MAIN
Branch point for: vmlocking,
reinoud-bufcleanup,
mjf-ufs-trans
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +17 -17
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.64.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:54:42 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +4 -3
lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
Revision 1.54.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:11:34 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.54.2.2: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.2.2: +4 -3
lines
sync with head.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Fri Feb 23 06:15:31 2007 UTC (17 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: ad-audiomp-base,
ad-audiomp
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -2
lines
In gif_clone_destroy(), free the cached route before freeing the
interface.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Sat Feb 17 22:34:08 2007 UTC (17 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3
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.60.4.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 01:04:11 2007 UTC (17 years, 11 months ago) by ad
Branches: newlock2
Diff to: previous 1.60.4.1: preferred, colored; branchpoint 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60.4.1: +2 -67
lines
Sync with head.
Revision 1.54.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:20 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.54.2.1: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.2.1: +19 -76
lines
sync with head.
Revision 1.60.6.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:19:00 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.60.6.1: preferred, colored; branchpoint 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60.6.1: +8 -71
lines
sync with head.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Thu Nov 23 04:07:07 2006 UTC (18 years ago) by rpaulo
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
post-newlock2-merge,
newlock2-nbase,
newlock2-base,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
matt-nb4-arm-base,
matt-nb4-arm
Branch point for: yamt-idlelwp
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +2 -67
lines
New EtherIP driver based on tap(4) and gif(4) by Hans Rosenfeld.
Notable changes:
* Fixes PR 34268.
* Separates the code from gif(4) (which is more cleaner).
* Allows the usage of STP (Spanning Tree Protocol).
* Removed EtherIP implementation from gif(4)/tap(4).
Some input from Christos.
Revision 1.60.4.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:29 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +6 -4
lines
Sync with head.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:40 2006 UTC (18 years ago) by christos
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +4 -4
lines
__unused removal on arguments; approved by core.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed Oct 25 20:28:45 2006 UTC (18 years, 1 month ago) by elad
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +6 -4
lines
Kill some KAUTH_GENERIC_ISSUSER uses.
Revision 1.60.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:07:24 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +4 -4
lines
sync with head
Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:32:27 2006 UTC (18 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +4 -4
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.57.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:58:06 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +26 -9
lines
sync with head
Revision 1.57.8.3: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:46:14 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.57.8.2: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.8.2: +17 -11
lines
sync with head
Revision 1.60: download - view: text, markup, annotated - select for diffs
Sun Jul 23 22:06:12 2006 UTC (18 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
rpaulo-netinet-merge-pcb-base,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: yamt-splraiseipl,
newlock2
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +17 -11
lines
Use the LWP cached credentials where sane.
Revision 1.54.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:10:27 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +46 -59
lines
sync with head.
Revision 1.57.6.2: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:38:37 2006 UTC (18 years, 6 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.57.6.1: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.6.1: +9 -5
lines
Sync with head.
Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:43 2006 UTC (18 years, 6 months ago) by tron
Branches: peter-altq
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +9 -5
lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
Revision 1.57.8.2: download - view: text, markup, annotated - select for diffs
Wed May 24 10:58:56 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.57.8.1: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.8.1: +9 -5
lines
sync with head.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Sun May 14 21:19:33 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.58: preferred, colored
Changes since revision 1.58: +9 -5
lines
integrate kauth.
Revision 1.57.10.4: download - view: text, markup, annotated - select for diffs
Sat May 6 23:31:58 2006 UTC (18 years, 7 months ago) by christos
Branches: elad-kernelauth
Diff to: previous 1.57.10.3: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.10.3: +4 -2
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.57.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:40:06 2006 UTC (18 years, 7 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +9 -2
lines
Sync with head.
Revision 1.57.10.3: download - view: text, markup, annotated - select for diffs
Wed Apr 19 04:46:10 2006 UTC (18 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.57.10.2: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.10.2: +9 -2
lines
sync with head.
Revision 1.57.8.1: download - view: text, markup, annotated - select for diffs
Mon Mar 13 09:07:39 2006 UTC (18 years, 9 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +9 -2
lines
sync with head.
Revision 1.57.10.2: download - view: text, markup, annotated - select for diffs
Fri Mar 10 15:05:22 2006 UTC (18 years, 9 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.57.10.1: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.10.1: +5 -5
lines
generic_authorize() -> kauth_authorize_generic().
Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed Mar 8 03:09:33 2006 UTC (18 years, 9 months ago) by msaitoh
Branches: MAIN
CVS tags: yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
yamt-pdpolicy-base2,
peter-altq-base,
elad-kernelauth-base
Branch point for: peter-altq
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +9 -2
lines
fix memory leak when resetting the source address and destination address.
Revision 1.57.10.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 01:11:55 2006 UTC (18 years, 9 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +7 -5
lines
Adapt to kernel authorization KPI.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Wed Dec 28 09:08:20 2005 UTC (18 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5,
yamt-uio_vmspace,
yamt-pdpolicy-base
Branch point for: yamt-pdpolicy,
simonb-timecounters,
rpaulo-netinet-merge-pcb,
elad-kernelauth
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +3 -3
lines
make this compile with no INET option
Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Dec 11 23:05:25 2005 UTC (19 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +31 -55
lines
ANSI function decls and application of static.
Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:24:51 2005 UTC (19 years ago) by christos
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +2 -2
lines
merge ktrace-lwp.
Revision 1.42.6.8: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:10:32 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.42.6.7: preferred, colored; branchpoint 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.6.7: +6 -9
lines
Sync with HEAD. Here we go again...
Revision 1.54: download - view: text, markup, annotated - select for diffs
Mon Jun 6 06:06:50 2005 UTC (19 years, 6 months ago) by martin
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.53: preferred, colored
Changes since revision 1.53: +3 -3
lines
Since we decided "const struct mbuf *" would not do the right thing (tm),
remove ~all const from mbuf pointers.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Jun 2 10:54:58 2005 UTC (19 years, 6 months ago) by tron
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -4
lines
Remove type casts and lint directives which are now longer necessary
because the first argument of m_copydata() is "const struct mbuf *" now.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun May 29 21:22:52 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +4 -4
lines
- sprinkle const
- remove unneeded casts
- use more mem*() instead of b*() funcs.
Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Sat May 28 13:15:32 2005 UTC (19 years, 6 months ago) by tron
Branches: netbsd-3
CVS tags: 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
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +2 -4
lines
Pull up revision 1.51 (requested by christos in ticket #330):
PR/30285: Mile Nordin: incorrect permission check joining/leaving multicast
groups.
Revision 1.44.4.1: download - view: text, markup, annotated - select for diffs
Tue May 24 19:34:14 2005 UTC (19 years, 6 months ago) by riz
Branches: netbsd-2
CVS tags: netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -4
lines
Pull up revision 1.51 (requested by christos in ticket #1536):
PR/30285: Miles Nordin: incorrect permission check joining/leaving multicast
groups.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri May 20 16:23:05 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +2 -4
lines
PR/30285: Mile Nordin: incorrect permission check joining/leaving multicast
groups.
Revision 1.47.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:31 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +74 -8
lines
sync with -current
Revision 1.47.6.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:36:31 2005 UTC (19 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.47.6.1: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.6.1: +11 -11
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.42.6.7: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:52:57 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.42.6.6: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.6.6: +11 -11
lines
Sync with HEAD.
Hi Perry!
Revision 1.50: download - view: text, markup, annotated - select for diffs
Sat Feb 26 22:45:09 2005 UTC (19 years, 9 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base,
kent-audio2-base
Branch point for: netbsd-3
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +11 -11
lines
nuke trailing whitespace
Revision 1.47.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 12 18:17:53 2005 UTC (19 years, 10 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +68 -2
lines
sync with head.
Revision 1.42.6.6: download - view: text, markup, annotated - select for diffs
Fri Feb 4 11:47:42 2005 UTC (19 years, 10 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.42.6.5: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.6.5: +68 -2
lines
Sync with HEAD.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Tue Feb 1 12:13:51 2005 UTC (19 years, 10 months ago) by he
Branches: MAIN
CVS tags: yamt-km-base2
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +4 -2
lines
Fix "unused local variable" warning/error if compiling without
bridge support by making variable declaration conditional. Found
while compiling for shark.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Mon Jan 31 23:49:36 2005 UTC (19 years, 10 months ago) by kim
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +66 -2
lines
Add RFC 3378 EtherIP support, ported from OpenBSD to NetBSD by
Hans Rosenfeld (rosenfeld at grumpf.hope-2000.org)
This change makes it possible to add gif interfaces to bridges, which
will then send and receive IP protocol 97 packets. Packets are Ethernet
frames with an EtherIP header prepended.
Revision 1.42.6.5: download - view: text, markup, annotated - select for diffs
Sat Dec 18 09:32:50 2004 UTC (19 years, 11 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.42.6.4: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.6.4: +6 -4
lines
Sync with HEAD.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Dec 4 18:31:43 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.46: preferred, colored
Changes since revision 1.46: +6 -4
lines
Change ifc_destroy to return an int instead of void, so that it
can pass back errors to ifconfig.
Revision 1.42.6.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:36:37 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.42.6.3: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.6.3: +2 -2
lines
Fix the sync with head I botched.
Revision 1.42.6.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:54:16 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.42.6.2: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.6.2: +2 -2
lines
Sync with HEAD.
Revision 1.42.6.2: download - view: text, markup, annotated - select for diffs
Wed Aug 25 06:58:58 2004 UTC (20 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.42.6.1: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.6.1: +5 -29
lines
Sync with HEAD.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Thu Aug 19 20:58:24 2004 UTC (20 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +5 -29
lines
Factor out the hand-crafting of mbufs from the interface files. Reviewed by
gimpy. XXX: I could have used bpf_mtap2 on some of the new functions, but I
chose not to, because I just wanted to do what amounts to a code move.
Revision 1.42.6.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:54:13 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +7 -3
lines
Sync with HEAD
Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed Apr 21 18:40:38 2004 UTC (20 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +4 -3
lines
kill sprintf, use snprintf
Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Oct 28 20:13:23 2003 UTC (21 years, 1 month ago) by mycroft
Branches: MAIN
CVS tags: netbsd-2-base,
netbsd-2-0-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE
Branch point for: netbsd-2-0,
netbsd-2
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -3
lines
Return a sensible error code in the previous.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat Oct 25 18:29:12 2003 UTC (21 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +5 -2
lines
Fix uninitialized variable warnings
Revision 1.26.2.11: download - view: text, markup, annotated - select for diffs
Wed Dec 11 06:46:31 2002 UTC (22 years ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.26.2.10: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26.2.10: +4 -2
lines
Sync with HEAD.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon Nov 11 18:35:27 2002 UTC (22 years, 1 month ago) by itojun
Branches: MAIN
CVS tags: nathanw_sa_before_merge,
nathanw_sa_base,
gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw,
fvdl_fs64_base
Branch point for: ktrace-lwp
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -2
lines
make USE_ENCAPCHECK (in netinet*/*gif.c) to global option, GIF_ENCAPCHECK.
#ifdef out unneeded code when possible.
From: Krister Walfridsson <cato@df.lth.se>
Revision 1.26.2.10: download - view: text, markup, annotated - select for diffs
Fri Jul 12 01:40:28 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.26.2.9: preferred, colored
Changes since revision 1.26.2.9: +2 -3
lines
No longer need to pull in lwp.h; proc.h pulls it in for us.
Revision 1.26.2.9: download - view: text, markup, annotated - select for diffs
Mon Jun 24 22:11:29 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.26.2.8: preferred, colored
Changes since revision 1.26.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.29.2.6: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:50:24 2002 UTC (22 years, 5 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.29.2.5: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29.2.5: +18 -12
lines
catch up with -current on kqueue branch
Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 20 15:52:08 2002 UTC (22 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +13 -12
lines
catch up with -current.
Revision 1.26.2.8: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:48:13 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.26.2.7: preferred, colored
Changes since revision 1.26.2.7: +13 -12
lines
Catch up to -current.
Revision 1.40.4.1: download - view: text, markup, annotated - select for diffs
Sat Jun 15 01:07:34 2002 UTC (22 years, 6 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-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +13 -12
lines
Pull up revision 1.41 (requested by itojun in ticket #262):
drop too short IPv6 frame
Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Jun 13 05:10:34 2002 UTC (22 years, 6 months ago) by itojun
Branches: MAIN
CVS tags: kqueue-beforemerge,
kqueue-base,
kqueue-aftermerge,
gehenna-devsw-base
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +13 -12
lines
drop too short IPv6 frame
Revision 1.10.4.4: download - view: text, markup, annotated - select for diffs
Thu Apr 11 21:30:35 2002 UTC (22 years, 8 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003
Diff to: previous 1.10.4.3: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.4.3: +3 -3
lines
Pull up revision 1.22 (via patch, requested by jtk):
Use an explicitly sized type for DLT_NULL encapsulation.
Correct gif address family.
Revision 1.26.2.7: download - view: text, markup, annotated - select for diffs
Mon Apr 1 07:48:20 2002 UTC (22 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.26.2.6: preferred, colored
Changes since revision 1.26.2.6: +8 -23
lines
Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Mar 26 16:05:03 2002 UTC (22 years, 8 months ago) by christos
Branches: MAIN
CVS tags: netbsd-1-6-base
Branch point for: netbsd-1-6,
gehenna-devsw
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +7 -2
lines
We are not guaranteed that we have enough bytes to get a struct ip from our
mbuf. So if we receive a short packet, that looks like gif we would panic.
Reviewed by thorpej, tested by Kimmo Suominen and Andreas Wrede. Thanks for
the help in tracking this down.
Revision 1.29.2.5: download - view: text, markup, annotated - select for diffs
Sat Mar 16 16:02:05 2002 UTC (22 years, 9 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.29.2.4: preferred, colored
Changes since revision 1.29.2.4: +3 -23
lines
Catch up with -current.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Tue Mar 5 04:13:01 2002 UTC (22 years, 9 months ago) by itojun
Branches: MAIN
CVS tags: newlock-base,
newlock,
eeh-devprop-base,
eeh-devprop
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -23
lines
bring in latest ALTQ from kjc. ALTQify some of the drivers.
Revision 1.26.2.6: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:15:00 2002 UTC (22 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.26.2.5: preferred, colored
Changes since revision 1.26.2.5: +2 -4
lines
Catch up to -current.
Revision 1.29.2.4: download - view: text, markup, annotated - select for diffs
Mon Feb 11 20:10:28 2002 UTC (22 years, 10 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.29.2.3: preferred, colored
Changes since revision 1.29.2.3: +2 -4
lines
Sync w/ -current.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Jan 14 18:19:15 2002 UTC (22 years, 11 months ago) by kleink
Branches: MAIN
CVS tags: ifpoll-base
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -4
lines
Include <machine/intr.h> unconditionally, instead of only doing so if
__HAVE_GENERIC_SOFT_INTERRUPTS and relying on <sys/param.h> to provide it
otherwise; pointed out by Aymeric Vincent.
Revision 1.29.2.3: download - view: text, markup, annotated - select for diffs
Thu Jan 10 20:02:05 2002 UTC (22 years, 11 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.29.2.2: preferred, colored
Changes since revision 1.29.2.2: +11 -8
lines
Sync kqueue branch with -current.
Revision 1.26.2.5: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:17:21 2001 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.26.2.4: preferred, colored
Changes since revision 1.26.2.4: +4 -5
lines
Catch up to -current.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Nov 13 00:49:35 2001 UTC (23 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -6
lines
remove unnecessary #if NFOO > 0 .... #endif wrappers
Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Nov 12 23:49:38 2001 UTC (23 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -1
lines
add RCSIDs
Revision 1.34.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:47:36 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +7 -3
lines
Catch up with -current.
Revision 1.26.2.4: download - view: text, markup, annotated - select for diffs
Wed Sep 26 19:55:09 2001 UTC (23 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.26.2.3: preferred, colored
Changes since revision 1.26.2.3: +7 -3
lines
Catch up to -current.
Again.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Sep 26 07:54:19 2001 UTC (23 years, 2 months ago) by itojun
Branches: MAIN
CVS tags: thorpej-mips-cache-base,
thorpej-mips-cache,
thorpej-devvp-base3,
thorpej-devvp-base2
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +7 -3
lines
don't softintr_disestablish twice.
previous code panic'ed with the following command sequence:
# ifconfig gif0 create tunnel A B
# ifconfig gif0 deletetunnel
# ifconfig gif0 destroy
Revision 1.29.2.2: download - view: text, markup, annotated - select for diffs
Sat Aug 25 06:16:56 2001 UTC (23 years, 3 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.29.2.1: preferred, colored
Changes since revision 1.29.2.1: +177 -60
lines
Merge Aug 24 -current into the kqueue branch.
Revision 1.26.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:12:10 2001 UTC (23 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.26.2.2: preferred, colored
Changes since revision 1.26.2.2: +345 -192
lines
Catch up with -current.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon Aug 20 02:18:58 2001 UTC (23 years, 3 months ago) by itojun
Branches: MAIN
CVS tags: thorpej-devvp-base,
pre-chs-ubcperf,
post-chs-ubcperf
Branch point for: thorpej-devvp
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +24 -3
lines
fix ALTQ support. less diff with kame. kjc@csl.sony.co.jp.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Aug 16 17:45:25 2001 UTC (23 years, 4 months ago) by itojun
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +156 -60
lines
gif interface now uses generic software interrupt
(on archs that support it). also, make gif ALTQ-capable on outgoing.
sync with kame, comments from thorpej.
Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 3 04:13:50 2001 UTC (23 years, 4 months ago) by lukem
Branches: kqueue
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +177 -141
lines
update to -current
Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Jul 30 11:12:58 2001 UTC (23 years, 4 months ago) by itojun
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -2
lines
raise IFF_UP on SIOCSIFADDR. commented by tv@netbsd, sync with kame
Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Jul 29 05:08:32 2001 UTC (23 years, 4 months ago) by itojun
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +175 -140
lines
sync gif interface code with latest kame.
IFF_RUNNING is clearified. attach/detach logic is more clearner.
the old code mistakenly set IFF_UP by itself, now the behavior is gone.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Jul 18 16:43:09 2001 UTC (23 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -2
lines
bzero -> memset
Revision 1.26.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:08:03 2001 UTC (23 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.26.2.1: preferred, colored
Changes since revision 1.26.2.1: +7 -5
lines
Catch up to -current.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Jun 14 05:44:24 2001 UTC (23 years, 6 months ago) by itojun
Branches: MAIN
Branch point for: kqueue
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +1 -2
lines
change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange.
follows BSD/OS practice and ucd-snmp code (FreeBSD does it for specific
interfaces only).
was: if_lastchange get updated on every packet transmission/receipt.
now: if_lastchange get updated when IFF_UP is changed.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Jun 4 23:53:13 2001 UTC (23 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +6 -3
lines
if_up() requires splsoftnet. sync with kame
Revision 1.2.4.8: download - view: text, markup, annotated - select for diffs
Mon Apr 23 15:30:29 2001 UTC (23 years, 7 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.2.4.7: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.4.7: +2 -2
lines
Kill unwanted differences with HEAD
Revision 1.2.4.7: download - view: text, markup, annotated - select for diffs
Sat Apr 21 17:46:39 2001 UTC (23 years, 7 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.2.4.6: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.4.6: +2 -2
lines
Sync with HEAD
Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Apr 13 23:30:13 2001 UTC (23 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -2
lines
Remove the use of splimp() from the NetBSD kernel. splnet()
and only splnet() is allowed for the protection of data structures
used by network devices.
Revision 1.2.4.6: download - view: text, markup, annotated - select for diffs
Mon Mar 12 13:31:47 2001 UTC (23 years, 9 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.2.4.5: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.4.5: +198 -47
lines
Sync with HEAD.
Revision 1.26.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 5 22:49:54 2001 UTC (23 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -2
lines
Initial commit of scheduler activations and lightweight process support.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Feb 21 00:17:09 2001 UTC (23 years, 9 months ago) by itojun
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -2
lines
remove necessary global variable for eon processing. from chopps,
sync with kame
Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Feb 20 15:35:21 2001 UTC (23 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +92 -43
lines
add SIOC[SG]LIFPHYADDR ioctl. greatly simplify tunnel address settings.
sync with kame. old ioctls are supplied but not recommended for new code.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Feb 20 08:48:27 2001 UTC (23 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +104 -2
lines
comment on dispatches (clearify inner/outer)
Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue Feb 20 08:33:02 2001 UTC (23 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2
lines
use u_int32_t, not u_int, for DLT_NULL encapsulation.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Feb 20 07:58:16 2001 UTC (23 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -4
lines
explicitly use u_int32_t for DLT_NULL encapsulation.
correct gif address family. from chopps, sync with kame.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Feb 20 07:53:31 2001 UTC (23 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3
lines
cosmetic; do not use register variable declaration. sync with kame
Revision 1.2.4.5: download - view: text, markup, annotated - select for diffs
Thu Jan 18 09:23:50 2001 UTC (23 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.2.4.4: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.4.4: +1 -0
lines
Sync with head (for UBC+NFS fixes, mostly).
Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Jan 17 00:30:51 2001 UTC (23 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -1
lines
Fix a rather annoying problem where the sockaddr_dl which holds
the link level name for the interface (ifp->if_sadl) is allocated
before ifp->if_addrlen is initialized, which could lead to allocating
too little space for the link level address.
Do this by splitting allocation of the link level name out of
if_attach() and into if_alloc_sadl(), which is normally called
by functions like ether_ifattach(). Network interfaces which
don't have a link-specific attach routine must call if_alloc_sadl()
themselves (example: gif).
Link level names are freed by if_free_sadl(), which can be called
from e.g. ether_ifdetach(). Drivers never need call if_free_sadl()
themselves as if_detach() will do it if it is not already done.
While here, add the ability to pass an AF_LINK address to
SIOCSIFADDR in ether_ioctl() (this is what caused me to notice
the problem that the above fixes).
Revision 1.2.4.4: download - view: text, markup, annotated - select for diffs
Fri Jan 5 17:36:50 2001 UTC (23 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.2.4.3: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.4.3: +1 -0
lines
Sync with HEAD
Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Dec 18 19:50:44 2000 UTC (23 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -1
lines
Fill in if_dlt.
Revision 1.2.4.3: download - view: text, markup, annotated - select for diffs
Wed Dec 13 15:50:30 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.2.4.2: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.4.2: +0 -4
lines
Sync with HEAD (for UBC fixes).
Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Dec 12 18:00:26 2000 UTC (24 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +1 -5
lines
Adapt to bpfattach() changes, and further centralize the bpfattach()
and bpfdetach() calls into link-type subroutines where possible.
Revision 1.2.4.2: download - view: text, markup, annotated - select for diffs
Wed Nov 22 16:05:51 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.2.4.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.4.1: +11 -1
lines
Sync with HEAD.
Revision 1.2.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 18:10:01 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +320 -127
lines
Update thorpej_scsipi to -current as of a month ago
Revision 1.10.4.3: download - view: text, markup, annotated - select for diffs
Sun Nov 19 20:21:09 2000 UTC (24 years ago) by tv
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001
Diff to: previous 1.10.4.2: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.4.2: +11 -1
lines
Pullup 1.17 [sommerfeld]:
Allow changing of settings via ioctl only for the superuser.
Fixes PR security/11524.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Nov 19 18:48:45 2000 UTC (24 years ago) by martin
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +11 -1
lines
Allow changing of settings via ioctl only for the superuser.
Fixes PR security/11524.
Revision 1.10.4.2: download - view: text, markup, annotated - select for diffs
Tue Oct 17 02:19:17 2000 UTC (24 years, 2 months ago) by tv
Branches: netbsd-1-5
CVS tags: netbsd-1-5-BETA2,
netbsd-1-5-BETA
Diff to: previous 1.10.4.1: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.4.1: +30 -14
lines
Pullup 1.16 [itojun]:
validate args to SIOC[SG]IFPHY* better.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Oct 7 04:18:04 2000 UTC (24 years, 2 months ago) by itojun
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +30 -14
lines
validate args to SIOC[SG]IFPHY* better.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Oct 2 03:55:44 2000 UTC (24 years, 2 months ago) by itojun
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +6 -4
lines
fix compilation without INET. fix confusion between ipsecstat and ipsec6stat.
sync with kame.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Jul 6 12:56:26 2000 UTC (24 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -37
lines
remove #ifdef __FreeBSD__ or __bsdi__, as netbsd if_gif.c diverged a little
from kame tree
Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Jul 5 16:54:19 2000 UTC (24 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -1
lines
Fix a memory leak in the gif_clone_create() error path.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Jul 2 00:21:42 2000 UTC (24 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +101 -62
lines
Convert `gif' to be a cloning interface.
Revision 1.10.4.1: download - view: text, markup, annotated - select for diffs
Tue Jun 20 21:04:26 2000 UTC (24 years, 5 months ago) by itojun
Branches: netbsd-1-5
CVS tags: netbsd-1-5-ALPHA2
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +20 -8
lines
permit configuration ioctl for tunnel-over-IPv6.
approved by: releng-1-5
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Jun 20 15:59:35 2000 UTC (24 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +20 -8
lines
allow IPv[46]-over-IPv6 setting properly. sync with kame.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed May 17 01:14:04 2000 UTC (24 years, 7 months ago) by itojun
Branches: MAIN
CVS tags: netbsd-1-5-base,
minoura-xpg4dl-base,
minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +31 -10
lines
improve duplicated 'gifconfig" check (fatal typo was there). sync with kame.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Apr 19 06:30:52 2000 UTC (24 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +237 -81
lines
introduce sys/netinet/ip_encap.c, to dispatch inbound packets
to protocol handlers, based on src/dst (for ip proto #4/41).
see comment in ip_encap.c for details of the problem we have.
there are too many protocol specs for ip proto #4/41.
backward compatibility with MROUTING case is now provided in ip_encap.c.
fix ipip to work with gif (using ip_encap.c). sorry for breakage.
gif now uses ip_encap.c.
introduce stf pseudo interface (implements 6to4, another IPv6-over-IPv4 code
with ip proto #41).
Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Mar 30 09:45:35 2000 UTC (24 years, 8 months ago) by augustss
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +5 -5
lines
Kill some more register declarations.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Jan 17 06:29:07 2000 UTC (24 years, 11 months ago) by itojun
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -7
lines
we don't need IFF_RUNNING for gif.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Jan 17 05:50:12 2000 UTC (24 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +6 -1
lines
for gif interface, sync IFF_RUNNING with IFF_UP. it does not
make sense to leave IFF_RUNNING during !IFF_UP (it is pseudo interface
so we need to immitate - or is it okay if we don't raise IFF_RUNNING?)
Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Jan 6 15:46:08 2000 UTC (24 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +1 -31
lines
remove extra portability #ifdef (like #ifdef __FreeBSD__) in KAME IPv6/IPsec
code, from netbsd-current repository.
#ifdef'ed version is always available from ftp.kame.net.
XXX please do not make too many diff-unfriendly changes, we'll need to take
bunch of diffs on upgrade...
Revision 1.2.10.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:36:09 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +22 -11
lines
Pull up to last week's -current.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Dec 13 15:17:19 1999 UTC (25 years ago) by itojun
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +21 -12
lines
sync IPv6 part with latest KAME tree. IPsec part is left unmodified
due to massive changes in KAME side.
- IPv6 output goes through nd6_output
- faith can capture IPv4 packets as well - you can run IPv4-to-IPv6 translator
using heavily modified DNS servers
- per-interface statistics (required for IPv6 MIB)
- interface autoconfig is revisited
- udp input handling has a big change for mapped address support.
- introduce in4_cksum() for non-overwriting checksumming
- introduce m_pulldown()
- neighbor discovery cleanups/improvements
- netinet/in.h strictly conforms to RFC2553 (no extra defs visible to userland)
- IFA_STATS is fixed a bit (not tested)
- and more more more.
TODO:
- cleanup os-independency #ifdef
- avoid rcvif dual use (for IPsec) to help ifdetach
(sorry for jumbo commit, I can't separate this any more...)
Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Dec 2 07:18:44 1999 UTC (25 years ago) by itojun
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -0
lines
rcsid police
Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Tue Nov 30 13:35:04 1999 UTC (25 years ago) by itojun
Branches: kame
CVS tags: kame_141_19991130
Diff to: previous 1.1.2.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +45 -11
lines
bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.
The branch does not compile at all (due to the lack of ALTQ and some other
source code). Please do not try to modify the branch, this is just for
referenre purposes.
synchronization to latest KAME will take place on HEAD branch soon.
Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 1 23:45:19 1999 UTC (25 years, 5 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.2.2.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.1: +516 -0
lines
Sync w/ -current.
Revision 1.2.2.1
Thu Jul 1 08:12:48 1999 UTC (25 years, 5 months ago) by thorpej
Branches: chs-ubc2
FILE REMOVED
Changes since revision 1.2: +0 -516
lines
file if_gif.c was added on branch chs-ubc2 on 1999-07-01 23:45:19 +0000
Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Jul 1 08:12:48 1999 UTC (25 years, 5 months ago) by itojun
Branches: MAIN
CVS tags: fvdl-softdep-base,
fvdl-softdep,
comdex-fall-1999-base,
comdex-fall-1999,
chs-ubc2-base
Branch point for: wrstuden-devbsize,
thorpej_scsipi,
chs-ubc2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +516 -0
lines
IPv6 kernel code, based on KAME/NetBSD 1.4, SNAP kit 19990628.
(Sorry for a big commit, I can't separate this into several pieces...)
Pls check sys/netinet6/TODO and sys/netinet6/IMPLEMENTATION for details.
- sys/kern: do not assume single mbuf, accept chained mbuf on passing
data from userland to kernel (or other way round).
- "midway" ATM card: ATM PVC pseudo device support, like those done in ALTQ
package (ftp://ftp.csl.sony.co.jp/pub/kjc/).
- sys/netinet/tcp*: IPv4/v6 dual stack tcp support.
- sys/netinet/{ip6,icmp6}.h, sys/net/pfkeyv2.h: IETF document assumes those
file to be there so we patch it up.
- sys/netinet: IPsec additions are here and there.
- sys/netinet6/*: most of IPv6 code sits here.
- sys/netkey: IPsec key management code
- dev/pci/pcidevs: regen
In my understanding no code here is subject to export control so it
should be safe.
Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 28 06:36:56 1999 UTC (25 years, 5 months ago) by itojun
Branches: kame
CVS tags: kame_14_19990705,
kame_14_19990628
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +516 -0
lines
KAME/NetBSD 1.4 SNAP kit, dated 19990628.
NOTE: this branch (kame) is used just for refernce. this may not compile
due to multiple reasons.
Revision 1.1
Mon Jun 28 06:36:56 1999 UTC (25 years, 5 months ago) by itojun
Branches: MAIN
Branch point for: kame
FILE REMOVED
file if_gif.c was initially added on branch kame.
CVSweb <webmaster@jp.NetBSD.org>