CVS log for src/sys/netinet/tcp_subr.c
Up to [cvs.NetBSD.org] / src / sys / netinet
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.297: download - view: text, markup, annotated - select for diffs
Fri Jul 5 04:31:54 2024 UTC (5 months ago) by rin
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.296: preferred, colored
Changes since revision 1.296: +3 -4
lines
sys: Drop redundant NULL check before m_freem(9)
m_freem(9) safely has accepted NULL argument at least since 4.2BSD:
https://www.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/sys/sys/uipc_mbuf.c
Compile-tested on amd64/ALL.
Suggested by knakahara@
Revision 1.296: download - view: text, markup, annotated - select for diffs
Fri Nov 4 09:01:53 2022 UTC (2 years, 1 month ago) by ozaki-r
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10
Diff to: previous 1.295: preferred, colored
Changes since revision 1.295: +17 -17
lines
inpcb: rename functions to in6pcb_*
Revision 1.295: download - view: text, markup, annotated - select for diffs
Fri Nov 4 09:00:58 2022 UTC (2 years, 1 month ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.294: preferred, colored
Changes since revision 1.294: +20 -20
lines
inpcb: rename functions to inpcb_*
Inspired by rmind-smpnet patches.
Revision 1.294: download - view: text, markup, annotated - select for diffs
Mon Oct 31 00:56:33 2022 UTC (2 years, 1 month ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.293: preferred, colored
Changes since revision 1.293: +3 -3
lines
tcp: fix wrong logic in tcp_drop
Pointed out by mlelstv@
Revision 1.293: download - view: text, markup, annotated - select for diffs
Fri Oct 28 05:25:36 2022 UTC (2 years, 1 month ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.292: preferred, colored
Changes since revision 1.292: +29 -29
lines
inpcb: separate inpcb again to reduce the size of PCB for IPv4
The data size of PCB for IPv4 increased because of the merge of
struct in6pcb. The change decreases the size to the original size by
separating struct inpcb (again). struct in4pcb and in6pcb that embed
struct inpcb are introduced.
Even after the separation, users don't need to realize the separation
and only have to use some macros to access dedicated data. For example,
inp->inp_laddr is now accessed through in4p_laddr(inp).
Revision 1.292: download - view: text, markup, annotated - select for diffs
Fri Oct 28 05:18:39 2022 UTC (2 years, 1 month ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.291: preferred, colored
Changes since revision 1.291: +85 -240
lines
inpcb: integrate data structures of PCB into one
Data structures of network protocol control blocks (PCBs), i.e.,
struct inpcb, in6pcb and inpcb_hdr, are not organized well. Users of
the data structures have to handle them separately and thus the code
is cluttered and duplicated.
The commit integrates the data structures into one, struct inpcb. As a
result, users of PCBs only have to handle just one data structure, so
the code becomes simple.
One drawback is that the data size of PCB for IPv4 increases by 40 bytes
(from 248 bytes to 288 bytes).
Revision 1.291: download - view: text, markup, annotated - select for diffs
Tue Sep 20 07:19:14 2022 UTC (2 years, 2 months ago) by ozaki-r
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.290: preferred, colored
Changes since revision 1.290: +3 -10
lines
tcp: separate syn cache stuffs into tcp_syncache.[ch] files
No functional change.
Revision 1.290: download - view: text, markup, annotated - select for diffs
Mon Jun 27 01:29:51 2022 UTC (2 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.289: preferred, colored
Changes since revision 1.289: +3 -4
lines
Remove confusable comment.
The comment was added in tcp_subr.c:r1.124 (2002/03/15).
tcp_drain() is called from softint context only, now.
Revision 1.288.4.1: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:42 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.288: preferred, colored; next MAIN 1.289: preferred, colored
Changes since revision 1.288: +3 -3
lines
Sync with HEAD.
Revision 1.289: download - view: text, markup, annotated - select for diffs
Sat Jul 31 20:29:37 2021 UTC (3 years, 4 months ago) by andvar
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
thorpej-cfargs2
Diff to: previous 1.288: preferred, colored
Changes since revision 1.288: +3 -3
lines
s/threshhold/threshold
Revision 1.284.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:29:01 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.284: preferred, colored; next MAIN 1.285: preferred, colored
Changes since revision 1.284: +18 -50
lines
Sync with HEAD.
Revision 1.270.6.3: download - view: text, markup, annotated - select for diffs
Tue Mar 9 15:56:51 2021 UTC (3 years, 9 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.270.6.2: preferred, colored; branchpoint 1.270: preferred, colored; next MAIN 1.271: preferred, colored
Changes since revision 1.270.6.2: +2 -4
lines
Pull up following revision(s) (requested by christos in ticket #1662):
sys/netinet/tcp_subr.c: revision 1.286
sys/netinet/tcp_timer.c: revision 1.96
sys/netinet/in_var.h: revision 1.102
sys/netinet/in_var.h: revision 1.99
Don't increment the iss sequence on each connection because it exposes
information (Amit Klein)
Add some randomness to the iss offset
Use a random IPv4 ID because the shuffling algorithm used before could expose
information (Amit Klein)
mv <sys/cprng.h> include to the kernel portion
Revision 1.282.4.3: download - view: text, markup, annotated - select for diffs
Tue Mar 9 15:54:32 2021 UTC (3 years, 9 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE
Diff to: previous 1.282.4.2: preferred, colored; branchpoint 1.282: preferred, colored; next MAIN 1.283: preferred, colored
Changes since revision 1.282.4.2: +2 -4
lines
Pull up following revision(s) (requested by christos in ticket #1229):
sys/netinet/tcp_subr.c: revision 1.286
sys/netinet/tcp_timer.c: revision 1.96
sys/netinet/in_var.h: revision 1.102
sys/netinet/in_var.h: revision 1.99
Don't increment the iss sequence on each connection because it exposes
information (Amit Klein)
Add some randomness to the iss offset
Use a random IPv4 ID because the shuffling algorithm used before could expose
information (Amit Klein)
mv <sys/cprng.h> include to the kernel portion
Revision 1.288: download - view: text, markup, annotated - select for diffs
Tue Mar 9 13:48:16 2021 UTC (3 years, 9 months ago) by christos
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-cfargs-base,
thorpej-cfargs,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.287: preferred, colored
Changes since revision 1.287: +10 -10
lines
Move the offset addition in one place and mask the random generated value
to make sure that the isn is monotonic.
Revision 1.287: download - view: text, markup, annotated - select for diffs
Mon Mar 8 18:17:27 2021 UTC (3 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.286: preferred, colored
Changes since revision 1.286: +16 -46
lines
Remove the unused "addin" argument (it was always 0) and go back using
a random iss by default (instead of rfc1948)
Revision 1.286: download - view: text, markup, annotated - select for diffs
Mon Mar 8 17:53:20 2021 UTC (3 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.285: preferred, colored
Changes since revision 1.285: +2 -4
lines
Don't increment the iss sequence on each connection because it exposes
information (Amit Klein)
Revision 1.270.6.2: download - view: text, markup, annotated - select for diffs
Sun Mar 7 19:13:24 2021 UTC (3 years, 9 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.270.6.1: preferred, colored; branchpoint 1.270: preferred, colored
Changes since revision 1.270.6.1: +3 -3
lines
Pull up following revision(s) (requested by christos in ticket #1661):
sys/netinet6/ip6_id.c: revision 1.19-1.21
sys/netinet6/ip6_var.h: revision 1.88
sys/netinet/ip_input.c: revision 1.400
sys/netinet/tcp_subr.c: revision 1.285
sys/netinet/ip6.h: revision 1.30
netinet: Enable random IP fragment ids by default (from riastradh)
netinet: Enable RFC 1948 pseudorandom TCP ISS selection by default.
(from riastradh)
netinet6: Mark randomid unused.
Will make merging and bisection easier if anything goes wrong with
flow label or fragment id randomization changes.
(from riastradh)
netinet/netinet6: Add necessary includes to make these standalone.
(from riastradh)
Replace randomid() by cprng_fast32()
Revision 1.282.4.2: download - view: text, markup, annotated - select for diffs
Sun Mar 7 19:04:31 2021 UTC (3 years, 9 months ago) by martin
Branches: netbsd-9
Diff to: previous 1.282.4.1: preferred, colored; branchpoint 1.282: preferred, colored
Changes since revision 1.282.4.1: +3 -3
lines
Pull up following revision(s) (requested by christos in ticket #1226):
sys/netinet6/ip6_id.c: revision 1.19-1.21
sys/netinet6/ip6_var.h: revision 1.88
sys/netinet/ip_input.c: revision 1.400
sys/netinet/tcp_subr.c: revision 1.285
sys/netinet/ip6.h: revision 1.30
netinet: Enable random IP fragment ids by default (from riastradh)
netinet: Enable RFC 1948 pseudorandom TCP ISS selection by default.
(from riastradh)
netinet6: Mark randomid unused.
Will make merging and bisection easier if anything goes wrong with
flow label or fragment id randomization changes.
(from riastradh)
netinet/netinet6: Add necessary includes to make these standalone.
(from riastradh)
Replace randomid() by cprng_fast32()
Revision 1.285: download - view: text, markup, annotated - select for diffs
Sun Mar 7 14:58:54 2021 UTC (3 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.284: preferred, colored
Changes since revision 1.284: +3 -3
lines
netinet: Enable RFC 1948 pseudorandom TCP ISS selection by default.
(from riastradh)
Revision 1.284: download - view: text, markup, annotated - select for diffs
Fri Jun 12 11:04:45 2020 UTC (4 years, 5 months ago) by roy
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.283: preferred, colored
Changes since revision 1.283: +8 -12
lines
Remove in-kernel handling of Router Advertisements
This is much better handled by a user-land tool.
Proposed on tech-net here:
https://mail-index.netbsd.org/tech-net/2020/04/22/msg007766.html
Note that the ioctl SIOCGIFINFO_IN6 no longer sets flags. That now
needs to be done using the pre-existing SIOCSIFINFO_FLAGS ioctl.
Compat is fully provided where it makes sense, but trying to turn on
RA handling will obviously throw an error as it no longer exists.
Note that if you use IPv6 temporary addresses, this now needs to be
turned on in dhcpcd.conf(5) rather than in sysctl.conf(5).
Revision 1.280.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:16 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.280.2.1: preferred, colored; branchpoint 1.280: preferred, colored; next MAIN 1.281: preferred, colored
Changes since revision 1.280.2.1: +14 -7
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.282.4.1: download - view: text, markup, annotated - select for diffs
Tue Sep 10 16:19:00 2019 UTC (5 years, 3 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1
Diff to: previous 1.282: preferred, colored
Changes since revision 1.282: +14 -7
lines
Pull up following revision(s) (requested by maxv in ticket #193):
sys/netinet/tcp_timer.h: revision 1.30
sys/netinet/tcp_input.c: revision 1.415
sys/netinet/tcp_usrreq.c: revision 1.225
sys/netinet/tcp_subr.c: revision 1.283
Clamp tcp timer quantities to reasonable ranges.
Revision 1.283: download - view: text, markup, annotated - select for diffs
Tue Aug 6 15:48:18 2019 UTC (5 years, 4 months ago) by riastradh
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
is-mlppp-base,
is-mlppp,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache
Diff to: previous 1.282: preferred, colored
Changes since revision 1.282: +14 -7
lines
Clamp tcp timer quantities to reasonable ranges.
Reported-by: syzbot+259675123340bf46a6de@syzkaller.appspotmail.com
Revision 1.280.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:47 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.280: preferred, colored
Changes since revision 1.280: +9 -9
lines
Sync with HEAD
Revision 1.273.2.6: download - view: text, markup, annotated - select for diffs
Fri Jan 18 08:50:58 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.273.2.5: preferred, colored; branchpoint 1.273: preferred, colored; next MAIN 1.274: preferred, colored
Changes since revision 1.273.2.5: +4 -4
lines
Synch with HEAD
Revision 1.282: download - view: text, markup, annotated - select for diffs
Thu Dec 27 16:59:17 2018 UTC (5 years, 11 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-20190609,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
netbsd-9-base,
isaki-audio2-base,
isaki-audio2
Branch point for: netbsd-9
Diff to: previous 1.281: preferred, colored
Changes since revision 1.281: +4 -4
lines
Remove unused arguments.
Revision 1.273.2.5: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:56:45 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.273.2.4: preferred, colored; branchpoint 1.273: preferred, colored
Changes since revision 1.273.2.4: +7 -7
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.281: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:36 2018 UTC (6 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906
Diff to: previous 1.280: preferred, colored
Changes since revision 1.280: +7 -7
lines
Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.
HOWEVER! Some subsystems have
#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))
even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.
To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.
I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:
cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))
It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.
Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)
Revision 1.273.2.4: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:26:07 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.273.2.3: preferred, colored; branchpoint 1.273: preferred, colored
Changes since revision 1.273.2.3: +6 -2
lines
Sync with HEAD
Revision 1.280: download - view: text, markup, annotated - select for diffs
Wed May 23 18:40:29 2018 UTC (6 years, 6 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-0728,
pgoyette-compat-0625
Branch point for: phil-wifi
Diff to: previous 1.279: preferred, colored
Changes since revision 1.279: +6 -2
lines
Add XXX.
Revision 1.273.2.3: download - view: text, markup, annotated - select for diffs
Mon May 21 04:36:16 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.273.2.2: preferred, colored; branchpoint 1.273: preferred, colored
Changes since revision 1.273.2.2: +2 -3
lines
Sync with HEAD
Revision 1.279: download - view: text, markup, annotated - select for diffs
Thu May 3 07:13:48 2018 UTC (6 years, 7 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-0521
Diff to: previous 1.278: preferred, colored
Changes since revision 1.278: +2 -3
lines
Remove now unused tcpip.h includes. Some were already unused before.
Revision 1.273.2.2: download - view: text, markup, annotated - select for diffs
Sun Apr 22 07:20:28 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.273.2.1: preferred, colored; branchpoint 1.273: preferred, colored
Changes since revision 1.273.2.1: +2 -8
lines
Sync with HEAD
Revision 1.278: download - view: text, markup, annotated - select for diffs
Wed Apr 18 07:17:49 2018 UTC (6 years, 7 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-0502,
pgoyette-compat-0422
Diff to: previous 1.277: preferred, colored
Changes since revision 1.277: +2 -3
lines
Remove unused netipsec/xform.h includes.
Revision 1.277: download - view: text, markup, annotated - select for diffs
Wed Apr 18 06:17:43 2018 UTC (6 years, 7 months ago) by maxv
Branches: MAIN
Diff to: previous 1.276: preferred, colored
Changes since revision 1.276: +2 -7
lines
Remove misleading comments.
Revision 1.273.2.1: download - view: text, markup, annotated - select for diffs
Fri Mar 30 06:20:16 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.273: preferred, colored
Changes since revision 1.273: +58 -134
lines
Resolve conflicts between branch and HEAD
Revision 1.276: download - view: text, markup, annotated - select for diffs
Thu Mar 29 18:54:48 2018 UTC (6 years, 8 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330
Diff to: previous 1.275: preferred, colored
Changes since revision 1.275: +2 -10
lines
Remove TCPREASS_DEBUG. It was introduced 20 years ago when the reassembler
was being developed, but it's irrelevant today. Makes the code clearer.
Revision 1.275: download - view: text, markup, annotated - select for diffs
Thu Mar 29 08:11:41 2018 UTC (6 years, 8 months ago) by maxv
Branches: MAIN
Diff to: previous 1.274: preferred, colored
Changes since revision 1.274: +51 -88
lines
Misc changes; no real functional change.
Revision 1.274: download - view: text, markup, annotated - select for diffs
Thu Mar 29 07:46:43 2018 UTC (6 years, 8 months ago) by maxv
Branches: MAIN
Diff to: previous 1.273: preferred, colored
Changes since revision 1.273: +9 -40
lines
Remove #ifdef INET. Same as tcp_input.c. Makes the code easier to
understand.
Also make tcp6_mtudisc() static in tcp_subr.c.
Revision 1.273: download - view: text, markup, annotated - select for diffs
Mon Feb 26 08:50:25 2018 UTC (6 years, 9 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-base,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.272: preferred, colored
Changes since revision 1.272: +6 -6
lines
Dedup: merge ipsec4_hdrsiz and ipsec6_hdrsiz into ipsec_hdrsiz.
ok ozaki-r@
Revision 1.270.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 3 22:07:26 2018 UTC (6 years, 10 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1
Diff to: previous 1.270: preferred, colored
Changes since revision 1.270: +3 -6
lines
Pull up following revision(s) (requested by ozaki-r in ticket #514):
sys/net/route.c: 1.205
sys/net/rtsock.c: 1.237-1.238
sys/netinet/in.c: 1.215
sys/netinet/tcp_subr.c: 1.272
sys/netinet/tcp_timer.c: 1.93
sys/netinet/tcp_timer.h: 1.29
sys/netinet/tcp_var.h: 1.182
sys/netinet6/in6.c: 1.258
Remove extra pserialize_perform from in_purgeaddr
It's already performed in ifa_remove. Note so there (in in6_unlink_ifa too).
Release rt_so_mtx on updating a rtentry to avoid a deadlock with route_intr
The deadlock happened only if NET_MPSAFE on.
Run tcp_slowtimo in workqueue if NET_MPSAFE
If NET_MPSAFE is enabled, we have to avoid taking softnet_lock in softint as
much as possible to prevent any softint handlers including callout handlers
such as tcp_slowtimo from sticking on softnet_lock because it results in
undesired delays of executing subsequent softint handlers.
NFCI for !NET_MPSAFE
Fix a return value of rt_update_prepare
Callers expect it to be an errno.
Fix another deadlock
When waiting for a route update to finish, a waiter has to release its reference
to the route to avoid a deadlock. Because a updater tries to wait for references
to a target route (except for a reference by the updater itself) to be released.
Revision 1.272: download - view: text, markup, annotated - select for diffs
Fri Jan 19 07:53:01 2018 UTC (6 years, 10 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.271: preferred, colored
Changes since revision 1.271: +3 -6
lines
Run tcp_slowtimo in workqueue if NET_MPSAFE
If NET_MPSAFE is enabled, we have to avoid taking softnet_lock in softint as
much as possible to prevent any softint handlers including callout handlers
such as tcp_slowtimo from sticking on softnet_lock because it results in
undesired delays of executing subsequent softint handlers.
NFCI for !NET_MPSAFE
Revision 1.248.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:04 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.248.2.2: preferred, colored; branchpoint 1.248: preferred, colored; next MAIN 1.249: preferred, colored
Changes since revision 1.248.2.2: +138 -132
lines
update from HEAD
Revision 1.257.2.8: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:12 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.257.2.7: preferred, colored; branchpoint 1.257: preferred, colored; next MAIN 1.258: preferred, colored
Changes since revision 1.257.2.7: +7 -34
lines
Sync with HEAD
Revision 1.271: download - view: text, markup, annotated - select for diffs
Sat Jul 29 05:08:48 2017 UTC (7 years, 4 months ago) by maxv
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
nick-nhusb-base-20170825
Diff to: previous 1.270: preferred, colored
Changes since revision 1.270: +3 -22
lines
Forgot to commit this file yesterday.
Revision 1.269.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:06 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.269: preferred, colored; next MAIN 1.270: preferred, colored
Changes since revision 1.269: +6 -14
lines
Sync with HEAD
Revision 1.266.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:51 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.266.2.1: preferred, colored; branchpoint 1.266: preferred, colored; next MAIN 1.267: preferred, colored
Changes since revision 1.266.2.1: +6 -14
lines
Sync with HEAD
Revision 1.270: download - view: text, markup, annotated - select for diffs
Fri Mar 3 07:13:06 2017 UTC (7 years, 9 months ago) by ozaki-r
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-8-base,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1
Branch point for: netbsd-8
Diff to: previous 1.269: preferred, colored
Changes since revision 1.269: +6 -14
lines
Pass inpcb/in6pcb instead of socket to ip_output/ip6_output
- Passing a socket to Layer 3 is layer violation and even unnecessary
- The change makes codes of callers and IPsec a bit simple
Revision 1.257.2.7: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:59 2017 UTC (7 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.257.2.6: preferred, colored; branchpoint 1.257: preferred, colored
Changes since revision 1.257.2.6: +37 -4
lines
Sync with HEAD
Revision 1.266.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:51 2017 UTC (7 years, 11 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.266: preferred, colored
Changes since revision 1.266: +66 -30
lines
Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
Revision 1.269: download - view: text, markup, annotated - select for diffs
Mon Jan 2 01:18:42 2017 UTC (7 years, 11 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-20170107,
nick-nhusb-base-20170204,
bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.268: preferred, colored
Changes since revision 1.268: +3 -3
lines
Fix TCP signature code:
1. pack options more tightly instead of being generous with no/op
2. put TCP_SIGNATURE option before SACK
3. fix computation of options length, by deferring it
XXX: Really we should move the options setting code in one place instead
of having two copies one for input and one for output.
XXX: tcp_optlen/tcp_hdrsiz need to be fixed; they were wrong before too.
Revision 1.268: download - view: text, markup, annotated - select for diffs
Thu Dec 8 05:16:33 2016 UTC (8 years ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.267: preferred, colored
Changes since revision 1.267: +36 -3
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.257.2.6: download - view: text, markup, annotated - select for diffs
Mon Dec 5 10:55:28 2016 UTC (8 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.257.2.5: preferred, colored; branchpoint 1.257: preferred, colored
Changes since revision 1.257.2.5: +31 -28
lines
Sync with HEAD
Revision 1.267: download - view: text, markup, annotated - select for diffs
Wed Nov 9 03:33:30 2016 UTC (8 years, 1 month ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20161204
Diff to: previous 1.266: preferred, colored
Changes since revision 1.266: +31 -28
lines
Cleanup/KNF tcp6_mtudisc
No functional change.
Revision 1.257.2.5: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:22 2016 UTC (8 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.257.2.4: preferred, colored; branchpoint 1.257: preferred, colored
Changes since revision 1.257.2.4: +3 -3
lines
Sync with HEAD
Revision 1.266: download - view: text, markup, annotated - select for diffs
Fri Jun 10 13:27:16 2016 UTC (8 years, 6 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.265: preferred, colored
Changes since revision 1.265: +3 -3
lines
Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.
No functional change.
Revision 1.257.2.4: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:33 2016 UTC (8 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.257.2.3: preferred, colored; branchpoint 1.257: preferred, colored
Changes since revision 1.257.2.3: +5 -10
lines
Sync with HEAD
Revision 1.265: download - view: text, markup, annotated - select for diffs
Mon Feb 15 14:59:03 2016 UTC (8 years, 9 months ago) by rtr
Branches: MAIN
CVS tags: nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319
Diff to: previous 1.264: preferred, colored
Changes since revision 1.264: +5 -10
lines
Reduce code duplication.
Split creation of IPv4-Mapped IPv6 addresses into its own function
and use it.
No functional change intended. As posted to tech-net@
Revision 1.257.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:11 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.257.2.2: preferred, colored; branchpoint 1.257: preferred, colored
Changes since revision 1.257.2.2: +33 -29
lines
Sync with HEAD
Revision 1.264: download - view: text, markup, annotated - select for diffs
Mon Sep 7 01:56:50 2015 UTC (9 years, 3 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20151226,
nick-nhusb-base-20150921
Diff to: previous 1.263: preferred, colored
Changes since revision 1.263: +31 -29
lines
Refactor tcp_mtudisc
No functional change.
Revision 1.263: download - view: text, markup, annotated - select for diffs
Mon Aug 24 22:21:26 2015 UTC (9 years, 3 months ago) by pooka
Branches: MAIN
Diff to: previous 1.262: preferred, colored
Changes since revision 1.262: +4 -2
lines
sprinkle _KERNEL_OPT
Revision 1.257.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:25 2015 UTC (9 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.257.2.1: preferred, colored; branchpoint 1.257: preferred, colored
Changes since revision 1.257.2.1: +36 -40
lines
Sync with HEAD
Revision 1.262: download - view: text, markup, annotated - select for diffs
Tue May 19 17:33:43 2015 UTC (9 years, 6 months ago) by kefren
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.261: preferred, colored
Changes since revision 1.261: +19 -11
lines
Use RUN_ONCE to initialize iss secret. Suggested by riastradh@
Revision 1.261: download - view: text, markup, annotated - select for diffs
Sat May 16 10:09:20 2015 UTC (9 years, 6 months ago) by kefren
Branches: MAIN
Diff to: previous 1.260: preferred, colored
Changes since revision 1.260: +14 -13
lines
Don't overexpose tcp_iss_secret and don't bother compute it unless
RFC1948 compliance is activated
Revision 1.260: download - view: text, markup, annotated - select for diffs
Mon Apr 27 02:59:44 2015 UTC (9 years, 7 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.259: preferred, colored
Changes since revision 1.259: +6 -19
lines
Introduce in6_selecthlim_rt to consolidate an idiom for rt->rt_ifp
It consolidates a scattered routine:
(rt = rtcache_validate(&in6p->in6p_route)) != NULL ? rt->rt_ifp : NULL
Revision 1.259: download - view: text, markup, annotated - select for diffs
Mon Apr 13 15:51:00 2015 UTC (9 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.258: preferred, colored
Changes since revision 1.258: +3 -3
lines
cprng_strong(kern_cprng, ...) never blocks, pass 0 for flags.
FASYNC was wrong anyway! It's FNONBLOCK.
Revision 1.257.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:23 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.257: preferred, colored
Changes since revision 1.257: +5 -2
lines
Sync with HEAD
Revision 1.255.4.2: download - view: text, markup, annotated - select for diffs
Sat Feb 21 13:40:19 2015 UTC (9 years, 9 months ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0
Diff to: previous 1.255.4.1: preferred, colored; branchpoint 1.255: preferred, colored; next MAIN 1.256: preferred, colored
Changes since revision 1.255.4.1: +5 -2
lines
Pull up following revision(s) (requested by he in ticket #530):
sys/netinet/tcp_output.c: revision 1.180
sys/netinet/tcp_input.c: revision 1.336
sys/netinet/tcp_usrreq.c: revision 1.203
share/man/man4/tcp.4: revision 1.30
sys/netinet/tcp.h: revision 1.31
sys/netinet/tcp_subr.c: revision 1.258
sys/netinet/tcp_var.h: revision 1.176
sys/netinet/tcp_var.h: revision 1.177
sys/sys/param.h: bump revision
Port over the TCP_INFO socket option from FreeBSD, originally from
the Linux 2.6 TCP API. This permits the caller to query certain information
about a TCP connection, and is used by pkgsrc's net/iperf3 test program
if available.
This extends struct tcbcb with three fields to count retransmits,
out-of-sequence receives and zero window announcements, and will
therefore warrant a kernel revision bump (done separately).
Change the new counter variables in struct tcpcb to uint32_t, as
per christos' comments.
Revision 1.258: download - view: text, markup, annotated - select for diffs
Sat Feb 14 12:57:53 2015 UTC (9 years, 9 months ago) by he
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.257: preferred, colored
Changes since revision 1.257: +5 -2
lines
Port over the TCP_INFO socket option from FreeBSD, originally from
the Linux 2.6 TCP API. This permits the caller to query certain information
about a TCP connection, and is used by pkgsrc's net/iperf3 test program
if available.
This extends struct tcbcb with three fields to count retransmits,
out-of-sequence receives and zero window announcements, and will
therefore warrant a kernel revision bump (done separately).
Revision 1.255.4.1: download - view: text, markup, annotated - select for diffs
Sat Jan 17 12:10:53 2015 UTC (9 years, 10 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.255: preferred, colored
Changes since revision 1.255: +2 -3
lines
Pull up following revision(s) (requested by maxv in ticket #427):
sys/compat/svr4/svr4_schedctl.c: revision 1.8
sys/netinet/tcp_timer.c: revision 1.88
sys/miscfs/genfs/layer_vfsops.c: revision 1.45
sys/compat/svr4/svr4_ioctl.c: revision 1.37
sys/ufs/chfs/chfs_vfsops.c: revision 1.14
sys/miscfs/fdesc/fdesc_vfsops.c: revision 1.91
sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.30
sys/compat/common/kern_time_50.c: revision 1.28
sys/netinet6/ip6_forward.c: revision 1.74
sys/miscfs/umapfs/umap_vnops.c: revision 1.57
sys/compat/svr4/svr4_fcntl.c: revision 1.74
distrib/sets/lists/comp/mi: revision 1.1931
sys/netinet6/udp6_output.c: revision 1.46
sys/fs/puffs/puffs_compat.c: revision 1.3
sys/fs/udf/udf_rename.c: revision 1.11
sys/compat/svr4/svr4_filio.c: revision 1.24
sys/fs/udf/udf_rename.c: revision 1.12
sys/netinet/tcp_usrreq.c: revision 1.202
sys/miscfs/umapfs/umap_subr.c: revision 1.29
sys/compat/linux/common/linux_fadvise64.c: revision 1.3
sys/netinet/if_atm.c: revision 1.34
sys/miscfs/procfs/procfs_subr.c: revision 1.106
sys/miscfs/genfs/layer_subr.c: revision 1.37
sys/netinet/tcp_sack.c: revision 1.30
sys/compat/freebsd/freebsd_misc.c: revision 1.33
sys/compat/freebsd/freebsd_file.c: revision 1.33
sys/ufs/chfs/chfs_vnode.c: revision 1.12
sys/compat/svr4/svr4_ttold.c: revision 1.34
sys/compat/linux/common/linux_file.c: revision 1.114
sys/compat/linux/arch/mips/linux_machdep.c: revision 1.43
sys/compat/linux/common/linux_signal.c: revision 1.76
sys/compat/common/compat_util.c: revision 1.46
sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.18
sys/compat/svr4/svr4_sockio.c: revision 1.36
sys/compat/linux/arch/arm/linux_machdep.c: revision 1.32
sys/compat/svr4/svr4_signal.c: revision 1.66
sys/kern/kern_exec.c: revision 1.410
sys/fs/puffs/puffs_vfsops.c: revision 1.115
sys/compat/svr4/svr4_exec_elf64.c: revision 1.15
sys/compat/linux/arch/i386/linux_machdep.c: revision 1.159
sys/compat/linux/arch/alpha/linux_machdep.c: revision 1.50
sys/compat/linux32/common/linux32_misc.c: revision 1.24
sys/netinet/in_pcb.c: revision 1.153
sys/sys/malloc.h: revision 1.116
sys/compat/common/if_43.c: revision 1.9
share/man/man9/Makefile: revision 1.380
sys/netinet/tcp_vtw.c: revision 1.12
sys/miscfs/umapfs/umap_vfsops.c: revision 1.95
sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.186
sys/compat/common/uipc_syscalls_43.c: revision 1.46
sys/ufs/ext2fs/ext2fs_vnops.c: revision 1.115
sys/fs/puffs/puffs_msgif.c: revision 1.97
sys/compat/svr4/svr4_ipc.c: revision 1.27
sys/compat/linux/common/linux_exec.c: revision 1.117
sys/ufs/ext2fs/ext2fs_readwrite.c: revision 1.66
sys/netinet/tcp_output.c: revision 1.179
sys/compat/svr4/svr4_termios.c: revision 1.28
sys/fs/udf/udf_strat_bootstrap.c: revision 1.4
sys/fs/puffs/puffs_subr.c: revision 1.67
sys/fs/puffs/puffs_node.c: revision 1.36
sys/miscfs/overlay/overlay_vnops.c: revision 1.21
sys/fs/cd9660/cd9660_node.c: revision 1.34
sys/netinet/raw_ip.c: revision 1.146
sys/sys/mallocvar.h: revision 1.13
sys/miscfs/overlay/overlay_vfsops.c: revision 1.63
share/man/man9/malloc.9: revision 1.50
sys/netinet6/dest6.c: revision 1.18
sys/compat/linux/common/linux_uselib.c: revision 1.33
sys/compat/linux/common/linux_socket.c: revision 1.120
share/man/man9/malloc.9: revision 1.51
sys/netinet/tcp_subr.c: revision 1.257
sys/compat/linux/common/linux_socketcall.c: revision 1.45
sys/compat/linux/common/linux_fadvise64_64.c: revision 1.3
sys/compat/freebsd/freebsd_ipc.c: revision 1.17
sys/compat/linux/common/linux_misc_notalpha.c: revision 1.109
sys/compat/linux/arch/alpha/linux_pipe.c: revision 1.17
sys/netinet6/in6_pcb.c: revision 1.132
sys/netinet6/in6_ifattach.c: revision 1.94
sys/compat/svr4/svr4_exec_elf32.c: revision 1.15
sys/miscfs/nullfs/null_vfsops.c: revision 1.90
sys/fs/cd9660/cd9660_util.c: revision 1.12
sys/compat/linux/arch/powerpc/linux_machdep.c: revision 1.48
sys/compat/freebsd/freebsd_exec_elf32.c: revision 1.20
sys/miscfs/procfs/procfs_vfsops.c: revision 1.94
sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.28
sys/compat/linux/common/linux_sched.c: revision 1.67
sys/compat/linux/common/linux_exec_aout.c: revision 1.67
sys/compat/linux/common/linux_pipe.c: revision 1.67
sys/compat/linux/common/linux_llseek.c: revision 1.34
sys/compat/linux/arch/mips/linux_ptrace.c: revision 1.10
Do not uselessly include <sys/malloc.h>.
Cleanup:
- remove struct kmembuckets (dead)
- correctly deadify MALLOC_XX
- remove MALLOC_DEFINE_LIMIT and MALLOC_JUSTDEFINE_LIMIT (dead)
- remove malloc_roundup(), malloc_type_setlimit(), MALLOC_DEFINE_LIMIT()
and MALLOC_JUSTDEFINE_LIMIT() from man 9 malloc
New sentence, new line. Bump date for previous.
Obsolete malloc_roundup(9), malloc_type_setlimit(9) and MALLOC_DEFINE_LIMIT(9)
man pages.
Revision 1.257: download - view: text, markup, annotated - select for diffs
Mon Nov 10 18:52:51 2014 UTC (10 years, 1 month ago) by maxv
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.256: preferred, colored
Changes since revision 1.256: +2 -3
lines
Do not uselessly include <sys/malloc.h>.
Revision 1.256: download - view: text, markup, annotated - select for diffs
Fri Sep 5 06:04:43 2014 UTC (10 years, 3 months ago) by matt
Branches: MAIN
Diff to: previous 1.255: preferred, colored
Changes since revision 1.255: +7 -7
lines
Don't use C++ keyword (template) as variable.
Revision 1.248.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:35 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.248.2.1: preferred, colored; branchpoint 1.248: preferred, colored
Changes since revision 1.248.2.1: +44 -29
lines
Rebase to HEAD as of a few days ago.
Revision 1.242.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:10 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.242.2.2: preferred, colored; branchpoint 1.242: preferred, colored; next MAIN 1.243: preferred, colored
Changes since revision 1.242.2.2: +67 -35
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.250.2.3: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:13 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.250.2.2: preferred, colored; branchpoint 1.250: preferred, colored; next MAIN 1.251: preferred, colored
Changes since revision 1.250.2.2: +45 -30
lines
sync with head
Revision 1.255: download - view: text, markup, annotated - select for diffs
Sun Mar 16 05:20:30 2014 UTC (10 years, 8 months ago) by dholland
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.254: preferred, colored
Changes since revision 1.254: +3 -3
lines
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.
I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
Revision 1.254: download - view: text, markup, annotated - select for diffs
Thu Jan 2 18:52:04 2014 UTC (10 years, 11 months ago) by pooka
Branches: MAIN
Diff to: previous 1.253: preferred, colored
Changes since revision 1.253: +3 -2
lines
need atomic.h, from uwe
Revision 1.253: download - view: text, markup, annotated - select for diffs
Thu Jan 2 18:29:01 2014 UTC (10 years, 11 months ago) by pooka
Branches: MAIN
Diff to: previous 1.252: preferred, colored
Changes since revision 1.252: +40 -29
lines
Allow kernels compiled with INET+INET6 to be booted as IPv4-only or IPv6-only.
Revision 1.252: download - view: text, markup, annotated - select for diffs
Sat Nov 23 14:20:21 2013 UTC (11 years ago) by christos
Branches: MAIN
Diff to: previous 1.251: preferred, colored
Changes since revision 1.251: +3 -3
lines
convert from CIRCLEQ to TAILQ.
Revision 1.251: download - view: text, markup, annotated - select for diffs
Tue Nov 12 09:02:05 2013 UTC (11 years, 1 month ago) by kefren
Branches: MAIN
Diff to: previous 1.250: preferred, colored
Changes since revision 1.250: +5 -2
lines
* implement TCP CUBIC congestion control algorithm
* move tcp_sack_newack bits inside reno and newreno_fast_retransmit_newack
* notify ECN peer about cwnd shrink in [new]reno_slow_retransmit
Based on the patch proposed on tech-net@ on Nov 7 with minor improvments:
* adapt wmax for no-fast convergence case
* correct cbrt calculation for big window sizes (>750KB)
Revision 1.250.2.2: download - view: text, markup, annotated - select for diffs
Mon Sep 23 00:57:53 2013 UTC (11 years, 2 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.250.2.1: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.2.1: +4 -4
lines
- Add some initial locking to the IPv4 PCB.
- Rename inpcb_lookup_*() routines to be more accurate and add comments.
- Add some comments about connection life-cycle WRT socket layer.
Revision 1.250.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 17 03:16:31 2013 UTC (11 years, 4 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.250: preferred, colored
Changes since revision 1.250: +107 -93
lines
Checkpoint work in progress:
- Move PCB structures under __INPCB_PRIVATE, adjust most of the callers
and thus make IPv4 PCB structures mostly opaque. Any volunteers for
merging in6pcb with inpcb (see rpaulo-netinet-merge-pcb branch)?
- Move various global vars to the modules where they belong, make them static.
- Some preliminary work for IPv4 PCB locking scheme.
- Make raw IP code mostly MP-safe. Simplify some of it.
- Rework "fast" IP forwarding (ipflow) code to be mostly MP-safe. It should
run from a software interrupt, rather than hard.
- Rework tun(4) pseudo interface to be MP-safe.
- Work towards making some other interfaces more strict.
Revision 1.248.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:25 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.248: preferred, colored
Changes since revision 1.248: +23 -6
lines
resync from head
Revision 1.250: download - view: text, markup, annotated - select for diffs
Wed Jun 5 19:01:26 2013 UTC (11 years, 6 months ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2
Branch point for: rmind-smpnet
Diff to: previous 1.249: preferred, colored
Changes since revision 1.249: +5 -5
lines
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.249: download - view: text, markup, annotated - select for diffs
Wed Apr 10 00:16:03 2013 UTC (11 years, 8 months ago) by christos
Branches: MAIN
CVS tags: khorben-n900
Diff to: previous 1.248: preferred, colored
Changes since revision 1.248: +20 -3
lines
Limit the tcp initial window setting to 10, leaving it by default to 4
and simplifying the code in process. Per draft-ietf-initcwnd-08.txt.
Revision 1.246.2.1: download - view: text, markup, annotated - select for diffs
Wed Oct 31 17:30:20 2012 UTC (12 years, 1 month ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1
Diff to: previous 1.246: preferred, colored; next MAIN 1.247: preferred, colored
Changes since revision 1.246: +3 -3
lines
Pull up following revision(s) (requested by msaitoh in ticket #644):
sys/netinet/tcp_subr.c: revision 1.248
sys/kern/subr_cprng.c: revision 1.12
Fix a bug that kmem_alloc() is called from the interrupt context.
Revision 1.242.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:46 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.242.2.1: preferred, colored; branchpoint 1.242: preferred, colored
Changes since revision 1.242.2.1: +3 -3
lines
sync with head
Revision 1.248: download - view: text, markup, annotated - select for diffs
Sat Sep 8 02:58:13 2012 UTC (12 years, 3 months ago) by msaitoh
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
agc-symver-base,
agc-symver
Branch point for: tls-maxphys
Diff to: previous 1.247: preferred, colored
Changes since revision 1.247: +3 -3
lines
Fix a bug that kmem_alloc() is called from the interrupt context.
Revision 1.242.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:41 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.242: preferred, colored
Changes since revision 1.242: +11 -31
lines
sync with head
Revision 1.243.2.2: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:33:44 2012 UTC (12 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.243.2.1: preferred, colored; branchpoint 1.243: preferred, colored; next MAIN 1.244: preferred, colored
Changes since revision 1.243.2.1: +3 -8
lines
sync to latest -current.
Revision 1.247: download - view: text, markup, annotated - select for diffs
Thu Mar 22 20:34:39 2012 UTC (12 years, 8 months ago) by drochner
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base10
Diff to: previous 1.246: preferred, colored
Changes since revision 1.246: +3 -8
lines
remove KAME IPSEC, replaced by FAST_IPSEC
Revision 1.243.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:41 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.243: preferred, colored
Changes since revision 1.243: +9 -10
lines
merge to -current.
Revision 1.246: download - view: text, markup, annotated - select for diffs
Sat Dec 31 20:41:59 2011 UTC (12 years, 11 months ago) by christos
Branches: MAIN
CVS tags: netbsd-6-base,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
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
Branch point for: netbsd-6
Diff to: previous 1.245: preferred, colored
Changes since revision 1.245: +5 -6
lines
- fix offsetof usage, and redundant defines
- kill pointer casts to 0
Revision 1.245: download - view: text, markup, annotated - select for diffs
Mon Dec 19 11:59:57 2011 UTC (12 years, 11 months ago) by drochner
Branches: MAIN
Diff to: previous 1.244: preferred, colored
Changes since revision 1.244: +5 -5
lines
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.244: download - view: text, markup, annotated - select for diffs
Sat Dec 17 20:05:39 2011 UTC (12 years, 11 months ago) by tls
Branches: MAIN
Diff to: previous 1.243: preferred, colored
Changes since revision 1.243: +3 -3
lines
Separate /dev/random pseudodevice implemenation from kernel entropy pool
implementation. Rewrite pseudodevice code to use cprng_strong(9).
The new pseudodevice is cloning, so each caller gets bits from a stream
generated with its own key. Users of /dev/urandom get their generators
keyed on a "best effort" basis -- the kernel will rekey generators
whenever the entropy pool hits the high water mark -- while users of
/dev/random get their generators rekeyed every time key-length bits
are output.
The underlying cprng_strong API can use AES-256 or AES-128, but we use
AES-128 because of concerns about related-key attacks on AES-256. This
improves performance (and reduces entropy pool depletion) significantly
for users of /dev/urandom but does cause users of /dev/random to rekey
twice as often.
Also fixes various bugs (including some missing locking and a reseed-counter
overflow in the CTR_DRBG code) found while testing this.
For long reads, this generator is approximately 20 times as fast as the
old generator (dd with bs=64K yields 53MB/sec on 2Ghz Core2 instead of
2.5MB/sec) and also uses a separate mutex per instance so concurrency
is greatly improved. For reads of typical key sizes for modern
cryptosystems (16-32 bytes) performance is about the same as the old
code: a little better for 32 bytes, a little worse for 16 bytes.
Revision 1.243: download - view: text, markup, annotated - select for diffs
Sat Nov 19 22:51:26 2011 UTC (13 years ago) by tls
Branches: MAIN
CVS tags: jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Diff to: previous 1.242: preferred, colored
Changes since revision 1.242: +7 -21
lines
First step of random number subsystem rework described in
<20111022023242.BA26F14A158@mail.netbsd.org>. This change includes
the following:
An initial cleanup and minor reorganization of the entropy pool
code in sys/dev/rnd.c and sys/dev/rndpool.c. Several bugs are
fixed. Some effort is made to accumulate entropy more quickly at
boot time.
A generic interface, "rndsink", is added, for stream generators to
request that they be re-keyed with good quality entropy from the pool
as soon as it is available.
The arc4random()/arc4randbytes() implementation in libkern is
adjusted to use the rndsink interface for rekeying, which helps
address the problem of low-quality keys at boot time.
An implementation of the FIPS 140-2 statistical tests for random
number generator quality is provided (libkern/rngtest.c). This
is based on Greg Rose's implementation from Qualcomm.
A new random stream generator, nist_ctr_drbg, is provided. It is
based on an implementation of the NIST SP800-90 CTR_DRBG by
Henric Jungheim. This generator users AES in a modified counter
mode to generate a backtracking-resistant random stream.
An abstraction layer, "cprng", is provided for in-kernel consumers
of randomness. The arc4random/arc4randbytes API is deprecated for
in-kernel use. It is replaced by "cprng_strong". The current
cprng_fast implementation wraps the existing arc4random
implementation. The current cprng_strong implementation wraps the
new CTR_DRBG implementation. Both interfaces are rekeyed from
the entropy pool automatically at intervals justifiable from best
current cryptographic practice.
In some quick tests, cprng_fast() is about the same speed as
the old arc4randbytes(), and cprng_strong() is about 20% faster
than rnd_extract_data(). Performance is expected to improve.
The AES code in src/crypto/rijndael is no longer an optional
kernel component, as it is required by cprng_strong, which is
not an optional kernel component.
The entropy pool output is subjected to the rngtest tests at
startup time; if it fails, the system will reboot. There is
approximately a 3/10000 chance of a false positive from these
tests. Entropy pool _input_ from hardware random numbers is
subjected to the rngtest tests at attach time, as well as the
FIPS continuous-output test, to detect bad or stuck hardware
RNGs; if any are detected, they are detached, but the system
continues to run.
A problem with rndctl(8) is fixed -- datastructures with
pointers in arrays are no longer passed to userspace (this
was not a security problem, but rather a major issue for
compat32). A new kernel will require a new rndctl.
The sysctl kern.arandom() and kern.urandom() nodes are hooked
up to the new generators, but the /dev/*random pseudodevices
are not, yet.
Manual pages for the new kernel interfaces are forthcoming.
Revision 1.242: download - view: text, markup, annotated - select for diffs
Mon Oct 31 12:56:45 2011 UTC (13 years, 1 month ago) by yamt
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache
Diff to: previous 1.241: preferred, colored
Changes since revision 1.241: +5 -4
lines
tcp_drain: grab softnet_lock where appropriate
Revision 1.238.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:09:56 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.238: preferred, colored; next MAIN 1.239: preferred, colored
Changes since revision 1.238: +83 -8
lines
Sync with HEAD.
Revision 1.238.4.2: download - view: text, markup, annotated - select for diffs
Tue May 31 03:05:08 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.238.4.1: preferred, colored; branchpoint 1.238: preferred, colored; next MAIN 1.239: preferred, colored
Changes since revision 1.238.4.1: +80 -5
lines
sync with head
Revision 1.241: download - view: text, markup, annotated - select for diffs
Tue May 3 18:28:45 2011 UTC (13 years, 7 months ago) by dyoung
Branches: MAIN
CVS tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base,
cherry-xenmp
Diff to: previous 1.240: preferred, colored
Changes since revision 1.240: +65 -7
lines
Reduces the resources demanded by TCP sessions in TIME_WAIT-state using
methods called Vestigial Time-Wait (VTW) and Maximum Segment Lifetime
Truncation (MSLT).
MSLT and VTW were contributed by Coyote Point Systems, Inc.
Even after a TCP session enters the TIME_WAIT state, its corresponding
socket and protocol control blocks (PCBs) stick around until the TCP
Maximum Segment Lifetime (MSL) expires. On a host whose workload
necessarily creates and closes down many TCP sockets, the sockets & PCBs
for TCP sessions in TIME_WAIT state amount to many megabytes of dead
weight in RAM.
Maximum Segment Lifetimes Truncation (MSLT) assigns each TCP session to
a class based on the nearness of the peer. Corresponding to each class
is an MSL, and a session uses the MSL of its class. The classes are
loopback (local host equals remote host), local (local host and remote
host are on the same link/subnet), and remote (local host and remote
host communicate via one or more gateways). Classes corresponding to
nearer peers have lower MSLs by default: 2 seconds for loopback, 10
seconds for local, 60 seconds for remote. Loopback and local sessions
expire more quickly when MSLT is used.
Vestigial Time-Wait (VTW) replaces a TIME_WAIT session's PCB/socket
dead weight with a compact representation of the session, called a
"vestigial PCB". VTW data structures are designed to be very fast and
memory-efficient: for fast insertion and lookup of vestigial PCBs,
the PCBs are stored in a hash table that is designed to minimize the
number of cacheline visits per lookup/insertion. The memory both
for vestigial PCBs and for elements of the PCB hashtable come from
fixed-size pools, and linked data structures exploit this to conserve
memory by representing references with a narrow index/offset from the
start of a pool instead of a pointer. When space for new vestigial PCBs
runs out, VTW makes room by discarding old vestigial PCBs, oldest first.
VTW cooperates with MSLT.
It may help to think of VTW as a "FIN cache" by analogy to the SYN
cache.
A 2.8-GHz Pentium 4 running a test workload that creates TIME_WAIT
sessions as fast as it can is approximately 17% idle when VTW is active
versus 0% idle when VTW is inactive. It has 103 megabytes more free RAM
when VTW is active (approximately 64k vestigial PCBs are created) than
when it is inactive.
Revision 1.240: download - view: text, markup, annotated - select for diffs
Tue May 3 17:44:31 2011 UTC (13 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.239: preferred, colored
Changes since revision 1.239: +19 -2
lines
*_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.238.4.1: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:42:14 2011 UTC (13 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.238: preferred, colored
Changes since revision 1.238: +3 -3
lines
sync with head
Revision 1.239: download - view: text, markup, annotated - select for diffs
Wed Apr 20 13:35:51 2011 UTC (13 years, 7 months ago) by gdt
Branches: MAIN
Diff to: previous 1.238: preferred, colored
Changes since revision 1.238: +3 -3
lines
Rewrite comments about TCP RTO calculations.
Long ago, the storage representations of srtt and rttvar were changed
from the 4.4BSD scheme, and the comments are out of sync with the
code. This commit rewrites most of the comments that explain the RTO
calculations, and points out some issues in the code.
Joint work with Bev Schwartz of BBN (original analysis and comments),
but I have rewritten and extended them, so errors are mine.
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. Approved for Public
Release, Distribution Unlimited
Revision 1.229.2.4: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:29 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.229.2.3: preferred, colored; branchpoint 1.229: preferred, colored; next MAIN 1.230: preferred, colored
Changes since revision 1.229.2.3: +4 -2
lines
sync with head
Revision 1.238: download - view: text, markup, annotated - select for diffs
Wed Sep 16 15:23:05 2009 UTC (15 years, 2 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1,
uebayasi-xip-base,
uebayasi-xip,
matt-premerge-20091211,
matt-mips64-premerge-20101231,
jym-xensuspend-nbase,
jruoho-x86intr-base,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: rmind-uvmplock,
jruoho-x86intr
Diff to: previous 1.237: preferred, colored
Changes since revision 1.237: +4 -2
lines
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.234.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:32:48 2009 UTC (15 years, 4 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.234.2.1: preferred, colored; branchpoint 1.234: preferred, colored; next MAIN 1.235: preferred, colored
Changes since revision 1.234.2.1: +5 -2
lines
Sync with HEAD.
Revision 1.229.2.3: download - view: text, markup, annotated - select for diffs
Sat Jun 20 07:20:34 2009 UTC (15 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.229.2.2: preferred, colored; branchpoint 1.229: preferred, colored
Changes since revision 1.229.2.2: +5 -2
lines
sync with head
Revision 1.237: download - view: text, markup, annotated - select for diffs
Wed May 27 17:41:03 2009 UTC (15 years, 6 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
jymxensuspend-base
Diff to: previous 1.236: preferred, colored
Changes since revision 1.236: +5 -2
lines
POOL_INIT -> pool_init
Revision 1.234.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:22:28 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.234: preferred, colored
Changes since revision 1.234: +8 -8
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.229.2.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:14:18 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.229.2.1: preferred, colored; branchpoint 1.229: preferred, colored
Changes since revision 1.229.2.1: +34 -23
lines
sync with head.
Revision 1.233.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:37:22 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.233.2.1: preferred, colored; branchpoint 1.233: preferred, colored; next MAIN 1.234: preferred, colored
Changes since revision 1.233.2.1: +8 -8
lines
Sync with HEAD.
Revision 1.236: download - view: text, markup, annotated - select for diffs
Wed Mar 18 16:00:22 2009 UTC (15 years, 8 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
jym-xensuspend-base
Diff to: previous 1.235: preferred, colored
Changes since revision 1.235: +7 -7
lines
bzero -> memset
Revision 1.235: download - view: text, markup, annotated - select for diffs
Wed Mar 18 15:14:31 2009 UTC (15 years, 8 months ago) by cegger
Branches: MAIN
Diff to: previous 1.234: preferred, colored
Changes since revision 1.234: +3 -3
lines
bcmp -> memcmp
Revision 1.233.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:33:38 2009 UTC (15 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.233: preferred, colored
Changes since revision 1.233: +5 -2
lines
Sync with HEAD.
Revision 1.234: download - view: text, markup, annotated - select for diffs
Thu Jan 29 20:38:22 2009 UTC (15 years, 10 months ago) by pooka
Branches: MAIN
CVS tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Diff to: previous 1.233: preferred, colored
Changes since revision 1.233: +5 -2
lines
stinkset purge: POOL_INIT -> pool_init
also, make the syncache pool static in scope
Revision 1.222.6.3: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:32 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.222.6.2: preferred, colored; branchpoint 1.222: preferred, colored; next MAIN 1.223: preferred, colored
Changes since revision 1.222.6.2: +23 -15
lines
Sync with HEAD.
Revision 1.231.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:17:46 2008 UTC (16 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.231: preferred, colored; next MAIN 1.232: preferred, colored
Changes since revision 1.231: +25 -17
lines
Sync with HEAD.
Revision 1.233: download - view: text, markup, annotated - select for diffs
Mon Oct 13 19:44:21 2008 UTC (16 years, 2 months ago) by pooka
Branches: MAIN
CVS tags: netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
mjf-devfs2-base,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
haad-nbase2,
haad-dm-base2,
haad-dm-base1,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Branch point for: nick-hppapmap
Diff to: previous 1.232: preferred, colored
Changes since revision 1.232: +5 -4
lines
POOL_INIT -> pool_init
Revision 1.231.2.1: download - view: text, markup, annotated - select for diffs
Fri Oct 10 22:35:43 2008 UTC (16 years, 2 months ago) by skrll
Branches: wrstuden-revivesa
Diff to: previous 1.231: preferred, colored; next MAIN 1.232: preferred, colored
Changes since revision 1.231: +22 -15
lines
Sync with HEAD.
Revision 1.232: download - view: text, markup, annotated - select for diffs
Fri Oct 10 10:23:34 2008 UTC (16 years, 2 months ago) by ad
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4
Diff to: previous 1.231: preferred, colored
Changes since revision 1.231: +22 -15
lines
tcp_close: rearrange sequence of events slightly to make this atomic.
It was possible for a half-destroyed tcpcb to be visble, as softnet_lock
was being dropped.
Revision 1.208.4.2: download - view: text, markup, annotated - select for diffs
Tue Jun 3 20:47:42 2008 UTC (16 years, 6 months ago) by skrll
Branches: wrstuden-fixsa
Diff to: previous 1.208.4.1: preferred, colored; branchpoint 1.208: preferred, colored; next MAIN 1.209: preferred, colored
Changes since revision 1.208.4.1: +4 -4
lines
Sync with netbsd-4.
Revision 1.222.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:25 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.222.6.1: preferred, colored; branchpoint 1.222: preferred, colored
Changes since revision 1.222.6.1: +53 -60
lines
Sync with HEAD.
Revision 1.227.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:35:29 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.227: preferred, colored; next MAIN 1.228: preferred, colored
Changes since revision 1.227: +32 -57
lines
sync with head.
Revision 1.229.2.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:25:42 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.229: preferred, colored
Changes since revision 1.229: +4 -11
lines
sync with head.
Revision 1.231: download - view: text, markup, annotated - select for diffs
Fri May 2 13:40:33 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
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
Diff to: previous 1.230: preferred, colored
Changes since revision 1.230: +4 -4
lines
PR kern/38497 Out of memory allocating ksiginfo
Work around: don't acquire softnet_lock in protocol drain routines.
Revision 1.230: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:09 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
Diff to: previous 1.229: preferred, colored
Changes since revision 1.229: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.229: download - view: text, markup, annotated - select for diffs
Sat Apr 26 08:13:35 2008 UTC (16 years, 7 months ago) by yamt
Branches: MAIN
CVS tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Diff to: previous 1.228: preferred, colored
Changes since revision 1.228: +4 -2
lines
tcp_init: don't forget to allocate tcpstat_percpu.
Revision 1.228: download - view: text, markup, annotated - select for diffs
Thu Apr 24 11:38:38 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.227: preferred, colored
Changes since revision 1.227: +30 -50
lines
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.227: download - view: text, markup, annotated - select for diffs
Sat Apr 12 05:58:22 2008 UTC (16 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base
Branch point for: yamt-pf42
Diff to: previous 1.226: preferred, colored
Changes since revision 1.226: +26 -8
lines
Make IP, TCP, UDP, and ICMP statistics per-CPU. The stats are collated
when the user requests them via sysctl.
Revision 1.226: download - view: text, markup, annotated - select for diffs
Tue Apr 8 01:03:58 2008 UTC (16 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +8 -8
lines
Change TCP stats from a structure to an array of uint64_t's.
Note: This is ABI-compatible with the old tcpstat structure; old netstat
binaries will continue to work properly.
Revision 1.222.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:43:08 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.222: preferred, colored
Changes since revision 1.222: +8 -10
lines
Sync with HEAD.
Revision 1.208.2.2: download - view: text, markup, annotated - select for diffs
Sun Mar 30 15:27:49 2008 UTC (16 years, 8 months ago) by jdc
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base
Diff to: previous 1.208.2.1: preferred, colored; branchpoint 1.208: preferred, colored; next MAIN 1.209: preferred, colored
Changes since revision 1.208.2.1: +4 -4
lines
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.208.2.1.4.1: download - view: text, markup, annotated - select for diffs
Sun Mar 30 15:26:11 2008 UTC (16 years, 8 months ago) by jdc
Branches: netbsd-4-0
CVS tags: netbsd-4-0-1-RELEASE
Diff to: previous 1.208.2.1: preferred, colored; next MAIN 1.208.2.2: preferred, colored
Changes since revision 1.208.2.1: +4 -4
lines
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.225: download - view: text, markup, annotated - select for diffs
Thu Mar 27 00:18:56 2008 UTC (16 years, 8 months ago) by cube
Branches: MAIN
Diff to: previous 1.224: preferred, colored
Changes since revision 1.224: +4 -4
lines
- 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.222.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:16:24 2008 UTC (16 years, 8 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.222: preferred, colored; next MAIN 1.223: preferred, colored
Changes since revision 1.222: +8 -10
lines
sync with head.
Revision 1.218.4.2: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:05:06 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.218.4.1: preferred, colored; branchpoint 1.218: preferred, colored; next MAIN 1.219: preferred, colored
Changes since revision 1.218.4.1: +19 -17
lines
sync with HEAD
Revision 1.191.2.7: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:15:41 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.191.2.6: preferred, colored; next MAIN 1.192: preferred, colored
Changes since revision 1.191.2.6: +8 -10
lines
sync with head.
Revision 1.224: download - view: text, markup, annotated - select for diffs
Fri Feb 29 07:39:17 2008 UTC (16 years, 9 months ago) by matt
Branches: MAIN
CVS tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
ad-socklock-base1
Diff to: previous 1.223: preferred, colored
Changes since revision 1.223: +7 -8
lines
Rework tcp congctl selection code so that the congctl entries can be const.
Don't access tcp_congctl stuff outside of tcp_congctl.c, use routines to
update t_congctl. This code is slightly now more complicated.
Revision 1.223: download - view: text, markup, annotated - select for diffs
Wed Feb 27 19:41:51 2008 UTC (16 years, 9 months ago) by matt
Branches: MAIN
Diff to: previous 1.222: preferred, colored
Changes since revision 1.222: +3 -4
lines
Convert stragglers to ansi definitions from old-style definitons.
Remember that func() is not ansi, func(void) is.
Revision 1.218.10.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:07:08 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.218: preferred, colored; next MAIN 1.219: preferred, colored
Changes since revision 1.218: +15 -9
lines
Sync with HEAD.
Revision 1.191.2.6: download - view: text, markup, annotated - select for diffs
Mon Feb 11 15:00:05 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.191.2.5: preferred, colored
Changes since revision 1.191.2.5: +8 -4
lines
sync with head.
Revision 1.222: download - view: text, markup, annotated - select for diffs
Tue Feb 5 09:38:48 2008 UTC (16 years, 10 months ago) by yamt
Branches: MAIN
CVS tags: nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
hpcarm-cleanup-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Diff to: previous 1.221: preferred, colored
Changes since revision 1.221: +8 -4
lines
- start tcp timestamp from 1 instead of 0.
- add a comment to explain why:
+ * We start with 1, because 0 doesn't work with linux, which
+ * considers timestamp 0 in a SYN packet as a bug and disables
+ * timestamps.
Revision 1.191.2.5: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:47:18 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.191.2.4: preferred, colored
Changes since revision 1.191.2.4: +15 -7
lines
sync with head
Revision 1.218.16.2: download - view: text, markup, annotated - select for diffs
Sat Jan 19 12:15:33 2008 UTC (16 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.218.16.1: preferred, colored; branchpoint 1.218: preferred, colored; next MAIN 1.219: preferred, colored
Changes since revision 1.218.16.1: +5 -5
lines
Sync with HEAD
Revision 1.221: download - view: text, markup, annotated - select for diffs
Mon Jan 14 04:19:10 2008 UTC (16 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: bouyer-xeni386-nbase,
bouyer-xeni386-base
Diff to: previous 1.220: preferred, colored
Changes since revision 1.220: +7 -7
lines
Use rtcache_validate() instead of rtcache_getrt(). Shorten staircase
in in_losing().
Revision 1.218.4.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:57:30 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.218: preferred, colored
Changes since revision 1.218: +14 -6
lines
sync with HEAD
Revision 1.218.16.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:57:25 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.218: preferred, colored
Changes since revision 1.218: +14 -6
lines
Sync with HEAD
Revision 1.218.12.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:57:42 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.218: preferred, colored; next MAIN 1.219: preferred, colored
Changes since revision 1.218: +14 -6
lines
Sync with head.
Revision 1.220: download - view: text, markup, annotated - select for diffs
Thu Dec 20 20:24:50 2007 UTC (16 years, 11 months ago) by martin
Branches: MAIN
CVS tags: vmlocking2-base3,
matt-armv6-base
Diff to: previous 1.219: preferred, colored
Changes since revision 1.219: +6 -2
lines
A few missing ifdefs to make non-INET6 kernels build again.
Revision 1.219: download - view: text, markup, annotated - select for diffs
Thu Dec 20 19:53:33 2007 UTC (16 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.218: preferred, colored
Changes since revision 1.218: +10 -6
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.191.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:43:03 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.191.2.3: preferred, colored
Changes since revision 1.191.2.3: +50 -40
lines
sync with head.
Revision 1.212.2.5: download - view: text, markup, annotated - select for diffs
Mon Aug 20 21:28:01 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.212.2.4: preferred, colored; next MAIN 1.213: preferred, colored
Changes since revision 1.212.2.4: +4 -3
lines
Sync with HEAD.
Revision 1.216.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:49:47 2007 UTC (17 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.216: preferred, colored; next MAIN 1.217: preferred, colored
Changes since revision 1.216: +4 -3
lines
Sync with HEAD.
Revision 1.218.20.2: download - view: text, markup, annotated - select for diffs
Thu Aug 2 02:42:42 2007 UTC (17 years, 4 months ago) by rmind
Branches: matt-mips64
Diff to: previous 1.218.20.1: preferred, colored; branchpoint 1.218: preferred, colored; next MAIN 1.219: preferred, colored
Changes since revision 1.218.20.1: +2352 -0
lines
TCP socket buffers automatic sizing - ported from FreeBSD.
http://mail-index.netbsd.org/tech-net/2007/02/04/0006.html
! Disabled by default, marked as experimental. Testers are very needed.
! Someone should thoroughly test this, and improve if possible.
Discussed on <tech-net>:
http://mail-index.netbsd.org/tech-net/2007/07/12/0002.html
Thanks Greg Troxel for comments.
OK by the long silence on <tech-net>.
Revision 1.218.20.1
Thu Aug 2 02:42:41 2007 UTC (17 years, 4 months ago) by rmind
Branches: matt-mips64
FILE REMOVED
Changes since revision 1.218: +0 -2352
lines
file tcp_subr.c was added on branch matt-mips64 on 2007-08-02 02:42:42 +0000
Revision 1.218: download - view: text, markup, annotated - select for diffs
Thu Aug 2 02:42:41 2007 UTC (17 years, 4 months ago) by rmind
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-mips64-base,
matt-armv6-prevmlocking,
jmcneill-pm-base,
jmcneill-pm,
jmcneill-base,
cube-autoconf-base,
cube-autoconf,
bouyer-xenamd64-base2,
bouyer-xenamd64-base,
bouyer-xenamd64
Branch point for: vmlocking2,
mjf-devfs,
matt-mips64,
matt-armv6,
bouyer-xeni386
Diff to: previous 1.217: preferred, colored
Changes since revision 1.217: +3 -2
lines
TCP socket buffers automatic sizing - ported from FreeBSD.
http://mail-index.netbsd.org/tech-net/2007/02/04/0006.html
! Disabled by default, marked as experimental. Testers are very needed.
! Someone should thoroughly test this, and improve if possible.
Discussed on <tech-net>:
http://mail-index.netbsd.org/tech-net/2007/07/12/0002.html
Thanks Greg Troxel for comments.
OK by the long silence on <tech-net>.
Revision 1.217: download - view: text, markup, annotated - select for diffs
Thu Jul 19 20:48:55 2007 UTC (17 years, 4 months ago) by dyoung
Branches: MAIN
CVS tags: hpcarm-cleanup
Diff to: previous 1.216: preferred, colored
Changes since revision 1.216: +3 -3
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.212.2.4: download - view: text, markup, annotated - select for diffs
Sun Jul 15 13:27:58 2007 UTC (17 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.212.2.3: preferred, colored
Changes since revision 1.212.2.3: +14 -7
lines
Sync with head.
Revision 1.213.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:11:28 2007 UTC (17 years, 5 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.213: preferred, colored; next MAIN 1.214: preferred, colored
Changes since revision 1.213: +32 -24
lines
Sync with head.
Revision 1.216: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:11:12 2007 UTC (17 years, 5 months ago) by ad
Branches: MAIN
CVS tags: nick-csl-alignment-base,
mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Diff to: previous 1.215: preferred, colored
Changes since revision 1.215: +19 -17
lines
Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
Revision 1.212.2.3: download - view: text, markup, annotated - select for diffs
Sun Jul 1 21:50:51 2007 UTC (17 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.212.2.2: preferred, colored
Changes since revision 1.212.2.2: +19 -17
lines
Adapt to callout API change.
Revision 1.215: download - view: text, markup, annotated - select for diffs
Wed Jun 20 15:29:18 2007 UTC (17 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.214: preferred, colored
Changes since revision 1.214: +14 -7
lines
- per socket keepalive settings
- settable connection establishment timeout
Revision 1.212.2.2: download - view: text, markup, annotated - select for diffs
Fri Jun 8 14:17:48 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.212.2.1: preferred, colored
Changes since revision 1.212.2.1: +3 -4
lines
Sync with head.
Revision 1.208.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 4 01:54:24 2007 UTC (17 years, 6 months ago) by wrstuden
Branches: wrstuden-fixsa
Diff to: previous 1.208: preferred, colored
Changes since revision 1.208: +2 -5
lines
Update to today's netbsd-4.
Revision 1.208.2.1: download - view: text, markup, annotated - select for diffs
Thu May 24 19:13:13 2007 UTC (17 years, 6 months ago) by pavel
Branches: 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,
netbsd-4-0-RC1,
matt-nb4-arm-base,
matt-nb4-arm
Branch point for: netbsd-4-0
Diff to: previous 1.208: preferred, colored
Changes since revision 1.208: +2 -5
lines
Pull up following revision(s) (requested by degroote in ticket #667):
sys/netinet/tcp_input.c: revision 1.260
sys/netinet/tcp_output.c: revision 1.154
sys/netinet/tcp_subr.c: revision 1.210
sys/netinet6/icmp6.c: revision 1.129
sys/netinet6/in6_proto.c: revision 1.70
sys/netinet6/ip6_forward.c: revision 1.54
sys/netinet6/ip6_input.c: revision 1.94
sys/netinet6/ip6_output.c: revision 1.114
sys/netinet6/raw_ip6.c: revision 1.81
sys/netipsec/ipcomp_var.h: revision 1.4
sys/netipsec/ipsec.c: revision 1.26 via patch,1.31-1.32
sys/netipsec/ipsec6.h: revision 1.5
sys/netipsec/ipsec_input.c: revision 1.14
sys/netipsec/ipsec_netbsd.c: revision 1.18,1.26
sys/netipsec/ipsec_output.c: revision 1.21 via patch
sys/netipsec/key.c: revision 1.33,1.44
sys/netipsec/xform_ipcomp.c: revision 1.9
sys/netipsec/xform_ipip.c: revision 1.15
sys/opencrypto/deflate.c: revision 1.8
Commit my SoC work
Add ipv6 support for fast_ipsec
Note that currently, packet with extensions headers are not correctly
supported
Change the ipcomp logic
Add sysctl tree to modify the fast_ipsec options related to ipv6. Similar
to the sysctl kame interface.
Choose the good default policy, depending of the adress family of the
desired policy
Increase the refcount for the default ipv6 policy so nobody can reclaim it
Always compute the sp index even if we don't have any sp in spd. It will
let us to choose the right default policy (based on the adress family
requested).
While here, fix an error message
Use dynamic array instead of an static array to decompress. It lets us to
decompress any data, whatever is the radio decompressed data / compressed
data.
It fixes the last issues with fast_ipsec and ipcomp.
While here, bzero -> memset, bcopy -> memcpy, FREE -> free
Reviewed a long time ago by sam@
Revision 1.210.2.4: download - view: text, markup, annotated - select for diffs
Mon May 7 10:56:00 2007 UTC (17 years, 7 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.210.2.3: preferred, colored; next MAIN 1.211: preferred, colored
Changes since revision 1.210.2.3: +3 -4
lines
sync with head.
Revision 1.214: download - view: text, markup, annotated - select for diffs
Wed May 2 20:40:25 2007 UTC (17 years, 7 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-idlelwp-base8
Diff to: previous 1.213: preferred, colored
Changes since revision 1.213: +3 -4
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.210.2.3: download - view: text, markup, annotated - select for diffs
Sat Mar 24 14:56:11 2007 UTC (17 years, 8 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.210.2.2: preferred, colored
Changes since revision 1.210.2.2: +4 -3
lines
sync with head.
Revision 1.212.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 13 16:52:03 2007 UTC (17 years, 9 months ago) by ad
Branches: vmlocking
Diff to: previous 1.212: preferred, colored
Changes since revision 1.212: +4 -3
lines
Sync with head.
Revision 1.213: download - view: text, markup, annotated - select for diffs
Mon Mar 12 18:18:36 2007 UTC (17 years, 9 months ago) by ad
Branches: MAIN
CVS tags: thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: mjf-ufs-trans
Diff to: previous 1.212: preferred, colored
Changes since revision 1.212: +4 -3
lines
Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.
Revision 1.210.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:59:39 2007 UTC (17 years, 9 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.210.2.1: preferred, colored
Changes since revision 1.210.2.1: +16 -16
lines
Sync with HEAD.
Revision 1.212: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:03:22 2007 UTC (17 years, 9 months ago) by christos
Branches: MAIN
Branch point for: vmlocking
Diff to: previous 1.211: preferred, colored
Changes since revision 1.211: +16 -16
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.210.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:54:57 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.210: preferred, colored
Changes since revision 1.210: +9 -8
lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
Revision 1.191.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:11:46 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.191.2.2: preferred, colored
Changes since revision 1.191.2.2: +9 -11
lines
sync with head.
Revision 1.211: download - view: text, markup, annotated - select for diffs
Sat Feb 17 22:34:12 2007 UTC (17 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: ad-audiomp-base,
ad-audiomp
Diff to: previous 1.210: preferred, colored
Changes since revision 1.210: +9 -8
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.210: download - view: text, markup, annotated - select for diffs
Sat Feb 10 09:43:05 2007 UTC (17 years, 10 months ago) by degroote
Branches: MAIN
Branch point for: yamt-idlelwp
Diff to: previous 1.209: preferred, colored
Changes since revision 1.209: +2 -5
lines
Commit my SoC work
Add ipv6 support for fast_ipsec
Note that currently, packet with extensions headers are not correctly
supported
Change the ipcomp logic
Revision 1.199.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 01:04:14 2007 UTC (17 years, 11 months ago) by ad
Branches: newlock2
Diff to: previous 1.199.2.1: preferred, colored; branchpoint 1.199: preferred, colored; next MAIN 1.200: preferred, colored
Changes since revision 1.199.2.1: +9 -2
lines
Sync with head.
Revision 1.191.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:34 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.191.2.1: preferred, colored
Changes since revision 1.191.2.1: +36 -13
lines
sync with head.
Revision 1.199.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:19:11 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.199.4.1: preferred, colored; branchpoint 1.199: preferred, colored; next MAIN 1.200: preferred, colored
Changes since revision 1.199.4.1: +11 -4
lines
sync with head.
Revision 1.209: download - view: text, markup, annotated - select for diffs
Wed Dec 6 09:10:45 2006 UTC (18 years ago) by yamt
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
post-newlock2-merge,
newlock2-nbase,
newlock2-base
Diff to: previous 1.208: preferred, colored
Changes since revision 1.208: +9 -2
lines
add some more tcp mowners.
Revision 1.199.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:36 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.199: preferred, colored
Changes since revision 1.199: +27 -13
lines
Sync with head.
Revision 1.208: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:45 2006 UTC (18 years ago) by christos
Branches: MAIN
CVS tags: netbsd-4-base
Branch point for: wrstuden-fixsa,
netbsd-4
Diff to: previous 1.207: preferred, colored
Changes since revision 1.207: +4 -4
lines
__unused removal on arguments; approved by core.
Revision 1.199.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:07:29 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.199: preferred, colored
Changes since revision 1.199: +29 -15
lines
sync with head
Revision 1.207: download - view: text, markup, annotated - select for diffs
Thu Oct 19 11:40:51 2006 UTC (18 years, 1 month ago) by yamt
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.206: preferred, colored
Changes since revision 1.206: +11 -4
lines
implement RFC3465 appropriate byte counting.
from Kentaro A. Kurahone, with minor adjustments by me.
the ack prediction part of the original patch was omitted because
it's a separate change. reviewed by Rui Paulo.
Revision 1.206: download - view: text, markup, annotated - select for diffs
Tue Oct 17 18:21:29 2006 UTC (18 years, 1 month ago) by dogcow
Branches: MAIN
Diff to: previous 1.205: preferred, colored
Changes since revision 1.205: +2 -9
lines
now that we have -Wno-unused-parameter, back out all the tremendously ugly
code to gratuitously access said parameters.
Revision 1.205: download - view: text, markup, annotated - select for diffs
Fri Oct 13 18:28:06 2006 UTC (18 years, 2 months ago) by dogcow
Branches: MAIN
Diff to: previous 1.204: preferred, colored
Changes since revision 1.204: +9 -2
lines
more unused variable fallout.
Revision 1.204: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:32:38 2006 UTC (18 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.203: preferred, colored
Changes since revision 1.203: +4 -4
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.203: download - view: text, markup, annotated - select for diffs
Tue Oct 10 21:49:15 2006 UTC (18 years, 2 months ago) by dogcow
Branches: MAIN
Diff to: previous 1.202: preferred, colored
Changes since revision 1.202: +5 -5
lines
change the MOWNER_INIT define to take two args; fix extant struct mowner
decls to use it. Makes options MBUFTRACE compile again and not whinge about
missing structure declarations. (Also makes initialization consistent.)
Revision 1.202: download - view: text, markup, annotated - select for diffs
Mon Oct 9 16:27:07 2006 UTC (18 years, 2 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +12 -5
lines
Modular (I tried ;-) TCP congestion control API. Whenever certain conditions
happen in the TCP stack, this interface calls the specified callback to
handle the situation according to the currently selected congestion
control algorithm.
A new sysctl node was created: net.inet.tcp.congctl.{available,selected}
with obvious meanings.
The old net.inet.tcp.newreno MIB was removed.
The API is discussed in tcp_congctl(9).
In the near future, it will be possible to selected a congestion control
algorithm on a per-socket basis.
Discussed on tech-net and reviewed by <yamt>.
Revision 1.201: download - view: text, markup, annotated - select for diffs
Sat Oct 7 19:53:42 2006 UTC (18 years, 2 months ago) by yamt
Branches: MAIN
Diff to: previous 1.200: preferred, colored
Changes since revision 1.200: +2 -7
lines
revert tcp_close part of tcp_subr.c rev.1.200 because it's unnecessary.
all callers of tcp_close are at splsoftnet already:
tcp_close
tcp_input ok
tcp_disconnect
tcp_usrreq ok
tcp_usrclosed
tcp_usrreq ok
tcp_disconnect
tcp_timer_2msl ok
tcp_drop
tcp_usrreq
tcp_disconnect
tcp_timer_rexmt ok
tcp_timer_persist ok
tcp_timer_keep ok
tcp_input
syn_cache_get
tcp_input
Revision 1.200: download - view: text, markup, annotated - select for diffs
Thu Oct 5 17:35:19 2006 UTC (18 years, 2 months ago) by tls
Branches: MAIN
Diff to: previous 1.199: preferred, colored
Changes since revision 1.199: +10 -5
lines
Protect calls to pool_put/pool_get that may occur in interrupt context
with spl used to protect other allocations and frees, or datastructure
element insertion and removal, in adjacent code.
It is almost unquestionably the case that some of the spl()/splx() calls
added here are superfluous, but it really seems wrong to see:
s=splfoo();
/* frob data structure */
splx(s);
pool_put(x);
and if we think we need to protect the first operation, then it is hard
to see why we should not think we need to protect the next. "Better
safe than sorry".
It is also almost unquestionably the case that I missed some pool
gets/puts from interrupt context with my strategy for finding these
calls; use of PR_NOWAIT is a strong hint that a pool may be used from
interrupt context but many callers in the kernel pass a "can wait/can't
wait" flag down such that my searches might not have found them. One
notable area that needs to be looked at is pf.
See also:
http://mail-index.netbsd.org/tech-kern/2006/07/19/0003.html
http://mail-index.netbsd.org/tech-kern/2006/07/19/0009.html
Revision 1.196.8.2: download - view: text, markup, annotated - select for diffs
Thu Sep 14 12:31:55 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.196.8.1: preferred, colored; branchpoint 1.196: preferred, colored; next MAIN 1.197: preferred, colored
Changes since revision 1.196.8.1: +4 -2
lines
sync with head.
Revision 1.196.4.3: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:58:47 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.196.4.2: preferred, colored; branchpoint 1.196: preferred, colored; next MAIN 1.197: preferred, colored
Changes since revision 1.196.4.2: +10 -2
lines
sync with head
Revision 1.199: download - view: text, markup, annotated - select for diffs
Tue Sep 5 00:29:36 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: MAIN
CVS tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl,
newlock2
Diff to: previous 1.198: preferred, colored
Changes since revision 1.198: +4 -2
lines
Import of TCP ECN algorithm for congestion control.
Both available for IPv4 and IPv6.
Basic implementation test results are available at
http://netbsd-soc.sourceforge.net/projects/ecn/testresults.html.
Work sponsored by the Google Summer of Code project 2006.
Special thanks to Kentaro Kurahone, Allen Briggs and Matt Thomas for their
help, comments and support during the project.
Revision 1.191.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:11:02 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.191: preferred, colored
Changes since revision 1.191: +128 -12
lines
sync with head.
Revision 1.196.12.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:45 2006 UTC (18 years, 6 months ago) by tron
Branches: peter-altq
Diff to: previous 1.196: preferred, colored; next MAIN 1.197: preferred, colored
Changes since revision 1.196: +8 -2
lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
Revision 1.196.8.1: download - view: text, markup, annotated - select for diffs
Wed May 24 10:59:03 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.196: preferred, colored
Changes since revision 1.196: +8 -2
lines
sync with head.
Revision 1.196.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:40:10 2006 UTC (18 years, 7 months ago) by simonb
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.196: preferred, colored; next MAIN 1.197: preferred, colored
Changes since revision 1.196: +8 -2
lines
Sync with head.
Revision 1.196.10.1: download - view: text, markup, annotated - select for diffs
Wed Apr 19 04:46:11 2006 UTC (18 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.196: preferred, colored; next MAIN 1.197: preferred, colored
Changes since revision 1.196: +8 -2
lines
sync with head.
Revision 1.198: download - view: text, markup, annotated - select for diffs
Sat Apr 15 02:30:39 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
yamt-pdpolicy-base6,
yamt-pdpolicy-base5,
simonb-timecounters-base,
gdamore-uart-base,
gdamore-uart,
elad-kernelauth-base,
chap-midi-nbase,
chap-midi-base,
chap-midi,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.197: preferred, colored
Changes since revision 1.197: +5 -2
lines
Coverity CID 1149: Add KASSERT before deref.
Revision 1.197: download - view: text, markup, annotated - select for diffs
Sat Apr 15 02:29:12 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.196: preferred, colored
Changes since revision 1.196: +5 -2
lines
Coverity CID 1148: Add KASSERT before deref.
Revision 1.196.4.2: download - view: text, markup, annotated - select for diffs
Sun Feb 5 03:28:18 2006 UTC (18 years, 10 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.196.4.1: preferred, colored; branchpoint 1.196: preferred, colored
Changes since revision 1.196.4.1: +6 -10
lines
Adapt to in6pcb removal.
Revision 1.196.4.1: download - view: text, markup, annotated - select for diffs
Sun Feb 5 03:26:35 2006 UTC (18 years, 10 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.196: preferred, colored
Changes since revision 1.196: +2 -3
lines
Bye netinet6/in6_pcb.h.
Revision 1.196: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:24:58 2005 UTC (19 years ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5,
yamt-uio_vmspace,
yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
peter-altq-base
Branch point for: yamt-pdpolicy,
simonb-timecounters,
rpaulo-netinet-merge-pcb,
peter-altq,
elad-kernelauth
Diff to: previous 1.195: preferred, colored
Changes since revision 1.195: +2 -2
lines
merge ktrace-lwp.
Revision 1.142.2.11: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:11:07 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.142.2.10: preferred, colored; next MAIN 1.143: preferred, colored
Changes since revision 1.142.2.10: +131 -17
lines
Sync with HEAD. Here we go again...
Revision 1.195: download - view: text, markup, annotated - select for diffs
Wed Aug 10 13:06:49 2005 UTC (19 years, 4 months ago) by yamt
Branches: MAIN
CVS tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
thorpej-vnode-attr-base,
thorpej-vnode-attr,
ktrace-lwp-base
Diff to: previous 1.194: preferred, colored
Changes since revision 1.194: +3 -2
lines
move {tcp,udp}_do_loopback_cksum back to tcp/udp
so that they can be referenced by ipv6.
Revision 1.194: download - view: text, markup, annotated - select for diffs
Wed Aug 10 13:05:16 2005 UTC (19 years, 4 months ago) by yamt
Branches: MAIN
Diff to: previous 1.193: preferred, colored
Changes since revision 1.193: +20 -2
lines
device independent part of ipv6 rx checksum offloading.
Revision 1.193: download - view: text, markup, annotated - select for diffs
Wed Jul 20 08:05:43 2005 UTC (19 years, 4 months ago) by he
Branches: MAIN
Diff to: previous 1.192: preferred, colored
Changes since revision 1.192: +6 -2
lines
Make this build without INET6.
Revision 1.192: download - view: text, markup, annotated - select for diffs
Tue Jul 19 17:00:02 2005 UTC (19 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.191: preferred, colored
Changes since revision 1.191: +100 -13
lines
Implement PMTU checks from:
http://www.gont.com.ar/drafts/icmp-attacks-against-tcp.html
1. Don't act on ICMP-need-frag immediately if adhoc checks on the
advertised MTU fail. The MTU update is delayed until a TCP retransmit
happens.
2. Ignore ICMP Source Quench messages meant for TCP connections.
From OpenBSD.
Revision 1.191: download - view: text, markup, annotated - select for diffs
Sun May 29 21:41:23 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Branch point for: yamt-lazymbuf
Diff to: previous 1.190: preferred, colored
Changes since revision 1.190: +7 -7
lines
- add const
- remove bogus casts
- avoid nested variables
Revision 1.187.2.3: download - view: text, markup, annotated - select for diffs
Fri May 6 08:39:52 2005 UTC (19 years, 7 months ago) by tron
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0
Diff to: previous 1.187.2.2: preferred, colored; branchpoint 1.187: preferred, colored; next MAIN 1.188: preferred, colored
Changes since revision 1.187.2.2: +2 -3
lines
Pull up revision 1.190 (requested by yamt in ticket #251):
fix problems related to loopback interface checksum omission. PR/29971.
- for ipv4, defer decision to ip layer as h/w checksum offloading does
so that it can check the actual interface the packet is going to.
- for ipv6, disable it.
(maybe will be revisited when it implements h/w checksum offloading.)
ok'ed by Jason Thorpe.
Revision 1.187.2.2: download - view: text, markup, annotated - select for diffs
Fri May 6 08:34:55 2005 UTC (19 years, 7 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.187.2.1: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.2.1: +5 -0
lines
Pull up revision 1.189 (requested by kurahone in ticket #199):
Added sysctl tunable limits for the number of maximum SACK holes
per connection and per system.
Idea taken from FreeBSD.
Revision 1.177.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:34 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.177: preferred, colored; next MAIN 1.178: preferred, colored
Changes since revision 1.177: +53 -86
lines
sync with -current
Revision 1.190: download - view: text, markup, annotated - select for diffs
Mon Apr 18 21:50:25 2005 UTC (19 years, 7 months ago) by yamt
Branches: MAIN
CVS tags: kent-audio2-base
Diff to: previous 1.189: preferred, colored
Changes since revision 1.189: +2 -3
lines
fix problems related to loopback interface checksum omission. PR/29971.
- for ipv4, defer decision to ip layer as h/w checksum offloading does
so that it can check the actual interface the packet is going to.
- for ipv6, disable it.
(maybe will be revisited when it implements h/w checksum offloading.)
ok'ed by Jason Thorpe.
Revision 1.189: download - view: text, markup, annotated - select for diffs
Tue Apr 5 01:07:17 2005 UTC (19 years, 8 months ago) by kurahone
Branches: MAIN
Diff to: previous 1.188: preferred, colored
Changes since revision 1.188: +7 -2
lines
Added sysctl tunable limits for the number of maximum SACK holes
per connection and per system.
Idea taken from FreeBSD.
Revision 1.187.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 4 17:21:46 2005 UTC (19 years, 8 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.187: preferred, colored
Changes since revision 1.187: +3 -3
lines
Pull up revision 1.188 (requested by yamt in ticket #90):
protect tcpipqent with splvm.
Revision 1.142.2.10: download - view: text, markup, annotated - select for diffs
Fri Apr 1 14:31:50 2005 UTC (19 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.142.2.9: preferred, colored
Changes since revision 1.142.2.9: +6 -7
lines
Sync with HEAD.
Revision 1.188: download - view: text, markup, annotated - select for diffs
Tue Mar 29 20:10:16 2005 UTC (19 years, 8 months ago) by yamt
Branches: MAIN
Diff to: previous 1.187: preferred, colored
Changes since revision 1.187: +3 -3
lines
protect tcpipqent with splvm.
Revision 1.177.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:36:38 2005 UTC (19 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.177.4.1: preferred, colored; branchpoint 1.177: preferred, colored; next MAIN 1.178: preferred, colored
Changes since revision 1.177.4.1: +12 -9
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.187: download - view: text, markup, annotated - select for diffs
Wed Mar 16 00:39:57 2005 UTC (19 years, 9 months ago) by yamt
Branches: MAIN
CVS tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base
Branch point for: netbsd-3
Diff to: previous 1.186: preferred, colored
Changes since revision 1.186: +4 -2
lines
simplify data receiver side sack processing.
- introduce t_segqlen, the number of segments in segq/timeq.
the name is from freebsd.
- rather than maintaining a copy of sack blocks (rcv_sack_block[]),
build it directly from the segment list when needed.
Revision 1.186: download - view: text, markup, annotated - select for diffs
Wed Mar 16 00:38:27 2005 UTC (19 years, 9 months ago) by yamt
Branches: MAIN
Diff to: previous 1.185: preferred, colored
Changes since revision 1.185: +2 -5
lines
- use full sized segments unless we actually have SACKs to send.
- avoid TSO duplicate D-SACK.
- send SACKs regardless of TF_ACKNOW.
- don't clear rcv_sack_num when transmitting.
discussed on tech-net@.
Revision 1.185: download - view: text, markup, annotated - select for diffs
Wed Mar 9 04:24:12 2005 UTC (19 years, 9 months ago) by simonb
Branches: MAIN
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +3 -3
lines
s/quence/quench/.
Revision 1.184: download - view: text, markup, annotated - select for diffs
Wed Mar 9 04:23:33 2005 UTC (19 years, 9 months ago) by simonb
Branches: MAIN
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +3 -3
lines
Add an extra `i' to notifes/notifed.
Revision 1.142.2.9: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:53:29 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.142.2.8: preferred, colored
Changes since revision 1.142.2.8: +10 -8
lines
Sync with HEAD.
Hi Perry!
Revision 1.183: download - view: text, markup, annotated - select for diffs
Mon Feb 28 16:20:59 2005 UTC (19 years, 9 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.182: preferred, colored
Changes since revision 1.182: +9 -7
lines
Commit TCP SACK patches from Kentaro A. Karahone's patch at:
http://www.sigusr1.org/~kurahone/tcp-sack-netbsd-02152005.diff.gz
Fixes in that patch for pre-existing TCP pcb initializations were already
committed to NetBSD-current, so are not included in this commit.
The SACK patch has been observed to correctly negotiate and respond,
to SACKs in wide-area traffic.
There are two indepenently-observed, as-yet-unresolved anomalies:
First, seeing unexplained delays between in fast retransmission
(potentially explainable by an 0.2sec RTT between adjacent
ethernet/wifi NICs); and second, peculiar and unepxlained TCP
retransmits observed over an ath0 card.
After discussion with several interested developers, I'm committing
this now, as-is, for more eyes to use and look over. Current hypothesis
is that the anomalies above may in fact be due to link/level (hardware,
driver, HAL, firmware) abberations in the test setup, affecting both
Kentaro's wired-Ethernet NIC and in my two (different) WiFi NICs.
Revision 1.182: download - view: text, markup, annotated - select for diffs
Sat Feb 26 22:45:12 2005 UTC (19 years, 9 months ago) by perry
Branches: MAIN
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +3 -3
lines
nuke trailing whitespace
Revision 1.142.2.8: download - view: text, markup, annotated - select for diffs
Thu Feb 17 07:10:37 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.142.2.7: preferred, colored
Changes since revision 1.142.2.7: +4 -2
lines
Sync with HEAD.
Revision 1.181: download - view: text, markup, annotated - select for diffs
Wed Feb 16 14:59:40 2005 UTC (19 years, 9 months ago) by briggs
Branches: MAIN
Diff to: previous 1.180: preferred, colored
Changes since revision 1.180: +4 -2
lines
Initialize t_partialacks in the tcpcb template.
From Kentaro A. Kurahone.
Revision 1.142.2.7: download - view: text, markup, annotated - select for diffs
Tue Feb 15 21:33:40 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.142.2.6: preferred, colored
Changes since revision 1.142.2.6: +3 -3
lines
Sync with HEAD.
Revision 1.177.4.1: download - view: text, markup, annotated - select for diffs
Sat Feb 12 18:17:54 2005 UTC (19 years, 10 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +37 -77
lines
sync with head.
Revision 1.180: download - view: text, markup, annotated - select for diffs
Sat Feb 12 01:24:07 2005 UTC (19 years, 10 months ago) by heas
Branches: MAIN
CVS tags: yamt-km-base2
Diff to: previous 1.179: preferred, colored
Changes since revision 1.179: +3 -3
lines
ntohs->htons for ip6 plen (payload length).
It is not technically necessary to set plen here, since ip6_output() starts
off by calculating it, but leaving it keeps it consistent with other code.
Revision 1.142.2.6: download - view: text, markup, annotated - select for diffs
Fri Feb 4 11:47:49 2005 UTC (19 years, 10 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.142.2.5: preferred, colored
Changes since revision 1.142.2.5: +36 -76
lines
Sync with HEAD.
Revision 1.179: download - view: text, markup, annotated - select for diffs
Thu Feb 3 23:50:33 2005 UTC (19 years, 10 months ago) by perry
Branches: MAIN
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +29 -69
lines
ANSIfy function declarations
Revision 1.178: download - view: text, markup, annotated - select for diffs
Wed Feb 2 21:41:55 2005 UTC (19 years, 10 months ago) by perry
Branches: MAIN
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +9 -9
lines
de-__P -- will ANSIfy .c files later.
Revision 1.142.2.5: download - view: text, markup, annotated - select for diffs
Mon Jan 17 19:32:54 2005 UTC (19 years, 10 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.142.2.4: preferred, colored
Changes since revision 1.142.2.4: +6 -3
lines
Sync with HEAD.
Revision 1.177: download - view: text, markup, annotated - select for diffs
Mon Jan 3 19:47:30 2005 UTC (19 years, 11 months ago) by heas
Branches: MAIN
CVS tags: yamt-km-base,
kent-audio1-beforemerge
Branch point for: yamt-km,
kent-audio2
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +5 -2
lines
In tcp_respond(), clear the m_pkthdr.csum_flags that was inherited from the
received packet so that the checksum is not performed twice. Also,
tcp_respond() does not fill-in the m_pkthdr.csum_data, so a h/w checksum may
have the wrong offset.
OK from Jason Thorpe.
Revision 1.176: download - view: text, markup, annotated - select for diffs
Sun Dec 19 06:42:24 2004 UTC (19 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +3 -3
lines
yamt's changes seem to fix all the checksumming issues. Turn the loopback
checksums back off so we can make sure that everything works.
Revision 1.142.2.4: download - view: text, markup, annotated - select for diffs
Sat Dec 18 09:33:06 2004 UTC (19 years, 11 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.142.2.3: preferred, colored
Changes since revision 1.142.2.3: +3 -2
lines
Sync with HEAD.
Revision 1.175: download - view: text, markup, annotated - select for diffs
Fri Dec 17 22:54:52 2004 UTC (19 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +3 -3
lines
Turn checksumming on loopback back on until we fix the bugs in it.
Connect over tcp on the loopback is broken:
4729 amq 0.000007 CALL connect(4,0x804f2a0,0x1c)
4729 amq 75.007420 RET connect -1 errno 60 Connection timed out
Revision 1.174: download - view: text, markup, annotated - select for diffs
Wed Dec 15 04:25:20 2004 UTC (19 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +3 -2
lines
Don't perform checksums on loopback interfaces. They can be reenabled with
the net.inet.*.do_loopback_cksum sysctl.
Approved by: groo
Revision 1.142.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:37:13 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.142.2.2: preferred, colored
Changes since revision 1.142.2.2: +2 -2
lines
Fix the sync with head I botched.
Revision 1.160.2.5: download - view: text, markup, annotated - select for diffs
Sun Sep 19 15:38:01 2004 UTC (20 years, 2 months ago) by he
Branches: netbsd-2-0
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-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
Diff to: previous 1.160.2.4: preferred, colored; branchpoint 1.160: preferred, colored; next MAIN 1.161: preferred, colored
Changes since revision 1.160.2.4: +5 -2
lines
Apply patch (requested by yamt in ticket #861):
Fix this so it compiles again; we cannot use the link
set macros for pool initialization on this release branch.
Revision 1.160.2.4: download - view: text, markup, annotated - select for diffs
Sat Sep 18 19:35:32 2004 UTC (20 years, 2 months ago) by he
Branches: netbsd-2-0
Diff to: previous 1.160.2.3: preferred, colored; branchpoint 1.160: preferred, colored
Changes since revision 1.160.2.3: +3 -3
lines
Pull up revision 1.173 (requested by yamt in ticket #861):
Fix ipqent pool corruption problems. Make the TCP reassembly
code use its own pool of ipqent rather than sharing it with
the IP reassembly code. Fixes PR#24782.
Revision 1.142.2.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:54:54 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.142.2.1: preferred, colored
Changes since revision 1.142.2.1: +3 -3
lines
Sync with HEAD.
Revision 1.173: download - view: text, markup, annotated - select for diffs
Wed Sep 15 09:21:22 2004 UTC (20 years, 2 months ago) by yamt
Branches: MAIN
CVS tags: kent-audio1-base,
kent-audio1
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +3 -3
lines
fix ipqent pool corruption problems. make tcp reass code use
its own pool of ipqent rather than sharing it with ip reass code.
PR/24782.
Revision 1.142.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:54:45 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +238 -179
lines
Sync with HEAD
Revision 1.172: download - view: text, markup, annotated - select for diffs
Tue May 18 14:44:14 2004 UTC (20 years, 6 months ago) by itojun
Branches: MAIN
CVS tags: BEFORE-IPF413
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +2 -189
lines
fix MD5 signature support to actually validate inbound signature, and
drop packet if fails.
Revision 1.171: download - view: text, markup, annotated - select for diffs
Sat May 1 02:20:43 2004 UTC (20 years, 7 months ago) by matt
Branches: MAIN
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +37 -41
lines
Use EVCNT_ATTACH_STATIC{,2}
Revision 1.170: download - view: text, markup, annotated - select for diffs
Mon Apr 26 05:18:13 2004 UTC (20 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +4 -2
lines
zero-clear ip6?pseudo before use
Revision 1.169: download - view: text, markup, annotated - select for diffs
Mon Apr 26 05:15:47 2004 UTC (20 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +10 -14
lines
declare ip6_hdr_pseudo (for kernel only) and use it for TCP MD5 signature
Revision 1.168: download - view: text, markup, annotated - select for diffs
Mon Apr 26 05:05:49 2004 UTC (20 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +5 -6
lines
sync comment with reality
Revision 1.167: download - view: text, markup, annotated - select for diffs
Mon Apr 26 03:54:29 2004 UTC (20 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +90 -21
lines
make TCP MD5 signature work with KAME IPSEC (#define IPSEC).
support IPv6 if KAME IPSEC (RFC is not explicit about how we make data stream
for checksum with IPv6, but i'm pretty sure using normal pseudo-header is the
right thing).
XXX
current TCP MD5 signature code has giant flaw:
it does not validate signature on input (can't believe it! what is the point?)
Revision 1.166: download - view: text, markup, annotated - select for diffs
Sun Apr 25 22:25:04 2004 UTC (20 years, 7 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +140 -5
lines
Initial commit of a port of the FreeBSD implementation of RFC 2385
(MD5 signatures for TCP, as used with BGP). Credit for original
FreeBSD code goes to Bruce M. Simpson, with FreeBSD sponsorship
credited to sentex.net. Shortening of the setsockopt() name
attributed to Vincent Jardin.
This commit is a minimal, working version of the FreeBSD code, as
MFC'ed to FreeBSD-4. It has received minimal testing with a ttcp
modified to set the TCP-MD5 option; BMS's additions to tcpdump-current
(tcpdump -M) confirm that the MD5 signatures are correct. Committed
as-is for further testing between a NetBSD BGP speaker (e.g., quagga)
and industry-standard BGP speakers (e.g., Cisco, Juniper).
NOTE: This version has two potential flaws. First, I do see any code
that verifies recieved TCP-MD5 signatures. Second, the TCP-MD5
options are internally padded and assumed to be 32-bit aligned. A more
space-efficient scheme is to pack all TCP options densely (and
possibly unaligned) into the TCP header ; then do one final padding to
a 4-byte boundary. Pre-existing comments note that accounting for
TCP-option space when we add SACK is yet to be done. For now, I'm
punting on that; we can solve it properly, in a way that will handle
SACK blocks, as a separate exercise.
In case a pullup to NetBSD-2 is requested, this adds sys/netipsec/xform_tcp.c
,and modifies:
sys/net/pfkeyv2.h,v 1.15
sys/netinet/files.netinet,v 1.5
sys/netinet/ip.h,v 1.25
sys/netinet/tcp.h,v 1.15
sys/netinet/tcp_input.c,v 1.200
sys/netinet/tcp_output.c,v 1.109
sys/netinet/tcp_subr.c,v 1.165
sys/netinet/tcp_usrreq.c,v 1.89
sys/netinet/tcp_var.h,v 1.109
sys/netipsec/files.netipsec,v 1.3
sys/netipsec/ipsec.c,v 1.11
sys/netipsec/ipsec.h,v 1.7
sys/netipsec/key.c,v 1.11
share/man/man4/tcp.4,v 1.16
lib/libipsec/pfkey.c,v 1.20
lib/libipsec/pfkey_dump.c,v 1.17
lib/libipsec/policy_token.l,v 1.8
sbin/setkey/parse.y,v 1.14
sbin/setkey/setkey.8,v 1.27
sbin/setkey/token.l,v 1.15
Note that the preceding two revisions to tcp.4 will be
required to cleanly apply this diff.
Revision 1.165: download - view: text, markup, annotated - select for diffs
Sun Apr 25 16:42:42 2004 UTC (20 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +3 -5
lines
Initialise (most) pools from a link set instead of explicit calls
to pool_init. Untouched pools are ones that either in arch-specific
code, or aren't initialiased during initial system startup.
Convert struct session, ucred and lockf to pools.
Revision 1.160.2.3: download - view: text, markup, annotated - select for diffs
Thu Apr 22 07:49:10 2004 UTC (20 years, 7 months ago) by tron
Branches: netbsd-2-0
Diff to: previous 1.160.2.2: preferred, colored; branchpoint 1.160: preferred, colored
Changes since revision 1.160.2.2: +4 -4
lines
Pull up revision 1.164 (requested by tls in ticket #172):
Change the default state of two tunables; bring our TCP a little bit
closer to normal behaviour for the current century.
New Reno is now on by default (which is really the only reasonable
choice, since we don't do SACK); instead of an initial window of 1
for non-local nets, we now use Sally Floyd's magic 4K rule.
Revision 1.164: download - view: text, markup, annotated - select for diffs
Thu Apr 22 02:19:39 2004 UTC (20 years, 7 months ago) by tls
Branches: MAIN
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +4 -4
lines
Change the default state of two tunables; bring our TCP a little bit
closer to normal behaviour for the current century.
New Reno is now on by default (which is really the only reasonable
choice, since we don't do SACK); instead of an initial window of 1
for non-local nets, we now use Sally Floyd's magic 4K rule.
Revision 1.160.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 20 20:27:47 2004 UTC (20 years, 7 months ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.160.2.1: preferred, colored; branchpoint 1.160: preferred, colored
Changes since revision 1.160.2.1: +3 -2
lines
Pullup patch (requested by itojun in ticket #169)
If a segment is received with RST set and the segment is completely to the
left of the receive window, ignore it. Add some additional comments to
the code that deals with received segemnts that are completely to the right
of the receive window. If an invalid SYN is received, force an ACK and
drop it; if the other side really sent the SYN; it'll respond with a reset.
Respond to RST by ACK, as suggested in NISCC recommendation.
Rate-limit ACKs against RSTs and SYNs.
If SYN is coming and RCV.NXT == SEG.SEQ, then ACK with value - 1.
Revision 1.127.4.5: download - view: text, markup, annotated - select for diffs
Tue Apr 20 20:26:43 2004 UTC (20 years, 7 months ago) by jmc
Branches: netbsd-1-6
Diff to: previous 1.127.4.4: preferred, colored; branchpoint 1.127: preferred, colored; next MAIN 1.128: preferred, colored
Changes since revision 1.127.4.4: +3 -2
lines
Pullup patch (requested by itojun in ticket #1680)
If a segment is received with RST set and the segment is completely to the
left of the receive window, ignore it. Add some additional comments to
the code that deals with received segemnts that are completely to the right
of the receive window. If an invalid SYN is received, force an ACK and
drop it; if the other side really sent the SYN; it'll respond with a reset.
Respond to RST by ACK, as suggested in NISCC recommendation.
Rate-limit ACKs against RSTs and SYNs.
If SYN is coming and RCV.NXT == SEG.SEQ, then ACK with value - 1.
Revision 1.163: download - view: text, markup, annotated - select for diffs
Tue Apr 20 16:52:12 2004 UTC (20 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +3 -2
lines
- respond to RST by ACK, as suggested in NISCC recommendation
- rate-limit ACKs against RSTs and SYNs
Revision 1.162: download - view: text, markup, annotated - select for diffs
Sat Apr 17 15:18:53 2004 UTC (20 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +4 -4
lines
adjust to the sbreserve prototype change.
Revision 1.160.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 6 03:59:43 2004 UTC (20 years, 8 months ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +6 -6
lines
Pullup rev 1.161 (requested by christos in ticket #69)
Invoking tcpcb's get erroneously free'd resulting in to_ticks <= 0 assertion.
PR#22551
Revision 1.161: download - view: text, markup, annotated - select for diffs
Mon Apr 5 21:49:21 2004 UTC (20 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +6 -6
lines
PR/22551: Invoking tcpcb's get erroneously free'd resulting in to_ticks <= 0
assertion. Approved by he.
Revision 1.160: download - view: text, markup, annotated - select for diffs
Wed Jan 7 19:15:43 2004 UTC (20 years, 11 months ago) by matt
Branches: MAIN
CVS tags: netbsd-2-0-base,
BEFORE-IPF411
Branch point for: netbsd-2-0
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +4 -4
lines
When accepting a peer's MSS, never let it drop below 256 (SLIP + TCP will
be the lowest MSS we should ever enounter).
Revision 1.159: download - view: text, markup, annotated - select for diffs
Mon Oct 27 16:52:01 2003 UTC (21 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +13 -3
lines
- Change callout_setfunc() to require that the callout handle is already
initialized. Update the txp(4) to compensate.
- Statically initialize the TCP timer callout handles in the tcpcb
template. We still use callout_setfunc(), but that call is now much
less expensive. Add a comment that the compiler is likely to unroll
the loop (so don't sweat that it's there).
Revision 1.158: download - view: text, markup, annotated - select for diffs
Sat Oct 25 08:13:28 2003 UTC (21 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +3 -2
lines
initialize off
Revision 1.127.4.4: download - view: text, markup, annotated - select for diffs
Wed Oct 22 06:05:57 2003 UTC (21 years, 1 month ago) by jmc
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.127.4.3: preferred, colored; branchpoint 1.127: preferred, colored
Changes since revision 1.127.4.3: +33 -3
lines
Pullup rev 1.144 (requested by he in ticket #1530)
Introduce a new INVOKING status for callouts, and use it to close
a race condition in the TCP code. Fixes PR#20390.
Revision 1.157: download - view: text, markup, annotated - select for diffs
Wed Oct 22 05:55:54 2003 UTC (21 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +8 -6
lines
Oops, a little to aggressive in the previous patch; TCP_TIMER_INIT()
still needs to be in tcp_newtcpcb(), for now. Pointed out by enami.
Revision 1.156: download - view: text, markup, annotated - select for diffs
Wed Oct 22 02:45:57 2003 UTC (21 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +81 -61
lines
Rather than zeroing a tcpcb structure and filling in all the fields
individually, create a tcpcb template pre-initialized (and pre-zero'd)
with the static and mostly-static tcpcb parameters. The template is
now copied into the new tcpcb, which zeros and initializes most of the
tcpcb in one pass. The template is kept up-to-date as TCP sysctl
variables are changed.
Combined with the previous sb_max change, TCP socket creation is now
25% faster.
Revision 1.155: download - view: text, markup, annotated - select for diffs
Tue Oct 21 21:17:20 2003 UTC (21 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +8 -2
lines
Add event counters that measure FAST_MBSEARCH.
Revision 1.154: download - view: text, markup, annotated - select for diffs
Thu Sep 25 00:59:31 2003 UTC (21 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +2 -5
lines
Fix glaring errors in recent changes.
Revision 1.127.4.3: download - view: text, markup, annotated - select for diffs
Tue Sep 9 19:23:19 2003 UTC (21 years, 3 months ago) by tron
Branches: netbsd-1-6
Diff to: previous 1.127.4.2: preferred, colored; branchpoint 1.127: preferred, colored
Changes since revision 1.127.4.2: +1 -0
lines
Pull up revision 1.153 (requested by itojun in ticket #1452):
initialize ip_hl for ipsec policy lookup. PR kern/22715
Revision 1.91.4.5: download - view: text, markup, annotated - select for diffs
Tue Sep 9 11:07:06 2003 UTC (21 years, 3 months ago) by msaitoh
Branches: netbsd-1-5
Diff to: previous 1.91.4.4: preferred, colored; branchpoint 1.91: preferred, colored; next MAIN 1.92: preferred, colored
Changes since revision 1.91.4.4: +2 -1
lines
Pull up rev. 1.153 (requested by itojun in ticket #78):
Initialize ip_hl for ipsec policy lookup. Fixes PR 22715.
Revision 1.153: download - view: text, markup, annotated - select for diffs
Mon Sep 8 02:06:34 2003 UTC (21 years, 3 months ago) by itojun
Branches: MAIN
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +3 -2
lines
initialize ip_hl for ipsec policy lookup. PR kern/22715
Revision 1.152: download - view: text, markup, annotated - select for diffs
Sat Sep 6 03:36:31 2003 UTC (21 years, 3 months ago) by itojun
Branches: MAIN
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +4 -4
lines
randomize IPv4/v6 fragment ID and IPv6 flowlabel. avoids predictability
of these fields. ip_id.c is from openbsd. ip6_id.c is adapted by kame.
Revision 1.127.4.2: download - view: text, markup, annotated - select for diffs
Fri Sep 5 13:42:31 2003 UTC (21 years, 3 months ago) by tron
Branches: netbsd-1-6
Diff to: previous 1.127.4.1: preferred, colored; branchpoint 1.127: preferred, colored
Changes since revision 1.127.4.1: +5 -2
lines
Pull up revision 1.128 (requested by tls in ticket #1445):
path MTU discovery blackhole detection.
PR 12790 (sorry for not committing it for a long time)
Revision 1.151: download - view: text, markup, annotated - select for diffs
Thu Sep 4 09:17:01 2003 UTC (21 years, 3 months ago) by itojun
Branches: MAIN
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +24 -45
lines
revamp inpcb/in6pcb so that they are more aligned with each other.
in6pcb lookup now uses hash(9).
Revision 1.150: download - view: text, markup, annotated - select for diffs
Fri Aug 22 22:27:07 2003 UTC (21 years, 3 months ago) by itojun
Branches: MAIN
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +4 -4
lines
tp could be null in tcp_respond()
Revision 1.149: download - view: text, markup, annotated - select for diffs
Fri Aug 22 22:00:38 2003 UTC (21 years, 3 months ago) by itojun
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +2 -8
lines
remove ipsec_set/getsocket. now we explicitly pass socket * to ip{,6}_output.
Revision 1.148: download - view: text, markup, annotated - select for diffs
Fri Aug 22 21:53:06 2003 UTC (21 years, 3 months ago) by itojun
Branches: MAIN
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +17 -18
lines
change the additional arg to be passed to ip{,6}_output to struct socket *.
this fixes KAME policy lookup which was broken by the previous commit.
Revision 1.147: download - view: text, markup, annotated - select for diffs
Fri Aug 22 20:20:11 2003 UTC (21 years, 3 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +4 -4
lines
Replace the set_socket() method of passing an extra struct socket*
argument to ip6_output() with a new explicit struct in6pcb* argument.
(The underlying socket can be obtained via in6pcb->inp6_socket.)
In preparation for fast-ipsec. Reviewed by itojun.
Revision 1.146: download - view: text, markup, annotated - select for diffs
Fri Aug 15 03:42:05 2003 UTC (21 years, 4 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +13 -4
lines
(fast-ipsec): Add hooks to pass IPv4 IPsec traffic into fast-ipsec, if
configured with ``options FAST_IPSEC''. Kernels with KAME IPsec or
with no IPsec should work as before.
All calls to ip_output() now always pass an additional compulsory
argument: the inpcb associated with the packet being sent,
or 0 if no inpcb is available.
Fast-ipsec tested with ICMP or UDP over ESP. TCP doesn't work, yet.
Revision 1.145: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:33:18 2003 UTC (21 years, 4 months ago) by agc
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +3 -7
lines
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
Revision 1.144: download - view: text, markup, annotated - select for diffs
Sun Jul 20 16:35:08 2003 UTC (21 years, 4 months ago) by he
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +33 -3
lines
As a temporary workaround, apply the fix from PR#20390, thereby
cooperating with the callout code in working around the race
condition caused by the TCP code's use of the callout facility.
Instead of unconditionally releasing memory in tcp_close() and
SYN_CACHE_PUT(), check whether any of the related callout handlers
are about to be invoked (but have not yet done callout_ack()), and
if so, just mark the associated data structure (tcpcb or syn cache
entry) as "dead", and test for this (and release storage) in the
callout handler functions.
Revision 1.143: download - view: text, markup, annotated - select for diffs
Thu Jul 3 08:28:16 2003 UTC (21 years, 5 months ago) by ragge
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +10 -4
lines
Make it possible to set TCP_INIT_WIN and TCP_INIT_WIN_LOCAL in the config
file as options.
Revision 1.142: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:31:59 2003 UTC (21 years, 5 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +0 -0
lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
Revision 1.141: download - view: text, markup, annotated - select for diffs
Sun Jun 29 18:58:27 2003 UTC (21 years, 5 months ago) by ragge
Branches: MAIN
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +5 -2
lines
Add code to remember where in the send queue of mbufs the last packet was
sent from. This change avoid a linear search through all mbufs when using
large TCP windows, and therefore permit high-speed connections on long
distances.
Tested on a 1 Gigabit connection between Luleå and San Francisco, a distance
of about 15000km. With TCP windows of just over 20 Mbytes it could keep up
with 950Mbit/s.
After discussions with Matt Thomas and Jason Thorpe.
Revision 1.140: download - view: text, markup, annotated - select for diffs
Mon Jun 23 11:02:15 2003 UTC (21 years, 5 months ago) by martin
Branches: MAIN
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +3 -2
lines
Make sure to include opt_foo.h if a defflag option FOO is used.
Revision 1.139: download - view: text, markup, annotated - select for diffs
Sat Mar 1 04:40:28 2003 UTC (21 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +4 -3
lines
Allow TCP connections to hosts on a local network to use a larger
slow start initial window. Default this larger initial window to
4 packets, allowing it to be adjusted with net.inet.tcp.init_win_local.
Revision 1.138: download - view: text, markup, annotated - select for diffs
Wed Feb 26 06:31:16 2003 UTC (21 years, 9 months ago) by matt
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +15 -2
lines
Add MBUFTRACE kernel option.
Do a little mbuf rework while here. Change all uses of MGET*(*, M_WAIT, *)
to m_get*(M_WAIT, *). These are not performance critical and making them
call m_get saves considerable space. Add m_clget analogue of MCLGET and
make corresponding change for M_WAIT uses.
Modify netinet, gem, fxp, tulip, nfs to support MBUFTRACE.
Begin to change netstat to use sysctl.
Revision 1.107.2.13: download - view: text, markup, annotated - select for diffs
Wed Dec 11 06:46:38 2002 UTC (22 years ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.107.2.12: preferred, colored; next MAIN 1.108: preferred, colored
Changes since revision 1.107.2.12: +1 -0
lines
Sync with HEAD.
Revision 1.137: download - view: text, markup, annotated - select for diffs
Sun Nov 24 10:52:47 2002 UTC (22 years ago) by scw
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.136: preferred, colored
Changes since revision 1.136: +3 -2
lines
Quell an uninitialised variable warning.
Revision 1.107.2.12: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:15:31 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.107.2.11: preferred, colored
Changes since revision 1.107.2.11: +3 -2
lines
Catch up to -current
Revision 1.136: download - view: text, markup, annotated - select for diffs
Tue Oct 22 07:22:19 2002 UTC (22 years, 1 month ago) by lukem
Branches: MAIN
CVS tags: kqueue-beforemerge,
kqueue-aftermerge
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +3 -3
lines
fix typo in previous: s/tip/top/
Revision 1.135: download - view: text, markup, annotated - select for diffs
Tue Oct 22 02:53:59 2002 UTC (22 years, 1 month ago) by simonb
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +5 -4
lines
Micro-optimisation: don't check if the high bit is set and then mask it
off - just mask it off anyways. Saves a branch 50% of the time.
Revision 1.107.2.11: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:45:20 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.107.2.10: preferred, colored
Changes since revision 1.107.2.10: +5 -4
lines
Catch up to -current.
Revision 1.112.2.7: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:44:08 2002 UTC (22 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.112.2.6: preferred, colored; next MAIN 1.113: preferred, colored
Changes since revision 1.112.2.6: +7 -6
lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
Revision 1.134: download - view: text, markup, annotated - select for diffs
Wed Sep 25 11:19:23 2002 UTC (22 years, 2 months ago) by itojun
Branches: MAIN
CVS tags: kqueue-base
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +7 -6
lines
minor KNF
Revision 1.112.2.6: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:49:21 2002 UTC (22 years, 3 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.112.2.5: preferred, colored
Changes since revision 1.112.2.5: +31 -6
lines
sync kqueue branch with HEAD
Revision 1.127.2.4: download - view: text, markup, annotated - select for diffs
Thu Aug 29 00:56:48 2002 UTC (22 years, 3 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.127.2.3: preferred, colored; branchpoint 1.127: preferred, colored; next MAIN 1.128: preferred, colored
Changes since revision 1.127.2.3: +3 -3
lines
catch up with -current.
Revision 1.107.2.10: download - view: text, markup, annotated - select for diffs
Tue Aug 27 23:48:06 2002 UTC (22 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.107.2.9: preferred, colored
Changes since revision 1.107.2.9: +1 -1
lines
Catch up to -current.
Revision 1.133: download - view: text, markup, annotated - select for diffs
Wed Aug 14 00:23:35 2002 UTC (22 years, 4 months ago) by itojun
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +3 -3
lines
avoid swapping endian of ip_len and ip_off on mbuf, to meet with M_LEADINGSPACE
optimization made last year. should solve PR 17867 and 10195.
IP_HDRINCL behavior of raw ip socket is kept unchanged. we may want to
provide IP_HDRINCL variant that does not swap endian.
Revision 1.107.2.9: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:46:49 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.107.2.8: preferred, colored
Changes since revision 1.107.2.8: +30 -5
lines
Catch up to -current.
Revision 1.127.2.3: download - view: text, markup, annotated - select for diffs
Mon Jul 15 10:37:01 2002 UTC (22 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.127.2.2: preferred, colored; branchpoint 1.127: preferred, colored
Changes since revision 1.127.2.2: +30 -5
lines
catch up with -current.
Revision 1.127.4.1: download - view: text, markup, annotated - select for diffs
Tue Jul 2 06:55:16 2002 UTC (22 years, 5 months ago) by lukem
Branches: netbsd-1-6
CVS tags: netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-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.127: preferred, colored
Changes since revision 1.127: +30 -5
lines
Pull up revision 1.132 (requested by itojun in ticket #422):
check AF_INET6 socketes when IPv4 "too big" messages arrive.
PR 17448
Revision 1.132: download - view: text, markup, annotated - select for diffs
Mon Jul 1 20:51:25 2002 UTC (22 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +30 -5
lines
check AF_INET6 socketes when IPv4 "too big" messages arrive.
PR 17448
Revision 1.112.2.5: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:51:01 2002 UTC (22 years, 5 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.112.2.4: preferred, colored
Changes since revision 1.112.2.4: +151 -23
lines
catch up with -current on kqueue branch
Revision 1.127.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 20 15:52:30 2002 UTC (22 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.127.2.1: preferred, colored; branchpoint 1.127: preferred, colored
Changes since revision 1.127.2.1: +14 -14
lines
catch up with -current.
Revision 1.107.2.8: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:48:57 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.107.2.7: preferred, colored
Changes since revision 1.107.2.7: +103 -23
lines
Catch up to -current.
Revision 1.131: download - view: text, markup, annotated - select for diffs
Sun Jun 9 16:33:44 2002 UTC (22 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +14 -14
lines
whitespace
Revision 1.127.2.1: download - view: text, markup, annotated - select for diffs
Thu May 30 13:52:28 2002 UTC (22 years, 6 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +19 -6
lines
Catch up with -current.
Revision 1.130: download - view: text, markup, annotated - select for diffs
Wed May 29 07:53:39 2002 UTC (22 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +13 -3
lines
attach nd_ifinfo structure into if_afdata.
split IPv6 link MTU (advertised by RA) from real link MTU.
sync with kame
Revision 1.129: download - view: text, markup, annotated - select for diffs
Tue May 28 10:17:27 2002 UTC (22 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +3 -3
lines
use arc4random() on tcp iss generation
Revision 1.128: download - view: text, markup, annotated - select for diffs
Sun May 26 16:05:44 2002 UTC (22 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +7 -4
lines
path MTU discovery blackhole detection.
PR 12790 (sorry for not committing it for a long time)
Revision 1.127: download - view: text, markup, annotated - select for diffs
Sun May 12 20:33:50 2002 UTC (22 years, 7 months ago) by matt
Branches: MAIN
CVS tags: netbsd-1-6-base
Branch point for: netbsd-1-6,
gehenna-devsw
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +6 -2
lines
Eliminate commons.
Revision 1.126: download - view: text, markup, annotated - select for diffs
Tue May 7 02:59:39 2002 UTC (22 years, 7 months ago) by matt
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +70 -7
lines
Change struct ipqe to use TAILQ's instead of LIST's (primarily for TCP's
benefit currently). Rework tcp_reass code to optimize the 4 most likely causes
of out-of-order packets: first OoO pkt, next OoO pkt in seq, OoO pkt is part
of new chuck of OoO packets, and the OoO pkt fills the first hole. Add evcnts
to instrument tcp_reass (enabled by the options TCP_REASS_COUNTERS). This is
part 1/2 of tcp_reass changes.
Revision 1.107.2.7: download - view: text, markup, annotated - select for diffs
Sat May 4 19:51:54 2002 UTC (22 years, 7 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.107.2.6: preferred, colored
Changes since revision 1.107.2.6: +22 -2
lines
Update from trunk.
Revision 1.125: download - view: text, markup, annotated - select for diffs
Sat Apr 27 01:47:58 2002 UTC (22 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +22 -2
lines
* Instrument tcp_build_datapkt().
* Remove the code that allocates a cluster if the packet would
fit in one; it totally defeats doing references to M_EXT mbufs
in the socket buffer. This drastically reduces the number of
data copies in the tcp_output() path for applications which use
large writes. Kudos to Matt Thomas for pointing me in the right
direction.
Revision 1.107.2.6: download - view: text, markup, annotated - select for diffs
Mon Apr 1 07:48:44 2002 UTC (22 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.107.2.5: preferred, colored
Changes since revision 1.107.2.5: +30 -2
lines
Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
Revision 1.112.2.4: download - view: text, markup, annotated - select for diffs
Sat Mar 16 16:02:15 2002 UTC (22 years, 9 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.112.2.3: preferred, colored
Changes since revision 1.112.2.3: +3 -3
lines
Catch up with -current.
Revision 1.124: download - view: text, markup, annotated - select for diffs
Fri Mar 15 09:25:41 2002 UTC (22 years, 9 months ago) by itojun
Branches: MAIN
CVS tags: eeh-devprop-base,
eeh-devprop
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +30 -2
lines
have tcp6_drain
Revision 1.123: download - view: text, markup, annotated - select for diffs
Fri Mar 8 20:48:44 2002 UTC (22 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: newlock-base,
newlock
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +3 -3
lines
Pool deals fairly well with physical memory shortage, but it doesn't
deal with shortages of the VM maps where the backing pages are mapped
(usually kmem_map). Try to deal with this:
* Group all information about the backend allocator for a pool in a
separate structure. The pool references this structure, rather than
the individual fields.
* Change the pool_init() API accordingly, and adjust all callers.
* Link all pools using the same backend allocator on a list.
* The backend allocator is responsible for waiting for physical memory
to become available, but will still fail if it cannot callocate KVA
space for the pages. If this happens, carefully drain all pools using
the same backend allocator, so that some KVA space can be freed.
* Change pool_reclaim() to indicate if it actually succeeded in freeing
some pages, and use that information to make draining easier and more
efficient.
* Get rid of PR_URGENT. There was only one use of it, and it could be
dealt with by the caller.
From art@openbsd.org.
Revision 1.112.2.3: download - view: text, markup, annotated - select for diffs
Thu Jan 10 20:03:02 2002 UTC (22 years, 11 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.112.2.2: preferred, colored
Changes since revision 1.112.2.2: +8 -6
lines
Sync kqueue branch with -current.
Revision 1.107.2.5: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:17:57 2001 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.107.2.4: preferred, colored
Changes since revision 1.107.2.4: +8 -6
lines
Catch up to -current.
Revision 1.122: download - view: text, markup, annotated - select for diffs
Tue Nov 13 00:32:41 2001 UTC (23 years, 1 month ago) by lukem
Branches: MAIN
CVS tags: ifpoll-base
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +4 -1
lines
add RCSIDs
Revision 1.119.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 12 21:19:28 2001 UTC (23 years, 1 month ago) by thorpej
Branches: thorpej-mips-cache
Diff to: previous 1.119: preferred, colored; next MAIN 1.120: preferred, colored
Changes since revision 1.119: +5 -6
lines
Sync the thorpej-mips-cache branch with -current.
Revision 1.121: download - view: text, markup, annotated - select for diffs
Sun Nov 4 20:55:29 2001 UTC (23 years, 1 month ago) by matt
Branches: MAIN
CVS tags: thorpej-mips-cache-base
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +4 -5
lines
Convert netinet to not use the internal <sys/queue.h> field names
but instead the access macros. Use the FOREACH macros where appropriate.
Revision 1.120: download - view: text, markup, annotated - select for diffs
Sun Nov 4 13:42:27 2001 UTC (23 years, 1 month ago) by matt
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +2 -2
lines
Change a few variable/tables to const since they are read-only.
Revision 1.114.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:47:47 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.114: preferred, colored; next MAIN 1.115: preferred, colored
Changes since revision 1.114: +10 -3
lines
Catch up with -current.
Revision 1.107.2.4: download - view: text, markup, annotated - select for diffs
Fri Sep 21 22:36:50 2001 UTC (23 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.107.2.3: preferred, colored
Changes since revision 1.107.2.3: +10 -3
lines
Catch up to -current.
Revision 1.112.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 13 01:16:24 2001 UTC (23 years, 3 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.112.2.1: preferred, colored
Changes since revision 1.112.2.1: +10 -3
lines
Update the kqueue branch to HEAD.
Revision 1.119: download - view: text, markup, annotated - select for diffs
Tue Sep 11 21:03:21 2001 UTC (23 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-devvp-base3,
thorpej-devvp-base2,
pre-chs-ubcperf,
post-chs-ubcperf
Branch point for: thorpej-mips-cache
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +1 -2
lines
Use callouts for SYN cache timers, rather than traversing time queues
in tcp_slowtimo().
Revision 1.118: download - view: text, markup, annotated - select for diffs
Mon Sep 10 22:14:27 2001 UTC (23 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +2 -1
lines
Use callouts for TCP timers, rather than traversing the list of
all open TCP connections in tcp_slowtimo() (which is called 2x
per second). It's fairly rare for TCP timers to actually fire,
so saving this list traversal is good, especially if you want
to scale to thousands of open connections.
Revision 1.117: download - view: text, markup, annotated - select for diffs
Mon Sep 10 20:36:43 2001 UTC (23 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +4 -4
lines
Initialize TCP timer variables in a new function, tcp_timer_init().
Revision 1.116: download - view: text, markup, annotated - select for diffs
Mon Sep 10 20:19:54 2001 UTC (23 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +4 -1
lines
Add explicit initialization of TCP timer state. A noop right now.
Revision 1.115: download - view: text, markup, annotated - select for diffs
Mon Sep 10 04:24:24 2001 UTC (23 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +6 -2
lines
Use a callout for the delayed ACK timer, and delete tcp_fasttimo().
Expose the delayed ACK timer as net.inet.tcp.delack_ticks.
Revision 1.107.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:12:31 2001 UTC (23 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.107.2.2: preferred, colored
Changes since revision 1.107.2.2: +11 -2
lines
Catch up with -current.
Revision 1.112.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 3 04:13:55 2001 UTC (23 years, 4 months ago) by lukem
Branches: kqueue
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +11 -2
lines
update to -current
Revision 1.114: download - view: text, markup, annotated - select for diffs
Mon Jul 23 15:20:41 2001 UTC (23 years, 4 months ago) by itojun
Branches: MAIN
CVS tags: thorpej-devvp-base
Branch point for: thorpej-devvp
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +3 -1
lines
wrap IPv6 code by #ifdef INET6
Revision 1.113: download - view: text, markup, annotated - select for diffs
Mon Jul 23 15:17:58 2001 UTC (23 years, 4 months ago) by itojun
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +9 -2
lines
use in6_maxmtu, not in_maxmtu, for IPv6 mss computation
Revision 1.107.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:08:44 2001 UTC (23 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.107.2.1: preferred, colored
Changes since revision 1.107.2.1: +54 -5
lines
Catch up to -current.
Revision 1.112: download - view: text, markup, annotated - select for diffs
Tue Jun 12 15:17:28 2001 UTC (23 years, 6 months ago) by wiz
Branches: MAIN
Branch point for: kqueue
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +2 -2
lines
receive, not recieve
Revision 1.111: download - view: text, markup, annotated - select for diffs
Sat Jun 2 16:17:10 2001 UTC (23 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +47 -3
lines
Implement support for IP/TCP/UDP checksum offloading provided by
network interfaces. This works by pre-computing the pseudo-header
checksum and caching it, delaying the actual checksum to ip_output()
if the hardware cannot perform the sum for us. In-bound checksums
can either be fully-checked by hardware, or summed up for final
verification by software. This method was modeled after how this
is done in FreeBSD, although the code is significantly different in
most places.
We don't delay checksums for IPv6/TCP, but we do take advantage of the
cached pseudo-header checksum.
Note: hardware-assisted checksumming defaults to "off". It is
enabled with ifconfig(8). See the manual page for details.
Implement hardware-assisted checksumming on the DP83820 Gigabit Ethernet,
3c90xB/3c90xC 10/100 Ethernet, and Alteon Tigon/Tigon2 Gigabit Ethernet.
Revision 1.110: download - view: text, markup, annotated - select for diffs
Thu May 24 07:22:27 2001 UTC (23 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +7 -2
lines
call icmp6_mtudisc_update(foo, 0) even if ICMPv6 messages are very short.
let icmp6 layer decide whether we take PMTUD routes or not.
Revision 1.107.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 9 01:58:32 2001 UTC (23 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +127 -31
lines
Catch up with -current.
Revision 1.91.4.4: download - view: text, markup, annotated - select for diffs
Fri Apr 6 00:26:34 2001 UTC (23 years, 8 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.91.4.3: preferred, colored; branchpoint 1.91: preferred, colored
Changes since revision 1.91.4.3: +10 -4
lines
Pull up revision 1.106 (via patch, requested by itojun):
Record IPsec packet history in m_aux structure. Let ipfilter
look at wire-format packet only (not the decapsulated ones), so
that VPN setting can work with NAT/ipfilter settings.
Revision 1.81.2.6: download - view: text, markup, annotated - select for diffs
Tue Mar 27 15:32:35 2001 UTC (23 years, 8 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.81.2.5: preferred, colored; branchpoint 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81.2.5: +127 -31
lines
Sync with HEAD.
Revision 1.109: download - view: text, markup, annotated - select for diffs
Wed Mar 21 03:35:11 2001 UTC (23 years, 8 months ago) by chs
Branches: MAIN
CVS tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +3 -2
lines
make this compile without rnd.
Revision 1.108: download - view: text, markup, annotated - select for diffs
Tue Mar 20 20:07:51 2001 UTC (23 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +126 -31
lines
Two changes, designed to make us even more resilient against TCP
ISS attacks (which we already fend off quite well).
1. First-cut implementation of RFC1948, Steve Bellovin's cryptographic
hash method of generating TCP ISS values. Note, this code is experimental
and disabled by default (experimental enough that I don't export the
variable via sysctl yet, either). There are a couple of issues I'd
like to discuss with Steve, so this code should only be used by people
who really know what they're doing.
2. Per a recent thread on Bugtraq, it's possible to determine a system's
uptime by snooping the RFC1323 TCP timestamp options sent by a host; in
4.4BSD, timestamps are created by incrementing the tcp_now variable
at 2 Hz; there's even a company out there that uses this to determine
web server uptime. According to Newsham's paper "The Problem With
Random Increments", while NetBSD's TCP ISS generation method is much
better than the "random increment" method used by FreeBSD and OpenBSD,
it is still theoretically possible to mount an attack against NetBSD's
method if the attacker knows how many times the tcp_iss_seq variable
has been incremented. By not leaking uptime information, we can make
that much harder to determine. So, we avoid the leak by giving each
TCP connection a timebase of 0.
Revision 1.81.2.5: download - view: text, markup, annotated - select for diffs
Sun Feb 11 19:17:18 2001 UTC (23 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.81.2.4: preferred, colored; branchpoint 1.81: preferred, colored
Changes since revision 1.81.2.4: +36 -52
lines
Sync with HEAD.
Revision 1.107: download - view: text, markup, annotated - select for diffs
Sun Feb 11 06:49:49 2001 UTC (23 years, 10 months ago) by itojun
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +27 -49
lines
pull latest kame pcbnotify code. synchronizes ICMPv6 path mtu discovery
behavior with other protocols (i.e. validation, use of hiwat/lowat).
Revision 1.106: download - view: text, markup, annotated - select for diffs
Wed Jan 24 09:04:16 2001 UTC (23 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +10 -4
lines
- record IPsec packet history into m_aux structure.
- let ipfilter look at wire-format packet only (not the decapsulated ones),
so that VPN setting can work with NAT/ipfilter settings.
sync with kame.
TODO: use header history for stricter inbound validation
Revision 1.81.2.4: download - view: text, markup, annotated - select for diffs
Fri Jan 5 17:36:55 2001 UTC (23 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.81.2.3: preferred, colored; branchpoint 1.81: preferred, colored
Changes since revision 1.81.2.3: +1 -1
lines
Sync with HEAD
Revision 1.105: download - view: text, markup, annotated - select for diffs
Thu Dec 21 00:45:17 2000 UTC (23 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +2 -2
lines
fix call to in6_pcbnotify. s/EMSGSIZE/PRC_MSGSIZE/.
Revision 1.81.2.3: download - view: text, markup, annotated - select for diffs
Wed Dec 13 15:50:35 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.81.2.2: preferred, colored; branchpoint 1.81: preferred, colored
Changes since revision 1.81.2.2: +5 -3
lines
Sync with HEAD (for UBC fixes).
Revision 1.104: download - view: text, markup, annotated - select for diffs
Sat Dec 9 01:29:48 2000 UTC (24 years ago) by itojun
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +6 -4
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.81.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 22 16:06:13 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.81.2.1: preferred, colored; branchpoint 1.81: preferred, colored
Changes since revision 1.81.2.1: +3 -3
lines
Sync with HEAD.
Revision 1.81.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 18:10:36 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +339 -174
lines
Update thorpej_scsipi to -current as of a month ago
Revision 1.103: download - view: text, markup, annotated - select for diffs
Sun Oct 29 06:33:59 2000 UTC (24 years, 1 month ago) by itojun
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +4 -4
lines
cleanup tcp_drop
Revision 1.102: download - view: text, markup, annotated - select for diffs
Sun Oct 29 06:30:51 2000 UTC (24 years, 1 month ago) by itojun
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +3 -3
lines
process IPv4 tcp RST packet right. reported by thorpej.
Revision 1.101: download - view: text, markup, annotated - select for diffs
Thu Oct 19 20:23:00 2000 UTC (24 years, 1 month ago) by itojun
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +9 -22
lines
remove #ifdef TCP6. it is not likely for us to bring in sys/netinet6/tcp6*.c
(separate TCP/IPv6 stack) into netbsd-current.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Thu Oct 19 00:40:50 2000 UTC (24 years, 1 month ago) by itojun
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +3 -3
lines
memcpy -> bcopy, for sync with kame tree
Revision 1.99: download - view: text, markup, annotated - select for diffs
Wed Oct 18 21:14:12 2000 UTC (24 years, 1 month ago) by itojun
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +66 -8
lines
verify ICMPv6 too big messages based on TCP pcbs, and/or IPsec SA.
TODO: udp6, and sendto consideration. as pmtud is mandatory for IPv6,
it is rather important for us to support those cases.
TODO: more testing
TODO: kame sync
Revision 1.98: download - view: text, markup, annotated - select for diffs
Wed Oct 18 17:09:15 2000 UTC (24 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +51 -11
lines
Restructure the Path MTU Discovery code somewhat to avoid
entering rtentry's for hosts we're not actually communicating
with.
Do this by invoking the ctlinput for the protocol, which is
responsible for validating the ICMP message:
* TCP -- Lookup the connection based on the address/port
pairs in the ICMP message.
* AH/ESP -- Lookup the SA based on the SPI in the ICMP message.
If validation succeeds, ctlinput is responsible for calling
icmp_mtudisc(). icmp_mtudisc() then invokes callbacks registered
by protocols (such as TCP) which want to take some sort of special
action when a path's MTU changes. For TCP, this is where we now
refresh cached routes and re-enter slow-start.
As a side-effect, this fixes the problem where TCP would not be
notified when a path's MTU changed if AH/ESP were being used.
XXX Note, this is only a fix for the IPv4 case. For the IPv6
XXX case, we need to wait for the KAME folks.
Reviewed by sommerfeld@netbsd.org and itojun@netbsd.org.
Revision 1.97: download - view: text, markup, annotated - select for diffs
Wed Oct 18 07:21:10 2000 UTC (24 years, 1 month ago) by itojun
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +12 -1
lines
move tcp syn cache parameters from in_proto.c to tcp_subr.c.
it makes more sense and helps INET6-only (INET-less) build.
Revision 1.96: download - view: text, markup, annotated - select for diffs
Tue Oct 17 03:06:43 2000 UTC (24 years, 1 month ago) by itojun
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +45 -7
lines
be more friendly with INET-less build.
XXX we need to do more to do a working INET-less build
Revision 1.95: download - view: text, markup, annotated - select for diffs
Tue Oct 17 02:57:02 2000 UTC (24 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +7 -72
lines
Add an IP_MTUDISC flag to the flags that can be passed to
ip_output(). This flag, if set, causes ip_output() to set
DF in the IP header if the MTU in the route is not locked.
This allows a bunch of redundant code, which I was never
really all that happy about adding in the first place, to
be eliminated.
Inspired by a similar change made by provos@openbsd.org when
he integrated NetBSD's Path MTU Discovery code into OpenBSD.
Revision 1.91.4.3: download - view: text, markup, annotated - select for diffs
Tue Oct 17 00:48:30 2000 UTC (24 years, 1 month ago) by tv
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE,
netbsd-1-5-BETA2,
netbsd-1-5-BETA
Diff to: previous 1.91.4.2: preferred, colored; branchpoint 1.91: preferred, colored
Changes since revision 1.91.4.2: +5 -1
lines
Pullup 1.94 [itojun]:
validate mbuf chain length on *_ctlinput. remote node may be able to
transmit a truncated icmp6 packet and panic the system. sync with kame.
Revision 1.94: download - view: text, markup, annotated - select for diffs
Fri Oct 13 17:53:44 2000 UTC (24 years, 2 months ago) by itojun
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +5 -1
lines
validate mbuf chain length on *_ctlinput. remote node may be able to
transmit a truncated icmp6 packet and panic the system. sync with kame.
Revision 1.91.4.2: download - view: text, markup, annotated - select for diffs
Tue Sep 19 21:02:55 2000 UTC (24 years, 2 months ago) by itojun
Branches: netbsd-1-5
Diff to: previous 1.91.4.1: preferred, colored; branchpoint 1.91: preferred, colored
Changes since revision 1.91.4.1: +13 -3
lines
pullup 1.92 -> 1.93 (requested by thorpej)
for t_template, allocate mbuf cluster only if really necessary.
this avoids too aggressive memory usage on heavy load web server, for example.
From: Kevin Lahey <kml@dotrocket.com>
release and reallocate t_template, if t_template->m_len changes.
(this happens if we connect to IPv4 mapped destination and then IPv6
destination, on a single AF_INET6 socket)
KAME 1.26 -> 1.28
Revision 1.93: download - view: text, markup, annotated - select for diffs
Tue Sep 19 18:21:41 2000 UTC (24 years, 2 months ago) by itojun
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +13 -3
lines
for t_template, allocate mbuf cluster only if really necessary.
this avoids too aggressive memory usage on heavy load web server, for example.
From: Kevin Lahey <kml@dotrocket.com>
release and reallocate t_template, if t_template->m_len changes.
(this happens if we connect to IPv4 mapped destination and then IPv6
destination, on a single AF_INET6 socket)
KAME 1.26 -> 1.28
Revision 1.91.4.1: download - view: text, markup, annotated - select for diffs
Sun Jul 23 05:25:08 2000 UTC (24 years, 4 months ago) by itojun
Branches: netbsd-1-5
CVS tags: netbsd-1-5-ALPHA2
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +64 -11
lines
pullup from main trunc (approved by releng-1-5)
remove old mbuf assumption (ip header and tcp header are on the same mbuf).
this is for m_pulldown use. (sync with kame)
1.108 -> 1.109 syssrc/sys/netinet/tcp_input.c
1.56 -> 1.57 syssrc/sys/netinet/tcp_output.c
1.91 -> 1.92 syssrc/sys/netinet/tcp_subr.c
Revision 1.92: download - view: text, markup, annotated - select for diffs
Fri Jun 30 16:44:34 2000 UTC (24 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +64 -11
lines
remove old mbuf assumption (ip header and tcp header are on the same mbuf).
this is for m_pulldown use. (sync with kame)
Revision 1.91: download - view: text, markup, annotated - select for diffs
Thu Mar 30 13:25:07 2000 UTC (24 years, 8 months ago) by augustss
Branches: MAIN
CVS tags: netbsd-1-5-base,
minoura-xpg4dl-base,
minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +23 -23
lines
Remove register declarations.
Revision 1.90: download - view: text, markup, annotated - select for diffs
Thu Mar 30 02:38:53 2000 UTC (24 years, 8 months ago) by simonb
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +1 -2
lines
Delete redundant decl of zeroin6_addr, it's in <netinet6/in6_var.h>.
Revision 1.89: download - view: text, markup, annotated - select for diffs
Wed Mar 1 12:49:42 2000 UTC (24 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +4 -4
lines
introduce m->m_pkthdr.aux to hold random data which needs to be passed
between protocol handlers.
ipsec socket pointers, ipsec decryption/auth information, tunnel
decapsulation information are in my mind - there can be several other usage.
at this moment, we use this for ipsec socket pointer passing. this will
avoid reuse of m->m_pkthdr.rcvif in ipsec code.
due to the change, MHLEN will be decreased by sizeof(void *) - for example,
for i386, MHLEN was 100 bytes, but is now 96 bytes.
we may want to increase MSIZE from 128 to 256 for some of our architectures.
take caution if you use it for keeping some data item for long period
of time - use extra caution on M_PREPEND() or m_adj(), as they may result
in loss of m->m_pkthdr.aux pointer (and mbuf leak).
this will bump kernel version.
(as discussed in tech-net, tested in kame tree)
Revision 1.88: download - view: text, markup, annotated - select for diffs
Tue Feb 29 05:25:49 2000 UTC (24 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +5 -4
lines
ensure tcp window size does not overflow (16bit unsigned after window scale).
FreeBSD PR: 16914
Revision 1.87: download - view: text, markup, annotated - select for diffs
Sun Feb 6 08:06:43 2000 UTC (24 years, 10 months ago) by itojun
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +6 -6
lines
don't chase mbuf pointer when it is NULL.
Revision 1.86: download - view: text, markup, annotated - select for diffs
Mon Jan 31 14:18:57 2000 UTC (24 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +5 -3
lines
bring in latest KAME ipsec tree.
- interop issues in ipcomp is fixed
- padding type (after ESP) is configurable
- key database memory management (need more fixes)
- policy specification is revisited
XXX m->m_pkthdr.rcvif is still overloaded - hope to fix it soon
Revision 1.81.8.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:36:20 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81: +48 -21
lines
Pull up to last week's -current.
Revision 1.85: download - view: text, markup, annotated - select for diffs
Wed Dec 15 06:28:43 1999 UTC (25 years ago) by itojun
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +3 -2
lines
do not overwrite traffic class field when we write IPv6 version field.
Revision 1.84: download - view: text, markup, annotated - select for diffs
Mon Dec 13 15:17:20 1999 UTC (25 years ago) by itojun
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +45 -23
lines
sync IPv6 part with latest KAME tree. IPsec part is left unmodified
due to massive changes in KAME side.
- IPv6 output goes through nd6_output
- faith can capture IPv4 packets as well - you can run IPv4-to-IPv6 translator
using heavily modified DNS servers
- per-interface statistics (required for IPv6 MIB)
- interface autoconfig is revisited
- udp input handling has a big change for mapped address support.
- introduce in4_cksum() for non-overwriting checksumming
- introduce m_pulldown()
- neighbor discovery cleanups/improvements
- netinet/in.h strictly conforms to RFC2553 (no extra defs visible to userland)
- IFA_STATS is fixed a bit (not tested)
- and more more more.
TODO:
- cleanup os-independency #ifdef
- avoid rcvif dual use (for IPsec) to help ifdetach
(sorry for jumbo commit, I can't separate this any more...)
Revision 1.83: download - view: text, markup, annotated - select for diffs
Sun Dec 12 19:51:49 1999 UTC (25 years ago) by ragge
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +4 -1
lines
Avoid GCC complaints (under some circumstances).
Revision 1.82: download - view: text, markup, annotated - select for diffs
Wed Dec 8 16:22:20 1999 UTC (25 years ago) by itojun
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +2 -1
lines
do not drop from IP header to tcp option until sbappend(), to reduce
requirement to mbuf chain.
part of KAME sync, committed separately for its (possible) impact.
Revision 1.66.6.3: download - view: text, markup, annotated - select for diffs
Tue Nov 30 13:35:37 1999 UTC (25 years ago) by itojun
Branches: kame
CVS tags: kame_141_19991130
Diff to: previous 1.66.6.2: preferred, colored; branchpoint 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66.6.2: +242 -36
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.81: download - view: text, markup, annotated - select for diffs
Thu Sep 23 04:02:27 1999 UTC (25 years, 2 months ago) by enami
Branches: MAIN
CVS tags: fvdl-softdep-base,
fvdl-softdep,
comdex-fall-1999-base,
comdex-fall-1999
Branch point for: wrstuden-devbsize,
thorpej_scsipi
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -1
lines
Make this compile without INET6.
Revision 1.80: download - view: text, markup, annotated - select for diffs
Thu Sep 23 02:21:32 1999 UTC (25 years, 2 months ago) by itojun
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +23 -4
lines
cleanup and correct TCP MSS consideration with IPsec headers.
MSS advertisement must always be:
max(if mtu) - ip hdr siz - tcp hdr siz
We violated this in the previous code so it was fixed.
tcp_mss_to_advertise() now takes af (af on wire) as its argument,
to compute right ip hdr siz.
tcp_segsize() will take care of IPsec header size.
One thing I'm not really sure is how to handle IPsec header size in
*rxsegsizep (inbound segment size estimation).
The current code subtracts possible *outbound* IPsec size from *rxsegsizep,
hoping that the peer is using the same IPsec policy as me.
It may not be applicable, could TCP gulu please comment...
Revision 1.79: download - view: text, markup, annotated - select for diffs
Fri Aug 27 02:56:14 1999 UTC (25 years, 3 months ago) by itojun
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +2 -2
lines
fix tcp mss consideration on ipsec operation.
now tcp-over-ipsec should not experience fragmentation due to
addition of ipsec header.
From: proff@suburbia.net (Julian Assange)
Revision 1.78: download - view: text, markup, annotated - select for diffs
Wed Aug 25 15:23:13 1999 UTC (25 years, 3 months ago) by itojun
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +3 -1
lines
When listening socket goes away, remove assockated syn cache entires.
Stale syn cache entries are useless because none of them will be used
if there is no listening socket, as tcp_input looks up listening socket by
in_pcblookup*() before looking into syn cache.
This fixes race condition due to dangling socket pointer from syn cache
entries to listening socket (this was introduced when ipsec is merged in).
This should preserve currently implemented behavior (but not 4.4BSD
behavior prior to syn cache).
Tested in KAME repository before commit, but we'd better run some
regression tests.
Revision 1.77: download - view: text, markup, annotated - select for diffs
Wed Aug 25 12:38:14 1999 UTC (25 years, 3 months ago) by itojun
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +2 -2
lines
ctlinput handling must look at ip6_src, not ip6_dst.
(this makes path mtu handling wrong)
Revision 1.76: download - view: text, markup, annotated - select for diffs
Mon Aug 9 10:55:29 1999 UTC (25 years, 4 months ago) by itojun
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +7 -1
lines
return with doing nothing from xx_ctlinput(), when sa->sa_family
is not the expected one.
I see PRC_REDIRECT_HOST with sa->sa_family == AF_UNIX coming to
{tcp,udp}_ctlinput() when I use dhclient, and I feel like adding
more sanity checks, without logging - if we log it it is too noisy.
Revision 1.66.4.2: download - view: text, markup, annotated - select for diffs
Mon Aug 2 22:35:00 1999 UTC (25 years, 4 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.66.4.1: preferred, colored; branchpoint 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66.4.1: +167 -24
lines
Update from trunk.
Revision 1.75: download - view: text, markup, annotated - select for diffs
Sat Jul 31 18:41:15 1999 UTC (25 years, 4 months ago) by itojun
Branches: MAIN
CVS tags: chs-ubc2-base
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +17 -14
lines
sync with recent KAME.
- loosen ipsec restriction on packet diredtion.
- revise icmp6 redirect handling on IsRouter bit.
- tcp/udp notification processing (link-local address case)
- cosmetic fixes (better code share across *BSD).
Revision 1.74: download - view: text, markup, annotated - select for diffs
Fri Jul 23 15:21:17 1999 UTC (25 years, 4 months ago) by itojun
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +1 -5
lines
do not include unnecessary include files.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Thu Jul 22 12:56:56 1999 UTC (25 years, 4 months ago) by itojun
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +148 -11
lines
- implement IPv6 pmtud, which is necessary for TCP6.
- fix memory leak on SO_DEBUG over TCP.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Wed Jul 14 22:37:14 1999 UTC (25 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +7 -3
lines
Use proper ip protocol # field and tcp hdr on sending RST against SYN,
when ip header and tcp header are not adjacent to each other
(i.e. when ip6 options are attached).
To test this, try
telnet @::1@::1 port
toward a port without responding server. Prior to the fix, the kernel will
generate broken RST packet.
Revision 1.71: download - view: text, markup, annotated - select for diffs
Wed Jul 14 22:08:52 1999 UTC (25 years, 5 months ago) by drochner
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +2 -11
lines
make sending of keepalive messages work again:
-remove bogus sanity check involving an uninitialized variable
-correct mbuf cluster allocation
-(non-critical) remove redundant check in cleanup after error
Revision 1.70: download - view: text, markup, annotated - select for diffs
Fri Jul 9 22:57:22 1999 UTC (25 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +2 -1
lines
defopt IPSEC and IPSEC_ESP (both into opt_ipsec.h).
Revision 1.66.6.2: download - view: text, markup, annotated - select for diffs
Tue Jul 6 11:02:49 1999 UTC (25 years, 5 months ago) by itojun
Branches: kame
CVS tags: kame_14_19990705
Diff to: previous 1.66.6.1: preferred, colored; branchpoint 1.66: preferred, colored
Changes since revision 1.66.6.1: +4 -2
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.69: download - view: text, markup, annotated - select for diffs
Fri Jul 2 21:02:05 1999 UTC (25 years, 5 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -1
lines
Fix for -Wunitialized warnings broke compiles without INET6, refix.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Fri Jul 2 12:45:32 1999 UTC (25 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +10 -1
lines
avoid "variable not initialized" warnings on some of the platforms.
Revision 1.66.4.1: download - view: text, markup, annotated - select for diffs
Thu Jul 1 23:47:04 1999 UTC (25 years, 5 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +663 -105
lines
Sync w/ -current.
Revision 1.67: download - view: text, markup, annotated - select for diffs
Thu Jul 1 08:12:51 1999 UTC (25 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +663 -105
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.66.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 28 06:37:01 1999 UTC (25 years, 5 months ago) by itojun
Branches: kame
CVS tags: kame_14_19990628
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +661 -105
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.66: download - view: text, markup, annotated - select for diffs
Sun Feb 28 13:41:24 1999 UTC (25 years, 9 months ago) by explorer
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.65: preferred, colored
Changes since revision 1.65: +2 -12
lines
Don't mix in data just to stir the rnd pool. Extracting data will do that,
any network packets received might, too, so this is already taken care of.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Tue Jan 26 08:28:50 1999 UTC (25 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +16 -13
lines
Fix a slight error in previous. Rearrange some code in tcp_respond() so
that a DIAGNOSTIC check against the destination address is actually
checking the destination address. "oops."
Revision 1.64: download - view: text, markup, annotated - select for diffs
Wed Jan 20 03:39:54 1999 UTC (25 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +49 -6
lines
Fix a problem pointed out by Charles Hannum; DF wasn't being set in
SYN,ACK packets during Path MTU Discovery. Fix tcp_respond() to do the
appropriate route lookup and set DF as appropriate.
Also, fixup similar code in tcp_output() to relookup the route if it
is down.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Fri Dec 18 21:38:03 1998 UTC (25 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +14 -1
lines
Add a lock around the TCPCB's sequence queue, to prevent tcp_drain()
from corrupting the queue if called from a device's interrupt context.
Similar in nature to the problem reported in PR #5684.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Thu Oct 8 01:19:26 1998 UTC (26 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: kenh-if-detach-base,
kenh-if-detach,
chs-ubc-base,
chs-ubc
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +2 -2
lines
Use the pool allocator for ipqent structures.
Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed Oct 7 23:20:03 1998 UTC (26 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +7 -5
lines
Use the pool allocator for the tcpcb's TCP/IP header template.
Revision 1.60: download - view: text, markup, annotated - select for diffs
Tue Oct 6 00:20:45 1998 UTC (26 years, 2 months ago) by matt
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +2 -1
lines
Add a sysctl for newreno (default to off).
Revision 1.59: download - view: text, markup, annotated - select for diffs
Sat Sep 19 04:02:52 1998 UTC (26 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -2
lines
Always send a 0 window with a RST. Suggested by Darren Reed.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Fri Sep 4 22:29:54 1998 UTC (26 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +4 -6
lines
Fix a couple of bogons related to tcp_new_iss():
* Don't add tcp_iss_seq when creating a new ISS from TIME-WAIT state.
* Do the clock increment even when using the rnd device.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Aug 2 00:36:19 1998 UTC (26 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +9 -4
lines
Use the pool allocator for tcpcbs.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Fri Jul 17 23:09:58 1998 UTC (26 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: eeh-paddr_t-base,
eeh-paddr_t
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +4 -1
lines
Document that we are more conservative after doing MTU discovery than the
suggestion in draft-floyd-incr-init-win-03. Rather than scaling cwnd back
by the ratio of new segment size to old segment size, we perform a slow start
using the Initial Window, computed with the new segment size.
Revision 1.55: download - view: text, markup, annotated - select for diffs
Fri Jul 17 23:02:38 1998 UTC (26 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +5 -4
lines
Clarify that we're using the Loss Window when we receive a source quench.
Revision 1.54: download - view: text, markup, annotated - select for diffs
Tue May 12 21:45:51 1998 UTC (26 years, 7 months ago) by kml
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +2 -2
lines
Changed initialization of peermss to ensure that it didn't have
the TCP and IP options lengths removed from it -- the IP options can
change over the course of a connection...
Revision 1.32.2.8: download - view: text, markup, annotated - select for diffs
Sat May 9 03:33:01 1998 UTC (26 years, 7 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.32.2.7: preferred, colored; branchpoint 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32.2.7: +31 -19
lines
Pull up patch from kml.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu May 7 22:30:23 1998 UTC (26 years, 7 months ago) by kml
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +5 -4
lines
Change comments on tcp_mss_to_advertise to match actual arguments
Revision 1.52: download - view: text, markup, annotated - select for diffs
Thu May 7 01:37:27 1998 UTC (26 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +4 -1
lines
Rework the syn cache code somewhat:
- Don't use home-grown queue manipulation. Use <sys/queue.h> instead. The
data structures are a little larger, but we are otherwise wasting the
memory chunk anyway (we're already a 64-byte malloc bucket).
- Fix a bug in the cache-is-full case: if the oldest element removed from
the first non-empty bucket was the only element in the bucket, the
bucket wouldn't be removed from the bucket cache, causing queue corruption
later.
- Optimize the syn cache timers by using PRT timers rather than home-grown
decrement-and-propagate timers.
This code is now a fair bit smaller, and significantly easier to read
and understand.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed May 6 01:21:21 1998 UTC (26 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +2 -2
lines
Use macros from tcp_timer.h to manipulate TCP timers, so that their
implementation can be changed easily.
Revision 1.32.2.7: download - view: text, markup, annotated - select for diffs
Tue May 5 23:01:58 1998 UTC (26 years, 7 months ago) by mycroft
Branches: netbsd-1-3
Diff to: previous 1.32.2.6: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.6: +28 -4
lines
Pull up 1.42, per request of kml.
Revision 1.32.2.6: download - view: text, markup, annotated - select for diffs
Tue May 5 09:25:09 1998 UTC (26 years, 7 months ago) by mycroft
Branches: netbsd-1-3
Diff to: previous 1.32.2.5: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.5: +4 -2
lines
Pull up 1.43, per request of kml.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Sun May 3 19:54:56 1998 UTC (26 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -1
lines
Once again, move a declaration for the benefit of TUBA (grumble).
Revision 1.49: download - view: text, markup, annotated - select for diffs
Wed Apr 29 20:43:30 1998 UTC (26 years, 7 months ago) by matt
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +25 -3
lines
New TCP reassembly code. The new code reduces the memory needed by
out-of-order packets and builds the infrastructure needed for sending
SACK blocks (to be added shortly).
Revision 1.48: download - view: text, markup, annotated - select for diffs
Wed Apr 29 05:16:46 1998 UTC (26 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +20 -15
lines
Make use of the work-arounds for ancient broken TCP peers run-time
conditional (tcp_compat_42). The kernel config option TCP_COMPAT_42
will still enable this by default, or disable this by default if the
option is not included (i.e. current behavior). This will be made a
sysctl soon.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Mon Apr 13 21:18:19 1998 UTC (26 years, 8 months ago) by kml
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +25 -11
lines
Fix to ensure that the correct MSS is advertised for loopback
TCP connections by using the MTU of the interface. Also added
a knob, mss_ifmtu, to force all connections to use the MTU of
the interface to calculate the advertised MSS.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Tue Mar 31 22:49:10 1998 UTC (26 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -6
lines
Fix a potential-congestion case in the larger initial congestion window
code, as clarified in the TCPIMPL WG meeting at IETF #41: If the SYN
(active open) or SYN,ACK (passive open) was retransmitted, the initial
congestion window for the first slow start of that connection must be
one segment.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat Mar 28 19:39:57 1998 UTC (26 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +1 -4
lines
Remove a comment in tcp_mss_to_advertise() that no longer applies.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Mar 24 03:10:02 1998 UTC (26 years, 8 months ago) by kml
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -2
lines
Ensure that we take the IP option length into account when we calculate
the effective maximum send size for TCP. ip_optlen() and tcp_optlen()
should probably be inlined for efficiency.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Mar 19 22:29:34 1998 UTC (26 years, 8 months ago) by kml
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -2
lines
Fix a retransmission bug introduced by the Brakmo and Peterson
RTO estimation changes. Under some circumstances it would return a value
of 0, while the old Van Jacobson RTO code would return a minimum of 3.
This would result in 12 retransmissions, each 1 second apart.
This takes care of those instances, and ensures that t_rttmin is
used everywhere as a lower bound.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Tue Mar 17 23:50:30 1998 UTC (26 years, 9 months ago) by kml
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +28 -4
lines
Ensure that the TCP segment size reflects the size of TCP options
in the packet. This fixes a bug that was resulting in extra packets
in retransmissions (the second packet would be 12 bytes long,
reflecting the RFC1323 timestamp option size).
Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Feb 19 02:36:43 1998 UTC (26 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +38 -1
lines
Update copyright (sigh, should have done this long ago).
Revision 1.32.2.5: download - view: text, markup, annotated - select for diffs
Sat Feb 7 00:58:43 1998 UTC (26 years, 10 months ago) by mellon
Branches: netbsd-1-3
CVS tags: netbsd-1-3-PATCH001
Diff to: previous 1.32.2.4: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.4: +2 -1
lines
Pull up 1.40 (mellon)
Revision 1.40: download - view: text, markup, annotated - select for diffs
Fri Jan 30 08:42:11 1998 UTC (26 years, 10 months ago) by mellon
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -1
lines
Take PCB off delayed ack queue before freeing.
Revision 1.32.2.4: download - view: text, markup, annotated - select for diffs
Thu Jan 29 13:56:49 1998 UTC (26 years, 10 months ago) by mellon
Branches: netbsd-1-3
Diff to: previous 1.32.2.3: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.3: +173 -16
lines
Fix botched merge
Revision 1.32.2.3: download - view: text, markup, annotated - select for diffs
Thu Jan 29 10:31:24 1998 UTC (26 years, 10 months ago) by mellon
Branches: netbsd-1-3
Diff to: previous 1.32.2.2: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.2: +7 -123
lines
Pull up 1.35-1.38 (thorpej)
Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Jan 12 03:00:42 1998 UTC (26 years, 11 months ago) by scottr
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -1
lines
Use option header file for TCP_COMPAT_42
Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Jan 5 10:32:09 1998 UTC (26 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3
lines
Finishing merging 4.4BSD-Lite2 netinet. At this point, the only changes
left were SCCS IDs and Copyright dates.
Revision 1.1.1.3 (vendor branch): download - view: text, markup, annotated - select for diffs
Mon Jan 5 09:56:06 1998 UTC (26 years, 11 months ago) by thorpej
Branches: WFJ-920714,
CSRG
CVS tags: lite-2
Diff to: previous 1.1.1.2: preferred, colored
Changes since revision 1.1.1.2: +3 -3
lines
Import sys/netinet from 4.4BSD-Lite2 for reference purposes.
Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Mon Jan 5 09:54:25 1998 UTC (26 years, 11 months ago) by thorpej
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: +78 -48
lines
Import sys/netinet from 4.4BSD-Lite for reference purposes.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Dec 31 03:31:26 1997 UTC (26 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -1
lines
Implement a queue for delayed ACK processing. This queue is used in
tcp_fasttimo() in lieu of scanning all open TCP connections.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Dec 11 22:47:25 1997 UTC (27 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +17 -8
lines
Implement an infrastructure to allow larger initial congestion windows.
The sysctl'able variable "tcp_init_win", when set to 0, selects an
auto-tuning algorithm for selecting the initial window, based on transmit
segment size, per discussion in the IETF tcpimpl working group.
Default initial window is still 1 segment, but will soon become 2 segments,
per discussion in tcpimpl.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Dec 10 01:58:07 1997 UTC (27 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +38 -7
lines
Implement tcp_drain().
Revision 1.32.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 12 22:59:20 1997 UTC (27 years, 1 month ago) by thorpej
Branches: netbsd-1-3
CVS tags: netbsd-1-3-RELEASE,
netbsd-1-3-BETA
Diff to: previous 1.32.2.1: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.1: +1 -2
lines
Pull up from trunk: nuke extra rtfree()
Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Nov 11 21:10:50 1997 UTC (27 years, 1 month ago) by kml
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +1 -2
lines
Remove an extraneous call to rtfree() in the path mtu discovery code;
this was causing negative reference counts on routes...
Revision 1.32.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 8 06:31:33 1997 UTC (27 years, 1 month ago) by thorpej
Branches: netbsd-1-3
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +10 -6
lines
Pull up from trunk: TCP MSS fixes to provide cleaner slow-start and recovery.
(kml)
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Nov 8 02:35:24 1997 UTC (27 years, 1 month ago) by kml
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +10 -6
lines
TCP MSS fixes to provide cleaner slow-start and recovery.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat Oct 18 21:18:33 1997 UTC (27 years, 1 month ago) by kml
Branches: MAIN
CVS tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -3
lines
change sysctl net.inet.icmp.mtudisc to net.inet.ip.mtudisc
Revision 1.31: download - view: text, markup, annotated - select for diffs
Fri Oct 17 22:12:38 1997 UTC (27 years, 1 month ago) by kml
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +38 -1
lines
Path MTU Discovery support. This is turned off by default.
Use sysctl -w net.inet.icmp.mtudisc=1 to turn on.
Still to come: path removal after some period, black hole detection
Revision 1.27.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 14 10:29:44 1997 UTC (27 years, 2 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.27.2.1: preferred, colored; branchpoint 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.2.1: +79 -2
lines
Update marc-pcmcia branch from trunk.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Oct 13 00:48:12 1997 UTC (27 years, 2 months ago) by explorer
Branches: MAIN
CVS tags: marc-pcmcia-base
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +17 -7
lines
o Make usage of /dev/random dependant on
pseudo-device rnd # /dev/random and in-kernel generator
in config files.
o Add declaration to all architectures.
o Clean up copyright message in rnd.c, rnd.h, and rndpool.c to include
that this code is derived in part from Ted Tyso's linux code.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Fri Oct 10 01:51:09 1997 UTC (27 years, 2 months ago) by explorer
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +69 -2
lines
Add hooks to use the kernel random system to generate TCP sequence numbers.
Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 29 07:21:23 1997 UTC (27 years, 2 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +176 -1
lines
Update marc-pcmcia branch from trunk.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Sep 22 21:50:02 1997 UTC (27 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +176 -1
lines
Fix several annoyances related to MSS handling in BSD TCP:
- Don't overload t_maxseg. Previous behavior was to set it to the min
of the peer's advertised MSS, our advertised MSS, and tcp_mssdflt
(for non-local networks). This breaks PMTU discovery running on
either host. Instead, remember the MSS we advertise, and use it
as appropriate (in silly window avoidance).
- Per last bullet, split tcp_mss() into several functions for handling
MSS (ours and peer's), and performing various tasks when a connection
becomes ESTABLISHED.
- Introduce a new function, tcp_segsize(), which computes the max size
for every segment transmitted in tcp_output(). This will eventually
be used to hook in PMTU discovery.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Jul 23 21:26:51 1997 UTC (27 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-signal-base,
thorpej-signal,
marc-pcmcia-bp
Branch point for: marc-pcmcia
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +28 -17
lines
Pull SYN_cache_branch down into the main line.
Revision 1.25.8.4: download - view: text, markup, annotated - select for diffs
Sat Jun 28 04:24:17 1997 UTC (27 years, 5 months ago) by thorpej
Branches: SYN_cache_branch
Diff to: previous 1.25.8.3: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.8.3: +3 -4
lines
KNF.
Revision 1.25.8.3: download - view: text, markup, annotated - select for diffs
Thu Jun 26 22:22:49 1997 UTC (27 years, 5 months ago) by thorpej
Branches: SYN_cache_branch
Diff to: previous 1.25.8.2: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.8.2: +4 -4
lines
u_short -> u_int16_t.
Revision 1.25.8.2: download - view: text, markup, annotated - select for diffs
Thu Jun 26 17:58:49 1997 UTC (27 years, 5 months ago) by thorpej
Branches: SYN_cache_branch
Diff to: previous 1.25.8.1: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.8.1: +5 -7
lines
Update from trunk.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Jun 24 02:26:06 1997 UTC (27 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: bouyer-scsipi,
SYN_cache_cur_base
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +5 -7
lines
Eliminate use of dtom() from the network code, allowing more flexible
use of mbuf external storage and increasing performance (by eliminating
an m_pullup() for clusters in the IP reassembly code).
Changes from Koji Imada <koji@math.human.nagoya-u.ac.jp>, in PR #3628
and #3480, with ever-so-slight integration changes by me.
Revision 1.25.8.1: download - view: text, markup, annotated - select for diffs
Wed May 14 18:04:16 1997 UTC (27 years, 7 months ago) by mellon
Branches: SYN_cache_branch
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +30 -18
lines
More of David Borman's SYN cache patches for 4.4BSD-lite2:
tcp_respond:
- return a error code if the reponse could not be sent, zero
otherwise (was void).
- generate SYN/ACK packet if tp==0 and SYN bit is set. Do
not adjust window in this case.
- if SYN bit is set, use ti_off as passed in rather than
setting it locally.
tcp_ctlinput:
- call syn_cache_unreach if in_pcbnotify fails.
Revision 1.22.4.1: download - view: text, markup, annotated - select for diffs
Tue Dec 10 18:21:11 1996 UTC (28 years ago) by mycroft
Branches: netbsd-1-2
CVS tags: netbsd-1-2-PATCH001
Diff to: previous 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22: +3 -3
lines
From trunk:
Fix RTT scaling problems introduced with Brakmo and Peterson changes.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Dec 10 18:20:23 1996 UTC (28 years ago) by mycroft
Branches: MAIN
CVS tags: thorpej-setroot,
mrg-vm-swap,
is-newarp-before-merge,
is-newarp-base,
is-newarp
Branch point for: SYN_cache_branch
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3
lines
Fix RTT scaling problems introduced with Brakmo and Peterson changes.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Sep 15 18:11:10 1996 UTC (28 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2
lines
Hash unconnected PCBs.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Sep 9 14:51:21 1996 UTC (28 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +8 -7
lines
Add in_nullhost() and in_hosteq() macros, to hide some protocol
details. Also, fix a bug in TCP wrt SYN+URG packets.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Feb 13 23:44:00 1996 UTC (28 years, 10 months 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.21: preferred, colored
Changes since revision 1.21: +11 -11
lines
netinet prototypes
Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Fri Feb 2 06:12:57 1996 UTC (28 years, 10 months ago) by mycroft
Branches: netbsd-1-1
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +6 -6
lines
Bring in changes for mondo patch 2.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Jan 31 03:49:35 1996 UTC (28 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +6 -6
lines
Build a hash table of PCBs. Hash function needs tweaking.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Nov 21 01:07:41 1995 UTC (29 years ago) by cgd
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +10 -14
lines
make netinet work on systems where pointers and longs are 64 bits
(like the alpha). Biggest problem: IP headers were overlayed with
structure which included pointers, and which therefore didn't overlay
properly on 64-bit machines. Solution: instead of threading pointers
through IP header overlays, add a "queue element" structure to do
the threading, and point it at the ip headers.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Jun 12 06:48:54 1995 UTC (29 years, 6 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001
Branch point for: netbsd-1-1
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -2
lines
Fix bogon in previous.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Jun 12 06:46:38 1995 UTC (29 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +8 -5
lines
Change in_pcbnotify*() to take an errno value. Make inetctlerrmap[] an
array on ints, not u_chars.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Jun 12 06:24:21 1995 UTC (29 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +9 -10
lines
Oops. Make source quench work again.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Jun 12 00:47:55 1995 UTC (29 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +16 -12
lines
Various cleanup, including:
* Convert several data structures to use queue.h.
* Split in_pcbnotify() into two parts; one for notifying a specific PCB, and
one for notifying all PCBs for a particular foreign address.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Jun 11 20:39:25 1995 UTC (29 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -4
lines
As suggested by Brakmo and Peterson:
* Don't add the extra 1/8 of the mss when ramping up the congestion window.
* Scale the RTT values slightly to adjust for rounding errors.
* Set the lower bound of the RTO to RTT+2.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Jun 4 05:07:17 1995 UTC (29 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2
lines
Clean up many more casts.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Apr 13 06:36:44 1995 UTC (29 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +5 -5
lines
be a bit more careful and explicit with types. (basically a large no-op.)
Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Oct 14 16:01:51 1994 UTC (30 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3
lines
Don't return received data to the user until the initial handshake is complete.
Also use TCPS_HAVEESTABLISHED() in a few other places.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Jun 29 06:38:46 1994 UTC (30 years, 5 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.10: preferred, colored
Changes since revision 1.10: +3 -2
lines
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri May 13 06:06:45 1994 UTC (30 years, 7 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +47 -27
lines
Update to 4.4-Lite networking code, with a few local changes.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Jan 10 23:27:44 1994 UTC (30 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2
lines
Change the counters to be all the same type -- u_long.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Jan 10 20:14:32 1994 UTC (30 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2
lines
Should compile now with or without `options MULTICAST'.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Jan 8 23:07:21 1994 UTC (30 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +10 -3
lines
Prototypes.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Jan 8 21:22:01 1994 UTC (30 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -4
lines
Fix some inconsistent spacing; spaces at the end of lines, etc.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Dec 18 00:42:07 1993 UTC (31 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +23 -23
lines
Canonicalize all #includes.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat May 22 11:42:44 1993 UTC (31 years, 6 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.3: preferred, colored
Changes since revision 1.3: +1 -2
lines
add include of select.h if necessary for protos, or delete if extraneous
Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue May 18 18:20:19 1993 UTC (31 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -1
lines
make kernel select interface be one-stop shopping & clean it all up.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Apr 12 11:07:57 1993 UTC (31 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -0
lines
Ignore forged ICMP_UNREACH with dport==0 and sport==0.
Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 8 months 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 (31 years, 8 months ago) by cgd
Branches: MAIN
Initial revision
CVSweb <webmaster@jp.NetBSD.org>