The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.319.4.5 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:33 2016 UTC (6 weeks, 6 days ago) by skrll
Branch: nick-nhusb
Changes since 1.319.4.4: +2 -11 lines
Diff to previous 1.319.4.4 (colored) to branchpoint 1.319 (colored) next main 1.320 (colored) to selected 1.295 (colored)

Sync with HEAD

Revision 1.328 / (download) - annotate - [select for diffs], Thu Jan 21 15:41:30 2016 UTC (3 months, 2 weeks ago) by riastradh
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, HEAD
Changes since 1.327: +7 -17 lines
Diff to previous 1.327 (colored) to selected 1.295 (colored)

Revert previous: ran cvs commit when I meant cvs diff.  Sorry!

Hit up-arrow one too few times.

Revision 1.327 / (download) - annotate - [select for diffs], Thu Jan 21 15:27:48 2016 UTC (3 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.326: +19 -9 lines
Diff to previous 1.326 (colored) to selected 1.295 (colored)

Give proper prototype to ip_output.

Revision 1.326 / (download) - annotate - [select for diffs], Fri Jan 8 03:55:39 2016 UTC (3 months, 4 weeks ago) by knakahara
Branch: MAIN
Changes since 1.325: +2 -11 lines
Diff to previous 1.325 (colored) to selected 1.295 (colored)

eliminate ip_input.c and ip6_input.c dependency on gif(4)

Revision 1.319.4.4 / (download) - annotate - [select for diffs], Sun Dec 27 12:10:07 2015 UTC (4 months, 1 week ago) by skrll
Branch: nick-nhusb
Changes since 1.319.4.3: +4 -2 lines
Diff to previous 1.319.4.3 (colored) to branchpoint 1.319 (colored) to selected 1.295 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.325 / (download) - annotate - [select for diffs], Tue Oct 13 09:46:42 2015 UTC (6 months, 3 weeks ago) by roy
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226
Changes since 1.324: +4 -2 lines
Diff to previous 1.324 (colored) to selected 1.295 (colored)

Include arp.h to restore the sysctl net.inet.ip.dad_count.
Fixes PR kern/49883 thanks to HITOSHI Osada.

Revision 1.319.4.3 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:11 2015 UTC (7 months, 2 weeks ago) by skrll
Branch: nick-nhusb
Changes since 1.319.4.2: +5 -3 lines
Diff to previous 1.319.4.2 (colored) to branchpoint 1.319 (colored) to selected 1.295 (colored)

Sync with HEAD

Revision 1.324 / (download) - annotate - [select for diffs], Mon Aug 24 22:21:26 2015 UTC (8 months, 1 week ago) by pooka
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921
Changes since 1.323: +4 -2 lines
Diff to previous 1.323 (colored) to selected 1.295 (colored)

sprinkle _KERNEL_OPT

Revision 1.323 / (download) - annotate - [select for diffs], Fri Aug 7 08:11:33 2015 UTC (8 months, 4 weeks ago) by ozaki-r
Branch: MAIN
Changes since 1.322: +3 -3 lines
Diff to previous 1.322 (colored) to selected 1.295 (colored)

Use time_uptime instead of time_second to avoid time leaps

Some codes in sys/net* use time_second to manage time periods such as
cache expirations. However, time_second doesn't increase monotonically
and can leap by say settimeofday(2) according to time_second(9). We
should use time_uptime instead of it to avoid such time leaps.

This change replaces time_second with time_uptime. Additionally it
converts a time based on time_uptime to a time based on time_second
when the kernel passes the time to userland programs that expect
the latter, and vice versa.

Note that we shouldn't leak time_uptime to other hosts over the
netowrk. My investigation shows there is no such leak:
http://mail-index.netbsd.org/tech-net/2015/08/06/msg005332.html

Discussed on tech-kern and tech-net.

Revision 1.319.4.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:25 2015 UTC (11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.319.4.1: +17 -3 lines
Diff to previous 1.319.4.1 (colored) to branchpoint 1.319 (colored) to selected 1.295 (colored)

Sync with HEAD

Revision 1.322 / (download) - annotate - [select for diffs], Sat May 2 20:22:12 2015 UTC (12 months ago) by joerg
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.321: +4 -2 lines
Diff to previous 1.321 (colored) to selected 1.295 (colored)

Fix !ARP build.

Revision 1.321 / (download) - annotate - [select for diffs], Sat May 2 14:41:32 2015 UTC (12 months ago) by roy
Branch: MAIN
Changes since 1.320: +15 -3 lines
Diff to previous 1.320 (colored) to selected 1.295 (colored)

Add IPv4 address flags IN_IFF_TENTATIVE, IN_IFF_DUPLICATED and
IN_IFF_DETATCHED to mimic the IPv6 address behaviour.
Add SIOCGIFAFLAG_IN ioctl to retrieve the address flag via the
ifreq structure.
Add IPv4 DAD detection via the ARP methods described in RFC 5227.
Add sysctls net.inet.ip.dad_count and net.inet.arp.debug.

Discussed on tech-net@

Revision 1.319.4.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:23 2015 UTC (13 months ago) by skrll
Branch: nick-nhusb
Changes since 1.319: +27 -19 lines
Diff to previous 1.319 (colored) to selected 1.295 (colored)

Sync with HEAD

Revision 1.320 / (download) - annotate - [select for diffs], Thu Mar 26 04:05:58 2015 UTC (13 months, 1 week ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.319: +27 -19 lines
Diff to previous 1.319 (colored) to selected 1.295 (colored)

Tidy up the regular path of ip_forward

No functional change is intended.

Revision 1.302.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:35 2014 UTC (20 months, 2 weeks ago) by tls
Branch: tls-maxphys
Changes since 1.302.2.2: +167 -302 lines
Diff to previous 1.302.2.2 (colored) to branchpoint 1.302 (colored) next main 1.303 (colored) to selected 1.295 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.310.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:25 2014 UTC (20 months, 3 weeks ago) by tls
Branch: tls-earlyentropy
Changes since 1.310: +159 -296 lines
Diff to previous 1.310 (colored) next main 1.311 (colored) to selected 1.295 (colored)

Rebase.

Revision 1.319 / (download) - annotate - [select for diffs], Mon Jun 16 00:33:39 2014 UTC (22 months, 3 weeks ago) by ozaki-r
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base, netbsd-7-base, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.318: +3 -3 lines
Diff to previous 1.318 (colored) to selected 1.295 (colored)

Add 3rd argument to pktq_create to pass sc

It will be used to pass bridge sc for bridge_forward softint.

ok rmind@

Revision 1.318 / (download) - annotate - [select for diffs], Thu Jun 5 23:48:16 2014 UTC (23 months ago) by rmind
Branch: MAIN
Changes since 1.317: +91 -63 lines
Diff to previous 1.317 (colored) to selected 1.295 (colored)

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

Discussed on tech-net.

Revision 1.317 / (download) - annotate - [select for diffs], Fri May 30 01:39:03 2014 UTC (23 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.316: +9 -6 lines
Diff to previous 1.316 (colored) to selected 1.295 (colored)

Introduce 2 new variables: ipsec_enabled and ipsec_used.
Ipsec enabled is controlled by sysctl and determines if is allowed.
ipsec_used is set automatically based on ipsec being enabled, and
rules existing.

Revision 1.316 / (download) - annotate - [select for diffs], Thu May 29 23:02:48 2014 UTC (23 months, 1 week ago) by rmind
Branch: MAIN
Changes since 1.315: +3 -5 lines
Diff to previous 1.315 (colored) to selected 1.295 (colored)

Make IGMP and multicast group management code MP-safe.  Use a read-write
lock to protect the hash table of multicast address records; also, make it
private and eliminate some macros.  In the long term, the lookup path ought
to be optimised.

Revision 1.315 / (download) - annotate - [select for diffs], Wed May 28 19:19:33 2014 UTC (23 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.314: +4 -4 lines
Diff to previous 1.314 (colored) to selected 1.295 (colored)

CID 12164{49,51}: Remove bogus ifp == NULL checks; if ifp was really NULL,
we would have been dead a few lines before the tests.

Revision 1.314 / (download) - annotate - [select for diffs], Fri May 23 23:38:48 2014 UTC (23 months, 2 weeks ago) by rmind
Branch: MAIN
Changes since 1.313: +21 -25 lines
Diff to previous 1.313 (colored) to selected 1.295 (colored)

ip_input(), ip_savecontrol(): cache m->m_pkthdr.rcvif in a variable.

Revision 1.313 / (download) - annotate - [select for diffs], Fri May 23 19:35:24 2014 UTC (23 months, 2 weeks ago) by rmind
Branch: MAIN
Changes since 1.312: +4 -3 lines
Diff to previous 1.312 (colored) to selected 1.295 (colored)

Make ip_forward() static, there is no need to expose it.

Revision 1.312 / (download) - annotate - [select for diffs], Fri May 23 19:27:48 2014 UTC (23 months, 2 weeks ago) by rmind
Branch: MAIN
Changes since 1.311: +4 -3 lines
Diff to previous 1.311 (colored) to selected 1.295 (colored)

Make ip_input() static, there is no need to expose it.

Revision 1.311 / (download) - annotate - [select for diffs], Thu May 22 22:01:12 2014 UTC (23 months, 2 weeks ago) by rmind
Branch: MAIN
Changes since 1.310: +47 -211 lines
Diff to previous 1.310 (colored) to selected 1.295 (colored)

- Add in_init() and move some functions, variables and sysctls into in.c
  where they belong to.  Make some functions and variables static.
- ip_input.c: reduce some #ifdefs, cleanup a little.
- Move some sysctls into ip_flow.c as they belong there.

No functional change.

Revision 1.296.2.4 / (download) - annotate - [select for diffs], Thu May 22 11:41:09 2014 UTC (23 months, 2 weeks ago) by yamt
Branch: yamt-pagecache
Changes since 1.296.2.3: +43 -160 lines
Diff to previous 1.296.2.3 (colored) to branchpoint 1.296 (colored) next main 1.297 (colored) to selected 1.295 (colored)

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.307.2.3 / (download) - annotate - [select for diffs], Sun May 18 17:46:13 2014 UTC (23 months, 2 weeks ago) by rmind
Branch: rmind-smpnet
Changes since 1.307.2.2: +0 -5 lines
Diff to previous 1.307.2.2 (colored) next main 1.308 (colored) to selected 1.295 (colored)

sync with head

Revision 1.310 / (download) - annotate - [select for diffs], Wed Mar 19 08:27:21 2014 UTC (2 years, 1 month ago) by liamjfoy
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Changes since 1.309: +3 -3 lines
Diff to previous 1.309 (colored) to selected 1.295 (colored)

Remove ipflow_prune and replace with ipflow_reap. ok rmind@

Revision 1.309 / (download) - annotate - [select for diffs], Tue Feb 25 18:30:12 2014 UTC (2 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.308: +2 -7 lines
Diff to previous 1.308 (colored) to selected 1.295 (colored)

Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.307.2.2 / (download) - annotate - [select for diffs], Wed Aug 28 23:59:36 2013 UTC (2 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.307.2.1: +6 -17 lines
Diff to previous 1.307.2.1 (colored) to selected 1.295 (colored)

sync with head

Revision 1.307.2.1 / (download) - annotate - [select for diffs], Wed Jul 17 03:16:31 2013 UTC (2 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.307: +52 -217 lines
Diff to previous 1.307 (colored) to selected 1.295 (colored)

Checkpoint work in progress:
- Move PCB structures under __INPCB_PRIVATE, adjust most of the callers
  and thus make IPv4 PCB structures mostly opaque.  Any volunteers for
  merging in6pcb with inpcb (see rpaulo-netinet-merge-pcb branch)?
- Move various global vars to the modules where they belong, make them static.
- Some preliminary work for IPv4 PCB locking scheme.
- Make raw IP code mostly MP-safe.  Simplify some of it.
- Rework "fast" IP forwarding (ipflow) code to be mostly MP-safe.  It should
  run from a software interrupt, rather than hard.
- Rework tun(4) pseudo interface to be MP-safe.
- Work towards making some other interfaces more strict.

Revision 1.308 / (download) - annotate - [select for diffs], Sat Jun 29 21:06:58 2013 UTC (2 years, 10 months ago) by rmind
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Changes since 1.307: +6 -17 lines
Diff to previous 1.307 (colored) to selected 1.295 (colored)

- Rewrite parts of pfil(9): use array to store hooks and thus be more cache
  friendly (there are only few hooks in the system).  Make the structures
  opaque and the interface more strict.
- Remove PFIL_HOOKS option by making pfil(9) mandatory.

Revision 1.307 / (download) - annotate - [select for diffs], Thu Jun 27 20:17:36 2013 UTC (2 years, 10 months ago) by christos
Branch: MAIN
Branch point for: rmind-smpnet
Changes since 1.306: +4 -4 lines
Diff to previous 1.306 (colored) to selected 1.295 (colored)

flip src/dst

Revision 1.306 / (download) - annotate - [select for diffs], Thu Jun 27 19:38:16 2013 UTC (2 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.305: +20 -2 lines
Diff to previous 1.305 (colored) to selected 1.295 (colored)

implement IP_PKTINFO and IP_RECVPKTINFO.

Revision 1.302.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:25 2013 UTC (2 years, 10 months ago) by tls
Branch: tls-maxphys
Changes since 1.302.2.1: +20 -139 lines
Diff to previous 1.302.2.1 (colored) to branchpoint 1.302 (colored) to selected 1.295 (colored)

resync from head

Revision 1.305 / (download) - annotate - [select for diffs], Sat Jun 8 13:50:22 2013 UTC (2 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.304: +16 -135 lines
Diff to previous 1.304 (colored) to selected 1.295 (colored)

Split IPsec code in ip_input() and ip_forward() into the separate routines
ipsec4_input() and ipsec4_forward().  Tested by christos@.

Revision 1.304 / (download) - annotate - [select for diffs], Wed Jun 5 19:01:26 2013 UTC (2 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.303: +13 -13 lines
Diff to previous 1.303 (colored) to selected 1.295 (colored)

IPSEC has not come in two speeds for a long time now (IPSEC == kame,
FAST_IPSEC). Make everything refer to IPSEC to avoid confusion.

Revision 1.302.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:04 2013 UTC (3 years, 2 months ago) by tls
Branch: tls-maxphys
Changes since 1.302: +9 -3 lines
Diff to previous 1.302 (colored) to selected 1.295 (colored)

resync with head

Revision 1.296.2.3 / (download) - annotate - [select for diffs], Wed Jan 16 05:33:49 2013 UTC (3 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.296.2.2: +9 -3 lines
Diff to previous 1.296.2.2 (colored) to branchpoint 1.296 (colored) to selected 1.295 (colored)

sync with (a bit old) head

Revision 1.303 / (download) - annotate - [select for diffs], Thu Nov 29 02:07:20 2012 UTC (3 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, khorben-n900, agc-symver-base, agc-symver
Changes since 1.302: +9 -3 lines
Diff to previous 1.302 (colored) to selected 1.295 (colored)

Add a new sysctl to mark ports as reserved, so that they are not used in
the anonymous or reserved port allocation.

Revision 1.296.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:46 2012 UTC (3 years, 6 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.296.2.1: +25 -3 lines
Diff to previous 1.296.2.1 (colored) to branchpoint 1.296 (colored) to selected 1.295 (colored)

sync with head

Revision 1.302 / (download) - annotate - [select for diffs], Mon Jun 25 15:28:39 2012 UTC (3 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.301: +9 -9 lines
Diff to previous 1.301 (colored) to selected 1.295 (colored)

rename rfc6056 -> portalgo, requested by yamt

Revision 1.301 / (download) - annotate - [select for diffs], Fri Jun 22 14:54:35 2012 UTC (3 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.300: +24 -2 lines
Diff to previous 1.300 (colored) to selected 1.295 (colored)

PR/46602: Move the rfc6056 port randomization to the IP layer.

Revision 1.300 / (download) - annotate - [select for diffs], Sat Jun 2 21:36:47 2012 UTC (3 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.299: +3 -3 lines
Diff to previous 1.299 (colored) to selected 1.295 (colored)

Add some pre-processor magic to verify that the type of the data item
  passed to sysctl_createv() actually matches the declared type for
  the item itself.
In the places where the caller specifies a function and a structure
  address (typically the 'softc') an explicit (void *) cast is now needed.
Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c
  sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting
  AcpiGbl_EnableAmlDebugObject.
(mostly passing the address of a uint64_t when typed as CTLTYPE_INT).
I've test built quite a few kernels, but there may be some unfixed MD
  fallout. Most likely passing &char[] to char *.
Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.

Revision 1.296.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:40 2012 UTC (4 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.296: +6 -40 lines
Diff to previous 1.296 (colored) to selected 1.295 (colored)

sync with head

Revision 1.296.6.2 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:43 2012 UTC (4 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.296.6.1: +5 -39 lines
Diff to previous 1.296.6.1 (colored) to branchpoint 1.296 (colored) next main 1.297 (colored) to selected 1.295 (colored)

sync to latest -current.

Revision 1.299 / (download) - annotate - [select for diffs], Thu Mar 22 20:34:39 2012 UTC (4 years, 1 month ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10
Changes since 1.298: +5 -39 lines
Diff to previous 1.298 (colored) to selected 1.295 (colored)

remove KAME IPSEC, replaced by FAST_IPSEC

Revision 1.296.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:39 2012 UTC (4 years, 2 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.296: +11 -11 lines
Diff to previous 1.296 (colored) to selected 1.295 (colored)

merge to -current.

Revision 1.298 / (download) - annotate - [select for diffs], Mon Jan 9 14:31:22 2012 UTC (4 years, 3 months ago) by liamjfoy
Branch: 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-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Changes since 1.297: +3 -3 lines
Diff to previous 1.297 (colored) to selected 1.295 (colored)

check against NULL

Revision 1.297 / (download) - annotate - [select for diffs], Mon Dec 19 11:59:56 2011 UTC (4 years, 4 months ago) by drochner
Branch: MAIN
Changes since 1.296: +10 -10 lines
Diff to previous 1.296 (colored) to selected 1.295 (colored)

rename the IPSEC in-kernel CPP variable and config(8) option to
KAME_IPSEC, and make IPSEC define it so that existing kernel
config files work as before
Now the default can be easily be changed to FAST_IPSEC just by
setting the IPSEC alias to FAST_IPSEC.

Revision 1.296 / (download) - annotate - [select for diffs], Wed Aug 31 18:31:03 2011 UTC (4 years, 8 months ago) by plunky
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.295: +3 -3 lines
Diff to previous 1.295 (colored)

NULL does not need a cast

Revision 1.293.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:55 2011 UTC (4 years, 11 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.293: +20 -5 lines
Diff to previous 1.293 (colored) next main 1.294 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.284.4.4 / (download) - annotate - [select for diffs], Tue May 31 03:05:07 2011 UTC (4 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.284.4.3: +17 -0 lines
Diff to previous 1.284.4.3 (colored) to branchpoint 1.284 (colored) next main 1.285 (colored) to selected 1.295 (colored)

sync with head

Revision 1.295 / (download) - annotate - [selected], Tue May 3 17:44:31 2011 UTC (5 years ago) by dyoung
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.294: +19 -2 lines
Diff to previous 1.294 (colored)

*_drain() routines may be called with locks held, so instead of doing
any work in *_drain(), set a drain-needed flag.  Do the work in the
fasttimo handler.

Contributed by Coyote Point Systems, Inc.

Revision 1.284.4.3 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:14 2011 UTC (5 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.284.4.2: +1 -3 lines
Diff to previous 1.284.4.2 (colored) to branchpoint 1.284 (colored) to selected 1.295 (colored)

sync with head

Revision 1.294 / (download) - annotate - [select for diffs], Thu Apr 14 20:32:04 2011 UTC (5 years ago) by dyoung
Branch: MAIN
Changes since 1.293: +3 -5 lines
Diff to previous 1.293 (colored) to selected 1.295 (colored)

In ipintr(), don't overwrite ipintrq.ifq_maxlen with IFQ_MAXLEN.

Initialize ipintrq.ifq_maxlen using IFQ_MAXLEN directly instead of using
the global ipqmaxlen.  Get rid of the global ipqmaxlen.

Now it works again to override the maximum IP queue length with, for
example, sysctl -w net.inet.ip.ifq.maxlen=5.

Revision 1.284.4.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:57 2011 UTC (5 years, 2 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.284.4.1: +22 -594 lines
Diff to previous 1.284.4.1 (colored) to branchpoint 1.284 (colored) to selected 1.295 (colored)

sync with head

Revision 1.275.4.1.8.2 / (download) - annotate - [select for diffs], Fri Jan 7 03:17:44 2011 UTC (5 years, 3 months ago) by matt
Branch: matt-nb5-pq3
Changes since 1.275.4.1.8.1: +2 -4 lines
Diff to previous 1.275.4.1.8.1 (colored) to branchpoint 1.275.4.1 (colored) next main 1.276 (colored) to selected 1.295 (colored)

Backout an inadverdant change.

Revision 1.275.4.1.8.1 / (download) - annotate - [select for diffs], Fri Jan 7 03:16:14 2011 UTC (5 years, 3 months ago) by matt
Branch: matt-nb5-pq3
Changes since 1.275.4.1: +4 -2 lines
Diff to previous 1.275.4.1 (colored) to selected 1.295 (colored)

If using hardware checksum offload and the packet can't be h/w checksumed
(for whatever reason, some hardware is stupid) allow the driver to calculate
the checksum instead.

Revision 1.293 / (download) - annotate - [select for diffs], Mon Dec 13 14:18:50 2010 UTC (5 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.292: +2 -4 lines
Diff to previous 1.292 (colored) to selected 1.295 (colored)

Back out rev that shouldn't have been committed.

Revision 1.292 / (download) - annotate - [select for diffs], Sat Dec 11 22:37:46 2010 UTC (5 years, 4 months ago) by matt
Branch: MAIN
Changes since 1.291: +4 -2 lines
Diff to previous 1.291 (colored) to selected 1.295 (colored)

Add routines to calculate a checkesum if the driver concludes that the
h/w can't do it.

Revision 1.284.2.3 / (download) - annotate - [select for diffs], Sat Nov 6 08:08:49 2010 UTC (5 years, 6 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.284.2.2: +10 -46 lines
Diff to previous 1.284.2.2 (colored) to branchpoint 1.284 (colored) next main 1.285 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.291 / (download) - annotate - [select for diffs], Fri Nov 5 01:35:57 2010 UTC (5 years, 6 months ago) by rmind
Branch: MAIN
CVS Tags: uebayasi-xip-base4
Changes since 1.290: +4 -3 lines
Diff to previous 1.290 (colored) to selected 1.295 (colored)

ip_randomid: make mechanism MP-safe and more modular.

OK matt@

Revision 1.290 / (download) - annotate - [select for diffs], Fri Nov 5 00:21:51 2010 UTC (5 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.289: +8 -45 lines
Diff to previous 1.289 (colored) to selected 1.295 (colored)

ip_reass_packet: finish abstraction; some clean-up.
Discussed some time ago with matt@.

Revision 1.284.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:46 2010 UTC (5 years, 8 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.284.2.1: +41 -577 lines
Diff to previous 1.284.2.1 (colored) to branchpoint 1.284 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.268.2.6 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:56 2010 UTC (5 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.268.2.5: +64 -582 lines
Diff to previous 1.268.2.5 (colored) to branchpoint 1.268 (colored) next main 1.269 (colored) to selected 1.295 (colored)

sync with head.

Revision 1.289 / (download) - annotate - [select for diffs], Mon Jul 19 14:09:45 2010 UTC (5 years, 9 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.288: +29 -53 lines
Diff to previous 1.288 (colored) to selected 1.295 (colored)

Abstract IP reassembly into single generic routine - ip_reass_packet().
Make struct ipq private and struct ipqent not visible to userland.
Push ip_len adjustment into reassembly layer.

OK matt@

Revision 1.288 / (download) - annotate - [select for diffs], Tue Jul 13 22:16:10 2010 UTC (5 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.287: +30 -541 lines
Diff to previous 1.287 (colored) to selected 1.295 (colored)

Split-off IPv4 re-assembly mechanism into a separate module.  Abstract
into ip_reass_init(), ip_reass_lookup(), etc (note: abstraction is not
yet complete).  No functional changes to the actual mechanism.

OK matt@

Revision 1.287 / (download) - annotate - [select for diffs], Fri Jul 9 18:42:46 2010 UTC (5 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.286: +35 -36 lines
Diff to previous 1.286 (colored) to selected 1.295 (colored)

ip_input: move lookup for fragment queue a little bit further.  OK matt@.

Revision 1.284.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:18:02 2010 UTC (5 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.284: +23 -5 lines
Diff to previous 1.284 (colored) to selected 1.295 (colored)

sync with head

Revision 1.284.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:21 2010 UTC (6 years ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.284: +23 -5 lines
Diff to previous 1.284 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.286 / (download) - annotate - [select for diffs], Thu Apr 1 01:23:32 2010 UTC (6 years, 1 month ago) by tls
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.285: +23 -7 lines
Diff to previous 1.285 (colored) to selected 1.295 (colored)

As suggested by at least 3 different people (the guilty parties know who
they are) avoid repeated kernel_lock/unlock by using an intrq on the stack.

About 5%-10% better from run to run, on my *very* simpleminded test.  Can't
possibly be worse.

Revision 1.285 / (download) - annotate - [select for diffs], Wed Mar 31 07:31:15 2010 UTC (6 years, 1 month ago) by tls
Branch: MAIN
Changes since 1.284: +4 -2 lines
Diff to previous 1.284 (colored) to selected 1.295 (colored)

Don't hold kernel lock across call to ip_input() -- it blocked *all*
hardware interrupts for the length of time it took for all dequeued
packets to flow up the stack (on multiprocessors only).  Initial testing
shows performance impact is minimal -- since this temporary fix actually
means taking/releasing the kernel lock per-packet, that seems
acceptable.

Holding the kernel lock across the ip_input() call duplicated the
exclusion intended to be provided by the socket locks/softnet lock
(same lock, for INET/INET6 sockets) and could mask serious bugs.  Several
hours' testing didn't turn any up but I'd be surprised if some don't now
appear.

Damon Permezel noticed the problem.  Temporary fix suggested by matt@.

Revision 1.268.2.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:28 2010 UTC (6 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.268.2.4: +8 -3 lines
Diff to previous 1.268.2.4 (colored) to branchpoint 1.268 (colored) to selected 1.295 (colored)

sync with head

Revision 1.284 / (download) - annotate - [select for diffs], Wed Sep 16 15:23:05 2009 UTC (6 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base, matt-premerge-20091211, jym-xensuspend-nbase
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.283: +8 -3 lines
Diff to previous 1.283 (colored) to selected 1.295 (colored)

Replace a large number of link set based sysctl node creations with
calls from subsystem constructors.  Benefits both future kernel
modules and rump.

no change to sysctl nodes on i386/MONOLITHIC & build tested i386/ALL

Revision 1.268.2.4 / (download) - annotate - [select for diffs], Wed Aug 19 18:48:24 2009 UTC (6 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.268.2.3: +6 -6 lines
Diff to previous 1.268.2.3 (colored) to branchpoint 1.268 (colored) to selected 1.295 (colored)

sync with head.

Revision 1.278.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:48 2009 UTC (6 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.278.2.1: +12 -6 lines
Diff to previous 1.278.2.1 (colored) to branchpoint 1.278 (colored) next main 1.279 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.268.2.3 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:25 2009 UTC (6 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.268.2.2: +8 -2 lines
Diff to previous 1.268.2.2 (colored) to branchpoint 1.268 (colored) to selected 1.295 (colored)

sync with head.

Revision 1.283 / (download) - annotate - [select for diffs], Fri Jul 17 18:09:25 2009 UTC (6 years, 9 months ago) by minskim
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, jymxensuspend-base
Changes since 1.282: +6 -6 lines
Diff to previous 1.282 (colored) to selected 1.295 (colored)

Delete trailing whitespace.

Revision 1.282 / (download) - annotate - [select for diffs], Thu Jul 16 04:09:51 2009 UTC (6 years, 9 months ago) by minskim
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6
Changes since 1.281: +8 -2 lines
Diff to previous 1.281 (colored) to selected 1.295 (colored)

Add the IP_RECVTTL option support.

If the IP_RECVTTL option is enabled on a SOCK_DGRAM socket, the
recvmsg(2) call will return the TTL of the received datagram.  The
msg_control field in the msghdr structure points to a buffer that
contains a cmsghdr structure followed by the TTL value.

Modeled after FreeBSD implementation.

Revision 1.278.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:22:28 2009 UTC (6 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.278: +10 -9 lines
Diff to previous 1.278 (colored) to selected 1.295 (colored)

Sync with HEAD.

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

Revision 1.268.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:14:17 2009 UTC (7 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.268.2.1: +69 -33 lines
Diff to previous 1.268.2.1 (colored) to branchpoint 1.268 (colored) to selected 1.295 (colored)

sync with head.

Revision 1.275.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:22 2009 UTC (7 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.275.2.1: +10 -9 lines
Diff to previous 1.275.2.1 (colored) to branchpoint 1.275 (colored) next main 1.276 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.281 / (download) - annotate - [select for diffs], Sat Apr 18 14:58:05 2009 UTC (7 years ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.280: +6 -6 lines
Diff to previous 1.280 (colored) to selected 1.295 (colored)

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

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

Remove a few KAUTH_GENERIC_ISSUSER in favor of more descriptive
alternatives.

Discussed on tech-kern:

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

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

Okay ad@.

Revision 1.279 / (download) - annotate - [select for diffs], Wed Mar 18 17:06:52 2009 UTC (7 years, 1 month ago) by cegger
Branch: MAIN
Changes since 1.278: +6 -6 lines
Diff to previous 1.278 (colored) to selected 1.295 (colored)

bcopy -> memcpy

Revision 1.275.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:13 2009 UTC (7 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.275: +25 -7 lines
Diff to previous 1.275 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.278 / (download) - annotate - [select for diffs], Mon Jan 19 02:27:57 2009 UTC (7 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Changes since 1.277: +21 -3 lines
Diff to previous 1.277 (colored) to selected 1.295 (colored)

Provide compatibility to the old timeval SCM_TIMESTAMP messages.

Revision 1.262.6.5 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:32 2009 UTC (7 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.262.6.4: +4 -4 lines
Diff to previous 1.262.6.4 (colored) to branchpoint 1.262 (colored) next main 1.263 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.277 / (download) - annotate - [select for diffs], Wed Dec 17 20:51:37 2008 UTC (7 years, 4 months ago) by cegger
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.276: +5 -6 lines
Diff to previous 1.276 (colored) to selected 1.295 (colored)

kill MALLOC and FREE macros.

Revision 1.272.6.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:27 2008 UTC (7 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.272.6.1: +3 -2 lines
Diff to previous 1.272.6.1 (colored) to branchpoint 1.272 (colored) next main 1.273 (colored) to selected 1.295 (colored)

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

Revision 1.275.4.1 / (download) - annotate - [select for diffs], Tue Nov 25 04:04:38 2008 UTC (7 years, 5 months ago) by snj
Branch: 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-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-pq3
Changes since 1.275: +3 -2 lines
Diff to previous 1.275 (colored) next main 1.276 (colored) to selected 1.295 (colored)

Pull up following revision(s) (requested by rmind in ticket #119):
	sys/netinet/ip_input.c: revision 1.276
ip_input: fix an IPQ "lock" leak.  (hi <matt>!)

Revision 1.276 / (download) - annotate - [select for diffs], Sun Nov 23 19:52:38 2008 UTC (7 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.275: +3 -2 lines
Diff to previous 1.275 (colored) to selected 1.295 (colored)

ip_input: fix an IPQ "lock" leak.  (hi <matt>!)

Revision 1.272.6.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:46 2008 UTC (7 years, 6 months ago) by haad
Branch: haad-dm
Changes since 1.272: +38 -21 lines
Diff to previous 1.272 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.272.2.2 / (download) - annotate - [select for diffs], Fri Oct 10 22:35:43 2008 UTC (7 years, 6 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.272.2.1: +9 -6 lines
Diff to previous 1.272.2.1 (colored) to branchpoint 1.272 (colored) next main 1.273 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.262.6.4 / (download) - annotate - [select for diffs], Sun Oct 5 20:11:33 2008 UTC (7 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.262.6.3: +7 -4 lines
Diff to previous 1.262.6.3 (colored) to branchpoint 1.262 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.275 / (download) - annotate - [select for diffs], Sat Oct 4 00:09:34 2008 UTC (7 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, netbsd-5-base, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.274: +9 -6 lines
Diff to previous 1.274 (colored) to selected 1.295 (colored)

POOL_INIT -> pool_init

Revision 1.262.6.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:58 2008 UTC (7 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.262.6.2: +29 -15 lines
Diff to previous 1.262.6.2 (colored) to branchpoint 1.262 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.272.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:37:01 2008 UTC (7 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.272: +31 -17 lines
Diff to previous 1.272 (colored) to selected 1.295 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.274 / (download) - annotate - [select for diffs], Fri Sep 5 13:39:12 2008 UTC (7 years, 8 months ago) by seanb
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Changes since 1.273: +7 -7 lines
Diff to previous 1.273 (colored) to selected 1.295 (colored)

Wrong route being consulted in one place
in ip_forward() after change to rtcache_*().
Restore previous behaviour.

Revision 1.273 / (download) - annotate - [select for diffs], Wed Aug 20 18:35:20 2008 UTC (7 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.272: +26 -12 lines
Diff to previous 1.272 (colored) to selected 1.295 (colored)

Make the sysctl routines take out softnet_lock before dealing with
any data structures.

Change inet6ctlerrmap and zeroin6_addr to const.

Revision 1.236.4.2 / (download) - annotate - [select for diffs], Tue Jun 3 20:47:41 2008 UTC (7 years, 11 months ago) by skrll
Branch: wrstuden-fixsa
Changes since 1.236.4.1: +17 -16 lines
Diff to previous 1.236.4.1 (colored) to branchpoint 1.236 (colored) next main 1.237 (colored) to selected 1.295 (colored)

Sync with netbsd-4.

Revision 1.262.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:24 2008 UTC (7 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.262.6.1: +91 -65 lines
Diff to previous 1.262.6.1 (colored) to branchpoint 1.262 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.266.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:29 2008 UTC (7 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.266: +35 -55 lines
Diff to previous 1.266 (colored) next main 1.267 (colored) to selected 1.295 (colored)

sync with head.

Revision 1.268.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:41 2008 UTC (7 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.268: +9 -22 lines
Diff to previous 1.268 (colored) to selected 1.295 (colored)

sync with head.

Revision 1.272 / (download) - annotate - [select for diffs], Mon May 5 17:11:17 2008 UTC (8 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, haad-dm
Changes since 1.271: +6 -6 lines
Diff to previous 1.271 (colored) to selected 1.295 (colored)

- Convert hashinit() to use kmem_alloc(). The hash tables can be large
  and it's better to not have them in kmem_map.
- Convert a couple of minor items along the way to kmem_alloc().
- Fix some memory leaks.

Revision 1.271 / (download) - annotate - [select for diffs], Sun May 4 07:22:14 2008 UTC (8 years ago) by thorpej
Branch: MAIN
Changes since 1.270: +3 -8 lines
Diff to previous 1.270 (colored) to selected 1.295 (colored)

Simplify the interface to netstat_sysctl() and allocate space for
the collated counters using kmem_alloc().

PR kern/38577

Revision 1.270 / (download) - annotate - [select for diffs], Fri May 2 13:40:32 2008 UTC (8 years ago) by ad
Branch: MAIN
Changes since 1.269: +4 -5 lines
Diff to previous 1.269 (colored) to selected 1.295 (colored)

PR kern/38497 Out of memory allocating ksiginfo

Work around: don't acquire softnet_lock in protocol drain routines.

Revision 1.269 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:09 2008 UTC (8 years ago) by martin
Branch: MAIN
Changes since 1.268: +2 -9 lines
Diff to previous 1.268 (colored) to selected 1.295 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.268 / (download) - annotate - [select for diffs], Thu Apr 24 11:38:37 2008 UTC (8 years ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.267: +27 -15 lines
Diff to previous 1.267 (colored) to selected 1.295 (colored)

Merge the socket locking patch:

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

With much feedback from matt@ and plunky@.

Revision 1.267 / (download) - annotate - [select for diffs], Wed Apr 23 06:09:04 2008 UTC (8 years ago) by thorpej
Branch: MAIN
Changes since 1.266: +10 -29 lines
Diff to previous 1.266 (colored) to selected 1.295 (colored)

Make IPSEC and FAST_IPSEC stats per-cpu.  Use <net/net_stats.h> and
netstat_sysctl().

Revision 1.266 / (download) - annotate - [select for diffs], Sat Apr 12 05:58:22 2008 UTC (8 years ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.265: +85 -39 lines
Diff to previous 1.265 (colored) to selected 1.295 (colored)

Make IP, TCP, UDP, and ICMP statistics per-CPU.  The stats are collated
when the user requests them via sysctl.

Revision 1.265 / (download) - annotate - [select for diffs], Wed Apr 9 05:14:20 2008 UTC (8 years ago) by thorpej
Branch: MAIN
Changes since 1.264: +3 -3 lines
Diff to previous 1.264 (colored) to selected 1.295 (colored)

- ipflow is not used outside ip_flow.c; move its definition there.
- Make ipflow_reap() private to ip_flow.c, and introduce ipflow_prune()
  for external callers to use (avoids returning an ipflow * that is never
  actually used anyway).

Revision 1.264 / (download) - annotate - [select for diffs], Mon Apr 7 06:31:28 2008 UTC (8 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.263: +37 -37 lines
Diff to previous 1.263 (colored) to selected 1.295 (colored)

Change IP stats from a structure to an array of uint64_t's.

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

Revision 1.262.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:08 2008 UTC (8 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.262: +17 -16 lines
Diff to previous 1.262 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.236.2.2 / (download) - annotate - [select for diffs], Sun Mar 30 15:27:49 2008 UTC (8 years, 1 month ago) by jdc
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Changes since 1.236.2.1: +17 -16 lines
Diff to previous 1.236.2.1 (colored) to branchpoint 1.236 (colored) next main 1.237 (colored) to selected 1.295 (colored)

Pull up revisions:
  src/sys/netinet/ip_input.c    1.263
  src/sys/netinet/tcp_subr.c    1.225
(requested by cube in ticket #1109).

- Make sure we send a reasonable fragment size when IPSEC is configured.
  Otherwise we end up sending a dubious "0" whenever we cannot find a
  proper association for the packet.
- Reset sack_newdata along with snd_nxt to avoid improper integer
  arithmetics that lead to sending data from an incorrect place in the
  stream, making it appear as corrupted.

Patch by Michael Van Elst, based on an analysis by Michael for the IPSEC
stuff and I for the SACK issue.

Revision 1.236.2.1.4.1 / (download) - annotate - [select for diffs], Sun Mar 30 15:26:11 2008 UTC (8 years, 1 month ago) by jdc
Branch: netbsd-4-0
CVS Tags: netbsd-4-0-1-RELEASE
Changes since 1.236.2.1: +17 -16 lines
Diff to previous 1.236.2.1 (colored) next main 1.236.2.2 (colored) to selected 1.295 (colored)

Pull up revisions:
  src/sys/netinet/ip_input.c    1.263
  src/sys/netinet/tcp_subr.c    1.225
(requested by cube in ticket #1109).

- Make sure we send a reasonable fragment size when IPSEC is configured.
  Otherwise we end up sending a dubious "0" whenever we cannot find a
  proper association for the packet.
- Reset sack_newdata along with snd_nxt to avoid improper integer
  arithmetics that lead to sending data from an incorrect place in the
  stream, making it appear as corrupted.

Patch by Michael Van Elst, based on an analysis by Michael for the IPSEC
stuff and I for the SACK issue.

Revision 1.263 / (download) - annotate - [select for diffs], Thu Mar 27 00:18:56 2008 UTC (8 years, 1 month ago) by cube
Branch: MAIN
Changes since 1.262: +17 -16 lines
Diff to previous 1.262 (colored) to selected 1.295 (colored)

- Make sure we send a reasonable fragment size when IPSEC is configured.
  Otherwise we end up sending a dubious "0" whenever we cannot find a
  proper association for the packet.
- Reset sack_newdata along with snd_nxt to avoid improper integer
  arithmetics that lead to sending data from an incorrect place in the
  stream, making it appear as corrupted.

Patch by Michael Van Elst, based on an analysis by Michael for the IPSEC
stuff and I for the SACK issue.

Revision 1.251.2.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:06 2008 UTC (8 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.251.2.2: +5 -4 lines
Diff to previous 1.251.2.2 (colored) next main 1.252 (colored) to selected 1.295 (colored)

sync with HEAD

Revision 1.254.4.4 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:08 2008 UTC (8 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.254.4.3: +5 -4 lines
Diff to previous 1.254.4.3 (colored) to branchpoint 1.254 (colored) next main 1.255 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.218.2.9 / (download) - annotate - [select for diffs], Mon Feb 11 15:00:04 2008 UTC (8 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.218.2.8: +3 -2 lines
Diff to previous 1.218.2.8 (colored) next main 1.219 (colored) to selected 1.295 (colored)

sync with head.

Revision 1.262 / (download) - annotate - [select for diffs], Wed Feb 6 03:20:51 2008 UTC (8 years, 3 months ago) by matt
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.261: +3 -2 lines
Diff to previous 1.261 (colored) to selected 1.295 (colored)

Add a new ip_id generation scheme based on a Fisher-Yates shuffle over a
sliding window.  XXX replace use of arc4random RSN.

Revision 1.218.2.8 / (download) - annotate - [select for diffs], Mon Jan 21 09:47:16 2008 UTC (8 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.218.2.7: +33 -13 lines
Diff to previous 1.218.2.7 (colored) to selected 1.295 (colored)

sync with head

Revision 1.256.6.2 / (download) - annotate - [select for diffs], Sat Jan 19 12:15:32 2008 UTC (8 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.256.6.1: +2 -2 lines
Diff to previous 1.256.6.1 (colored) to branchpoint 1.256 (colored) next main 1.257 (colored) to selected 1.295 (colored)

Sync with HEAD

Revision 1.261 / (download) - annotate - [select for diffs], Mon Jan 14 04:19:09 2008 UTC (8 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.260: +4 -4 lines
Diff to previous 1.260 (colored) to selected 1.295 (colored)

Use rtcache_validate() instead of rtcache_getrt().  Shorten staircase
in in_losing().

Revision 1.251.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:57:27 2008 UTC (8 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.251.2.1: +42 -20 lines
Diff to previous 1.251.2.1 (colored) to selected 1.295 (colored)

sync with HEAD

Revision 1.256.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:57:21 2008 UTC (8 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.256: +33 -13 lines
Diff to previous 1.256 (colored) to selected 1.295 (colored)

Sync with HEAD

Revision 1.254.4.3 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:29 2007 UTC (8 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.254.4.2: +33 -13 lines
Diff to previous 1.254.4.2 (colored) to branchpoint 1.254 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.256.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:39 2007 UTC (8 years, 4 months ago) by ad
Branch: vmlocking2
Changes since 1.256: +33 -13 lines
Diff to previous 1.256 (colored) next main 1.257 (colored) to selected 1.295 (colored)

Sync with head.

Revision 1.260 / (download) - annotate - [select for diffs], Sat Dec 22 15:41:11 2007 UTC (8 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base
Changes since 1.259: +14 -5 lines
Diff to previous 1.259 (colored) to selected 1.295 (colored)

Fix offset calculation.
Make sure that all frags use the same TOS.

Revision 1.259 / (download) - annotate - [select for diffs], Fri Dec 21 23:49:09 2007 UTC (8 years, 4 months ago) by matt
Branch: MAIN
Changes since 1.258: +5 -4 lines
Diff to previous 1.258 (colored) to selected 1.295 (colored)

Also make sure the first is at 68 bytes long.

Revision 1.258 / (download) - annotate - [select for diffs], Fri Dec 21 18:58:55 2007 UTC (8 years, 4 months ago) by matt
Branch: MAIN
Changes since 1.257: +13 -3 lines
Diff to previous 1.257 (colored) to selected 1.295 (colored)

Prevent TCP blind data attacks by not allowing non-initial fragments to
start at less than 68 bytes (minimal fragment size).

Revision 1.257 / (download) - annotate - [select for diffs], Thu Dec 20 19:53:32 2007 UTC (8 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.256: +10 -10 lines
Diff to previous 1.256 (colored) to selected 1.295 (colored)

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

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

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

Make ND6_HINT an inline, lowercase subroutine, nd6_hint.

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

Revision 1.254.4.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:21:13 2007 UTC (8 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.254.4.1: +11 -8 lines
Diff to previous 1.254.4.1 (colored) to branchpoint 1.254 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.218.2.7 / (download) - annotate - [select for diffs], Fri Dec 7 17:34:29 2007 UTC (8 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.218.2.6: +11 -8 lines
Diff to previous 1.218.2.6 (colored) to selected 1.295 (colored)

sync with head

Revision 1.250.4.6 / (download) - annotate - [select for diffs], Tue Nov 27 19:38:57 2007 UTC (8 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.250.4.5: +11 -8 lines
Diff to previous 1.250.4.5 (colored) to branchpoint 1.250 (colored) next main 1.251 (colored) to selected 1.295 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.256 / (download) - annotate - [select for diffs], Mon Nov 26 08:40:46 2007 UTC (8 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.255: +11 -8 lines
Diff to previous 1.255 (colored) to selected 1.295 (colored)

inetctlerrmap: use designated initializer.

Revision 1.254.4.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:49:10 2007 UTC (8 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.254: +2 -3 lines
Diff to previous 1.254 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.218.2.6 / (download) - annotate - [select for diffs], Thu Nov 15 11:45:07 2007 UTC (8 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.218.2.5: +2 -3 lines
Diff to previous 1.218.2.5 (colored) to selected 1.295 (colored)

sync with head.

Revision 1.254.2.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:02:51 2007 UTC (8 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.254: +2 -3 lines
Diff to previous 1.254 (colored) next main 1.255 (colored) to selected 1.295 (colored)

Sync with HEAD

Revision 1.250.4.5 / (download) - annotate - [select for diffs], Sun Nov 11 16:48:31 2007 UTC (8 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.250.4.4: +2 -3 lines
Diff to previous 1.250.4.4 (colored) to branchpoint 1.250 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.255 / (download) - annotate - [select for diffs], Fri Nov 9 06:59:33 2007 UTC (8 years, 5 months ago) by kefren
Branch: MAIN
CVS Tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Changes since 1.254: +2 -3 lines
Diff to previous 1.254 (colored) to selected 1.295 (colored)

Don't MCLAIM in ipintr() because we do it anyway in ip_input()

Revision 1.251.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:33:49 2007 UTC (8 years, 6 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.251: +7 -31 lines
Diff to previous 1.251 (colored) to selected 1.295 (colored)

sync with HEAD

Revision 1.218.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:36:08 2007 UTC (8 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.218.2.4: +2 -29 lines
Diff to previous 1.218.2.4 (colored) to selected 1.295 (colored)

sync with head.

Revision 1.245.2.5 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:50 2007 UTC (8 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.245.2.4: +7 -31 lines
Diff to previous 1.245.2.4 (colored) next main 1.246 (colored) to selected 1.295 (colored)

Sync with head.

Revision 1.253.2.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:29:02 2007 UTC (8 years, 7 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.253: +2 -28 lines
Diff to previous 1.253 (colored) next main 1.254 (colored) to selected 1.295 (colored)

sync with head.

Revision 1.250.4.4 / (download) - annotate - [select for diffs], Thu Oct 4 15:44:52 2007 UTC (8 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.250.4.3: +2 -28 lines
Diff to previous 1.250.4.3 (colored) to branchpoint 1.250 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.254 / (download) - annotate - [select for diffs], Tue Oct 2 20:35:04 2007 UTC (8 years, 7 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, vmlocking-base, jmcneill-base
Branch point for: mjf-devfs, bouyer-xenamd64
Changes since 1.253: +2 -28 lines
Diff to previous 1.253 (colored) to selected 1.295 (colored)

Delete the unused second argument to ip_stripoptions(), move it
closer to its single caller in if_eon.c, try to move fewer bytes
by moving the IP header forward instead of moving the tail of the
mbuf backward, and use m_adj(9) instead of fiddling directly with
mbuf data members.

Revision 1.250.4.3 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:19 2007 UTC (8 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.250.4.2: +2 -3 lines
Diff to previous 1.250.4.2 (colored) to branchpoint 1.250 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.236.4.1 / (download) - annotate - [select for diffs], Sun Sep 23 21:36:35 2007 UTC (8 years, 7 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.236: +2 -3 lines
Diff to previous 1.236 (colored) to selected 1.295 (colored)

Sync with somewhat-recent netbsd-4.

Revision 1.212.2.2.4.1 / (download) - annotate - [select for diffs], Mon Sep 17 20:16:58 2007 UTC (8 years, 7 months ago) by bouyer
Branch: netbsd-3-1
Changes since 1.212.2.2: +0 -1 lines
Diff to previous 1.212.2.2 (colored) next main 1.212.2.3 (colored) to selected 1.295 (colored)

Pull up following revision(s) (requested by degroote in ticket #1840):
	sys/netinet/ip_input.c: revision 1.253
In some FAST_IPSEC, spl level is not restored correctly. Fix that.
Spotted by Wolfgang Stukenbrock in pr/36800

Revision 1.212.2.2.2.1 / (download) - annotate - [select for diffs], Mon Sep 17 20:15:36 2007 UTC (8 years, 7 months ago) by bouyer
Branch: netbsd-3-0
Changes since 1.212.2.2: +0 -1 lines
Diff to previous 1.212.2.2 (colored) next main 1.212.2.3 (colored) to selected 1.295 (colored)

Pull up following revision(s) (requested by degroote in ticket #1840):
	sys/netinet/ip_input.c: revision 1.253
In some FAST_IPSEC, spl level is not restored correctly. Fix that.
Spotted by Wolfgang Stukenbrock in pr/36800

Revision 1.212.2.3 / (download) - annotate - [select for diffs], Mon Sep 17 20:14:21 2007 UTC (8 years, 7 months ago) by bouyer
Branch: netbsd-3
Changes since 1.212.2.2: +0 -1 lines
Diff to previous 1.212.2.2 (colored) to branchpoint 1.212 (colored) next main 1.213 (colored) to selected 1.295 (colored)

Pull up following revision(s) (requested by degroote in ticket #1840):
	sys/netinet/ip_input.c: revision 1.253
In some FAST_IPSEC, spl level is not restored correctly. Fix that.
Spotted by Wolfgang Stukenbrock in pr/36800

Revision 1.236.2.1 / (download) - annotate - [select for diffs], Sun Sep 16 15:34:59 2007 UTC (8 years, 7 months ago) by xtraeme
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-base-1, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, matt-nb4-arm-base, matt-nb4-arm
Branch point for: netbsd-4-0
Changes since 1.236: +2 -3 lines
Diff to previous 1.236 (colored) to selected 1.295 (colored)

Pull up following revision(s) (requested by degroote in ticket #881):
	sys/netinet/ip_input.c: revision 1.253
	sys/netinet6/ip6_input.c: revision 1.110

In some FAST_IPSEC, spl level is not restored correctly. Fix that.
Spotted by Wolfgang Stukenbrock in pr/36800

Revision 1.253 / (download) - annotate - [select for diffs], Tue Sep 11 14:18:09 2007 UTC (8 years, 7 months ago) by degroote
Branch: MAIN
CVS Tags: yamt-x86pmap-base
Branch point for: yamt-x86pmap
Changes since 1.252: +2 -3 lines
Diff to previous 1.252 (colored) to selected 1.295 (colored)

In some FAST_IPSEC, spl level is not restored correctly. Fix that.

Spotted by Wolfgang Stukenbrock in pr/36800

Revision 1.250.4.2 / (download) - annotate - [select for diffs], Mon Sep 3 16:49:04 2007 UTC (8 years, 8 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.250.4.1: +7 -4 lines
Diff to previous 1.250.4.1 (colored) to branchpoint 1.250 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.218.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:42:58 2007 UTC (8 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.218.2.3: +92 -76 lines
Diff to previous 1.218.2.3 (colored) to selected 1.295 (colored)

sync with head.

Revision 1.249.2.2 / (download) - annotate - [select for diffs], Mon Sep 3 10:23:45 2007 UTC (8 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.249.2.1: +7 -4 lines
Diff to previous 1.249.2.1 (colored) to branchpoint 1.249 (colored) next main 1.250 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.252 / (download) - annotate - [select for diffs], Thu Aug 30 02:17:37 2007 UTC (8 years, 8 months ago) by dyoung
Branch: MAIN
CVS Tags: nick-csl-alignment-base5
Changes since 1.251: +7 -4 lines
Diff to previous 1.251 (colored) to selected 1.295 (colored)

Use malloc(9) for sockaddrs instead of pool(9), and remove dom_sa_pool
and dom_sa_len members from struct domain.  Pools of fixed-size
objects are too rigid for sockaddr_dls, whose size can vary over
a wide range.

Return sockaddr_dl to its "historical" size.  Now that I'm using
malloc(9) instead of pool(9) to allocate sockaddr_dl, I can create
a sockaddr_dl of any size in the kernel, so expanding sockaddr_dl
is useless.

Avoid using sizeof(struct sockaddr_dl) in the kernel.

Introduce sockaddr_dl_alloc() for allocating & initializing an
arbitrary sockaddr_dl on the heap.

Add an argument, the sockaddr length, to sockaddr_alloc(),
sockaddr_copy(), and sockaddr_dl_setaddr().

Constify: LLADDR() -> CLLADDR().

Where the kernel overwrites LLADDR(), use sockaddr_dl_setaddr(),
instead.  Used properly, sockaddr_dl_setaddr() will not overrun
the end of the sockaddr.

Revision 1.245.2.4 / (download) - annotate - [select for diffs], Mon Aug 20 21:27:59 2007 UTC (8 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.245.2.3: +7 -13 lines
Diff to previous 1.245.2.3 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.250.4.1 / (download) - annotate - [select for diffs], Thu Aug 16 11:03:46 2007 UTC (8 years, 8 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.250: +5 -9 lines
Diff to previous 1.250 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.249.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:49:45 2007 UTC (8 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.249: +7 -13 lines
Diff to previous 1.249 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.251 / (download) - annotate - [select for diffs], Fri Aug 10 22:46:16 2007 UTC (8 years, 8 months ago) by dyoung
Branch: MAIN
Branch point for: matt-armv6
Changes since 1.250: +5 -9 lines
Diff to previous 1.250 (colored) to selected 1.295 (colored)

Use sockaddr_dl_init().

Revision 1.250.6.2 / (download) - annotate - [select for diffs], Thu Jul 19 20:48:56 2007 UTC (8 years, 9 months ago) by dyoung
Branch: matt-mips64
Changes since 1.250.6.1: +2401 -0 lines
Diff to previous 1.250.6.1 (colored) to branchpoint 1.250 (colored) next main 1.251 (colored) to selected 1.295 (colored)

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.250.6.1, Thu Jul 19 20:48:55 2007 UTC (8 years, 9 months ago) by dyoung
Branch: matt-mips64
Changes since 1.250: +0 -2401 lines
FILE REMOVED

file ip_input.c was added on branch matt-mips64 on 2007-07-19 20:48:56 +0000

Revision 1.250 / (download) - annotate - [select for diffs], Thu Jul 19 20:48:55 2007 UTC (8 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-mips64-base, hpcarm-cleanup
Branch point for: matt-mips64, jmcneill-pm
Changes since 1.249: +4 -6 lines
Diff to previous 1.249 (colored) to selected 1.295 (colored)

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.246.2.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:11:23 2007 UTC (8 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.246: +61 -41 lines
Diff to previous 1.246 (colored) next main 1.247 (colored) to selected 1.295 (colored)

Sync with head.

Revision 1.245.2.3 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:46 2007 UTC (8 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.245.2.2: +22 -37 lines
Diff to previous 1.245.2.2 (colored) to selected 1.295 (colored)

Sync with head.

Revision 1.242.2.5 / (download) - annotate - [select for diffs], Mon May 7 10:55:59 2007 UTC (9 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.242.2.4: +22 -37 lines
Diff to previous 1.242.2.4 (colored) to branchpoint 1.242 (colored) next main 1.243 (colored) to selected 1.295 (colored)

sync with head.

Revision 1.249 / (download) - annotate - [select for diffs], Wed May 2 20:40:25 2007 UTC (9 years ago) by dyoung
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.248: +22 -37 lines
Diff to previous 1.248 (colored) to selected 1.295 (colored)

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

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

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

DETAILS

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

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

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

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

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

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

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

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

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

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

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

Revision 1.242.2.4 / (download) - annotate - [select for diffs], Sun Apr 15 16:04:00 2007 UTC (9 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.242.2.3: +39 -3 lines
Diff to previous 1.242.2.3 (colored) to branchpoint 1.242 (colored) to selected 1.295 (colored)

sync with head.

Revision 1.245.2.2 / (download) - annotate - [select for diffs], Tue Apr 10 13:26:49 2007 UTC (9 years ago) by ad
Branch: vmlocking
Changes since 1.245.2.1: +41 -6 lines
Diff to previous 1.245.2.1 (colored) to selected 1.295 (colored)

Sync with head.

Revision 1.246.4.1 / (download) - annotate - [select for diffs], Thu Mar 29 19:28:00 2007 UTC (9 years, 1 month ago) by reinoud
Branch: reinoud-bufcleanup
Changes since 1.246: +41 -6 lines
Diff to previous 1.246 (colored) next main 1.247 (colored) to selected 1.295 (colored)

Pullup to -current

Revision 1.248 / (download) - annotate - [select for diffs], Sun Mar 25 20:12:20 2007 UTC (9 years, 1 month ago) by liamjfoy
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic
Changes since 1.247: +39 -3 lines
Diff to previous 1.247 (colored) to selected 1.295 (colored)

Add net.inet.ip.hashsize to control the IPv4 fast forward hash table size.

Revision 1.242.2.3 / (download) - annotate - [select for diffs], Sat Mar 24 14:56:10 2007 UTC (9 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.242.2.2: +8 -7 lines
Diff to previous 1.242.2.2 (colored) to branchpoint 1.242 (colored) to selected 1.295 (colored)

sync with head.

Revision 1.247 / (download) - annotate - [select for diffs], Sat Mar 24 00:27:58 2007 UTC (9 years, 1 month ago) by liamjfoy
Branch: MAIN
Changes since 1.246: +4 -5 lines
Diff to previous 1.246 (colored) to selected 1.295 (colored)

Don't call ip*flow_reap if we're just looking up maxflows

Revision 1.245.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 16:52:02 2007 UTC (9 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.245: +6 -4 lines
Diff to previous 1.245 (colored) to selected 1.295 (colored)

Sync with head.

Revision 1.246 / (download) - annotate - [select for diffs], Mon Mar 12 18:18:36 2007 UTC (9 years, 1 month ago) by ad
Branch: MAIN
Branch point for: reinoud-bufcleanup, mjf-ufs-trans
Changes since 1.245: +6 -4 lines
Diff to previous 1.245 (colored) to selected 1.295 (colored)

Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.

Revision 1.242.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:59:37 2007 UTC (9 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.242.2.1: +22 -25 lines
Diff to previous 1.242.2.1 (colored) to branchpoint 1.242 (colored) to selected 1.295 (colored)

Sync with HEAD.

Revision 1.245 / (download) - annotate - [select for diffs], Mon Mar 5 00:50:53 2007 UTC (9 years, 2 months ago) by liamjfoy
Branch: MAIN
Branch point for: vmlocking
Changes since 1.244: +2 -5 lines
Diff to previous 1.244 (colored) to selected 1.295 (colored)

Move ipflow_slowtimo from ip_slowtimo and into in_proto.c

ok matt@

Revision 1.244 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:21 2007 UTC (9 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.243: +22 -22 lines
Diff to previous 1.243 (colored) to selected 1.295 (colored)

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

Revision 1.242.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:55 2007 UTC (9 years, 2 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.242: +10 -10 lines
Diff to previous 1.242 (colored) to selected 1.295 (colored)

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

Revision 1.218.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:44 2007 UTC (9 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.218.2.2: +12 -12 lines
Diff to previous 1.218.2.2 (colored) to selected 1.295 (colored)

sync with head.

Revision 1.243 / (download) - annotate - [select for diffs], Sat Feb 17 22:34:11 2007 UTC (9 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.242: +10 -10 lines
Diff to previous 1.242 (colored) to selected 1.295 (colored)

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

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

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

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

Constify:

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

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

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

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

Revision 1.229.2.3 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:43 2007 UTC (9 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.229.2.2: +4 -4 lines
Diff to previous 1.229.2.2 (colored) to branchpoint 1.229 (colored) next main 1.230 (colored) to selected 1.295 (colored)

Sync with head.

Revision 1.242 / (download) - annotate - [select for diffs], Mon Jan 29 05:48:56 2007 UTC (9 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base
Branch point for: yamt-idlelwp
Changes since 1.241: +4 -4 lines
Diff to previous 1.241 (colored) to selected 1.295 (colored)

Cosmetic: remove extraneous, non-KNF parentheses.  Change a
sizeof(type) to a sizeof(*ptr) so the correctness of the statement
is correct "at a glance" (or so I hope).

Revision 1.229.2.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:14 2007 UTC (9 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.229.2.1: +24 -25 lines
Diff to previous 1.229.2.1 (colored) to branchpoint 1.229 (colored) to selected 1.295 (colored)

Sync with head.

Revision 1.218.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:33 2006 UTC (9 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.218.2.1: +74 -32 lines
Diff to previous 1.218.2.1 (colored) to selected 1.295 (colored)

sync with head.

Revision 1.241 / (download) - annotate - [select for diffs], Fri Dec 22 05:34:02 2006 UTC (9 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.240: +3 -3 lines
Diff to previous 1.240 (colored) to selected 1.295 (colored)

ipintr(): check if the queue is empty before looping. Hardly a giant
win, but removed 30% of splnet() calls in one local test.

Revision 1.231.2.3 / (download) - annotate - [select for diffs], Mon Dec 18 11:42:21 2006 UTC (9 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.231.2.2: +18 -15 lines
Diff to previous 1.231.2.2 (colored) to branchpoint 1.231 (colored) next main 1.232 (colored) to selected 1.295 (colored)

sync with head.

Revision 1.240 / (download) - annotate - [select for diffs], Fri Dec 15 21:18:53 2006 UTC (9 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4
Changes since 1.239: +18 -15 lines
Diff to previous 1.239 (colored) to selected 1.295 (colored)

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

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

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

Revision 1.231.2.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:19:10 2006 UTC (9 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.231.2.1: +18 -22 lines
Diff to previous 1.231.2.1 (colored) to branchpoint 1.231 (colored) to selected 1.295 (colored)

sync with head.

Revision 1.239 / (download) - annotate - [select for diffs], Sat Dec 9 05:33:04 2006 UTC (9 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-splraiseipl-base3
Changes since 1.238: +12 -16 lines
Diff to previous 1.238 (colored) to selected 1.295 (colored)

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

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

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

Here are the details:

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

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

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

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

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

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

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

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

In domain initializers, use .dom_xxx tags.

KNF here and there.

Revision 1.238 / (download) - annotate - [select for diffs], Wed Dec 6 00:39:56 2006 UTC (9 years, 5 months ago) by dyoung
Branch: MAIN
Changes since 1.237: +5 -5 lines
Diff to previous 1.237 (colored) to selected 1.295 (colored)

KNF.

Revision 1.237 / (download) - annotate - [select for diffs], Wed Dec 6 00:38:16 2006 UTC (9 years, 5 months ago) by dyoung
Branch: MAIN
Changes since 1.236: +4 -4 lines
Diff to previous 1.236 (colored) to selected 1.295 (colored)

KNF.

Revision 1.229.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:36 2006 UTC (9 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.229: +23 -7 lines
Diff to previous 1.229 (colored) to selected 1.295 (colored)

Sync with head.

Revision 1.236 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:45 2006 UTC (9 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-4-base, netbsd-4-0-RC1
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.235: +3 -3 lines
Diff to previous 1.235 (colored) to selected 1.295 (colored)

__unused removal on arguments; approved by core.

Revision 1.231.2.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:28 2006 UTC (9 years, 6 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.231: +22 -8 lines
Diff to previous 1.231 (