CVS log for src/sys/net/route.h
Up to [cvs.NetBSD.org] / src / sys / net
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.134: download - view: text, markup, annotated - select for diffs
Fri Jun 16 02:48:07 2023 UTC (21 months, 1 week ago) by rin
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +2 -2
lines
Align function name in its declaration consistently.
No binary changes.
Revision 1.133: download - view: text, markup, annotated - select for diffs
Fri Jun 16 02:46:23 2023 UTC (21 months, 1 week ago) by rin
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +3 -3
lines
Consistently use __inline instead of inline, as done for rev. 1.119:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/net/route.h#rev1.119
Revision 1.132: download - view: text, markup, annotated - select for diffs
Tue Sep 20 02:23:37 2022 UTC (2 years, 6 months ago) by knakahara
Branches: MAIN
CVS tags: netbsd-10-base,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +4 -2
lines
Remove routes on an address removal if the routes referencing to the address. Implemented by ozaki-r@n.o.
A route that has a gateway is on a connected route can be invalid if the
connected route is deleted, i.e., an associated address is removed.
Traditionally NetBSD doesn't sweep such a route on the address removal. Sending
packets over the route fails with "No route to host". Also the route holds an
orphan ifaddr as rt_ifa that is destructed say by in_purgeaddr.
If the same address is assgined again in such a state, there can be two
different ifaddr objects with the same address. Until recently it's not a
big problem because we can send packets anyway. However after MP-ification
of the network stack, we can't send packets because we strictly check if rt_ifa
(i.e., the (old) ifaddr) is valid.
This change automatically removes such routes on a removal of an associated
address to avoid keeping inconsistent routes.
Revision 1.131: download - view: text, markup, annotated - select for diffs
Mon Aug 29 09:14:02 2022 UTC (2 years, 6 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +2 -1
lines
Add sysctl entry to control to send routing message for RTM_DYNAMIC.
Some routing daemons require such routing message to keep coherency.
If we want to let kernel send such message, set net.inet.icmp.dynamic_rt_msg=1
for IPv4, net.inet6.icmp6.dynamic_rt_msg=1 for IPv6.
Default(=0) is the same as before, that is, not send such routing message.
Revision 1.130: download - view: text, markup, annotated - select for diffs
Fri Aug 26 08:32:22 2022 UTC (2 years, 6 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +1 -3
lines
Refactor: rtrequest_newmsg() is no longer used after nd6_rtr.c:r1.149
That has bumped up to 9.99.66 when nd6_rtr.c:r1.149 was commited.
Revision 1.129: download - view: text, markup, annotated - select for diffs
Mon Aug 9 20:49:10 2021 UTC (3 years, 7 months ago) by andvar
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +2 -2
lines
fix various typos in compatibility, mainly in comments.
Revision 1.127.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:29:01 2021 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.127: preferred, colored; next MAIN 1.128: preferred, colored
Changes since revision 1.127: +11 -1
lines
Sync with HEAD.
Revision 1.127.8.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 21:45:01 2021 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.127: preferred, colored; next MAIN 1.128: preferred, colored
Changes since revision 1.127: +11 -1
lines
Sync with HEAD.
Revision 1.128: download - view: text, markup, annotated - select for diffs
Mon Mar 22 18:40:18 2021 UTC (4 years ago) by christos
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-i2c-spi-conf,
thorpej-futex2-base,
thorpej-futex2,
thorpej-futex-base,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +11 -1
lines
Add a list of names
Revision 1.119.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:15 2020 UTC (4 years, 11 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.119.2.1: preferred, colored; branchpoint 1.119: preferred, colored; next MAIN 1.120: preferred, colored
Changes since revision 1.119.2.1: +25 -3
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.127: download - view: text, markup, annotated - select for diffs
Mon Mar 9 21:20:55 2020 UTC (5 years ago) by roy
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
Branch point for: thorpej-futex,
thorpej-cfargs
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +3 -3
lines
route: RTM_MISS now puts the message source address in RTA_AUTHOR
route(8) also reports this.
A userland app could use this to blacklist nodes who probe for machines
that doesn't exist on a subnet / prefix.
Revision 1.125.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:21:06 2020 UTC (5 years ago) by ad
Branches: ad-namecache
Diff to: previous 1.125: preferred, colored; next MAIN 1.126: preferred, colored
Changes since revision 1.125: +4 -1
lines
Sync with head.
Revision 1.126: download - view: text, markup, annotated - select for diffs
Sat Feb 8 14:17:30 2020 UTC (5 years, 1 month ago) by roy
Branches: MAIN
CVS tags: ad-namecache-base3
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +4 -1
lines
route(4): add RO_MISSFILTER socket option
This allows filtering of specific RTM_MISS destination sockaddrs.
Revision 1.112.4.6: download - view: text, markup, annotated - select for diffs
Tue Sep 24 18:27:09 2019 UTC (5 years, 5 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE
Diff to: previous 1.112.4.5: preferred, colored; branchpoint 1.112: preferred, colored; next MAIN 1.113: preferred, colored
Changes since revision 1.112.4.5: +20 -1
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.123.2.2: download - view: text, markup, annotated - select for diffs
Tue Sep 24 03:10:35 2019 UTC (5 years, 5 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.123.2.1: preferred, colored; branchpoint 1.123: preferred, colored; next MAIN 1.124: preferred, colored
Changes since revision 1.123.2.1: +20 -1
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.125: download - view: text, markup, annotated - select for diffs
Thu Sep 19 04:08:29 2019 UTC (5 years, 6 months ago) by ozaki-r
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.124: preferred, colored
Changes since revision 1.124: +20 -1
lines
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@
Revision 1.123.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 26 13:42:36 2019 UTC (5 years, 6 months ago) by martin
Branches: netbsd-9
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +3 -3
lines
Pull up following revision(s) (requested by roy in ticket #109):
sys/net/route.h: revision 1.124
sys/netinet6/nd6.c: revision 1.258
sys/netinet6/nd6.c: revision 1.259
sys/net/rtsock.c: revision 1.251
sys/netinet/if_arp.c: revision 1.284
sys/netinet6/nd6_nbr.c: revision 1.167
rtsock: rework rt_clonedmsg to take a message type and lladdr
We will use this in a future patch to notify userland of lladdr
changes.
XXX pullup -8 -9
-
nd6: notify userland of neighbour lla updates once more
XXX pullup -8 -9
Revision 1.124: download - view: text, markup, annotated - select for diffs
Thu Aug 22 21:14:45 2019 UTC (5 years, 7 months ago) by roy
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +3 -3
lines
rtsock: rework rt_clonedmsg to take a message type and lladdr
We will use this in a future patch to notify userland of lladdr
changes.
XXX pullup -8 -9
Revision 1.119.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:45 2019 UTC (5 years, 9 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +11 -2
lines
Sync with HEAD
Revision 1.123: download - view: text, markup, annotated - select for diffs
Mon Apr 29 16:12:30 2019 UTC (5 years, 10 months ago) by roy
Branches: MAIN
CVS tags: phil-wifi-20190609,
netbsd-9-base
Branch point for: netbsd-9
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +2 -1
lines
Introduce rt_addrmsg_src which adds RTA_AUTHOR to the message.
Use this when we notify userland of a duplicate address
and set RTA_AUTHOR to the hardware address of the sender.
While here, match the logging diagnostic of INET6 to the simpler one
of INET so it's consistent.
Revision 1.122: download - view: text, markup, annotated - select for diffs
Mon Apr 29 11:57:22 2019 UTC (5 years, 10 months ago) by roy
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +3 -2
lines
rtsock: Route address message simplification
Rename rt_newaddrmsg to rt_addrmsg_rt.
Add rt_addrmsg which drops the error and route arguments which are only
needed by one caller.
Revision 1.121: download - view: text, markup, annotated - select for diffs
Mon Apr 29 05:42:09 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +3 -1
lines
For the rtsock compat code, make sure we create the "oroute" sysctl
tree. Otherwise a 5.2 version of getifaddrs(2) gets errors.
This makes the 5.2 version of ifconfig(8) behave the same on both
NetBSD-8 and -current. HOWEVER, both of them print nothing (for
``ifconfig -l'' command) so there's still a bug somewhere.
As reported originally by der Mouse.
Revision 1.117.2.5: download - view: text, markup, annotated - select for diffs
Mon Jan 14 13:34:28 2019 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.117.2.4: preferred, colored; branchpoint 1.117: preferred, colored; next MAIN 1.118: preferred, colored
Changes since revision 1.117.2.4: +6 -6
lines
Create a variant of the HOOK macros that handles hook routines of
type void, and use them where appropriate.
Revision 1.117.2.4: download - view: text, markup, annotated - select for diffs
Sun Jan 13 23:32:22 2019 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.117.2.3: preferred, colored; branchpoint 1.117: preferred, colored
Changes since revision 1.117.2.3: +6 -6
lines
Add the required hooks for rtsock_50 and modify the COMPATCALL() macro
to use the hooks. While the rtsock_50 situation is still sub-optimal
(it includes the main rtsock.c with a whole bunch of function and
variable redefinitions via macros), this at least makes it possible to
load the rtsock_50 code separately from more recent code, rather than
the previous requirement that rtsock_50 be built-in.
Revision 1.117.2.3: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:50 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.117.2.2: preferred, colored; branchpoint 1.117: preferred, colored
Changes since revision 1.117.2.2: +6 -1
lines
Sync with HEAD, resolve a couple of conflicts
Revision 1.112.4.5: download - view: text, markup, annotated - select for diffs
Tue Nov 6 14:38:58 2018 UTC (6 years, 4 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-1-RELEASE,
netbsd-8-1-RC1
Diff to: previous 1.112.4.4: preferred, colored; branchpoint 1.112: preferred, colored
Changes since revision 1.112.4.4: +6 -1
lines
Pull up following revision(s) (requested by ozaki-r in ticket #1080):
sys/netinet6/nd6.c: revision 1.251
sys/netinet/if_arp.c: revision 1.276
sys/net/if.c: revision 1.438
sys/net/if.c: revision 1.439
sys/net/route.c: revision 1.214
sys/net/route.c: revision 1.215
sys/net/route.c: revision 1.216
sys/netinet6/in6.c: revision 1.270
sys/net/route.h: revision 1.120
sys/net/if.c: revision 1.440
Remove a wrong assertion in ifaref
-
Doing ifref on an ifa with IFA_DESTROYING is not a problem; the reference should
be dropped during the destruction of the ifa.
-
Use atomic operations for ifa_refcnt
-
Avoid a dangling pointer during rt_replace_ifa
-
Avoid double rt_replace_ifa on rtrequest1(RTM_ADD)
Some callers of rtrequest1(RTM_ADD) adjust rt_ifa of an rtentry created by
rtrequest1 that may change rt_ifa (in ifa_rtrequest) with another ifa that is
different from requested one. It's wasteful and even worse introduces a race
condition. rtrequest1 should just use a passed ifa as is if a caller hopes so.
-
Use rt_update framework on updating a rtentry
Revision 1.120: download - view: text, markup, annotated - select for diffs
Tue Oct 30 05:54:42 2018 UTC (6 years, 4 months ago) by ozaki-r
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.119: preferred, colored
Changes since revision 1.119: +6 -1
lines
Avoid double rt_replace_ifa on rtrequest1(RTM_ADD)
Some callers of rtrequest1(RTM_ADD) adjust rt_ifa of an rtentry created by
rtrequest1 that may change rt_ifa (in ifa_rtrequest) with another ifa that is
different from requested one. It's wasteful and even worse introduces a race
condition. rtrequest1 should just use a passed ifa as is if a caller hopes so.
Revision 1.117.2.2: download - view: text, markup, annotated - select for diffs
Sun Apr 22 07:20:27 2018 UTC (6 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.117.2.1: preferred, colored; branchpoint 1.117: preferred, colored
Changes since revision 1.117.2.1: +7 -7
lines
Sync with HEAD
Revision 1.119: download - view: text, markup, annotated - select for diffs
Thu Apr 19 21:20:43 2018 UTC (6 years, 11 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422
Branch point for: phil-wifi
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +7 -7
lines
s/static inline/static __inline/g for consistency.
Revision 1.117.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 16 02:00:08 2018 UTC (6 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +4 -5
lines
Sync with HEAD, resolve some conflicts
Revision 1.112.4.4: download - view: text, markup, annotated - select for diffs
Sat Apr 14 10:16:19 2018 UTC (6 years, 11 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1
Diff to: previous 1.112.4.3: preferred, colored; branchpoint 1.112: preferred, colored
Changes since revision 1.112.4.3: +4 -5
lines
Pull up following revision(s) (requested by ozaki-r in ticket #749):
sys/net/if.h: revision 1.259
sys/net/route.c: revision 1.209
sys/net/route.h: revision 1.118
sys/net/rtsock.c: revision 1.240
Resolve tangled lock dependencies in route.c
This change sweeps remaining lock decisions based on if locked or not by
moving utility functions of rtentry updates from rtsock.c and ensuring
holding the rt_lock.
It also improves the atomicity of a update of a rtentry.
Revision 1.118: download - view: text, markup, annotated - select for diffs
Thu Apr 12 04:38:13 2018 UTC (6 years, 11 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-compat-0415
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +4 -5
lines
Resolve tangled lock dependencies in route.c
This change sweeps remaining lock decisions based on if locked or not by moving
utility functions of rtentry updates from rtsock.c and ensuring holding the
rt_lock. It also improves the atomicity of a update of a rtentry.
Revision 1.112.4.3: download - view: text, markup, annotated - select for diffs
Sat Jan 13 22:10:55 2018 UTC (7 years, 2 months ago) by snj
Branches: netbsd-8
Diff to: previous 1.112.4.2: preferred, colored; branchpoint 1.112: preferred, colored
Changes since revision 1.112.4.2: +3 -2
lines
Pull up following revision(s) (requested by christos in ticket #496):
sys/net/route.c: revision 1.202-1.203
sys/net/route.h: revision 1.117
Use a queue of deferred entries to delete routes instead of a fixed stack
of 10. Otherwise we can overflow in route deletions from the rexmit timer.
--
Don't stomp past the end of the array! need __arraycount not sizeof()
Found by chuq, while debugging the sdf.org crashes
Restructure a bit for readability.
Revision 1.117: download - view: text, markup, annotated - select for diffs
Tue Jan 9 19:52:29 2018 UTC (7 years, 2 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-compat-base,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +3 -2
lines
Use a queue of deferred entries to delete routes instead of a fixed stack
of 10. Otherwise we can overflow in route deletions from the rexmit timer.
XXX: pullup-8
Revision 1.116: download - view: text, markup, annotated - select for diffs
Mon Dec 18 04:11:13 2017 UTC (7 years, 3 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +6 -2
lines
Show ARP/NDP caches as LLINFO not LLDATA for backward compatiblity
Revision 1.115: download - view: text, markup, annotated - select for diffs
Wed Dec 13 17:43:10 2017 UTC (7 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +13 -1
lines
Add bit definitions for flags so that route(8) can use them.
Revision 1.81.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:02 2017 UTC (7 years, 3 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.81.2.2: preferred, colored; branchpoint 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81.2.2: +130 -114
lines
update from HEAD
Revision 1.112.4.2: download - view: text, markup, annotated - select for diffs
Tue Oct 24 08:55:55 2017 UTC (7 years, 4 months ago) by snj
Branches: netbsd-8
CVS tags: matt-nb8-mediatek-base,
matt-nb8-mediatek
Diff to: previous 1.112.4.1: preferred, colored; branchpoint 1.112: preferred, colored
Changes since revision 1.112.4.1: +3 -4
lines
Pull up following revision(s) (requested by ozaki-r in ticket #305):
distrib/sets/lists/tests/mi: revision 1.762
sys/net/route.c: revision 1.198-1.201
sys/net/route.h: revision 1.114
sys/netatalk/at_proto.c: revision 1.22
sys/netinet/in_proto.c: revision 1.124
sys/netinet6/in6_proto.c: revision 1.118
sys/netmpls/mpls_proto.c: revision 1.31
sys/netnatm/natm_proto.c: revision 1.18
sys/rump/net/lib/libsockin/sockin.c: revision 1.65
sys/sys/domain.h: revision 1.33
tests/net/route/Makefile: revision 1.6
tests/net/route/t_rtcache.sh: revision 1.1
Add tests of rtcache invalidation
Remove unnecessary NULL check of rt_ifp
It's always non-NULL.
Invalidate rtcache based on a global generation counter
The change introduces a global generation counter that is incremented when any
routes have been added or deleted. When a rtcache caches a rtentry into itself,
it also stores a snapshot of the generation counter. If the snapshot equals to
the global counter, the cache is still valid, otherwise invalidated.
One drawback of the change is that all rtcaches of all protocol families are
invalidated when any routes of any protocol families are added or deleted.
If that matters, we should have separate generation counters based on
protocol families.
This change removes LIST_ENTRY from struct route, which fixes a part of
PR kern/52515.
Remove the global lock for rtcache
Thanks to removal of LIST_ENTRY of struct route, rtcaches are accessed only by
their users. And in existing usages a rtcache is guranteed to be not accessed
simultaneously. So the rtcache framework doesn't need any exclusion controls
in itself.
Synchronize on rtcache_generation with rtlock
It's racy if NET_MPSAFE is enabled.
Pointed out by joerg@
Revision 1.114: download - view: text, markup, annotated - select for diffs
Thu Sep 21 07:15:34 2017 UTC (7 years, 6 months ago) by ozaki-r
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +3 -4
lines
Invalidate rtcache based on a global generation counter
The change introduces a global generation counter that is incremented when any
routes have been added or deleted. When a rtcache caches a rtentry into itself,
it also stores a snapshot of the generation counter. If the snapshot equals to
the global counter, the cache is still valid, otherwise invalidated.
One drawback of the change is that all rtcaches of all protocol families are
invalidated when any routes of any protocol families are added or deleted.
If that matters, we should have separate generation counters based on
protocol families.
This change removes LIST_ENTRY from struct route, which fixes a part of
PR kern/52515.
Revision 1.84.4.9: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:11 2017 UTC (7 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.84.4.8: preferred, colored; branchpoint 1.84: preferred, colored; next MAIN 1.85: preferred, colored
Changes since revision 1.84.4.8: +10 -1
lines
Sync with HEAD
Revision 1.112.4.1: download - view: text, markup, annotated - select for diffs
Fri Jul 7 13:57:26 2017 UTC (7 years, 8 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +5 -1
lines
Pull up following revision(s) (requested by ozaki-r in ticket #107):
usr.sbin/arp/arp.c: revision 1.56
sys/net/rtsock.c: revision 1.218
sys/net/if_llatbl.c: revision 1.20
usr.sbin/arp/arp.c: revision 1.57
sys/net/rtsock.c: revision 1.219
sys/net/if_llatbl.c: revision 1.21
usr.sbin/arp/arp.c: revision 1.58
tests/net/net_common.sh: revision 1.19
sys/netinet6/nd6.h: revision 1.84
sys/netinet6/nd6.h: revision 1.85
tests/net/arp/t_arp.sh: revision 1.23
sys/netinet6/in6.c: revision 1.246
tests/net/arp/t_arp.sh: revision 1.24
sys/netinet6/in6.c: revision 1.247
tests/net/arp/t_arp.sh: revision 1.25
sys/netinet6/in6.c: revision 1.248
tests/net/arp/t_arp.sh: revision 1.26
usr.sbin/ndp/ndp.c: revision 1.49
tests/net/arp/t_arp.sh: revision 1.27
tests/net/ndp/t_ndp.sh: revision 1.20
tests/net/arp/t_arp.sh: revision 1.28
tests/net/ndp/t_ndp.sh: revision 1.21
tests/net/arp/t_arp.sh: revision 1.29
tests/net/ndp/t_ndp.sh: revision 1.22
tests/net/ndp/t_ndp.sh: revision 1.23
tests/net/route/t_flags6.sh: revision 1.13
tests/net/ndp/t_ndp.sh: revision 1.24
tests/net/route/t_flags6.sh: revision 1.14
tests/net/ndp/t_ndp.sh: revision 1.25
tests/net/route/t_flags6.sh: revision 1.15
tests/net/ndp/t_ndp.sh: revision 1.26
sbin/route/rtutil.c: revision 1.9
tests/net/ndp/t_ndp.sh: revision 1.27
tests/net/ndp/t_ndp.sh: revision 1.28
tests/net/net/t_ipv6address.sh: revision 1.14
tests/net/ndp/t_ra.sh: revision 1.28
tests/net/ndp/t_ndp.sh: revision 1.29
sys/net/route.h: revision 1.113
tests/net/ndp/t_ra.sh: revision 1.29
sys/net/rtsock.c: revision 1.220
sys/net/rtsock.c: revision 1.221
sys/net/rtsock.c: revision 1.222
sys/net/rtsock.c: revision 1.223
tests/net/route/t_route.sh: revision 1.13
sys/net/rtsock.c: revision 1.224
sys/net/route.c: revision 1.196
sys/net/if_llatbl.c: revision 1.19
sys/net/route.c: revision 1.197
sbin/route/route.c: revision 1.156
tests/net/route/t_flags.sh: revision 1.16
tests/net/route/t_flags.sh: revision 1.17
usr.sbin/ndp/ndp.c: revision 1.50
tests/net/route/t_flags.sh: revision 1.18
sys/netinet/in.c: revision 1.204
tests/net/route/t_flags.sh: revision 1.19
sys/netinet/in.c: revision 1.205
tests/net/arp/t_arp.sh: revision 1.30
tests/net/arp/t_arp.sh: revision 1.31
sys/net/if_llatbl.h: revision 1.11
tests/net/arp/t_arp.sh: revision 1.32
sys/net/if_llatbl.h: revision 1.12
tests/net/arp/t_arp.sh: revision 1.33
sys/netinet6/nd6.c: revision 1.233
sys/netinet6/nd6.c: revision 1.234
sys/netinet/if_arp.c: revision 1.251
sys/netinet6/nd6.c: revision 1.235
sys/netinet/if_arp.c: revision 1.252
sbin/route/route.8: revision 1.57
sys/net/rtsock.c: revision 1.214
sys/net/rtsock.c: revision 1.215
sys/net/rtsock.c: revision 1.216
sys/net/rtsock.c: revision 1.217
whitespace police
Simplify
We can assume that rt_ifp is always non-NULL.
Sending a routing message (RTM_ADD) on adding an llentry
A message used to be sent on adding a cloned route. Restore the
behavior for backward compatibility.
Requested by ryo@
Drop RTF_CONNECTED from a result of RTM_GET for ARP/NDP entries
ARP/NDP entries aren't connected routes.
Reported by ryo@
Support -c <count> option for route monitor
route command exits if it receives <count> routing messages where
<count> is a value specified by -c.
The option is useful to get only particular message(s) in a test script.
Test routing messages emitted on operations of ARP/NDP entries
Do netstat -a for an appropriate protocol
Add missing declarations for cleanup
Set net.inet.arp.keep only if it's required
Don't create a permanent L2 cache entry on adding an address to an interface
It was created to copy FreeBSD, however actually the cache isn't
necessary. Remove it to simplify the code and reduce the cost to
maintain it (e.g., keep a consistency with a corresponding local
route).
Fix typo
Fix in_lltable_match_prefix
The function has not been used but will be used soon.
Remove unused function (nd6_rem_ifa_lle)
Allow in6_lltable_free_entry to be called without holding the afdata lock of ifp as well as in_lltable_free_entry
This behavior is a bit odd and should be fixed in the future...
Purge ARP/NDP entries on an interface when the interface is down
Fix PR kern/51179
Purge all related L2 caches on removing a route
The change addresses situations similar to PR 51179.
Purge L2 caches on changing an interface of a route
The change addresses situations similar to PR 51179.
Test implicit removals of ARP/NDP entries
One test case reproudces PR 51179.
Fix build of kernels without both INET and INET6
Tweak lltable_sysctl_dumparp
- Rename lltable_sysctl_dumparp to lltable_sysctl_dump
because it's not only for ARP
- Enable it not only for INET but also for INET6
Fix usage of routing messages on arp -d and ndp -d
It didn't work as we expected; we should set RTA_GATEWAY not
RTA_IFP on RTM_GET to return an if_index and the kernel should
use it on RTM_DELETE.
Improve backward compatibility of (fake) routing messages on adding an ARP/NDP entry
A message originally included only DST and GATEWAY. Restore it.
Fix ifdef; care about a case w/ INET6 and w/o INET
Drop RTF_UP from a routing message of a deleted ARP/NDP entry
Check existence of ARP/NDP entries
Checking ARP/NDP entries is valid rather than checking routes.
Fix wrong comment
Drop RTF_LLINFO flag (now it's RTF_LLDATA) from local routes
They don't have llinfo anymore. And also the change fixes unexpected
behavior of ARP proxy.
Restore ARP/NDP entries to route show and netstat -r
Requested by dyoung@ some time ago
Enable to remove multiple ARP/NDP entries for one destination
The kernel can have multiple ARP/NDP entries which have an indentical
destination on different interfaces. This is normal and can be
reproduce easily by ping -I or ping6 -S. We should be able to remove
such entries.
arp -d <ip> and ndp -d <ip> are changed to fetch all ARP/NDP entries
and remove matched entries. So we can remove multiple entries
described above. This fetch all and selective removal behavior is
the same as arp <ip> and ndp <ip>; they also do fetch all entries
and show only matched entries.
Related to PR 51179
Check if ARP/NDP entries are purged when a related route is deleted
Revision 1.113: download - view: text, markup, annotated - select for diffs
Fri Jun 16 02:24:54 2017 UTC (7 years, 9 months ago) by ozaki-r
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +5 -1
lines
Sending a routing message (RTM_ADD) on adding an llentry
A message used to be sent on adding a cloned route. Restore the
behavior for backward compatibility.
Requested by ryo@
Revision 1.101.2.4: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:29 2017 UTC (7 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.101.2.3: preferred, colored; branchpoint 1.101: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101.2.3: +6 -1
lines
Sync with HEAD
Revision 1.111.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:05 2017 UTC (7 years, 11 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.111: preferred, colored; next MAIN 1.112: preferred, colored
Changes since revision 1.111: +6 -1
lines
Sync with HEAD
Revision 1.112: download - view: text, markup, annotated - select for diffs
Tue Apr 11 13:55:54 2017 UTC (7 years, 11 months ago) by roy
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
netbsd-8-base,
bouyer-socketcan-base1
Branch point for: netbsd-8
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +6 -1
lines
Add RO_MSGFILTER socket option to PF_ROUTE to filter out
un-wanted route(4) messages.
Inspired by the ROUTE_MSGFILTER equivalent in OpenBSD,
but with an API which allows the full range of potential message types.
Revision 1.84.4.8: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:58 2017 UTC (8 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.84.4.7: preferred, colored; branchpoint 1.84: preferred, colored
Changes since revision 1.84.4.7: +28 -24
lines
Sync with HEAD
Revision 1.101.2.3: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:50 2017 UTC (8 years, 2 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.101.2.2: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.2.2: +33 -24
lines
Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
Revision 1.111: download - view: text, markup, annotated - select for diffs
Mon Dec 19 11:17:00 2016 UTC (8 years, 3 months ago) by roy
Branches: MAIN
CVS tags: pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
nick-nhusb-base-20170204,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +2 -2
lines
Fix gcc complaining about int to unsigned long conversion issues by
explictly marking as unsigned in RT_ROUNDUP2.
Revision 1.110: download - view: text, markup, annotated - select for diffs
Fri Dec 16 20:11:52 2016 UTC (8 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +2 -4
lines
Can't hide stuff from userland, because struct route is embedded in other
structures (like inpcb) and things like fstat stop working.
Revision 1.109: download - view: text, markup, annotated - select for diffs
Mon Dec 12 03:55:57 2016 UTC (8 years, 3 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +29 -30
lines
Make the routing table and rtcaches MP-safe
See the following descriptions for details.
Proposed on tech-kern and tech-net
Overview
--------
We protect the routing table with a rwock and protect
rtcaches with another rwlock. Each rtentry is protected
from being freed or updated via reference counting and psref.
Global rwlocks
--------------
There are two rwlocks; one for the routing table (rt_lock) and
the other for rtcaches (rtcache_lock). rtcache_lock covers
all existing rtcaches; there may have room for optimizations
(future work).
The locking order is rtcache_lock first and rt_lock is next.
rtentry references
------------------
References to an rtentry is managed with reference counting
and psref. Either of the two mechanisms is used depending on
where a rtentry is obtained. Reference counting is used when
we obtain a rtentry from the routing table directly via
rtalloc1 and rtrequest{,1} while psref is used when we obtain
a rtentry from a rtcache via rtcache_* APIs. In both cases,
a caller can sleep/block with holding an obtained rtentry.
The reasons why we use two different mechanisms are (i) only
using reference counting hurts the performance due to atomic
instructions (rtcache case) (ii) ease of implementation;
applying psref to APIs such rtaloc1 and rtrequest{,1} requires
additional works (adding a local variable and an argument).
We will finally migrate to use only psref but we can do it
when we have a lockless routing table alternative.
Reference counting for rtentry
------------------------------
rt_refcnt now doesn't count permanent references such as for
rt_timers and rtcaches, instead it is used only for temporal
references when obtaining a rtentry via rtalloc1 and rtrequest{,1}.
We can do so because destroying a rtentry always involves
removing references of rt_timers and rtcaches to the rtentry
and we don't need to track such references. This also makes
it easy to wait for readers to release references on deleting
or updating a rtentry, i.e., we can simply wait until the
reference counter is 0 or 1. (If there are permanent references
the counter can be arbitrary.)
rt_ref increments a reference counter of a rtentry and rt_unref
decrements it. rt_ref is called inside APIs (rtalloc1 and
rtrequest{,1} so users don't need to care about it while
users must call rt_unref to an obtained rtentry after using it.
rtfree is removed and we use rt_unref and rt_free instead.
rt_unref now just decrements the counter of a given rtentry
and rt_free just tries to destroy a given rtentry.
See the next section for destructions of rtentries by rt_free.
Destructions of rtentries
-------------------------
We destroy a rtentry only when we call rtrequst{,1}(RTM_DELETE);
the original implementation can destroy in any rtfree where it's
the last reference. If we use reference counting or psref, it's
easy to understand if the place that a rtentry is destroyed is
fixed.
rt_free waits for references to a given rtentry to be released
before actually destroying the rtentry. rt_free uses a condition
variable (cv_wait) (and psref_target_destroy for psref) to wait.
Unfortunately rtrequst{,1}(RTM_DELETE) can be called in softint
that we cannot use cv_wait. In that case, we have to defer the
destruction to a workqueue.
rtentry#rt_cv, rtentry#rt_psref and global variables
(see rt_free_global) are added to conduct the procedure.
Updates of rtentries
--------------------
One difficulty to use refcnt/psref instead of rwlock for rtentry
is updates of rtentries. We need an additional mechanism to
prevent readers from seeing inconsistency of a rtentry being
updated.
We introduce RTF_UPDATING flag to rtentries that are updating.
While the flag is set to a rtentry, users cannot acquire the
rtentry. By doing so, we avoid users to see inconsistent
rtentries.
There are two options when a user tries to acquire a rtentry
with the RTF_UPDATING flag; if a user runs in softint context
the user fails to acquire a rtentry (NULL is returned).
Otherwise a user waits until the update completes by waiting
on cv.
The procedure of a updater is simpler to destruction of
a rtentry. Wait on cv (and psref) and after all readers left,
proceed with the update.
Global variables (see rt_update_global) are added to conduct
the procedure.
Currently we apply the mechanism to only RTM_CHANGE in
rtsock.c. We would have to apply other codes. See
"Known issues" section.
psref for rtentry
-----------------
When we obtain a rtentry from a rtcache via rtcache_* APIs,
psref is used to reference to the rtentry.
rtcache_ref acquires a reference to a rtentry with psref
and rtcache_unref releases the reference after using it.
rtcache_ref is called inside rtcache_* APIs and users don't
need to take care of it while users must call rtcache_unref
to release the reference.
struct psref and int bound that is needed for psref is
embedded into struct route. By doing so we don't need to
add local variables and additional argument to APIs.
However this adds another constraint to psref other than
reference counting one's; holding a reference of an rtentry
via a rtcache is allowed by just one caller at the same time.
So we must not acquire a rtentry via a rtcache twice and
avoid a recursive use of a rtcache. And also a rtcache must
be arranged to be used by a LWP/softint at the same time
somehow. For IP forwarding case, we have per-CPU rtcaches
used in softint so the constraint is guaranteed. For a h
rtcache of a PCB case, the constraint is guaranteed by the
solock of each PCB. Any other cases (pf, ipf, stf and ipsec)
are currently guaranteed by only the existence of the global
locks (softnet_lock and/or KERNEL_LOCK). If we've found the
cases that we cannot guarantee the constraint, we would need
to introduce other rtcache APIs that use simple reference
counting.
psref of rtcache is created with IPL_SOFTNET and so rtcache
shouldn't used at an IPL higher than IPL_SOFTNET.
Note that rtcache_free is used to invalidate a given rtcache.
We don't need another care by my change; just keep them as
they are.
Performance impact
------------------
When NET_MPSAFE is disabled the performance drop is 3% while
when it's enabled the drop is increased to 11%. The difference
comes from that currently we don't take any global locks and
don't use psref if NET_MPSAFE is disabled.
We can optimize the performance of the case of NET_MPSAFE
on by reducing lookups of rtcache that uses psref;
currently we do two lookups but we should be able to trim
one of two. This is a future work.
Known issues
------------
There are two known issues to be solved; one is that
a caller of rtrequest(RTM_ADD) may change rtentry (see rtinit).
We need to prevent new references during the update. Or
we may be able to remove the code (perhaps, need more
investigations).
The other is rtredirect that updates a rtentry. We need
to apply our update mechanism, however it's not easy because
rtredirect is called in softint and we cannot apply our
mechanism simply. One solution is to defer rtredirect to
a workqueue but it requires some code restructuring.
Revision 1.108: download - view: text, markup, annotated - select for diffs
Thu Dec 8 05:16:33 2016 UTC (8 years, 3 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +8 -1
lines
Add rtcache_unref to release points of rtentry stemming from rtcache
In the MP-safe world, a rtentry stemming from a rtcache can be freed at any
points. So we need to protect rtentries somehow say by reference couting or
passive references. Regardless of the method, we need to call some release
function of a rtentry after using it.
The change adds a new function rtcache_unref to release a rtentry. At this
point, this function does nothing because for now we don't add a reference
to a rtentry when we get one from a rtcache. We will add something useful
in a further commit.
This change is a part of changes for MP-safe routing table. It is separated
to avoid one big change that makes difficult to debug by bisecting.
Revision 1.84.4.7: download - view: text, markup, annotated - select for diffs
Mon Dec 5 10:55:27 2016 UTC (8 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.84.4.6: preferred, colored; branchpoint 1.84: preferred, colored
Changes since revision 1.84.4.6: +7 -12
lines
Sync with HEAD
Revision 1.107: download - view: text, markup, annotated - select for diffs
Tue Nov 15 01:50:06 2016 UTC (8 years, 4 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20161204
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +6 -1
lines
Don't use rt_walktree to delete routes
Some functions use rt_walktree to scan the routing table and delete
matched routes. However, we shouldn't use rt_walktree to delete
routes because rt_walktree is recursive to the routing table (radix
tree) and isn't friendly to MP-ification. rt_walktree allows a caller
to pass a callback function to delete an matched entry. The callback
function is called from an API of the radix tree (rn_walktree) but
also calls an API of the radix tree to delete an entry.
This change adds a new API of the radix tree, rn_search_matched,
which returns a matched entry that is selected by a callback
function passed by a caller and the caller itself deletes the
entry. By using the API, we can avoid the recursive form.
Revision 1.101.2.2: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:21 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.101.2.1: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.2.1: +8 -15
lines
Sync with HEAD
Revision 1.106: download - view: text, markup, annotated - select for diffs
Tue Oct 25 02:45:09 2016 UTC (8 years, 4 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-20161104
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +2 -2
lines
Remove unnecessary argument
No functional change.
Revision 1.105: download - view: text, markup, annotated - select for diffs
Fri Oct 21 09:01:44 2016 UTC (8 years, 5 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +1 -5
lines
Make some rt_timer functions and variables static
No functional change.
Revision 1.104: download - view: text, markup, annotated - select for diffs
Tue Oct 18 09:43:20 2016 UTC (8 years, 5 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +1 -7
lines
Remove unused rtcache_lookup_noclone
Revision 1.84.4.6: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:56:08 2016 UTC (8 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.84.4.5: preferred, colored; branchpoint 1.84: preferred, colored
Changes since revision 1.84.4.5: +11 -5
lines
Sync with HEAD
Revision 1.103: download - view: text, markup, annotated - select for diffs
Wed Sep 21 10:50:22 2016 UTC (8 years, 6 months ago) by roy
Branches: MAIN
CVS tags: nick-nhusb-base-20161004
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +7 -4
lines
Add ifam_pid and ifam_addrflags to ifa_msghdr.
Re-version RTM_NEWADDR, RTM_DELADDR, RTM_CHGADDR and NET_RT_IFLIST.
Add compat code for old version.
Revision 1.101.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 6 00:19:10 2016 UTC (8 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +5 -2
lines
Sync with HEAD
Revision 1.102: download - view: text, markup, annotated - select for diffs
Mon Aug 1 03:15:30 2016 UTC (8 years, 7 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-20160806,
localcount-20160914
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +5 -2
lines
Apply pserialize and psref to struct ifaddr and its variants
This change makes struct ifaddr and its variants (in_ifaddr and in6_ifaddr)
MP-safe by using pserialize and psref. At this moment, pserialize_perform
and psref_target_destroy are disabled because (1) we don't need them
because of softnet_lock (2) they cause a deadlock because of softnet_lock.
So we'll enable them when we remove softnet_lock in the future.
Revision 1.84.4.5: download - view: text, markup, annotated - select for diffs
Sun May 29 08:44:38 2016 UTC (8 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.84.4.4: preferred, colored; branchpoint 1.84: preferred, colored
Changes since revision 1.84.4.4: +3 -19
lines
Sync with HEAD
Revision 1.101: download - view: text, markup, annotated - select for diffs
Thu Apr 28 00:16:56 2016 UTC (8 years, 10 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20160726,
nick-nhusb-base-20160907,
nick-nhusb-base-20160529
Branch point for: pgoyette-localcount
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +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.100: download - view: text, markup, annotated - select for diffs
Tue Apr 26 09:30:01 2016 UTC (8 years, 10 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +2 -18
lines
Stop using rt_gwroute on packet sending paths
rt_gwroute of rtentry is a reference to a rtentry of the gateway
for a rtentry with RTF_GATEWAY. That was used by L2 (arp and ndp)
to look up L2 addresses. By separating L2 nexthop caches, we don't
need a route for the purpose and we can stop using rt_gwroute.
By doing so, we can reduce referencing and modifying rtentries,
which makes it easy to apply a lock (and/or psref) to the
routing table and rtentries.
One issue to do this is to keep RTF_REJECT behavior. It seems it
was broken when we moved rtalloc1 things from L2 output routines
(e.g., ether_output) to ip_hresolv_output, but (fortunately?)
it works unexpectedly. What we mistook are:
- RTF_REJECT was checked for any routes in L2 output routines,
but in ip_hresolv_output it is checked only when the route
is RTF_GATEWAY
- The RTF_REJECT check wasn't copied to IPv6 (nd6_output)
It seems that rt_gwroute checks hid the mistakes and it looked
work (unexpectedly) and removing rt_gwroute checks unveil the
issue. So we need to fix RTF_REJECT checks in ip_hresolv_output
and also add them to nd6_output.
One more point we have to care is returning an errno; we need
to mimic looutput behavior. Originally RTF_REJECT check was
done either in L2 output routines or in looutput. The latter is
applied when a reject route directs to a loopback interface.
However, now RTF_REJECT check is done before looutput so to keep
the original behavior we need to return an errno which looutput
chooses. Added rt_check_reject_route does such tweaks.
Revision 1.84.4.4: download - view: text, markup, annotated - select for diffs
Fri Apr 22 15:44:17 2016 UTC (8 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.84.4.3: preferred, colored; branchpoint 1.84: preferred, colored
Changes since revision 1.84.4.3: +10 -7
lines
Sync with HEAD
Revision 1.99: download - view: text, markup, annotated - select for diffs
Mon Apr 11 09:21:18 2016 UTC (8 years, 11 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20160422
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +2 -1
lines
Don't use radix tree API directly
Revision 1.98: download - view: text, markup, annotated - select for diffs
Mon Apr 4 07:37:07 2016 UTC (8 years, 11 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +8 -6
lines
Separate nexthop caches from the routing table
By this change, nexthop caches (IP-MAC address pair) are not stored
in the routing table anymore. Instead nexthop caches are stored in
each network interface; we already have lltable/llentry data structure
for this purpose. This change also obsoletes the concept of cloning/cloned
routes. Cloned routes no longer exist while cloning routes still exist
with renamed to connected routes.
Noticeable changes are:
- Nexthop caches aren't listed in route show/netstat -r
- sysctl(NET_RT_DUMP) doesn't return them
- If RTF_LLDATA is specified, it returns nexthop caches
- Several definitions of routing flags and messages are removed
- RTF_CLONING, RTF_XRESOLVE, RTF_LLINFO, RTF_CLONED and RTM_RESOLVE
- RTF_CONNECTED is added
- It has the same value of RTF_CLONING for backward compatibility
- route's -xresolve, -[no]cloned and -llinfo options are removed
- -[no]cloning remains because it seems there are users
- -[no]connected is introduced and recommended
to be used instead of -[no]cloning
- route show/netstat -r drops some flags
- 'L' and 'c' are not seen anymore
- 'C' now indicates a connected route
- Gateway value of a route of an interface address is now not
a L2 address but "link#N" like a connected (cloning) route
- Proxy ARP: "arp -s ... pub" doesn't create a route
You can know details of behavior changes by seeing diffs under tests/.
Proposed on tech-net and tech-kern:
http://mail-index.netbsd.org/tech-net/2016/03/11/msg005701.html
Revision 1.97: download - view: text, markup, annotated - select for diffs
Thu Mar 24 06:18:27 2016 UTC (9 years ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +2 -2
lines
Constify rt_newmsg's arguments
Revision 1.84.4.3: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:10 2015 UTC (9 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.84.4.2: preferred, colored; branchpoint 1.84: preferred, colored
Changes since revision 1.84.4.2: +30 -1
lines
Sync with HEAD
Revision 1.96: download - view: text, markup, annotated - select for diffs
Wed Sep 2 11:35:11 2015 UTC (9 years, 6 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20160319,
nick-nhusb-base-20151226,
nick-nhusb-base-20150921
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +10 -1
lines
Do rt_refcnt++ when set a rtentry to another rtentry's rt_gwroute
And also do rtfree when deref a rtentry from rt_gwroute.
Revision 1.95: download - view: text, markup, annotated - select for diffs
Mon Aug 31 08:02:44 2015 UTC (9 years, 6 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +2 -1
lines
Hook up lltable/llentry with the kernel (and rumpkernel)
It is built and initialized on bootup, but there is no user for now.
Most codes in in.c are imported from FreeBSD as well as lltable/llentry.
Revision 1.94: download - view: text, markup, annotated - select for diffs
Mon Aug 31 06:25:15 2015 UTC (9 years, 6 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +8 -1
lines
Make rt_refcnt take into account rt_timer
Revision 1.93: download - view: text, markup, annotated - select for diffs
Mon Aug 24 04:44:54 2015 UTC (9 years, 7 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +2 -1
lines
Add an assertion; if rtcache has an rtentry, its refcnt must be > 0
Revision 1.92: download - view: text, markup, annotated - select for diffs
Fri Jul 17 02:21:08 2015 UTC (9 years, 8 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +12 -1
lines
Reform use of rt_refcnt
rt_refcnt of rtentry was used in bad manners, for example, direct rt_refcnt++
and rt_refcnt-- outside route.c, "rt->rt_refcnt++; rtfree(rt);" idiom, and
touching rt after rt->rt_refcnt--.
These abuses seem to be needed because rt_refcnt manages only references
between rtentry and doesn't take care of references during packet processing
(IOW references from local variables). In order to reduce the above abuses,
the latter cases should be counted by rt_refcnt as well as the former cases.
This change improves consistency of use of rt_refcnt:
- rtentry is always accessed with rt_refcnt incremented
- rtentry's rt_refcnt is decremented after use (rtfree is always used instead
of rt_refcnt--)
- functions returning rtentry increment its rt_refcnt (and caller rtfree it)
Note that rt_refcnt prevents rtentry from being freed but doesn't prevent
rtentry from being updated. Toward MP-safe, we need to provide another
protection for rtentry, e.g., locks. (Or introduce a better data structure
allowing concurrent readers during updates.)
Revision 1.84.4.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:25 2015 UTC (9 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.84.4.1: preferred, colored; branchpoint 1.84: preferred, colored
Changes since revision 1.84.4.1: +1 -31
lines
Sync with HEAD
Revision 1.91: download - view: text, markup, annotated - select for diffs
Thu Apr 30 09:57:38 2015 UTC (9 years, 10 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +1 -31
lines
Make some functions static
- rtflushall
- rtcache_clear
- rtcache_invalidate
And pull these static inline functions in route.c
- rt_destroy
- rt_setkey
Revision 1.84.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:22 2015 UTC (9 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +74 -57
lines
Sync with HEAD
Revision 1.90: download - view: text, markup, annotated - select for diffs
Mon Apr 6 09:45:58 2015 UTC (9 years, 11 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +69 -54
lines
Classify and sort prototype declarations
No functional change.
Revision 1.89: download - view: text, markup, annotated - select for diffs
Mon Apr 6 08:39:06 2015 UTC (9 years, 11 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +1 -3
lines
Make rt_maskedcopy static
Revision 1.88: download - view: text, markup, annotated - select for diffs
Mon Mar 23 18:33:17 2015 UTC (10 years ago) by roy
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +2 -1
lines
Add RTF_BROADCAST to mark routes used for the broadcast address when
they are created on the fly. This makes it clear what the route is for
and allows an optimisation in ip_output() by avoiding a call to
in_broadcast() because most of the time we do talk to a host.
It also avoids a needless allocation for the storage of llinfo_arp and
thus vanishes from arp(8) - it showed as incomplete anyway so this
is a nice side effect.
Guard against this and routes marked with RTF_BLACKHOLE in
ip_fastforward().
While here, guard against routes marked with RTF_BLACKHOLE in
ip6_fastforward().
RTF_BROADCAST is IPv4 only, so don't bother checking that here.
Revision 1.87: download - view: text, markup, annotated - select for diffs
Thu Feb 26 09:54:46 2015 UTC (10 years ago) by roy
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +4 -1
lines
Introduce the routing flag RTF_LOCAL to track local address routes.
Add functions rt_ifa_addlocal() and rt_ifa_remlocal() to add and remove
local routes for the address and announce the new address and route
to the routing socket.
Add in_ifaddlocal() and in_ifremlocal() to use these functions.
Rename in6_if{add,rem}loop() to in6_if{add,rem}local() and use these
functions.
rtinit() no longer announces the address, just the network route for the
address. As such, calls to rt_newaddrmsg() have been removed from
in_addprefix() and in_scrubprefix().
This solves the problem of potentially more than one announcement, or no
announcement at all for the address in certain situations.
Revision 1.86: download - view: text, markup, annotated - select for diffs
Wed Feb 25 12:45:34 2015 UTC (10 years ago) by roy
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +2 -1
lines
Rename nd6_rtmsg() to rt_newmsg() and move into the generic routing code
as it's not IPv6 specific and will be used elsewhere.
Revision 1.85: download - view: text, markup, annotated - select for diffs
Tue Feb 24 20:06:09 2015 UTC (10 years ago) by roy
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +4 -5
lines
Clean comments and style.
Revision 1.81.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:35 2014 UTC (10 years, 7 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.81.2.1: preferred, colored; branchpoint 1.81: preferred, colored
Changes since revision 1.81.2.1: +0 -11
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:16 2014 UTC (10 years, 7 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: +1 -12
lines
Rebase.
Revision 1.84: download - view: text, markup, annotated - select for diffs
Fri Jun 6 01:02:47 2014 UTC (10 years, 9 months ago) by rmind
Branches: MAIN
CVS tags: tls-maxphys-base,
tls-earlyentropy-base,
nick-nhusb-base,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7
Branch point for: nick-nhusb
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +1 -11
lines
- Eliminate RTFREE() macro in favour of rtfree() function.
- Make rtcache() function static.
Revision 1.79.4.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:09 2014 UTC (10 years, 10 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.79.4.1: preferred, colored; branchpoint 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79.4.1: +3 -4
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.82.6.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:12 2014 UTC (10 years, 10 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.82: preferred, colored; next MAIN 1.83: preferred, colored
Changes since revision 1.82: +1 -2
lines
sync with head
Revision 1.83: download - view: text, markup, annotated - select for diffs
Sat Apr 26 11:10:10 2014 UTC (10 years, 10 months ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base9,
rmind-smpnet-nbase,
rmind-smpnet-base
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +1 -2
lines
It's been > 20years since rtioctl() did something. Let's just
remove that special way of returning EOPNOTSUPP.
Revision 1.81.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:25 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +3 -3
lines
resync from head
Revision 1.82: download - view: text, markup, annotated - select for diffs
Fri Mar 1 18:25:57 2013 UTC (12 years ago) by joerg
Branches: MAIN
CVS tags: 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,
rmind-smpnet
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +3 -3
lines
Retire OSI network stack. OK core@
Revision 1.79.4.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:38 2012 UTC (12 years, 11 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +2 -2
lines
sync with head
Revision 1.80.4.1: download - view: text, markup, annotated - select for diffs
Fri Feb 24 09:11:49 2012 UTC (13 years, 1 month ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.80: preferred, colored; next MAIN 1.81: preferred, colored
Changes since revision 1.80: +1 -2
lines
sync to -current.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Sat Feb 18 23:47:48 2012 UTC (13 years, 1 month ago) by rmind
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base10
Branch point for: tls-maxphys
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +1 -2
lines
rt_setkey: remove invalid assert, sockaddr_dup() may fail if no memory.
Revision 1.80: download - view: text, markup, annotated - select for diffs
Fri Nov 11 15:09:32 2011 UTC (13 years, 4 months ago) by gdt
Branches: MAIN
CVS tags: netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: jmcneill-usbmp
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +2 -1
lines
Move RTF_ANNOUNCE flag so that it no longer conflicts with RTF_PROTO2.
RTF_ANNOUNCE was defined as RTF_PROTO2. The flag is used to indicated
that host should act as a proxy for a link level arp or ndp request.
(If RTF_PROTO2 is used as an experimental flag (as advertised),
various problems can occur.)
This commit provides a first-class definition with its own bit for
RTF_ANNOUNCE, removes the old aliasing definitions, and adds support
for the new RTF_ANNOUNCE flag to netstat(8) and route(8).,
Also, remove unused RTF_ flags that collide with RTF_PROTO1:
netinet/icmp6.h defined RTF_PROBEMTU as RTF_PROTO1
netinet/if_inarp.h defined RTF_USETRAILERS as RTF_PROTO1
(Neither of these flags are used anywhere. Both have been removed
to reduce chances of collision with RTF_PROTO1.)
Figuring this out and the diff are the work of Beverly Schwartz of
BBN.
(Passed release build, boot in VM, with no apparently related atf
failures.)
Approved for Public Release, Distribution Unlimited
This material is based upon work supported by the Defense Advanced
Research Projects Agency and Space and Naval Warfare Systems Center,
Pacific, under Contract No. N66001-09-C-2073.
Revision 1.76.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:09:53 2011 UTC (13 years, 9 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.76: preferred, colored; next MAIN 1.77: preferred, colored
Changes since revision 1.76: +75 -55
lines
Sync with HEAD.
Revision 1.74.4.3: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:42:13 2011 UTC (13 years, 11 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.74.4.2: preferred, colored; branchpoint 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.4.2: +19 -6
lines
sync with head
Revision 1.79: download - view: text, markup, annotated - select for diffs
Thu Mar 31 19:40:52 2011 UTC (13 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base,
cherry-xenmp
Branch point for: yamt-pagecache
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +20 -7
lines
Hide the radix-trie implementation of the forwarding table so that we
will have an easier time replacing it with something different, even if
it is a second radix-trie implementation.
sys/net/route.c and sys/net/rtsock.c no longer operate directly on
radix_nodes or radix_node_heads.
Hopefully this will reduce the temptation to implement multipath or
source-based routing using grotty hacks to the grotty old radix-trie
code, too. :-)
Revision 1.74.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:55:54 2011 UTC (14 years ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.74.4.1: preferred, colored; branchpoint 1.74: preferred, colored
Changes since revision 1.74.4.1: +57 -49
lines
sync with head
Revision 1.76.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 8 16:20:01 2011 UTC (14 years, 1 month ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.76: preferred, colored; next MAIN 1.77: preferred, colored
Changes since revision 1.76: +57 -50
lines
Sync with HEAD
Revision 1.78: download - view: text, markup, annotated - select for diffs
Tue Feb 1 01:39:20 2011 UTC (14 years, 1 month ago) by matt
Branches: MAIN
CVS tags: bouyer-quota2-nbase,
bouyer-quota2-base
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +56 -49
lines
Add a new AF/PF_ROUTE which is 64-bit clean which makes the routing socket
interface (and its associated sysctls) act identically for both 32 and 64 bit
programs. The old unclean one remains for backward compatibility.
Revision 1.77: download - view: text, markup, annotated - select for diffs
Wed Jan 26 00:58:36 2011 UTC (14 years, 1 month ago) by dyoung
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +2 -2
lines
Update comment on RTM_CHGADDR to describe better what it's for.
Revision 1.76: download - view: text, markup, annotated - select for diffs
Fri Nov 12 16:30:26 2010 UTC (14 years, 4 months ago) by roy
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231,
jruoho-x86intr-base
Branch point for: jruoho-x86intr,
bouyer-quota2
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +2 -1
lines
Add RTM_CHGADDR to signal that an address on the interface has changed.
This is mainly used for notifying userland about active link address changes.
Revision 1.74.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:47:45 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +13 -4
lines
Sync with HEAD.
Revision 1.70.16.1.4.3: download - view: text, markup, annotated - select for diffs
Mon Aug 16 18:42:58 2010 UTC (14 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-k15
Diff to: previous 1.70.16.1.4.2: preferred, colored; branchpoint 1.70.16.1: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.16.1.4.2: +18 -18
lines
Use uint64_t instead of u_quad_t
Revision 1.70.6.3: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:55 2010 UTC (14 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.70.6.2: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.6.2: +13 -4
lines
sync with head.
Revision 1.74.4.1: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:59 2010 UTC (14 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +13 -4
lines
sync with head
Revision 1.75: download - view: text, markup, annotated - select for diffs
Sat Jun 26 14:24:28 2010 UTC (14 years, 8 months ago) by kefren
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +13 -4
lines
Add MPLS support, proposed on tech-net@ a couple of days ago
Welcome to 5.99.33
Revision 1.70.16.1.4.2: download - view: text, markup, annotated - select for diffs
Thu May 13 05:34:58 2010 UTC (14 years, 10 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.70.16.1.4.1: preferred, colored; branchpoint 1.70.16.1: preferred, colored
Changes since revision 1.70.16.1.4.1: +4 -1
lines
Add RTAX_NAMES macro to initialize an array of names for RTAX_*
Revision 1.70.16.1.4.1: download - view: text, markup, annotated - select for diffs
Tue May 11 21:00:13 2010 UTC (14 years, 10 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.70.16.1: preferred, colored
Changes since revision 1.70.16.1: +14 -14
lines
A few changes that make the route interface and related sysctls 32/64 bit
independent so the netbsd32 userland can use them.
Revision 1.70.6.2: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:27 2010 UTC (15 years ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.70.6.1: preferred, colored; branchpoint 1.70: preferred, colored
Changes since revision 1.70.6.1: +6 -6
lines
sync with head
Revision 1.74: download - view: text, markup, annotated - select for diffs
Tue Nov 3 00:30:31 2009 UTC (15 years, 4 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
uebayasi-xip-base1,
uebayasi-xip-base,
matt-premerge-20091211
Branch point for: uebayasi-xip,
rmind-uvmplock
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +6 -6
lines
s/u_quad_t/uint64_t/.
Revision 1.72.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:22:20 2009 UTC (15 years, 10 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +5 -1
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.70.6.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:14:15 2009 UTC (15 years, 10 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +54 -5
lines
sync with head.
Revision 1.70.14.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:37:17 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.70.14.1: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.14.1: +5 -1
lines
Sync with HEAD.
Revision 1.70.16.1: download - view: text, markup, annotated - select for diffs
Fri Apr 3 17:59:03 2009 UTC (15 years, 11 months ago) by snj
Branches: netbsd-5
CVS tags: 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-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
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-20091211,
matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Diff to: previous 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70: +5 -1
lines
Pull up following revision(s) (requested by christos in ticket #650):
sys/net/route.c: revision 1.117
sys/net/route.h: revision 1.73
sys/net/rtsock.c: revision 1.125
usr.sbin/arp/arp.c: revision 1.48
usr.sbin/pppd/pppd/sys-bsd.c: revision 1.59
Centralize the ROUNDUP and ADVANCE macro in a header file, give them an
RT_ prefix and use them appropriately, instead of making copies. Make
pppd use the RT_ROUNDUP macro; fixes proxyarp setting on 64 bit hosts.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Thu Apr 2 21:02:06 2009 UTC (15 years, 11 months ago) by christos
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-base,
jymxensuspend-base,
jym-xensuspend-nbase,
jym-xensuspend-base
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +5 -1
lines
Centralize the ROUNDUP and ADVANCE macro in a header file, give them an
RT_ prefix and use them appropriately, instead of making copies. Make
pppd use the RT_ROUNDUP macro; fixes proxyarp setting on 64 bit hosts.
XXX: All this should be pulled up to 5.0
Revision 1.70.14.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:20:12 2009 UTC (16 years, 2 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +50 -5
lines
Sync with HEAD.
Revision 1.69.6.2: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:31 2009 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.69.6.1: preferred, colored; branchpoint 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69.6.1: +49 -4
lines
Sync with HEAD.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Sun Jan 11 02:45:54 2009 UTC (16 years, 2 months ago) by christos
Branches: MAIN
CVS tags: nick-hppapmap-base2,
mjf-devfs2-base
Branch point for: jym-xensuspend
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +37 -5
lines
merge christos-time_t
Revision 1.70.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 28 20:13:05 2008 UTC (16 years, 2 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.70.2.3: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.2.3: +6 -6
lines
ort_metrics -> rt_metrics
rt_metrics -> nrt_metrics
for userland compatibility
Revision 1.70.12.1: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:26 2008 UTC (16 years, 3 months ago) by haad
Branches: haad-dm
Diff to: previous 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70: +14 -1
lines
Update haad-dm branch to haad-dm-base2.
Revision 1.70.2.3: download - view: text, markup, annotated - select for diffs
Mon Nov 10 00:08:25 2008 UTC (16 years, 4 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.70.2.2: preferred, colored; branchpoint 1.70: preferred, colored
Changes since revision 1.70.2.2: +3 -2
lines
add back RTM_IFINFO.
Revision 1.70.2.2: download - view: text, markup, annotated - select for diffs
Sun Nov 9 23:57:23 2008 UTC (16 years, 4 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.70.2.1: preferred, colored; branchpoint 1.70: preferred, colored
Changes since revision 1.70.2.1: +14 -2
lines
merge with head.
Revision 1.71: download - view: text, markup, annotated - select for diffs
Fri Nov 7 00:20:13 2008 UTC (16 years, 4 months ago) by dyoung
Branches: MAIN
CVS tags: haad-nbase2,
haad-dm-base2,
haad-dm-base,
christos-time_t-nbase,
christos-time_t-base,
ad-audiomp2-base,
ad-audiomp2
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +14 -1
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.69.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:43:07 2008 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +2 -1
lines
Sync with HEAD.
Revision 1.70.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 29 20:47:02 2008 UTC (16 years, 11 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +38 -6
lines
Welcome to the time_t=long long dev_t=uint64_t branch.
Revision 1.70: download - view: text, markup, annotated - select for diffs
Wed Mar 26 14:54:19 2008 UTC (17 years ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-pf42,
yamt-nfs-mp-base2,
yamt-nfs-mp-base,
wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
wrstuden-revivesa,
simonb-wapbl-nbase,
simonb-wapbl-base,
simonb-wapbl,
netbsd-5-base,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
matt-mips64-base2,
hpcarm-cleanup-nbase,
haad-dm-base1,
ad-socklock-base1
Branch point for: yamt-nfs-mp,
nick-hppapmap,
netbsd-5,
haad-dm,
christos-time_t
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +2 -1
lines
Defer processing of routing messages to a soft interrupt. These can be
generated at IPL_VM and it's not safe to call directly into the socket
layer at that level. Reviewed by matt@.
Revision 1.58.2.2: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:05:05 2008 UTC (17 years ago) by matt
Branches: matt-armv6
Diff to: previous 1.58.2.1: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.2.1: +19 -30
lines
sync with HEAD
Revision 1.41.2.8: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:37:01 2008 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.41.2.7: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.2.7: +3 -3
lines
sync with head.
Revision 1.69.2.1: download - view: text, markup, annotated - select for diffs
Fri Feb 22 02:53:33 2008 UTC (17 years, 1 month ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69: +3 -1
lines
imported Mobile IPv6 code developed by the SHISA project
(http://www.mobileip.jp/).
Revision 1.69: download - view: text, markup, annotated - select for diffs
Wed Feb 20 17:05:53 2008 UTC (17 years, 1 month ago) by matt
Branches: MAIN
CVS tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
nick-net80211-sync-base,
nick-net80211-sync,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
hpcarm-cleanup-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3
lines
s/u_\(int[0-9]*_t\)/u\1/g
(change u_int*_t to uint*_t)
Revision 1.58.8.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:07:02 2008 UTC (17 years, 1 month ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +23 -33
lines
Sync with HEAD.
Revision 1.41.2.7: download - view: text, markup, annotated - select for diffs
Mon Feb 11 15:00:00 2008 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.41.2.6: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.6: +2 -2
lines
sync with head.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Mon Feb 11 04:47:21 2008 UTC (17 years, 1 month ago) by simonb
Branches: MAIN
CVS tags: mjf-devfs-base
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +2 -2
lines
Don't look for <stdbool.h> if compiling _STANDALONE as well.
Revision 1.41.2.6: download - view: text, markup, annotated - select for diffs
Mon Feb 4 09:24:38 2008 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.41.2.5: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.5: +11 -1
lines
sync with head.
Revision 1.58.14.6: download - view: text, markup, annotated - select for diffs
Wed Jan 23 19:27:45 2008 UTC (17 years, 2 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.58.14.5: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.14.5: +10 -0
lines
Sync with HEAD.
Revision 1.67: download - view: text, markup, annotated - select for diffs
Mon Jan 21 20:25:33 2008 UTC (17 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: bouyer-xeni386-nbase
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +17 -13
lines
struct route is part of the kernel ABI (!!!), so move it back
outside of #ifdef _KERNEL. #include stdbool.h if !_KERNEL.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Jan 21 20:04:37 2008 UTC (17 years, 2 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +13 -13
lines
Move struct route inside of #ifdef _KERNEL to protect userland from
it.
Revision 1.41.2.5: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:47:08 2008 UTC (17 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.41.2.4: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.4: +14 -36
lines
sync with head
Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:11:24 2008 UTC (17 years, 2 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +7 -1
lines
In rtflushall(), do not clear a route cache by removing its rtentry
reference, but mark the cache 'invalid'. Let the next user of the
route cache check to whether or not the cache is valid, and update
the rtentry reference if necessary. In this way, avoid hairy
splnet()/splx() protection of route caches, which I never did trust.
Revision 1.58.14.5: download - view: text, markup, annotated - select for diffs
Sat Jan 19 12:15:30 2008 UTC (17 years, 2 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.58.14.4: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.14.4: +0 -21
lines
Sync with HEAD
Revision 1.64: download - view: text, markup, annotated - select for diffs
Mon Jan 14 05:00:18 2008 UTC (17 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: bouyer-xeni386-base
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +1 -7
lines
Use rtcache_validate() instead of rtcache_getrt(). Delete rtcache_getrt().
In rtcache_lookup2(), use the return values of rtcache_validate()
and _rtcache_init() instead of looking at _ro_rt. Also, check the
return code of rtcache_setdst() for an error.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Sat Jan 12 02:58:58 2008 UTC (17 years, 2 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +1 -16
lines
Good-bye, rtcache_check(). Call both rtcache_validate() and
rtcache_update(,1) instead of rtcache_check().
Revision 1.58.14.4: download - view: text, markup, annotated - select for diffs
Fri Jan 11 19:19:16 2008 UTC (17 years, 2 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.58.14.3: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.14.3: +3 -3
lines
Sync with HEAD
Revision 1.62: download - view: text, markup, annotated - select for diffs
Fri Jan 11 01:38:45 2008 UTC (17 years, 2 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +4 -4
lines
Cosmetic: remove redundant 'not' from a comment, re-wrap lines.
Revision 1.58.14.3: download - view: text, markup, annotated - select for diffs
Thu Jan 10 23:44:36 2008 UTC (17 years, 2 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.58.14.2: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.14.2: +3 -3
lines
Sync with HEAD
Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Jan 10 08:03:22 2008 UTC (17 years, 2 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +4 -4
lines
Make many void rtcache_X() routines return struct rtentry *, so
that we can make many back-to-back rtcache_X();rtcache_getrt()
calls into one rtcache_X() call.
Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:57:16 2008 UTC (17 years, 2 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +21 -22
lines
sync with HEAD
Revision 1.58.14.2: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:11:50 2008 UTC (17 years, 2 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.58.14.1: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.14.1: +12 -8
lines
Sync with HEAD
Revision 1.60: download - view: text, markup, annotated - select for diffs
Fri Jan 4 23:26:44 2008 UTC (17 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: matt-armv6-base
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +13 -9
lines
Replace rtcache_down() with rtcache_validate() and update rtcache_down()
uses.
Revision 1.58.14.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:57:11 2008 UTC (17 years, 2 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +12 -17
lines
Sync with HEAD
Revision 1.58.10.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:57:34 2007 UTC (17 years, 2 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +12 -17
lines
Sync with head.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Dec 20 19:53:31 2007 UTC (17 years, 3 months ago) by dyoung
Branches: MAIN
CVS tags: vmlocking2-base3
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +12 -17
lines
Poison struct route->ro_rt uses in the kernel by changing the name
to _ro_rt. Use rtcache_getrt() to access a route cache's struct
rtentry *.
Introduce struct ifnet->if_dl that always points at the interface
identifier/link-layer address. Make code that treated the first
ifaddr on struct ifnet->if_addrlist as the interface address use
if_dl, instead.
Remove stale debugging code from net/route.c. Move the rtflush()
code into rtcache_clear() and delete rtflush(). Delete rtalloc(),
because nothing uses it any more.
Make ND6_HINT an inline, lowercase subroutine, nd6_hint.
I've done my best to convert IP Filter, the ISO stack, and the
AppleTalk stack to rtcache_getrt(). They compile, but I have not
tested them. I have given the changes to PF, GRE, IPv4 and IPv6
stacks a lot of exercise.
Revision 1.52.2.4: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:44:44 2007 UTC (17 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.52.2.3: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.2.3: +4 -1
lines
Sync with head.
Revision 1.57.4.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:48:59 2007 UTC (17 years, 6 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +4 -1
lines
Sync with HEAD.
Revision 1.41.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:42:24 2007 UTC (17 years, 6 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.41.2.3: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.3: +100 -28
lines
sync with head.
Revision 1.56.2.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:23:13 2007 UTC (17 years, 6 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.56.2.1: preferred, colored; branchpoint 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56.2.1: +4 -1
lines
Sync with HEAD.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Mon Aug 27 00:34:01 2007 UTC (17 years, 7 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
vmlocking-base,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
nick-csl-alignment-base5,
matt-armv6-prevmlocking,
jmcneill-pm-base,
jmcneill-base,
cube-autoconf-base,
cube-autoconf,
bouyer-xenamd64-base2,
bouyer-xenamd64-base,
bouyer-xenamd64
Branch point for: vmlocking2,
mjf-devfs,
matt-armv6,
bouyer-xeni386
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +4 -1
lines
Add a new routing message type, RTM_SETGATE. We can use an
RTM_SETGATE message to ask the link layer to fill in the link-layer
nexthop before we try to detect a duplicate route in a multipath-capable
kernel.
Revision 1.52.2.3: download - view: text, markup, annotated - select for diffs
Mon Aug 20 21:27:55 2007 UTC (17 years, 7 months ago) by ad
Branches: vmlocking
Diff to: previous 1.52.2.2: preferred, colored; branchpoint 1.52: preferred, colored
Changes since revision 1.52.2.2: +41 -8
lines
Sync with HEAD.
Revision 1.56.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:49:42 2007 UTC (17 years, 7 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +41 -8
lines
Sync with HEAD.
Revision 1.57.6.2: download - view: text, markup, annotated - select for diffs
Thu Jul 19 20:48:54 2007 UTC (17 years, 8 months ago) by dyoung
Branches: matt-mips64
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: +452 -0
lines
Take steps to hide the radix_node implementation of the forwarding table
from the forwarding table's users:
Introduce rt_walktree() for walking the routing table and
applying a function to each rtentry. Replace most
rn_walktree() calls with it.
Use rt_getkey()/rt_setkey() to get/set a route's destination.
Keep a pointer to the sockaddr key in the rtentry, so that
rtentry users do not have to grovel in the radix_node for
the key.
Add a RTM_GET method to rtrequest. Use that instead of
radix_node lookups in, e.g., carp(4).
Add sys/net/link_proto.c, which supplies sockaddr routines for
link-layer socket addresses (sockaddr_dl).
Cosmetic:
Constify. KNF. Stop open-coding LIST_FOREACH, TAILQ_FOREACH,
et cetera. Use NULL instead of 0 for null pointers. Use
__arraycount(). Reduce gratuitous parenthesization.
Stop using variadic arguments for rip6_output(), it is
unnecessary.
Remove the unnecessary rtentry member rt_genmask and the
code to maintain it, since nothing actually used it.
Make rt_maskedcopy() easier to read by using meaningful variable
names.
Extract a subroutine intern_netmask() for looking up a netmask in
the masks table.
Start converting backslash-ridden IPv6 macros in
sys/netinet6/in6_var.h into inline subroutines that one
can read without special eyeglasses.
One functional change: when the kernel serves an RTM_GET, RTM_LOCK,
or RTM_CHANGE request, it applies the netmask (if supplied) to a
destination before searching for it in the forwarding table.
I have changed sys/netinet/ip_carp.c, carp_setroute(), to remove
the unlawful radix_node knowledge.
Apart from the changes to carp(4), netiso, ATM, and strip(4), I
have run the changes on three nodes in my wireless routing testbed,
which involves IPv4 + IPv6 dynamic routing acrobatics, and it's
working beautifully so far.
Revision 1.57.6.1
Thu Jul 19 20:48:53 2007 UTC (17 years, 8 months ago) by dyoung
Branches: matt-mips64
FILE REMOVED
Changes since revision 1.57: +0 -452
lines
file route.h was added on branch matt-mips64 on 2007-07-19 20:48:54 +0000
Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Jul 19 20:48:53 2007 UTC (17 years, 8 months ago) by dyoung
Branches: MAIN
CVS tags: matt-mips64-base,
hpcarm-cleanup
Branch point for: matt-mips64,
jmcneill-pm
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +41 -8
lines
Take steps to hide the radix_node implementation of the forwarding table
from the forwarding table's users:
Introduce rt_walktree() for walking the routing table and
applying a function to each rtentry. Replace most
rn_walktree() calls with it.
Use rt_getkey()/rt_setkey() to get/set a route's destination.
Keep a pointer to the sockaddr key in the rtentry, so that
rtentry users do not have to grovel in the radix_node for
the key.
Add a RTM_GET method to rtrequest. Use that instead of
radix_node lookups in, e.g., carp(4).
Add sys/net/link_proto.c, which supplies sockaddr routines for
link-layer socket addresses (sockaddr_dl).
Cosmetic:
Constify. KNF. Stop open-coding LIST_FOREACH, TAILQ_FOREACH,
et cetera. Use NULL instead of 0 for null pointers. Use
__arraycount(). Reduce gratuitous parenthesization.
Stop using variadic arguments for rip6_output(), it is
unnecessary.
Remove the unnecessary rtentry member rt_genmask and the
code to maintain it, since nothing actually used it.
Make rt_maskedcopy() easier to read by using meaningful variable
names.
Extract a subroutine intern_netmask() for looking up a netmask in
the masks table.
Start converting backslash-ridden IPv6 macros in
sys/netinet6/in6_var.h into inline subroutines that one
can read without special eyeglasses.
One functional change: when the kernel serves an RTM_GET, RTM_LOCK,
or RTM_CHANGE request, it applies the netmask (if supplied) to a
destination before searching for it in the forwarding table.
I have changed sys/netinet/ip_carp.c, carp_setroute(), to remove
the unlawful radix_node knowledge.
Apart from the changes to carp(4), netiso, ATM, and strip(4), I
have run the changes on three nodes in my wireless routing testbed,
which involves IPv4 + IPv6 dynamic routing acrobatics, and it's
working beautifully so far.
Revision 1.52.2.2: download - view: text, markup, annotated - select for diffs
Sun Jul 15 13:27:55 2007 UTC (17 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.52.2.1: preferred, colored; branchpoint 1.52: preferred, colored
Changes since revision 1.52.2.1: +8 -1
lines
Sync with head.
Revision 1.52.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:11:03 2007 UTC (17 years, 8 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +55 -19
lines
Sync with head.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Sat Jun 9 03:07:22 2007 UTC (17 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: nick-csl-alignment-base,
mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +8 -1
lines
Get rid of radix_node_head.rnh_walktree, because it is only ever
set to rn_walktree.
Introduce rt_walktree(), which applies a subroutine to every route
in a particular address family. Use it instead of rn_walktree()
virtually everywhere. This helps to hide the routing table
implementation.
Revision 1.52.2.1: download - view: text, markup, annotated - select for diffs
Fri Jun 8 14:17:37 2007 UTC (17 years, 9 months ago) by ad
Branches: vmlocking
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +48 -19
lines
Sync with head.
Revision 1.50.2.3: download - view: text, markup, annotated - select for diffs
Mon May 7 10:55:54 2007 UTC (17 years, 10 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.50.2.2: preferred, colored; branchpoint 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50.2.2: +48 -19
lines
sync with head.
Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun May 6 02:17:54 2007 UTC (17 years, 10 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-idlelwp-base8
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +23 -5
lines
Factor rtcache_lookup2() out of rtcache_lookup1(), for re-use in
the IPv6 stack. rtcache_lookup2() takes an int * argument that it
writes with 1 if we had a cache 'hit', 0 if there was a cache
'miss'.
Revision 1.54: download - view: text, markup, annotated - select for diffs
Wed May 2 20:40:23 2007 UTC (17 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +28 -18
lines
Eliminate address family-specific route caches (struct route, struct
route_in6, struct route_iso), replacing all caches with a struct
route.
The principle benefit of this change is that all of the protocol
families can benefit from route cache-invalidation, which is
necessary for correct routing. Route-cache invalidation fixes an
ancient PR, kern/3508, at long last; it fixes various other PRs,
also.
Discussions with and ideas from Joerg Sonnenberger influenced this
work tremendously. Of course, all design oversights and bugs are
mine.
DETAILS
1 I added to each address family a pool of sockaddrs. I have
introduced routines for allocating, copying, and duplicating,
and freeing sockaddrs:
struct sockaddr *sockaddr_alloc(sa_family_t af, int flags);
struct sockaddr *sockaddr_copy(struct sockaddr *dst,
const struct sockaddr *src);
struct sockaddr *sockaddr_dup(const struct sockaddr *src, int flags);
void sockaddr_free(struct sockaddr *sa);
sockaddr_alloc() returns either a sockaddr from the pool belonging
to the specified family, or NULL if the pool is exhausted. The
returned sockaddr has the right size for that family; sa_family
and sa_len fields are initialized to the family and sockaddr
length---e.g., sa_family = AF_INET and sa_len = sizeof(struct
sockaddr_in). sockaddr_free() puts the given sockaddr back into
its family's pool.
sockaddr_dup() and sockaddr_copy() work analogously to strdup()
and strcpy(), respectively. sockaddr_copy() KASSERTs that the
family of the destination and source sockaddrs are alike.
The 'flags' argumet for sockaddr_alloc() and sockaddr_dup() is
passed directly to pool_get(9).
2 I added routines for initializing sockaddrs in each address
family, sockaddr_in_init(), sockaddr_in6_init(), sockaddr_iso_init(),
etc. They are fairly self-explanatory.
3 structs route_in6 and route_iso are no more. All protocol families
use struct route. I have changed the route cache, 'struct route',
so that it does not contain storage space for a sockaddr. Instead,
struct route points to a sockaddr coming from the pool the sockaddr
belongs to. I added a new method to struct route, rtcache_setdst(),
for setting the cache destination:
int rtcache_setdst(struct route *, const struct sockaddr *);
rtcache_setdst() returns 0 on success, or ENOMEM if no memory is
available to create the sockaddr storage.
It is now possible for rtcache_getdst() to return NULL if, say,
rtcache_setdst() failed. I check the return value for NULL
everywhere in the kernel.
4 Each routing domain (struct domain) has a list of live route
caches, dom_rtcache. rtflushall(sa_family_t af) looks up the
domain indicated by 'af', walks the domain's list of route caches
and invalidates each one.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun Apr 22 13:05:21 2007 UTC (17 years, 11 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +2 -1
lines
rtcache_clear is defined as static void in route.c, but it's used
in netinet/in_route.c. Move the prototype into route.h to fix
the build.
Revision 1.50.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:59:15 2007 UTC (18 years ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.50.2.1: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.2.1: +3 -3
lines
Sync with HEAD.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:03:18 2007 UTC (18 years ago) by christos
Branches: MAIN
CVS tags: thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: vmlocking,
mjf-ufs-trans
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -3
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:54:46 2007 UTC (18 years ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +17 -1
lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
Revision 1.41.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:11:37 2007 UTC (18 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.41.2.2: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.2: +27 -1
lines
sync with head.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Sat Feb 17 22:34:10 2007 UTC (18 years, 1 month ago) by dyoung
Branches: MAIN
CVS tags: ad-audiomp-base,
ad-audiomp
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +17 -1
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.43.20.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 01:04:12 2007 UTC (18 years, 2 months ago) by ad
Branches: newlock2
Diff to: previous 1.43.20.1: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.20.1: +39 -45
lines
Sync with head.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri Jan 5 16:40:08 2007 UTC (18 years, 2 months ago) by joerg
Branches: MAIN
CVS tags: post-newlock2-merge,
newlock2-nbase,
newlock2-base
Branch point for: yamt-idlelwp
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +11 -1
lines
Add a debug option for the route cache to help tracing down issues
like PR 35272 and 35318. When the kernel is compiled with
-DRTCACHE_DEBUG, all rtcache entries are logged to a list with the place
they got initialised. This allows overwrites, double inits and other
manual messing to be detected.
Revision 1.41.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:21 2006 UTC (18 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.41.2.1: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.1: +43 -11
lines
sync with head.
Revision 1.43.22.2: download - view: text, markup, annotated - select for diffs
Mon Dec 18 11:42:16 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.43.22.1: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.22.1: +23 -4
lines
sync with head.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Fri Dec 15 21:18:53 2006 UTC (18 years, 3 months ago) by joerg
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +23 -4
lines
Introduce new helper functions to abstract the route caching.
rtcache_init and rtcache_init_noclone lookup ro_dst and store
the result in ro_rt, taking care of the reference counting and
calling the domain specific route cache.
rtcache_free checks if a route was cashed and frees the reference.
rtcache_copy copies ro_dst of the given struct route, checking that
enough space is available and incrementing the reference count of the
cached rtentry if necessary.
rtcache_check validates that the cached route is still up. If it isn't,
it tries to look it up again. Afterwards ro_rt is either a valid again
or NULL.
rtcache_copy is used internally.
Adjust to callers of rtalloc/rtflush in the tree to check the sanity of
ro_dst first (if necessary). If it doesn't fit the expectations, free
the cache, otherwise check if the cached route is still valid. After
that combination, a single check for ro_rt == NULL is enough to decide
whether a new lookup needs to be done with a different ro_dst.
Make the route checking in gre stricter by repeating the loop check
after revalidation.
Remove some unused RADIX_MPATH code in in6_src.c. The logic is slightly
changed here to first validate the route and check RTF_GATEWAY
afterwards. This is sementically equivalent though.
etherip doesn't need sc_route_expire similiar to the gif changes from
dyoung@ earlier.
Based on the earlier patch from dyoung@, reviewed and discussed with
him.
Revision 1.43.22.1: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:19:00 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +24 -11
lines
sync with head.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Dec 9 05:33:06 2006 UTC (18 years, 3 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-splraiseipl-base3
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +16 -11
lines
Here are various changes designed to protect against bad IPv4
routing caused by stale route caches (struct route). Route caches
are sprinkled throughout PCBs, the IP fast-forwarding table, and
IP tunnel interfaces (gre, gif, stf).
Stale IPv6 and ISO route caches will be treated by separate patches.
Thank you to Christoph Badura for suggesting the general approach
to invalidating route caches that I take here.
Here are the details:
Add hooks to struct domain for tracking and for invalidating each
domain's route caches: dom_rtcache, dom_rtflush, and dom_rtflushall.
Introduce helper subroutines, rtflush(ro) for invalidating a route
cache, rtflushall(family) for invalidating all route caches in a
routing domain, and rtcache(ro) for notifying the domain of a new
cached route.
Chain together all IPv4 route caches where ro_rt != NULL. Provide
in_rtcache() for adding a route to the chain. Provide in_rtflush()
and in_rtflushall() for invalidating IPv4 route caches. In
in_rtflush(), set ro_rt to NULL, and remove the route from the
chain. In in_rtflushall(), walk the chain and remove every route
cache.
In rtrequest1(), call rtflushall() to invalidate route caches when
a route is added.
In gif(4), discard the workaround for stale caches that involves
expiring them every so often.
Replace the pattern 'RTFREE(ro->ro_rt); ro->ro_rt = NULL;' with a
call to rtflush(ro).
Update ipflow_fastforward() and all other users of route caches so
that they expect a cached route, ro->ro_rt, to turn to NULL.
Take care when moving a 'struct route' to rtflush() the source and
to rtcache() the destination.
In domain initializers, use .dom_xxx tags.
KNF here and there.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Dec 7 19:37:08 2006 UTC (18 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -21
lines
Deinline rt_get_ifa. Keep it in route.c as it is part of the routing
API, even though rtsock.c is the only user right now.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Thu Dec 7 19:20:14 2006 UTC (18 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +2 -23
lines
Deinline rt_replace_ifa and move rt_set_ifa and rt_set_ifa1 to
route.c as they are not used outside that file.
Revision 1.43.20.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:30 2006 UTC (18 years, 4 months ago) by ad
Branches: newlock2
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +49 -1
lines
Sync with head.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Mon Nov 13 19:14:30 2006 UTC (18 years, 4 months ago) by dyoung
Branches: MAIN
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
matt-nb4-arm-base,
matt-nb4-arm
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +6 -6
lines
Fix bugs in rt_get_ifa() and put aside the sequence number stuff,
which isn't ready for primetime yet.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Mon Nov 13 05:13:41 2006 UTC (18 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +49 -1
lines
Add a source-address selection policy mechanism to the kernel.
Also, add ioctls SIOCGIFADDRPREF/SIOCSIFADDRPREF to get/set preference
numbers for addresses. Make ifconfig(8) set/display preference
numbers.
To activate source-address selection policies in your kernel, add
'options IPSELSRC' to your kernel configuration.
Miscellaneous changes in support of source-address selection:
1 Factor out some common code, producing rt_replace_ifa().
2 Abbreviate a for-loop with TAILQ_FOREACH().
3 Add the predicates on IPv4 addresses IN_LINKLOCAL() and
IN_PRIVATE(), that are true for link-local unicast
(169.254/16) and RFC1918 private addresses, respectively.
Add the predicate IN_ANY_LOCAL() that is true for link-local
unicast and multicast.
4 Add IPv4-specific interface attach/detach routines,
in_domifattach and in_domifdetach, which build #ifdef
IPSELSRC.
See in_getifa(9) for a more thorough description of source-address
selection policy.
Revision 1.41.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:10:27 2006 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -4
lines
sync with head.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:24:52 2005 UTC (19 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5,
yamt-uio_vmspace,
yamt-splraiseipl-base2,
yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
yamt-pdpolicy-base6,
yamt-pdpolicy-base5,
yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
yamt-pdpolicy,
simonb-timecounters-base,
simonb-timecounters,
simonb-timcounters-final,
rpaulo-netinet-merge-pcb-base,
rpaulo-netinet-merge-pcb,
peter-altq-base,
peter-altq,
gdamore-uart-base,
gdamore-uart,
elad-kernelauth-base,
elad-kernelauth,
chap-midi-nbase,
chap-midi-base,
chap-midi,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: yamt-splraiseipl,
newlock2
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -3
lines
merge ktrace-lwp.
Revision 1.35.2.7: download - view: text, markup, annotated - select for diffs
Sun Dec 11 10:29:19 2005 UTC (19 years, 3 months ago) by christos
Branches: ktrace-lwp
Diff to: previous 1.35.2.6: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.2.6: +2 -2
lines
Sync with head.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat Dec 10 23:21:39 2005 UTC (19 years, 3 months ago) by elad
Branches: MAIN
CVS tags: ktrace-lwp-base
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -2
lines
Multiple inclusion protection, as suggested by christos@ on tech-kern@
few days ago.
Revision 1.35.2.6: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:10:33 2005 UTC (19 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.35.2.5: preferred, colored
Changes since revision 1.35.2.5: +7 -3
lines
Sync with HEAD. Here we go again...
Revision 1.41: download - view: text, markup, annotated - select for diffs
Wed Jun 22 06:16:02 2005 UTC (19 years, 9 months ago) by dyoung
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
Branch point for: yamt-lazymbuf
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -1
lines
Resolve conflicts in importation of 18-May-2005 ath(4) / net80211(9)
from FreeBSD. Introduce compatibility shims (sys/dev/ic/ath_netbsd.[ch],
sys/net80211/ieee80211_netbsd.[ch]). Update drivers (an, atu, atw,
awi, ipw, iwi, rtw, wi) for the new net80211(9) API.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun May 29 21:22:53 2005 UTC (19 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +5 -3
lines
- sprinkle const
- remove unneeded casts
- use more mem*() instead of b*() funcs.
Revision 1.38.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:32 2005 UTC (19 years, 10 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +3 -3
lines
sync with -current
Revision 1.38.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:36:32 2005 UTC (20 years ago) by yamt
Branches: yamt-km
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +3 -3
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.35.2.5: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:53:00 2005 UTC (20 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.35.2.4: preferred, colored
Changes since revision 1.35.2.4: +3 -3
lines
Sync with HEAD.
Hi Perry!
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Feb 26 22:45:09 2005 UTC (20 years ago) by perry
Branches: MAIN
CVS tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3,
kent-audio2-base
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -3
lines
nuke trailing whitespace
Revision 1.35.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:36:42 2004 UTC (20 years, 6 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.35.2.3: preferred, colored
Changes since revision 1.35.2.3: +3 -3
lines
Fix the sync with head I botched.
Revision 1.35.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:54:16 2004 UTC (20 years, 6 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.35.2.2: preferred, colored
Changes since revision 1.35.2.2: +3 -3
lines
Sync with HEAD.
Revision 1.35.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:54:20 2004 UTC (20 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.35.2.1: preferred, colored
Changes since revision 1.35.2.1: +45 -48
lines
Sync with HEAD
Revision 1.38: download - view: text, markup, annotated - select for diffs
Wed Apr 21 21:03:43 2004 UTC (20 years, 11 months ago) by matt
Branches: MAIN
CVS tags: yamt-km-base2,
yamt-km-base,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-km,
kent-audio2
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +40 -41
lines
ANSI-fy and some additional de-__P and constification.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Apr 21 04:17:28 2004 UTC (20 years, 11 months ago) by matt
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +13 -11
lines
Constify if.c radix.c and route.c (and fix related fallout).
Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:32:57 2003 UTC (21 years, 7 months ago) by agc
Branches: MAIN
CVS tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2-0,
netbsd-2
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -6
lines
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
Revision 1.35.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:26:57 2003 UTC (21 years, 8 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3
lines
Apply the aborted ktrace-lwp changes to a specific branch. This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it. This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:31:53 2003 UTC (21 years, 8 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -2
lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:22:07 2003 UTC (21 years, 8 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -3
lines
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
Revision 1.29.4.2: download - view: text, markup, annotated - select for diffs
Tue Jun 17 11:54:16 2003 UTC (21 years, 9 months ago) by msaitoh
Branches: netbsd-1-6
CVS tags: 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
Diff to: previous 1.29.4.1: preferred, colored; branchpoint 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29.4.1: +2 -1
lines
Pullup rev. 1.32 (requested by itojun in ticket #984):
remove all entries in rt timer queue on ip_mtudisc change, instead of
destroying the queue.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Jan 18 12:02:40 2003 UTC (22 years, 2 months ago) by wiz
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -3
lines
bandwidth, not bandwith.
Revision 1.29.4.1: download - view: text, markup, annotated - select for diffs
Wed Dec 11 18:14:29 2002 UTC (22 years, 3 months ago) by he
Branches: netbsd-1-6
CVS tags: 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.29: preferred, colored
Changes since revision 1.29: +2 -2
lines
Pull up revision 1.31 (requested by itojun in ticket #982):
Add an argument to rt_timer_remove_all(), to specify if we
need to call timeout routine on removal.
Revision 1.27.2.4: download - view: text, markup, annotated - select for diffs
Wed Dec 11 06:46:34 2002 UTC (22 years, 3 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.27.2.3: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.2.3: +2 -1
lines
Sync with HEAD.
Revision 1.22.4.2: download - view: text, markup, annotated - select for diffs
Wed Nov 13 00:35:00 2002 UTC (22 years, 4 months ago) by itojun
Branches: netbsd-1-5
Diff to: previous 1.22.4.1: preferred, colored; branchpoint 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22.4.1: +3 -2
lines
sys/net/route.c 1.55 via patch
sys/net/route.h 1.32
sys/netinet/ip_input.c 1.163
Remove all entries on rt timer queue on ip_mtudisc change, instead
of destroying the queue.
(itojun, redo)
Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue Nov 12 02:10:13 2002 UTC (22 years, 4 months 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
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -1
lines
remove all entries in rt timer queue on ip_mtudisc change, instead of
destroying the queue.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Nov 12 01:37:30 2002 UTC (22 years, 4 months ago) by itojun
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -2
lines
add an argument to rt_timer_remove_all(), to specify if we need to call
timeout routine on removal.
Revision 1.27.2.3: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:15:05 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.27.2.2: preferred, colored
Changes since revision 1.27.2.2: +2 -2
lines
Catch up to -current
Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Nov 2 07:26:57 2002 UTC (22 years, 4 months ago) by perry
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -2
lines
/*CONTCOND*/ while (0)'ed macros
Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:50:34 2002 UTC (22 years, 9 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +4 -4
lines
catch up with -current on kqueue branch
Revision 1.27.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:48:23 2002 UTC (22 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.27.2.1: preferred, colored
Changes since revision 1.27.2.1: +4 -4
lines
Catch up to -current.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun May 12 20:40:12 2002 UTC (22 years, 10 months ago) by matt
Branches: MAIN
CVS tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
kqueue-beforemerge,
kqueue-base,
kqueue-aftermerge,
gehenna-devsw-base,
gehenna-devsw
Branch point for: netbsd-1-6
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -4
lines
Eliminate more commons.
Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 9 01:58:17 2001 UTC (23 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3
lines
Catch up with -current.
Revision 1.22.4.1: download - view: text, markup, annotated - select for diffs
Thu Apr 5 12:43:36 2001 UTC (23 years, 11 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -1
lines
Pull up revisions 1.25-1.26 (via patch, requested by itojun):
Mark cloned routes with RTF_CLONED. Present it in ``netstat -r''
output by ``c''.
Let static routes overwrite cloned routes, as cloned routes can
come back again if necessary. Should fix PR#11916 and maybe some
other PRs with ARP behavior.
Cleanup cloned route when parent route (RTF_CLONING) goes away.
Adds rt_parent to link parent from child (like NRL did, ours do
refcnt rt_refcnt properly).
Revision 1.19.2.5: download - view: text, markup, annotated - select for diffs
Mon Mar 12 13:31:49 2001 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.19.2.4: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.2.4: +7 -7
lines
Sync with HEAD.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Mar 8 03:22:28 2001 UTC (24 years ago) by enami
Branches: MAIN
CVS tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base,
thorpej-mips-cache-base,
thorpej-mips-cache,
thorpej-devvp-base3,
thorpej-devvp-base2,
thorpej-devvp-base,
thorpej-devvp,
pre-chs-ubcperf,
post-chs-ubcperf,
newlock-base,
newlock,
ifpoll-base,
eeh-devprop-base,
eeh-devprop
Branch point for: kqueue
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3
lines
- lineup comment.
- fix typo in comment.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Feb 21 05:45:11 2001 UTC (24 years, 1 month ago) by itojun
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +6 -6
lines
use u_quad_t for rtstat.
not sure if it really matters, but short (32K) looks way too small given
recent fat pipes connecting *BSD boxes, and our great uptime :-).
Revision 1.19.2.4: download - view: text, markup, annotated - select for diffs
Sun Feb 11 19:17:10 2001 UTC (24 years, 1 month ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.19.2.3: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.2.3: +3 -1
lines
Sync with HEAD.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Jan 27 10:39:33 2001 UTC (24 years, 1 month ago) by itojun
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -1
lines
cleanup cloned route when parent route (RTF_CLONING) goes away.
adds rt_parent to link parent from child (like NRL did, ours do refcnt
rt_refcnt properly).
bsdi rt_walkbranch would speedup the processing, but since the code will not
be visited too frequently, the current code (with rt_walktree) should be okay.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Jan 27 04:49:34 2001 UTC (24 years, 1 month ago) by itojun
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -1
lines
mark cloned routes with RTF_CLONED. present it with netstat -r by "c".
let static routes overwrite cloned routes, as cloned routes can come back again
if necessary. behavior same as freebsd/bsdi, code partially from bsdi42.
(NRL rt->rt_parent was not added)
should fix PR 11916 and maybe some other PRs with ARP behavior.
recompilation of usr.sbin/route6d is suggested.
Revision 1.19.2.3: download - view: text, markup, annotated - select for diffs
Thu Jan 18 09:23:54 2001 UTC (24 years, 2 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.19.2.2: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.2.2: +6 -0
lines
Sync with head (for UBC+NFS fixes, mostly).
Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Jan 17 04:05:42 2001 UTC (24 years, 2 months ago) by itojun
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +7 -1
lines
pull post-4.4BSD change to sys/net/route.c from BSD/OS 4.2 (UCB copyrighted).
have sys/net/route.c:rtrequest1(), which takes rt_addrinfo * as the argument.
pass rt_addrinfo all the way down to rtrequest, and ifa->ifa_rtrequest.
3rd arg of ifa->ifa_rtrequest is now rt_addrinfo * instead of sockaddr *
(almost noone is using it anyways).
benefit: the follwoing command now works. previously we need two route(8)
invocations, "add" then "change".
# route add -inet6 default ::1 -ifp gif0
remove unsafe typecast in rtrequest(), from rtentry * to sockaddr *. it was
introduced by 4.3BSD-reno and never corrected.
XXX is eon_rtrequest() change correct regarding to 3rd arg?
eon_rtrequest() and rtrequest() were incorrect since 4.3BSD-reno,
so i do not have correct answer in the source code.
someone with more clue about netiso-over-ip, please help.
Revision 1.19.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 13 15:50:34 2000 UTC (24 years, 3 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.19.2.1: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.2.1: +3 -1
lines
Sync with HEAD (for UBC fixes).
Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Dec 9 01:29:45 2000 UTC (24 years, 3 months ago) by itojun
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -1
lines
update icmp6 too big validation. the change is necessary since pmtud is
mandatory for IPv6 (so we can't just validate by using connected pcb - we need
to allow traffic from unconnected pcb to do pmtud).
- if the traffic is validated by xx_ctlinput, allow up to "hiwat" pmtud
route entries.
- if the traffic was not validated by xx_ctlinput, allow up to "lowat" pmtud
route entries (there's upper limit, so bad guys cannot blow up our routing
table).
sync with kame
XXX need to think again about default hiwat/lowat value.
XXX victim selection to help starvation case
Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 18:10:11 2000 UTC (24 years, 4 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +7 -4
lines
Update thorpej_scsipi to -current as of a month ago
Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu May 4 17:33:03 2000 UTC (24 years, 10 months ago) by ragge
Branches: MAIN
CVS tags: netbsd-1-5-base,
netbsd-1-5-RELEASE,
netbsd-1-5-BETA2,
netbsd-1-5-BETA,
netbsd-1-5-ALPHA2,
minoura-xpg4dl-base,
minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -3
lines
Change rt_refcnt from short to int, to allow more than 32k routes thru
one interface without unexpected side effects.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Mar 6 20:49:00 2000 UTC (25 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -2
lines
- Add link status to if_data, so that routing daemons and other interested
parties can easily know the state of a link.
- Define an interface announcement message for the routing socket so that
routing daemons and other interested parties know when an interface
is attached/detached.
Revision 1.19.8.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:36:11 1999 UTC (25 years, 3 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +3 -2
lines
Pull up to last week's -current.
Revision 1.17.6.3: download - view: text, markup, annotated - select for diffs
Tue Nov 30 13:35:15 1999 UTC (25 years, 3 months ago) by itojun
Branches: kame
CVS tags: kame_141_19991130
Diff to: previous 1.17.6.2: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.6.2: +1 -4
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.20: download - view: text, markup, annotated - select for diffs
Fri Nov 19 10:41:42 1999 UTC (25 years, 4 months ago) by bouyer
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
chs-ubc2-newbase
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -2
lines
Update protocoles and interfaces stats counters to 64bit.
RTM_IFINFO is now 0xf, 0xe is RTM_OIFINFO which returns the old (if_msghdr14)
struct with 32bit counters (binary compat, conditioned on COMPAT_14).
Same for sysctl: node 3 is renamed NET_RT_OIFLIST, NET_RT_IFLIST is now node 4.
Change rt_msg1() to add an mbuf to the mbuf chain instead of just panic()
when the message is larger than MHLEN.
Revision 1.17.4.2: download - view: text, markup, annotated - select for diffs
Mon Aug 2 22:32:29 1999 UTC (25 years, 7 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.17.4.1: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.4.1: +1 -4
lines
Update from trunk.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Jul 30 10:35:39 1999 UTC (25 years, 7 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
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +1 -4
lines
remove reference to in6_systm.h (file itself will be removed afterwords)
Revision 1.17.6.2: download - view: text, markup, annotated - select for diffs
Tue Jul 6 11:02:41 1999 UTC (25 years, 8 months ago) by itojun
Branches: kame
CVS tags: kame_14_19990705
Diff to: previous 1.17.6.1: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.6.1: +1 -58
lines
KAME/NetBSD 1.4, SNAP kit 1999/07/05.
NOTE: this branch is just for reference purposes (i.e. for taking cvs diff).
do not touch anything on the branch. actual work must be done on HEAD branch.
Revision 1.17.4.1: download - view: text, markup, annotated - select for diffs
Thu Jul 1 23:45:20 1999 UTC (25 years, 8 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +5 -1
lines
Sync w/ -current.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Jul 1 08:12:49 1999 UTC (25 years, 8 months ago) by itojun
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +5 -1
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.17.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 28 06:36:57 1999 UTC (25 years, 9 months ago) by itojun
Branches: kame
CVS tags: kame_14_19990628
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +62 -1
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.17: download - view: text, markup, annotated - select for diffs
Sun Dec 27 18:27:48 1998 UTC (26 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
netbsd-1-4
Branch point for: kame,
chs-ubc2
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +9 -9
lines
Simplify the rttimer code somewhat; use TAILQs instead of CIRCLEQs (we
didn't really need to traverse the queues backwards anyhow), and other
minor code simplification.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Dec 10 15:52:39 1998 UTC (26 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -1
lines
IPX counters and centralize statistics routine.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Aug 25 04:22:33 1998 UTC (26 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: kenh-if-detach-base,
kenh-if-detach,
chs-ubc-base,
chs-ubc
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -2
lines
Use do { ... } while (0) in RTFREE().
Revision 1.11.8.1: download - view: text, markup, annotated - select for diffs
Sat May 9 03:32:59 1998 UTC (26 years, 10 months ago) by mycroft
Branches: netbsd-1-3
CVS tags: netbsd-1-3-PATCH003-CANDIDATE2,
netbsd-1-3-PATCH003-CANDIDATE1,
netbsd-1-3-PATCH003-CANDIDATE0,
netbsd-1-3-PATCH003,
netbsd-1-3-PATCH002
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +39 -1
lines
Pull up patch from kml.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat May 2 21:19:03 1998 UTC (26 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: eeh-paddr_t-base,
eeh-paddr_t
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -1
lines
Need <sys/socket.h> to stand alone.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Apr 29 17:49:58 1998 UTC (26 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -1
lines
Oops, we depend on <sys/queue.h>.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Apr 29 03:41:49 1998 UTC (26 years, 11 months ago) by kml
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +35 -1
lines
Add generic route timeout functionality; used by path MTU discovery code
Revision 1.1.1.3 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:13:25 1998 UTC (27 years ago) by fvdl
Branches: WFJ-920714,
CSRG
CVS tags: lite-2
Diff to: previous 1.1.1.2: preferred, colored
Changes since revision 1.1.1.2: +4 -2
lines
Import 4.4BSD-Lite2
Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:10:08 1998 UTC (27 years ago) by fvdl
Branches: WFJ-920714,
CSRG
CVS tags: lite-1,
date-03-may-96
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +70 -32
lines
Import 4.4BSD-Lite for reference
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Apr 2 21:17:29 1997 UTC (27 years, 11 months ago) by christos
Branches: MAIN
CVS tags: thorpej-signal-base,
thorpej-signal,
netbsd-1-3-base,
netbsd-1-3-RELEASE,
netbsd-1-3-PATCH001,
netbsd-1-3-BETA,
marc-pcmcia-bp,
marc-pcmcia-base,
marc-pcmcia,
bouyer-scsipi
Branch point for: netbsd-1-3
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +18 -16
lines
Sync with Lite2.
Revision 1.9.4.1: download - view: text, markup, annotated - select for diffs
Wed Dec 11 03:43:55 1996 UTC (28 years, 3 months ago) by mycroft
Branches: netbsd-1-2
CVS tags: netbsd-1-2-PATCH001
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +2 -2
lines
From trunk:
Eliminate SS_PRIV; instead, pass down a proc pointer to the usrreq methods
that need it.
Fix numerous memory leaks and bogus return values.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed May 22 13:55:17 1996 UTC (28 years, 10 months ago) by mycroft
Branches: MAIN
CVS tags: thorpej-setroot,
mrg-vm-swap,
is-newarp-before-merge,
is-newarp-base,
is-newarp
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2
lines
Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and
PRU_CONTROL. The usrreq interface really needs to be split up, but this will have to wait.
Remove SS_PRIV completely.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Feb 13 22:00:49 1996 UTC (29 years, 1 month ago) by christos
Branches: MAIN
CVS tags: netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-BETA
Branch point for: netbsd-1-2
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +11 -9
lines
Net prototypes
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Mar 26 20:30:19 1995 UTC (30 years ago) by jtc
Branches: MAIN
CVS tags: netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3
lines
KERNEL -> _KERNEL
Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Mar 8 02:57:14 1995 UTC (30 years ago) by cgd
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +9 -9
lines
fixed sized types, where appropriate. when casting pointers to
integers to do math on them, cast to long. ioctl commands are
u_longs.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Jun 29 06:36:44 1994 UTC (30 years, 9 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-0-base,
netbsd-1-0-RELEASE,
netbsd-1-0-PATCH1,
netbsd-1-0-PATCH06,
netbsd-1-0-PATCH05,
netbsd-1-0-PATCH04,
netbsd-1-0-PATCH03,
netbsd-1-0-PATCH02,
netbsd-1-0-PATCH0,
netbsd-1-0
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -2
lines
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri May 13 06:03:19 1994 UTC (30 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -17
lines
Update to 4.4-Lite networking code, with a few local changes.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed May 11 09:26:46 1994 UTC (30 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +75 -27
lines
Update to RTM version 3. Add prototypes. Add some new constants which are
not used yet.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu May 20 03:06:10 1993 UTC (31 years, 10 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-0-9-patch-001,
netbsd-0-9-base,
netbsd-0-9-RELEASE,
netbsd-0-9-BETA,
netbsd-0-9-ALPHA2,
netbsd-0-9-ALPHA,
netbsd-0-9,
magnum-base,
magnum
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -1
lines
add rcs ids to everything, and clean up headers
Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Apr 19 03:47:59 1993 UTC (31 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -0
lines
Add consistent multiple-inclusion protection.
Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (32 years ago) by cgd
Branches: WFJ-920714,
CSRG
CVS tags: patchkit-0-2-2,
netbsd-alpha-1,
netbsd-0-8,
WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0
lines
initial import of 386bsd-0.1 sources
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (32 years ago) by cgd
Branches: MAIN
Initial revision
CVSweb <webmaster@jp.NetBSD.org>