CVS log for src/sys/netinet/ip_icmp.c
Up to [cvs.NetBSD.org] / src / sys / netinet
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.178: download - view: text, markup, annotated - select for diffs
Mon Aug 29 09:14:02 2022 UTC (2 years, 3 months ago) by knakahara
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,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm,
HEAD
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +14 -2
lines
Add sysctl entry to control to send routing message for RTM_DYNAMIC.
Some routing daemons require such routing message to keep coherency.
If we want to let kernel send such message, set net.inet.icmp.dynamic_rt_msg=1
for IPv4, net.inet6.icmp6.dynamic_rt_msg=1 for IPv6.
Default(=0) is the same as before, that is, not send such routing message.
Revision 1.172.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.172: preferred, colored; next MAIN 1.173: preferred, colored
Changes since revision 1.172: +10 -18
lines
Sync with HEAD
Revision 1.168.2.7: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:02:05 2018 UTC (5 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.168.2.6: preferred, colored; branchpoint 1.168: preferred, colored; next MAIN 1.169: preferred, colored
Changes since revision 1.168.2.6: +3 -3
lines
Sync with HEAD, resolve a few conflicts
Revision 1.177: download - view: text, markup, annotated - select for diffs
Sat Dec 22 14:28:57 2018 UTC (5 years, 11 months ago) by maxv
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-i2c-spi-conf,
thorpej-futex2-base,
thorpej-futex2,
thorpej-futex-base,
thorpej-futex,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
isaki-audio2-base,
isaki-audio2,
is-mlppp-base,
is-mlppp,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
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.176: preferred, colored
Changes since revision 1.176: +3 -3
lines
Replace M_ALIGN and MH_ALIGN by m_align.
Revision 1.168.2.6: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:51 2018 UTC (6 years ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.168.2.5: preferred, colored; branchpoint 1.168: preferred, colored
Changes since revision 1.168.2.5: +4 -4
lines
Sync with HEAD, resolve a couple of conflicts
Revision 1.176: download - view: text, markup, annotated - select for diffs
Thu Nov 15 10:23:56 2018 UTC (6 years ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-1126
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +3 -3
lines
Remove the 't' argument from m_tag_find().
Revision 1.175: download - view: text, markup, annotated - select for diffs
Thu Nov 15 10:06:07 2018 UTC (6 years ago) by maxv
Branches: MAIN
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +3 -3
lines
Simplify the mtag API:
- Remove m_tag_init(), m_tag_first(), m_tag_next() and
m_tag_delete_nonpersistent().
- Remove the 't' argument from m_tag_delete_chain().
Revision 1.168.2.5: download - view: text, markup, annotated - select for diffs
Sun Sep 30 01:45:56 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.168.2.4: preferred, colored; branchpoint 1.168: preferred, colored
Changes since revision 1.168.2.4: +4 -12
lines
Ssync with HEAD
Revision 1.174: download - view: text, markup, annotated - select for diffs
Fri Sep 14 05:09:51 2018 UTC (6 years, 2 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-1020,
pgoyette-compat-0930
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +4 -12
lines
Use non-variadic function pointer in protosw::pr_input.
Revision 1.168.2.4: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:56:44 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.168.2.3: preferred, colored; branchpoint 1.168: preferred, colored
Changes since revision 1.168.2.3: +5 -5
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.173: 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-0906
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +5 -5
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.161.6.3: download - view: text, markup, annotated - select for diffs
Fri Jul 13 14:26:47 2018 UTC (6 years, 5 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE
Diff to: previous 1.161.6.2: preferred, colored; branchpoint 1.161: preferred, colored; next MAIN 1.162: preferred, colored
Changes since revision 1.161.6.2: +7 -2
lines
Pull up following revision(s) via patch (requested by knakahara in ticket #905):
sys/netinet/ip_mroute.c: revision 1.160
sys/netinet6/in6_l2tp.c: revision 1.16
sys/net/if.h: revision 1.263
sys/netinet/in_l2tp.c: revision 1.15
sys/netinet/ip_icmp.c: revision 1.172
sys/netinet/igmp.c: revision 1.68
sys/netinet/ip_encap.c: revision 1.69
sys/netinet6/ip6_mroute.c: revision 1.129
sbappendaddr() is required any lock. Currently, softnet_lock is appropriate.
When rip_input() is called as inetsw[].pr_input, rip_iput() is always called
with holding softnet_lock, that is, in case of !defined(NET_MPSAFE) it is
acquired in ipintr(), otherwise(defined(NET_MPSAFE)) it is acquire in
PR_WRAP_INPUT macro.
However, some function calls rip_input() directly without holding softnet_lock.
That causes assertion failure in sbappendaddr().
rip6_input() and icmp6_rip6_input() are also required softnet_lock for the same
reason.
Revision 1.168.2.3: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:26:06 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.168.2.2: preferred, colored; branchpoint 1.168: preferred, colored
Changes since revision 1.168.2.2: +15 -4
lines
Sync with HEAD
Revision 1.172: download - view: text, markup, annotated - select for diffs
Thu Jun 21 10:37:50 2018 UTC (6 years, 5 months ago) by knakahara
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-0728,
pgoyette-compat-0625
Branch point for: phil-wifi
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +7 -2
lines
sbappendaddr() is required any lock. Currently, softnet_lock is appropriate.
When rip_input() is called as inetsw[].pr_input, rip_iput() is always called
with holding softnet_lock, that is, in case of !defined(NET_MPSAFE) it is
acquired in ipintr(), otherwise(defined(NET_MPSAFE)) it is acquire in
PR_WRAP_INPUT macro.
However, some function calls rip_input() directly without holding softnet_lock.
That causes assertion failure in sbappendaddr().
rip6_input() and icmp6_rip6_input() are also required softnet_lock for the same
reason.
Revision 1.161.6.2: download - view: text, markup, annotated - select for diffs
Fri Jun 8 10:14:33 2018 UTC (6 years, 6 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-0-RC2
Diff to: previous 1.161.6.1: preferred, colored; branchpoint 1.161: preferred, colored
Changes since revision 1.161.6.1: +10 -4
lines
Pull up following revision(s) (requested by ozaki-r in ticket #852):
sys/netinet6/icmp6.c: revision 1.238
sys/netinet/ip_icmp.c: revision 1.171
sys/net/route.c: revision 1.210
Fix _rt_free via rtrequest(RTM_DELETE) hangs in rt_timer handlers
A rt_timer handler is passed a rtentry with an extra reference that avoids the
rtentry is accidentally released. So rt_timer handers must release
the reference of a passed rtentry by themselves (but they didn't).
Revision 1.171: download - view: text, markup, annotated - select for diffs
Fri Jun 1 07:13:35 2018 UTC (6 years, 6 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +10 -4
lines
Fix _rt_free via rtrequest(RTM_DELETE) hangs in rt_timer handlers
A rt_timer handler is passed a rtentry with an extra reference that avoids the
rtentry is accidentally released. So rt_timer handers must release the reference
of a passed rtentry by themselves (but they didn't).
Revision 1.168.2.2: 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.168.2.1: preferred, colored; branchpoint 1.168: preferred, colored
Changes since revision 1.168.2.1: +4 -54
lines
Sync with HEAD
Revision 1.170: download - view: text, markup, annotated - select for diffs
Fri May 11 14:38:28 2018 UTC (6 years, 7 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-0521
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +4 -54
lines
Retire ICMPPRINTFS, it's annoying and it doesn't build.
Revision 1.168.2.1: download - view: text, markup, annotated - select for diffs
Wed May 2 07:20:23 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +3 -3
lines
Synch with HEAD
Revision 1.169: download - view: text, markup, annotated - select for diffs
Thu Apr 26 07:28:21 2018 UTC (6 years, 7 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-0502
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +3 -3
lines
Use M_UNWRITABLE, no functional change.
Revision 1.161.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 31 10:38:53 2018 UTC (6 years, 8 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-0-RC1
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +10 -2
lines
Pull up following revision(s) (requested by maxv in ticket #675):
sys/netinet/ip_icmp.c: revision 1.168
Fix a possible buffer overflow in the IPv4 _ctlinput functions.
In _icmp_input we are guaranteeing that the ICMP_ADVLENMIN-byte area
starting from 'icp' is contiguous.
ICMP_ADVLENMIN = 8 + sizeof(struct ip) + 8 = 36
But the _ctlinput functions (eg udp_ctlinput) expect the area to be
larger. These functions read at:
(uint8_t *)icp + 8 + (icp->icmp_ip.ip_hl << 2)
which can be crafted to be:
(uint8_t *)icp + 68
So we end up reading 'icp+68' while the valid area ended at 'icp+36'.
Having said that, it seems pretty complicated to trigger this bug; it
would have to be a fragmented packet with half of the ICMP header in the
first fragment, and we would need to have a driver that did not allocate
a cluster for the first mbuf of the chain.
The check of icmplen against ICMP_ADVLEN(icp) was not sufficient: while it
did guarantee that the ICMP header fit the chain, it did not guarantee
that it fit 'm'.
Fix this bug by pulling up to hlen+ICMP_ADVLEN(icp). No need to log an
error. Rebase the pointers afterwards.
Revision 1.168: download - view: text, markup, annotated - select for diffs
Thu Feb 8 09:32:02 2018 UTC (6 years, 10 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-base,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +10 -2
lines
Fix a possible buffer overflow in the IPv4 _ctlinput functions.
In _icmp_input we are guaranteeing that the ICMP_ADVLENMIN-byte area
starting from 'icp' is contiguous.
ICMP_ADVLENMIN = 8 + sizeof(struct ip) + 8 = 36
But the _ctlinput functions (eg udp_ctlinput) expect the area to be
larger. These functions read at:
(uint8_t *)icp + 8 + (icp->icmp_ip.ip_hl << 2)
which can be crafted to be:
(uint8_t *)icp + 68
So we end up reading 'icp+68' while the valid area ended at 'icp+36'.
Having said that, it seems pretty complicated to trigger this bug; it
would have to be a fragmented packet with half of the ICMP header in the
first fragment, and we would need to have a driver that did not allocate
a cluster for the first mbuf of the chain.
The check of icmplen against ICMP_ADVLEN(icp) was not sufficient: while it
did guarantee that the ICMP header fit the chain, it did not guarantee
that it fit 'm'.
Fix this bug by pulling up to hlen+ICMP_ADVLEN(icp). No need to log an
error. Rebase the pointers afterwards.
Revision 1.167: download - view: text, markup, annotated - select for diffs
Mon Feb 5 08:38:06 2018 UTC (6 years, 10 months ago) by maxv
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +3 -3
lines
Declare icmperrppslim in ip_icmp.c, it shouldn't be used elsewhere.
Revision 1.166: download - view: text, markup, annotated - select for diffs
Tue Jan 23 07:33:49 2018 UTC (6 years, 10 months ago) by maxv
Branches: MAIN
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +11 -17
lines
Don't use global variables, that's obviously incorrect on MP systems.
One remains, because it is imported in tcp_timer.c, and I'm not totally
sure of how it interacts with icmp_mtudisc().
Revision 1.165: download - view: text, markup, annotated - select for diffs
Tue Jan 23 07:15:04 2018 UTC (6 years, 10 months ago) by maxv
Branches: MAIN
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +93 -93
lines
Style, localify icmp_send, and add a clear KASSERT (that replaces a vague
comment).
Revision 1.164: download - view: text, markup, annotated - select for diffs
Mon Jan 22 06:56:25 2018 UTC (6 years, 10 months ago) by maxv
Branches: MAIN
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +5 -2
lines
Adapt previous, reintroduce MH_ALIGN. It's used as an optimization - we
can later prepend something to the current mbuf without having to allocate
a new mbuf.
Revision 1.163: download - view: text, markup, annotated - select for diffs
Fri Jan 19 13:17:29 2018 UTC (6 years, 10 months ago) by maxv
Branches: MAIN
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +18 -30
lines
Fix a buffer overflow in icmp_error. We create in 'm' a packet that must
contain:
IPv4 header | Fixed part of ICMP header | Variable part of ICMP header
But we perform length checks on 'totlen', which does not count the IPv4
header.
So now, add sizeof(struct ip) in totlen, and stop doing this m_data
nonsense, just get the pointers as usual.
Revision 1.162: download - view: text, markup, annotated - select for diffs
Fri Jan 19 12:50:27 2018 UTC (6 years, 10 months ago) by maxv
Branches: MAIN
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +69 -49
lines
Clarify icmp_error:
* Rename (and constify) oiplen -> oiphlen.
* Rename icmplen -> datalen, it's the size of the variable part of
the ICMP header, not the total size of the ICMP header itself.
* Introduce totlen, this is the total size of the ICMP header (icmp_ip
included).
No real functional change.
Revision 1.129.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.129.2.2: preferred, colored; branchpoint 1.129: preferred, colored; next MAIN 1.130: preferred, colored
Changes since revision 1.129.2.2: +184 -81
lines
update from HEAD
Revision 1.134.4.9: 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.134.4.8: preferred, colored; branchpoint 1.134: preferred, colored; next MAIN 1.135: preferred, colored
Changes since revision 1.134.4.8: +55 -26
lines
Sync with HEAD
Revision 1.150.2.5: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:29 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.150.2.4: preferred, colored; branchpoint 1.150: preferred, colored; next MAIN 1.151: preferred, colored
Changes since revision 1.150.2.4: +3 -3
lines
Sync with HEAD
Revision 1.154.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.154: preferred, colored; next MAIN 1.155: preferred, colored
Changes since revision 1.154: +78 -31
lines
Sync with HEAD
Revision 1.161: download - view: text, markup, annotated - select for diffs
Fri Mar 31 06:49:44 2017 UTC (7 years, 8 months ago) by ozaki-r
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
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.160: preferred, colored
Changes since revision 1.160: +3 -3
lines
Don't use a single global variable to store source route information for multiple incoming packets
It's not MP-safe. So use a m_tag to store the information instead.
Pointed out by knakahara@
The fix is from OpenBSD (originally fixed in FreeBSD)
Revision 1.150.2.4: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:50 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.150.2.3: preferred, colored; branchpoint 1.150: preferred, colored
Changes since revision 1.150.2.3: +77 -30
lines
Sync with HEAD
Revision 1.160: download - view: text, markup, annotated - select for diffs
Mon Mar 6 07:31:15 2017 UTC (7 years, 9 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-20170320
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +3 -8
lines
Make sure icmp_redirect_timeout_q and ip_mtudisc_timeout_q are initialized on bootup
Fix PR kern/52029
Revision 1.159: download - view: text, markup, annotated - select for diffs
Fri Feb 17 04:32:10 2017 UTC (7 years, 9 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +16 -2
lines
Protect sysctl_net_inet_ip_pmtudto with icmp_mtx instead of softnet_lock
Revision 1.158: download - view: text, markup, annotated - select for diffs
Mon Feb 13 07:18:20 2017 UTC (7 years, 9 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +36 -17
lines
Protect mtudisc and redirect stuffs of icmp/icmp6 with mutex
We have to run pr_init of icmp and icmp6 prior to tcp and tcp6 ones
for mutex initialization.
Revision 1.157: download - view: text, markup, annotated - select for diffs
Tue Feb 7 02:38:08 2017 UTC (7 years, 10 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +5 -4
lines
Add missing NULL checks for m_get_rcvif
Revision 1.134.4.8: 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.134.4.7: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.4.7: +39 -18
lines
Sync with HEAD
Revision 1.156: download - view: text, markup, annotated - select for diffs
Thu Feb 2 02:52:10 2017 UTC (7 years, 10 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20170204
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +24 -12
lines
Defer some pr_input to workqueue
pr_input is currently called in softint. Some pr_input such as ICMP, ICMPv6
and CARP can add/delete/update IP addresses and routing table entries. For
example, icmp6_redirect_input updates an a routing table entry and
nd6_ra_input may delete an IP address.
Basically such operations shouldn't be done in softint. That aside, we have
a reason to avoid the situation; psz/psref waits cannot be used in softint,
however they are required to work in such pr_input in the MP-safe world.
The change implements the workqueue pr_input framework called wqinput which
provides a means to defer pr_input of a protocol to workqueue easily.
Currently icmp_input, icmp6_input, carp_proto_input and carp6_proto_input
are deferred to workqueue by the framework.
Proposed and discussed on tech-kern and tech-net
Revision 1.155: download - view: text, markup, annotated - select for diffs
Tue Jan 24 07:09:24 2017 UTC (7 years, 10 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +8 -2
lines
Tweak softnet_lock and NET_MPSAFE
- Don't hold softnet_lock in some functions if NET_MPSAFE
- Add softnet_lock to sysctl_net_inet_icmp_redirtimeout
- Add softnet_lock to expire_upcalls of ip_mroute.c
- Restore softnet_lock for in{,6}_pcbpurgeif{,0} if NET_MPSAFE
- Mark some softnet_lock for future work
Revision 1.150.2.3: 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.150.2.2: preferred, colored; branchpoint 1.150: preferred, colored
Changes since revision 1.150.2.2: +11 -8
lines
Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
Revision 1.154: download - view: text, markup, annotated - select for diffs
Mon Dec 12 03:55:57 2016 UTC (8 years ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-20170107,
bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +11 -8
lines
Make the routing table and rtcaches MP-safe
See the following descriptions for details.
Proposed on tech-kern and tech-net
Overview
--------
We protect the routing table with a rwock and protect
rtcaches with another rwlock. Each rtentry is protected
from being freed or updated via reference counting and psref.
Global rwlocks
--------------
There are two rwlocks; one for the routing table (rt_lock) and
the other for rtcaches (rtcache_lock). rtcache_lock covers
all existing rtcaches; there may have room for optimizations
(future work).
The locking order is rtcache_lock first and rt_lock is next.
rtentry references
------------------
References to an rtentry is managed with reference counting
and psref. Either of the two mechanisms is used depending on
where a rtentry is obtained. Reference counting is used when
we obtain a rtentry from the routing table directly via
rtalloc1 and rtrequest{,1} while psref is used when we obtain
a rtentry from a rtcache via rtcache_* APIs. In both cases,
a caller can sleep/block with holding an obtained rtentry.
The reasons why we use two different mechanisms are (i) only
using reference counting hurts the performance due to atomic
instructions (rtcache case) (ii) ease of implementation;
applying psref to APIs such rtaloc1 and rtrequest{,1} requires
additional works (adding a local variable and an argument).
We will finally migrate to use only psref but we can do it
when we have a lockless routing table alternative.
Reference counting for rtentry
------------------------------
rt_refcnt now doesn't count permanent references such as for
rt_timers and rtcaches, instead it is used only for temporal
references when obtaining a rtentry via rtalloc1 and rtrequest{,1}.
We can do so because destroying a rtentry always involves
removing references of rt_timers and rtcaches to the rtentry
and we don't need to track such references. This also makes
it easy to wait for readers to release references on deleting
or updating a rtentry, i.e., we can simply wait until the
reference counter is 0 or 1. (If there are permanent references
the counter can be arbitrary.)
rt_ref increments a reference counter of a rtentry and rt_unref
decrements it. rt_ref is called inside APIs (rtalloc1 and
rtrequest{,1} so users don't need to care about it while
users must call rt_unref to an obtained rtentry after using it.
rtfree is removed and we use rt_unref and rt_free instead.
rt_unref now just decrements the counter of a given rtentry
and rt_free just tries to destroy a given rtentry.
See the next section for destructions of rtentries by rt_free.
Destructions of rtentries
-------------------------
We destroy a rtentry only when we call rtrequst{,1}(RTM_DELETE);
the original implementation can destroy in any rtfree where it's
the last reference. If we use reference counting or psref, it's
easy to understand if the place that a rtentry is destroyed is
fixed.
rt_free waits for references to a given rtentry to be released
before actually destroying the rtentry. rt_free uses a condition
variable (cv_wait) (and psref_target_destroy for psref) to wait.
Unfortunately rtrequst{,1}(RTM_DELETE) can be called in softint
that we cannot use cv_wait. In that case, we have to defer the
destruction to a workqueue.
rtentry#rt_cv, rtentry#rt_psref and global variables
(see rt_free_global) are added to conduct the procedure.
Updates of rtentries
--------------------
One difficulty to use refcnt/psref instead of rwlock for rtentry
is updates of rtentries. We need an additional mechanism to
prevent readers from seeing inconsistency of a rtentry being
updated.
We introduce RTF_UPDATING flag to rtentries that are updating.
While the flag is set to a rtentry, users cannot acquire the
rtentry. By doing so, we avoid users to see inconsistent
rtentries.
There are two options when a user tries to acquire a rtentry
with the RTF_UPDATING flag; if a user runs in softint context
the user fails to acquire a rtentry (NULL is returned).
Otherwise a user waits until the update completes by waiting
on cv.
The procedure of a updater is simpler to destruction of
a rtentry. Wait on cv (and psref) and after all readers left,
proceed with the update.
Global variables (see rt_update_global) are added to conduct
the procedure.
Currently we apply the mechanism to only RTM_CHANGE in
rtsock.c. We would have to apply other codes. See
"Known issues" section.
psref for rtentry
-----------------
When we obtain a rtentry from a rtcache via rtcache_* APIs,
psref is used to reference to the rtentry.
rtcache_ref acquires a reference to a rtentry with psref
and rtcache_unref releases the reference after using it.
rtcache_ref is called inside rtcache_* APIs and users don't
need to take care of it while users must call rtcache_unref
to release the reference.
struct psref and int bound that is needed for psref is
embedded into struct route. By doing so we don't need to
add local variables and additional argument to APIs.
However this adds another constraint to psref other than
reference counting one's; holding a reference of an rtentry
via a rtcache is allowed by just one caller at the same time.
So we must not acquire a rtentry via a rtcache twice and
avoid a recursive use of a rtcache. And also a rtcache must
be arranged to be used by a LWP/softint at the same time
somehow. For IP forwarding case, we have per-CPU rtcaches
used in softint so the constraint is guaranteed. For a h
rtcache of a PCB case, the constraint is guaranteed by the
solock of each PCB. Any other cases (pf, ipf, stf and ipsec)
are currently guaranteed by only the existence of the global
locks (softnet_lock and/or KERNEL_LOCK). If we've found the
cases that we cannot guarantee the constraint, we would need
to introduce other rtcache APIs that use simple reference
counting.
psref of rtcache is created with IPL_SOFTNET and so rtcache
shouldn't used at an IPL higher than IPL_SOFTNET.
Note that rtcache_free is used to invalidate a given rtcache.
We don't need another care by my change; just keep them as
they are.
Performance impact
------------------
When NET_MPSAFE is disabled the performance drop is 3% while
when it's enabled the drop is increased to 11%. The difference
comes from that currently we don't take any global locks and
don't use psref if NET_MPSAFE is disabled.
We can optimize the performance of the case of NET_MPSAFE
on by reducing lookups of rtcache that uses psref;
currently we do two lookups but we should be able to trim
one of two. This is a future work.
Known issues
------------
There are two known issues to be solved; one is that
a caller of rtrequest(RTM_ADD) may change rtentry (see rtinit).
We need to prevent new references during the update. Or
we may be able to remove the code (perhaps, need more
investigations).
The other is rtredirect that updates a rtentry. We need
to apply our update mechanism, however it's not easy because
rtredirect is called in softint and we cannot apply our
mechanism simply. One solution is to defer rtredirect to
a workqueue but it requires some code restructuring.
Revision 1.134.4.7: 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.134.4.6: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.4.6: +5 -5
lines
Sync with HEAD
Revision 1.150.2.2: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:21 2016 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.150.2.1: preferred, colored; branchpoint 1.150: preferred, colored
Changes since revision 1.150.2.1: +5 -5
lines
Sync with HEAD
Revision 1.153: download - view: text, markup, annotated - select for diffs
Tue Oct 25 02:45:09 2016 UTC (8 years, 1 month ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-20161104,
nick-nhusb-base-20161204
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +3 -4
lines
Remove unnecessary argument
No functional change.
Revision 1.152: download - view: text, markup, annotated - select for diffs
Wed Oct 19 01:10:15 2016 UTC (8 years, 1 month ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +4 -3
lines
Set ia to ensure to call ia4_release
Revision 1.134.4.6: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:56:09 2016 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.134.4.5: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.4.5: +45 -13
lines
Sync with HEAD
Revision 1.150.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 6 00:19:10 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +45 -13
lines
Sync with HEAD
Revision 1.151: download - view: text, markup, annotated - select for diffs
Mon Aug 1 03:15:30 2016 UTC (8 years, 4 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-20160806,
nick-nhusb-base-20161004,
localcount-20160914
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +45 -13
lines
Apply pserialize and psref to struct ifaddr and its variants
This change makes struct ifaddr and its variants (in_ifaddr and in6_ifaddr)
MP-safe by using pserialize and psref. At this moment, pserialize_perform
and psref_target_destroy are disabled because (1) we don't need them
because of softnet_lock (2) they cause a deadlock because of softnet_lock.
So we'll enable them when we remove softnet_lock in the future.
Revision 1.134.4.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.134.4.4: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.4.4: +28 -21
lines
Sync with HEAD
Revision 1.150: download - view: text, markup, annotated - select for diffs
Fri Jul 8 04:33:30 2016 UTC (8 years, 5 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20160726,
nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +6 -11
lines
Replace macros to get an IP address with proper inline functions
The inline functions are more friendly for applying psz/psref;
they consist of only simple interations.
Revision 1.149: download - view: text, markup, annotated - select for diffs
Thu Jul 7 09:32:02 2016 UTC (8 years, 5 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +4 -4
lines
Switch the address list of intefaces to pslist(9)
As usual, we leave the old list to avoid breaking kvm(3) users.
Revision 1.148: download - view: text, markup, annotated - select for diffs
Wed Jul 6 08:42:34 2016 UTC (8 years, 5 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +3 -3
lines
Switch the IPv4 address list to pslist(9)
Note that we leave the old list just in case; it seems there are some
kvm(3) users accessing the list. We can remove it later if we confirmed
nobody does actually.
Revision 1.147: download - view: text, markup, annotated - select for diffs
Fri Jun 10 13:31:44 2016 UTC (8 years, 6 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +24 -12
lines
Avoid storing a pointer of an interface in a mbuf
Having a pointer of an interface in a mbuf isn't safe if we remove big
kernel locks; an interface object (ifnet) can be destroyed anytime in any
packet processing and accessing such object via a pointer is racy. Instead
we have to get an object from the interface collection (ifindex2ifnet) via
an interface index (if_index) that is stored to a mbuf instead of an
pointer.
The change provides two APIs: m_{get,put}_rcvif_psref that use psref(9)
for sleep-able critical sections and m_{get,put}_rcvif that use
pserialize(9) for other critical sections. The change also adds another
API called m_get_rcvif_NOMPSAFE, that is NOT MP-safe and for transition
moratorium, i.e., it is intended to be used for places where are not
planned to be MP-ified soon.
The change adds some overhead due to psref to performance sensitive paths,
however the overhead is not serious, 2% down at worst.
Proposed on tech-kern and tech-net.
Revision 1.146: download - view: text, markup, annotated - select for diffs
Fri Jun 10 13:27:16 2016 UTC (8 years, 6 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +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.134.4.4: download - view: text, markup, annotated - select for diffs
Fri Apr 22 15:44:17 2016 UTC (8 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.134.4.3: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.4.3: +7 -8
lines
Sync with HEAD
Revision 1.145: download - view: text, markup, annotated - select for diffs
Fri Apr 1 09:16:02 2016 UTC (8 years, 8 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20160529,
nick-nhusb-base-20160422
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +7 -8
lines
Remove unnecessary casts and do s/0/NULL/ for rtrequest
Revision 1.144: download - view: text, markup, annotated - select for diffs
Thu Jan 21 15:41:30 2016 UTC (8 years, 10 months ago) by riastradh
Branches: MAIN
CVS tags: nick-nhusb-base-20160319
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +1 -3
lines
Revert previous: ran cvs commit when I meant cvs diff. Sorry!
Hit up-arrow one too few times.
Revision 1.143: download - view: text, markup, annotated - select for diffs
Thu Jan 21 15:27:48 2016 UTC (8 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +5 -3
lines
Give proper prototype to ip_output.
Revision 1.134.4.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.134.4.2: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.4.2: +8 -2
lines
Sync with HEAD
Revision 1.142: download - view: text, markup, annotated - select for diffs
Mon Aug 31 06:25:15 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.141: preferred, colored
Changes since revision 1.141: +6 -2
lines
Make rt_refcnt take into account rt_timer
Revision 1.141: 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.140: preferred, colored
Changes since revision 1.140: +4 -2
lines
sprinkle _KERNEL_OPT
Revision 1.134.4.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.134.4.1: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.4.1: +18 -15
lines
Sync with HEAD
Revision 1.140: download - view: text, markup, annotated - select for diffs
Sat May 9 18:47:26 2015 UTC (9 years, 7 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +3 -3
lines
if no address was found, don't check if it is tentative (hi Roy)
Revision 1.139: download - view: text, markup, annotated - select for diffs
Sat May 9 18:46:25 2015 UTC (9 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +4 -5
lines
assign sin only when it is needed
Revision 1.138: download - view: text, markup, annotated - select for diffs
Sat May 2 14:41:32 2015 UTC (9 years, 7 months ago) by roy
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +7 -3
lines
Add IPv4 address flags IN_IFF_TENTATIVE, IN_IFF_DUPLICATED and
IN_IFF_DETATCHED to mimic the IPv6 address behaviour.
Add SIOCGIFAFLAG_IN ioctl to retrieve the address flag via the
ifreq structure.
Add IPv4 DAD detection via the ARP methods described in RFC 5227.
Add sysctls net.inet.ip.dad_count and net.inet.arp.debug.
Discussed on tech-net@
Revision 1.137: download - view: text, markup, annotated - select for diffs
Fri Apr 24 03:20:41 2015 UTC (9 years, 7 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +6 -6
lines
Use KASSERT instead of if & panic
rt can be NULL only when programming error (and we sure it cannot for now),
so we can use KASSERT here (i.e., check only if DIAGNOSTIC).
Revision 1.136: download - view: text, markup, annotated - select for diffs
Fri Apr 24 02:56:51 2015 UTC (9 years, 7 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +6 -6
lines
Replace 0 with NULL for pointer variables
Revision 1.134.4.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.134: preferred, colored
Changes since revision 1.134: +16 -10
lines
Sync with HEAD
Revision 1.135: download - view: text, markup, annotated - select for diffs
Tue Dec 2 20:25:47 2014 UTC (10 years ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +16 -10
lines
use the new printing code.
Revision 1.129.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.129.2.1: preferred, colored; branchpoint 1.129: preferred, colored
Changes since revision 1.129.2.1: +4 -11
lines
Rebase to HEAD as of a few days ago.
Revision 1.132.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:56:25 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.132: preferred, colored; next MAIN 1.133: preferred, colored
Changes since revision 1.132: +6 -8
lines
Rebase.
Revision 1.134: download - view: text, markup, annotated - select for diffs
Fri May 30 01:39:03 2014 UTC (10 years, 6 months ago) by christos
Branches: MAIN
CVS tags: tls-maxphys-base,
tls-earlyentropy-base,
nick-nhusb-base,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7
Branch point for: nick-nhusb
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +4 -3
lines
Introduce 2 new variables: ipsec_enabled and ipsec_used.
Ipsec enabled is controlled by sysctl and determines if is allowed.
ipsec_used is set automatically based on ipsec being enabled, and
rules existing.
Revision 1.125.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:09 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.125.2.1: preferred, colored; branchpoint 1.125: preferred, colored; next MAIN 1.126: preferred, colored
Changes since revision 1.125.2.1: +35 -43
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.133: download - view: text, markup, annotated - select for diffs
Mon May 19 02:51:25 2014 UTC (10 years, 6 months ago) by rmind
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +4 -7
lines
- Split off PRU_ATTACH and PRU_DETACH logic into separate functions.
- Replace malloc with kmem and eliminate M_PCB while here.
- Sprinkle more asserts.
Revision 1.131.2.2: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:13 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.131.2.1: preferred, colored; branchpoint 1.131: preferred, colored; next MAIN 1.132: preferred, colored
Changes since revision 1.131.2.1: +2 -7
lines
sync with head
Revision 1.132: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:12 2014 UTC (10 years, 9 months ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base9,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +2 -7
lines
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.
Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
Revision 1.131.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 28 15:21:48 2013 UTC (11 years, 3 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +4 -7
lines
Checkpoint work in progress:
- Initial split of the protocol user-request method into the following
methods: pr_attach, pr_detach and pr_generic for old the pr_usrreq.
- Adjust socreate(9) and sonewconn(9) to call pr_attach without the
socket lock held (as a preparation for the locking scheme adjustment).
- Adjust all pr_attach routines to assert that PCB is not set.
- Sprinkle various comments, document some routines and their locking.
- Remove M_PCB, replace with kmem(9).
- Fix few bugs spotted on the way.
Revision 1.129.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.129: preferred, colored
Changes since revision 1.129: +35 -38
lines
resync from head
Revision 1.120.6.1: download - view: text, markup, annotated - select for diffs
Sun Jun 9 16:39:43 2013 UTC (11 years, 6 months ago) by msaitoh
Branches: netbsd-5
Diff to: previous 1.120: preferred, colored; next MAIN 1.121: preferred, colored
Changes since revision 1.120: +32 -35
lines
Pull up following revision(s) (requested by fair in ticket #1855):
sys/netinet/ip_icmp.c: revision 1.130
PR/47693: Erik E. Fair: Add missing code to icmp handling.
- While there, add the rest of the missing codes
- Merge groups
- Fix indentation
Revision 1.131: 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.130: preferred, colored
Changes since revision 1.130: +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.128.2.1: download - view: text, markup, annotated - select for diffs
Sun Mar 31 20:52:29 2013 UTC (11 years, 8 months ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
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.128: preferred, colored; next MAIN 1.129: preferred, colored
Changes since revision 1.128: +32 -35
lines
Pull up following revision(s) (requested by fair in ticket #860):
sys/netinet/ip_icmp.c: revision 1.130
PR/47693: Erik E. Fair: Add missing code to icmp handling.
- While there, add the rest of the missing codes
- Merge groups
- Fix indentation
Revision 1.130: download - view: text, markup, annotated - select for diffs
Mon Mar 25 18:43:30 2013 UTC (11 years, 8 months ago) by christos
Branches: MAIN
CVS tags: khorben-n900
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +32 -35
lines
PR/47693: Erik E. Fair: Add missing code to icmp handling.
- While there, add the rest of the missing codes
- Merge groups
- Fix indentation
Revision 1.125.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:40 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +5 -11
lines
sync with head
Revision 1.125.6.2: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:33:43 2012 UTC (12 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.125.6.1: preferred, colored; branchpoint 1.125: preferred, colored; next MAIN 1.126: preferred, colored
Changes since revision 1.125.6.1: +3 -8
lines
sync to latest -current.
Revision 1.129: download - view: text, markup, annotated - select for diffs
Thu Mar 22 20:34:38 2012 UTC (12 years, 8 months ago) by drochner
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base10,
agc-symver-base,
agc-symver
Branch point for: tls-maxphys
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +3 -8
lines
remove KAME IPSEC, replaced by FAST_IPSEC
Revision 1.125.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:39 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +6 -7
lines
merge to -current.
Revision 1.128: download - view: text, markup, annotated - select for diffs
Mon Jan 9 14:31:22 2012 UTC (12 years, 11 months ago) by liamjfoy
Branches: MAIN
CVS tags: netbsd-6-base,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
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.127: preferred, colored
Changes since revision 1.127: +3 -3
lines
check against NULL
Revision 1.127: download - view: text, markup, annotated - select for diffs
Sat Dec 31 20:41:58 2011 UTC (12 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +3 -4
lines
- fix offsetof usage, and redundant defines
- kill pointer casts to 0
Revision 1.126: download - view: text, markup, annotated - select for diffs
Mon Dec 19 11:59:56 2011 UTC (12 years, 11 months ago) by drochner
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +4 -4
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.125: download - view: text, markup, annotated - select for diffs
Sun Jul 17 20:54:53 2011 UTC (13 years, 4 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache,
jmcneill-usbmp
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +2 -4
lines
Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
Revision 1.122.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:47:46 2010 UTC (14 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.122: preferred, colored; next MAIN 1.123: preferred, colored
Changes since revision 1.122: +9 -6
lines
Sync with HEAD.
Revision 1.117.2.4: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:56 2010 UTC (14 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.117.2.3: preferred, colored; branchpoint 1.117: preferred, colored; next MAIN 1.118: preferred, colored
Changes since revision 1.117.2.3: +9 -6
lines
sync with head.
Revision 1.122.4.1: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:59 2010 UTC (14 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.122: preferred, colored; next MAIN 1.123: preferred, colored
Changes since revision 1.122: +9 -6
lines
sync with head
Revision 1.124: download - view: text, markup, annotated - select for diffs
Fri Jul 2 07:02:00 2010 UTC (14 years, 5 months ago) by kefren
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
jruoho-x86intr,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +8 -3
lines
manually adjust m_data and m_len so it can later be prepended with a
struct ip in case that a cluster is used. icmp len panic is not valid for
cluster case.
Fixes PR/43548
Revision 1.123: download - view: text, markup, annotated - select for diffs
Sat Jun 26 14:24:29 2010 UTC (14 years, 5 months ago) by kefren
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +3 -5
lines
Add MPLS support, proposed on tech-net@ a couple of days ago
Welcome to 5.99.33
Revision 1.117.2.3: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:28 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.117.2.2: preferred, colored; branchpoint 1.117: preferred, colored
Changes since revision 1.117.2.2: +27 -3
lines
sync with head
Revision 1.122: download - view: text, markup, annotated - select for diffs
Mon Dec 7 18:47:24 2009 UTC (15 years ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
uebayasi-xip-base1,
uebayasi-xip-base,
matt-premerge-20091211
Branch point for: uebayasi-xip,
rmind-uvmplock
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +21 -2
lines
PR/42243: Yasuoka Masahiko: Add "net.inet.icmp.bmcastecho" sysctl support,
to disable icmp replies to the broadcast address.
Revision 1.121: 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: jym-xensuspend-nbase
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +8 -3
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.117.2.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:14:17 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.117.2.1: preferred, colored; branchpoint 1.117: preferred, colored
Changes since revision 1.117.2.1: +4 -4
lines
sync with head.
Revision 1.114.14.2: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:19 2008 UTC (16 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.114.14.1: preferred, colored; branchpoint 1.114: preferred, colored; next MAIN 1.115: preferred, colored
Changes since revision 1.114.14.1: +2 -2
lines
Sync with HEAD.
Revision 1.119.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:58 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.119: preferred, colored; next MAIN 1.120: preferred, colored
Changes since revision 1.119: +4 -4
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.119.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 16:33:51 2008 UTC (16 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.119: preferred, colored; next MAIN 1.120: preferred, colored
Changes since revision 1.119: +4 -4
lines
Sync with head.
Revision 1.120: download - view: text, markup, annotated - select for diffs
Wed Jun 18 09:06:28 2008 UTC (16 years, 5 months ago) by yamt
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
simonb-wapbl-nbase,
simonb-wapbl-base,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base2,
nick-hppapmap-base,
nick-hppapmap,
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,
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,
jymxensuspend-base,
jym-xensuspend-base,
jym-xensuspend,
haad-nbase2,
haad-dm-base2,
haad-dm-base1,
haad-dm-base,
haad-dm,
ad-audiomp2-base,
ad-audiomp2
Branch point for: netbsd-5
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +4 -4
lines
merge yamt-pf42 branch.
(import newer pf from OpenBSD 4.2)
ok'ed by peter@. requested by core@
Revision 1.114.14.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:24 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +41 -26
lines
Sync with HEAD.
Revision 1.116.2.2: 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.116.2.1: preferred, colored; branchpoint 1.116: preferred, colored; next MAIN 1.117: preferred, colored
Changes since revision 1.116.2.1: +3 -35
lines
sync with head.
Revision 1.117.2.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:25:41 2008 UTC (16 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +3 -15
lines
sync with head.
Revision 1.119: download - view: text, markup, annotated - select for diffs
Sun May 4 07:22:14 2008 UTC (16 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa,
simonb-wapbl
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +3 -8
lines
Simplify the interface to netstat_sysctl() and allocate space for
the collated counters using kmem_alloc().
PR kern/38577
Revision 1.118: 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.117: preferred, colored
Changes since revision 1.117: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.117: download - view: text, markup, annotated - select for diffs
Wed Apr 23 05:26:50 2008 UTC (16 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +7 -27
lines
Use <net/net_stats.h> / netstat_sysctl().
Revision 1.116.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 19 08:33:27 2008 UTC (16 years, 7 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +4 -4
lines
Peter Postma's work-in-progress pf import from OpenBSD 4.2.
updated to -current by me.
Revision 1.116: 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.115: preferred, colored
Changes since revision 1.115: +66 -19
lines
Make IP, TCP, UDP, and ICMP statistics per-CPU. The stats are collated
when the user requests them via sysctl.
Revision 1.115: download - view: text, markup, annotated - select for diffs
Sun Apr 6 19:04:50 2008 UTC (16 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +19 -19
lines
Change ICMP stats from a structure to an array of uint64_t's.
Note: This is ABI-compatible with the old icmpstat structure; old netstat
binaries will continue to work properly.
Revision 1.113.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:57:27 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113: +9 -12
lines
sync with HEAD
Revision 1.113.8.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:49:09 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113: +9 -12
lines
Sync with HEAD.
Revision 1.92.2.5: download - view: text, markup, annotated - select for diffs
Thu Nov 15 11:45:07 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.92.2.4: preferred, colored; branchpoint 1.92: preferred, colored; next MAIN 1.93: preferred, colored
Changes since revision 1.92.2.4: +9 -12
lines
sync with head.
Revision 1.113.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 13 16:02:50 2007 UTC (17 years, 1 month ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113: +9 -12
lines
Sync with HEAD
Revision 1.112.4.2: download - view: text, markup, annotated - select for diffs
Sun Nov 11 16:48:30 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.112.4.1: preferred, colored; branchpoint 1.112: preferred, colored; next MAIN 1.113: preferred, colored
Changes since revision 1.112.4.1: +9 -12
lines
Sync with HEAD.
Revision 1.114: download - view: text, markup, annotated - select for diffs
Fri Nov 9 23:42:56 2007 UTC (17 years, 1 month ago) by dyoung
Branches: MAIN
CVS tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base3,
vmlocking2-base2,
vmlocking2-base1,
vmlocking2,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-nbase,
matt-armv6-base,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
jmcneill-pm-base,
hpcarm-cleanup-base,
cube-autoconf-base,
cube-autoconf,
bouyer-xeni386-nbase,
bouyer-xeni386-merge1,
bouyer-xeni386-base,
bouyer-xeni386,
bouyer-xenamd64-base2,
bouyer-xenamd64-base,
ad-socklock-base1
Branch point for: mjf-devfs2
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +9 -12
lines
Use sockaddr_in_init(). KNF. No functional change intended.
Revision 1.111.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:44:49 2007 UTC (17 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.111.2.1: preferred, colored; branchpoint 1.111: preferred, colored; next MAIN 1.112: preferred, colored
Changes since revision 1.111.2.1: +3 -4
lines
Sync with head.
Revision 1.112.4.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:49:04 2007 UTC (17 years, 3 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +3 -4
lines
Sync with HEAD.
Revision 1.92.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:42:57 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.92.2.3: preferred, colored; branchpoint 1.92: preferred, colored
Changes since revision 1.92.2.3: +12 -13
lines
sync with head.
Revision 1.111.10.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:23:45 2007 UTC (17 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.111.10.1: preferred, colored; branchpoint 1.111: preferred, colored; next MAIN 1.112: preferred, colored
Changes since revision 1.111.10.1: +3 -4
lines
Sync with HEAD.
Revision 1.113: download - view: text, markup, annotated - select for diffs
Mon Aug 27 05:39:44 2007 UTC (17 years, 3 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
vmlocking-base,
nick-csl-alignment-base5,
matt-armv6-prevmlocking,
jmcneill-base
Branch point for: mjf-devfs,
matt-armv6,
bouyer-xenamd64
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +3 -4
lines
Cosmetic: 0 -> NULL. Remove unnecessary cast.
Revision 1.111.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 20 21:27:59 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +4 -4
lines
Sync with HEAD.
Revision 1.111.10.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:49:45 2007 UTC (17 years, 4 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +4 -4
lines
Sync with HEAD.
Revision 1.112.6.2: download - view: text, markup, annotated - select for diffs
Thu Jul 19 20:48:55 2007 UTC (17 years, 4 months ago) by dyoung
Branches: matt-mips64
Diff to: previous 1.112.6.1: preferred, colored; branchpoint 1.112: preferred, colored; next MAIN 1.113: preferred, colored
Changes since revision 1.112.6.1: +1233 -0
lines
Take steps to hide the radix_node implementation of the forwarding table
from the forwarding table's users:
Introduce rt_walktree() for walking the routing table and
applying a function to each rtentry. Replace most
rn_walktree() calls with it.
Use rt_getkey()/rt_setkey() to get/set a route's destination.
Keep a pointer to the sockaddr key in the rtentry, so that
rtentry users do not have to grovel in the radix_node for
the key.
Add a RTM_GET method to rtrequest. Use that instead of
radix_node lookups in, e.g., carp(4).
Add sys/net/link_proto.c, which supplies sockaddr routines for
link-layer socket addresses (sockaddr_dl).
Cosmetic:
Constify. KNF. Stop open-coding LIST_FOREACH, TAILQ_FOREACH,
et cetera. Use NULL instead of 0 for null pointers. Use
__arraycount(). Reduce gratuitous parenthesization.
Stop using variadic arguments for rip6_output(), it is
unnecessary.
Remove the unnecessary rtentry member rt_genmask and the
code to maintain it, since nothing actually used it.
Make rt_maskedcopy() easier to read by using meaningful variable
names.
Extract a subroutine intern_netmask() for looking up a netmask in
the masks table.
Start converting backslash-ridden IPv6 macros in
sys/netinet6/in6_var.h into inline subroutines that one
can read without special eyeglasses.
One functional change: when the kernel serves an RTM_GET, RTM_LOCK,
or RTM_CHANGE request, it applies the netmask (if supplied) to a
destination before searching for it in the forwarding table.
I have changed sys/netinet/ip_carp.c, carp_setroute(), to remove
the unlawful radix_node knowledge.
Apart from the changes to carp(4), netiso, ATM, and strip(4), I
have run the changes on three nodes in my wireless routing testbed,
which involves IPv4 + IPv6 dynamic routing acrobatics, and it's
working beautifully so far.
Revision 1.112.6.1
Thu Jul 19 20:48:54 2007 UTC (17 years, 4 months ago) by dyoung
Branches: matt-mips64
FILE REMOVED
Changes since revision 1.112: +0 -1233
lines
file ip_icmp.c was added on branch matt-mips64 on 2007-07-19 20:48:55 +0000
Revision 1.112: download - view: text, markup, annotated - select for diffs
Thu Jul 19 20:48:54 2007 UTC (17 years, 4 months ago) by dyoung
Branches: MAIN
CVS tags: matt-mips64-base,
hpcarm-cleanup
Branch point for: matt-mips64,
jmcneill-pm
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +4 -4
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.108.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:59:37 2007 UTC (17 years, 9 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.108.2.1: preferred, colored; branchpoint 1.108: preferred, colored; next MAIN 1.109: preferred, colored
Changes since revision 1.108.2.1: +9 -9
lines
Sync with HEAD.
Revision 1.111: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:03:21 2007 UTC (17 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup,
nick-csl-alignment-base,
mjf-ufs-trans-base,
mjf-ufs-trans
Branch point for: vmlocking,
nick-csl-alignment
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +9 -9
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.108.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:54:55 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +4 -4
lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
Revision 1.92.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:11:44 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.92.2.2: preferred, colored; branchpoint 1.92: preferred, colored
Changes since revision 1.92.2.2: +5 -5
lines
sync with head.
Revision 1.110: download - view: text, markup, annotated - select for diffs
Thu Feb 22 06:17:51 2007 UTC (17 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: ad-audiomp-base,
ad-audiomp
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +3 -3
lines
TRUE -> true, FALSE -> false
Revision 1.109: download - view: text, markup, annotated - select for diffs
Sat Feb 17 22:34:11 2007 UTC (17 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +3 -3
lines
KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous
parentheses in return statements.
Cosmetic: don't open-code TAILQ_FOREACH().
Cosmetic: change types of variables to avoid oodles of casts: in
in6_src.c, avoid casts by changing several route_in6 pointers
to struct route pointers. Remove unnecessary casts to caddr_t
elsewhere.
Pave the way for eliminating address family-specific route caches:
soon, struct route will not embed a sockaddr, but it will hold
a reference to an external sockaddr, instead. We will set the
destination sockaddr using rtcache_setdst(). (I created a stub
for it, but it isn't used anywhere, yet.) rtcache_free() will
free the sockaddr. I have extracted from rtcache_free() a helper
subroutine, rtcache_clear(). rtcache_clear() will "forget" a
cached route, but it will not forget the destination by releasing
the sockaddr. I use rtcache_clear() instead of rtcache_free()
in rtcache_update(), because rtcache_update() is not supposed
to forget the destination.
Constify:
1 Introduce const accessor for route->ro_dst, rtcache_getdst().
2 Constify the 'dst' argument to ifnet->if_output(). This
led me to constify a lot of code called by output routines.
3 Constify the sockaddr argument to protosw->pr_ctlinput. This
led me to constify a lot of code called by ctlinput routines.
4 Introduce const macros for converting from a generic sockaddr
to family-specific sockaddrs, e.g., sockaddr_in: satocsin6,
satocsin, et cetera.
Revision 1.103.2.3: download - view: text, markup, annotated - select for diffs
Thu Feb 1 08:48:43 2007 UTC (17 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.103.2.2: preferred, colored; branchpoint 1.103: preferred, colored; next MAIN 1.104: preferred, colored
Changes since revision 1.103.2.2: +3 -3
lines
Sync with head.
Revision 1.108: download - view: text, markup, annotated - select for diffs
Mon Jan 29 05:46:33 2007 UTC (17 years, 10 months ago) by dyoung
Branches: MAIN
CVS tags: post-newlock2-merge,
newlock2-nbase,
newlock2-base
Branch point for: yamt-idlelwp
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +3 -3
lines
bzero -> memset
Revision 1.103.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.103.2.1: preferred, colored; branchpoint 1.103: preferred, colored
Changes since revision 1.103.2.1: +3 -4
lines
Sync with head.
Revision 1.92.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:33 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.92.2.1: preferred, colored; branchpoint 1.92: preferred, colored
Changes since revision 1.92.2.1: +47 -17
lines
sync with head.
Revision 1.103.4.3: download - view: text, markup, annotated - select for diffs
Mon Dec 18 11:42:21 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.103.4.2: preferred, colored; branchpoint 1.103: preferred, colored; next MAIN 1.104: preferred, colored
Changes since revision 1.103.4.2: +3 -4
lines
sync with head.
Revision 1.107: download - view: text, markup, annotated - select for diffs
Fri Dec 15 21:18:53 2006 UTC (18 years ago) by joerg
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +3 -4
lines
Introduce new helper functions to abstract the route caching.
rtcache_init and rtcache_init_noclone lookup ro_dst and store
the result in ro_rt, taking care of the reference counting and
calling the domain specific route cache.
rtcache_free checks if a route was cashed and frees the reference.
rtcache_copy copies ro_dst of the given struct route, checking that
enough space is available and incrementing the reference count of the
cached rtentry if necessary.
rtcache_check validates that the cached route is still up. If it isn't,
it tries to look it up again. Afterwards ro_rt is either a valid again
or NULL.
rtcache_copy is used internally.
Adjust to callers of rtalloc/rtflush in the tree to check the sanity of
ro_dst first (if necessary). If it doesn't fit the expectations, free
the cache, otherwise check if the cached route is still valid. After
that combination, a single check for ro_rt == NULL is enough to decide
whether a new lookup needs to be done with a different ro_dst.
Make the route checking in gre stricter by repeating the loop check
after revalidation.
Remove some unused RADIX_MPATH code in in6_src.c. The logic is slightly
changed here to first validate the route and check RTF_GATEWAY
afterwards. This is sementically equivalent though.
etherip doesn't need sc_route_expire similiar to the gif changes from
dyoung@ earlier.
Based on the earlier patch from dyoung@, reviewed and discussed with
him.
Revision 1.103.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:19:10 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.103.4.1: preferred, colored; branchpoint 1.103: preferred, colored
Changes since revision 1.103.4.1: +8 -8
lines
sync with head.
Revision 1.106: download - view: text, markup, annotated - select for diffs
Sat Dec 9 05:33:04 2006 UTC (18 years ago) by dyoung
Branches: MAIN
CVS tags: yamt-splraiseipl-base3
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +4 -4
lines
Here are various changes designed to protect against bad IPv4
routing caused by stale route caches (struct route). Route caches
are sprinkled throughout PCBs, the IP fast-forwarding table, and
IP tunnel interfaces (gre, gif, stf).
Stale IPv6 and ISO route caches will be treated by separate patches.
Thank you to Christoph Badura for suggesting the general approach
to invalidating route caches that I take here.
Here are the details:
Add hooks to struct domain for tracking and for invalidating each
domain's route caches: dom_rtcache, dom_rtflush, and dom_rtflushall.
Introduce helper subroutines, rtflush(ro) for invalidating a route
cache, rtflushall(family) for invalidating all route caches in a
routing domain, and rtcache(ro) for notifying the domain of a new
cached route.
Chain together all IPv4 route caches where ro_rt != NULL. Provide
in_rtcache() for adding a route to the chain. Provide in_rtflush()
and in_rtflushall() for invalidating IPv4 route caches. In
in_rtflush(), set ro_rt to NULL, and remove the route from the
chain. In in_rtflushall(), walk the chain and remove every route
cache.
In rtrequest1(), call rtflushall() to invalidate route caches when
a route is added.
In gif(4), discard the workaround for stale caches that involves
expiring them every so often.
Replace the pattern 'RTFREE(ro->ro_rt); ro->ro_rt = NULL;' with a
call to rtflush(ro).
Update ipflow_fastforward() and all other users of route caches so
that they expect a cached route, ro->ro_rt, to turn to NULL.
Take care when moving a 'struct route' to rtflush() the source and
to rtcache() the destination.
In domain initializers, use .dom_xxx tags.
KNF here and there.
Revision 1.103.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.103: preferred, colored
Changes since revision 1.103: +4 -4
lines
Sync with head.
Revision 1.105: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:45 2006 UTC (18 years ago) by christos
Branches: MAIN
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
matt-nb4-arm-base,
matt-nb4-arm
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +6 -6
lines
__unused removal on arguments; approved by core.
Revision 1.103.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:07:28 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +6 -6
lines
sync with head
Revision 1.104: 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
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +6 -6
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.97.6.1: 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.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97: +49 -18
lines
sync with head
Revision 1.97.10.3: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:25:42 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.97.10.2: preferred, colored; branchpoint 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97.10.2: +31 -7
lines
sync with head.
Revision 1.103: download - view: text, markup, annotated - select for diffs
Wed Aug 30 18:53:04 2006 UTC (18 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl,
newlock2
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +18 -6
lines
fix initializers
Revision 1.102: download - view: text, markup, annotated - select for diffs
Mon Aug 28 13:46:35 2006 UTC (18 years, 3 months ago) by yamt
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +15 -3
lines
icmp_input: don't assume relations between PRC_ and ICMP_ values.
Revision 1.97.10.2: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:46:33 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.97.10.1: preferred, colored; branchpoint 1.97: preferred, colored
Changes since revision 1.97.10.1: +15 -8
lines
sync with head
Revision 1.99.4.1: download - view: text, markup, annotated - select for diffs
Thu Jul 13 17:50:05 2006 UTC (18 years, 5 months ago) by gdamore
Branches: gdamore-uart
Diff to: previous 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99: +15 -8
lines
Merge from HEAD.
Revision 1.101: download - view: text, markup, annotated - select for diffs
Mon Jul 10 15:37:26 2006 UTC (18 years, 5 months ago) by peter
Branches: MAIN
CVS tags: yamt-pdpolicy-base7,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +6 -6
lines
Wrap long lines, unwrap a short line.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Mon Jul 10 15:35:39 2006 UTC (18 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +9 -2
lines
Moves the PF_GENERATED m_tag to the new packet in icmp_error.
This is needed because the pf code can call icmp_error with setting
this tag, but the new packet should not be filtered when it comes back
to pf(4).
ok christos@
Revision 1.92.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:11:01 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +33 -23
lines
sync with head.
Revision 1.97.8.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.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97: +7 -7
lines
Sync with head.
Revision 1.97.12.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.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97: +7 -7
lines
sync with head.
Revision 1.97.10.1: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:07:48 2006 UTC (18 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +7 -7
lines
sync with head.
Revision 1.97.14.2: download - view: text, markup, annotated - select for diffs
Fri Mar 31 09:45:29 2006 UTC (18 years, 8 months ago) by tron
Branches: peter-altq
Diff to: previous 1.97.14.1: preferred, colored; branchpoint 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97.14.1: +3 -3
lines
Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
Revision 1.99: download - view: text, markup, annotated - select for diffs
Wed Mar 29 21:13:55 2006 UTC (18 years, 8 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pdpolicy-base6,
yamt-pdpolicy-base5,
yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
simonb-timecounters-base,
gdamore-uart-base,
elad-kernelauth-base,
chap-midi-nbase,
chap-midi-base,
chap-midi
Branch point for: gdamore-uart
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +3 -3
lines
When reflecting an ICMP Echo, do not scribble over read-only/shared
mbuf storage.
Revision 1.97.14.1: download - view: text, markup, annotated - select for diffs
Tue Mar 28 09:42:28 2006 UTC (18 years, 8 months ago) by tron
Branches: peter-altq
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +6 -6
lines
Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
Revision 1.98: download - view: text, markup, annotated - select for diffs
Wed Mar 22 01:07:24 2006 UTC (18 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +6 -6
lines
An MTU can't be negative so store them in unsigned variables.
Revision 1.74.2.8: download - view: text, markup, annotated - select for diffs
Sun Dec 11 10:29:24 2005 UTC (19 years ago) by christos
Branches: ktrace-lwp
Diff to: previous 1.74.2.7: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.2.7: +2 -3
lines
Sync with head.
Revision 1.74.2.7: 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.74.2.6: preferred, colored
Changes since revision 1.74.2.6: +29 -17
lines
Sync with HEAD. Here we go again...
Revision 1.97: download - view: text, markup, annotated - select for diffs
Thu Nov 10 13:40:38 2005 UTC (19 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5,
yamt-uio_vmspace,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
peter-altq-base,
ktrace-lwp-base
Branch point for: yamt-pdpolicy,
simonb-timecounters,
rpaulo-netinet-merge-pcb,
peter-altq,
elad-kernelauth
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +2 -3
lines
Remove redundant assignment (from Liam Foy)
Revision 1.95.2.1: download - view: text, markup, annotated - select for diffs
Wed Oct 26 08:32:51 2005 UTC (19 years, 1 month ago) by yamt
Branches: yamt-vop
Diff to: previous 1.95: preferred, colored; next MAIN 1.96: preferred, colored
Changes since revision 1.95: +5 -5
lines
sync with head
Revision 1.96: download - view: text, markup, annotated - select for diffs
Sun Oct 23 18:38:53 2005 UTC (19 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-vop-base3,
yamt-vop-base2,
thorpej-vnode-attr-base,
thorpej-vnode-attr
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +5 -5
lines
No need to pass an interface when only the mtu is needed. From OpenBSD via
Liam Foy.
Revision 1.95: download - view: text, markup, annotated - select for diffs
Fri Aug 19 12:29:18 2005 UTC (19 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-vop-base
Branch point for: yamt-vop
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +17 -13
lines
make ICMPPRINTFS work; from Liam Foy.
Revision 1.94: download - view: text, markup, annotated - select for diffs
Fri Aug 5 09:21:25 2005 UTC (19 years, 4 months ago) by elad
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +9 -2
lines
Add sysctls for IP, ICMP, TCP, and UDP statistics.
Revision 1.93: 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.92: preferred, colored
Changes since revision 1.92: +3 -3
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.87.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:33 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.87: preferred, colored; next MAIN 1.88: preferred, colored
Changes since revision 1.87: +29 -45
lines
sync with -current
Revision 1.92: download - view: text, markup, annotated - select for diffs
Fri Apr 29 10:39:09 2005 UTC (19 years, 7 months ago) by yamt
Branches: MAIN
CVS tags: kent-audio2-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +3 -2
lines
move decl of inetsw to its own header to avoid array of incomplete type.
found by gcc4. reported by Adam Ciarcinski.
Revision 1.88.2.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.88.2.1: preferred, colored; branchpoint 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88.2.1: +5 -5
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.74.2.6: 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.74.2.5: preferred, colored
Changes since revision 1.74.2.5: +5 -5
lines
Sync with HEAD.
Hi Perry!
Revision 1.91: 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
CVS tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +5 -5
lines
nuke trailing whitespace
Revision 1.88.2.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.88: preferred, colored
Changes since revision 1.88: +23 -40
lines
sync with head.
Revision 1.74.2.5: download - view: text, markup, annotated - select for diffs
Fri Feb 4 11:47:48 2005 UTC (19 years, 10 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.74.2.4: preferred, colored
Changes since revision 1.74.2.4: +25 -42
lines
Sync with HEAD.
Revision 1.90: download - view: text, markup, annotated - select for diffs
Thu Feb 3 22:51:50 2005 UTC (19 years, 10 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base2
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +16 -33
lines
ANSIfy function declarations
Revision 1.89: 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.88: preferred, colored
Changes since revision 1.88: +10 -10
lines
de-__P -- will ANSIfy .c files later.
Revision 1.88: download - view: text, markup, annotated - select for diffs
Mon Jan 24 21:25:09 2005 UTC (19 years, 10 months ago) by matt
Branches: MAIN
CVS tags: yamt-km-base
Branch point for: yamt-km
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +4 -4
lines
Add IFNET_FOREACH and IFADDR_FOREACH macros and start using them.
Revision 1.74.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:37:12 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.74.2.3: preferred, colored
Changes since revision 1.74.2.3: +2 -2
lines
Fix the sync with head I botched.
Revision 1.74.2.3: 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.74.2.2: preferred, colored
Changes since revision 1.74.2.2: +2 -2
lines
Sync with HEAD.
Revision 1.74.2.2: download - view: text, markup, annotated - select for diffs
Thu Aug 12 11:42:21 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.74.2.1: preferred, colored
Changes since revision 1.74.2.1: +4 -2
lines
Sync with HEAD.
Revision 1.82.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 22:37:09 2004 UTC (20 years, 4 months ago) by jmc
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.82.2.1: preferred, colored; branchpoint 1.82: preferred, colored; next MAIN 1.83: preferred, colored
Changes since revision 1.82.2.1: +10 -6
lines
Pullup rev 1.85-1.87 (requested by christos in ticket #732)
icmp_reflect: check if m_pkthdr.rcvif is non-NULL before touching it.
icmp_reflect could be called from the output path, so m_pkthdr.rcvif may not
be set. (found by panic when PF is configured "block return all")
Revision 1.87: download - view: text, markup, annotated - select for diffs
Tue Aug 3 13:58:59 2004 UTC (20 years, 4 months ago) by cube
Branches: MAIN
CVS tags: kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: kent-audio2
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +4 -2
lines
Remove a common (icmpstat).
Revision 1.74.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:54:39 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +141 -79
lines
Sync with HEAD
Revision 1.86: download - view: text, markup, annotated - select for diffs
Fri Jun 25 15:43:00 2004 UTC (20 years, 5 months ago) by itojun
Branches: MAIN
CVS tags: BEFORE-IPF413
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +6 -5
lines
icmp_reflect: check if m_pkthdr.rcvif is non-NULL before touching it.
icmp_reflect could be called from the output path, so m_pkthdr.rcvif may not
be set. (found by panic when PF is configured "block return all")
Revision 1.85: download - view: text, markup, annotated - select for diffs
Fri Jun 25 15:24:41 2004 UTC (20 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +4 -3
lines
be careful touching m_pkthdr.rcvif, it could be NULL if the packet was
generated from local node and icmp_error calls icmp_reflect.
Revision 1.82.2.1: download - view: text, markup, annotated - select for diffs
Fri May 28 07:24:03 2004 UTC (20 years, 6 months ago) by tron
Branches: netbsd-2-0
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +17 -8
lines
Pull up revision 1.84 (requested by atatat in ticket #391):
Sysctl descriptions under net subtree (net.key not done)
Revision 1.84: download - view: text, markup, annotated - select for diffs
Tue May 25 04:33:59 2004 UTC (20 years, 6 months ago) by atatat
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +17 -8
lines
Sysctl descriptions under net subtree (net.key not done)
Revision 1.83: download - view: text, markup, annotated - select for diffs
Mon Apr 26 01:31:56 2004 UTC (20 years, 7 months ago) by matt
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +2 -8
lines
Remove #else clause of __STDC__
Revision 1.82: download - view: text, markup, annotated - select for diffs
Wed Mar 24 15:34:54 2004 UTC (20 years, 8 months ago) by atatat
Branches: MAIN
CVS tags: netbsd-2-0-base,
BEFORE-IPF411
Branch point for: netbsd-2-0
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +18 -10
lines
Tango on sysctl_createv() and flags. The flags have all been renamed,
and sysctl_createv() now uses more arguments.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Thu Dec 4 19:38:24 2003 UTC (21 years ago) by atatat
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +107 -57
lines
Dynamic sysctl.
Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al. Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.
Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded. Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.
All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.
PS - I'm sorry, but there's a distinct lack of documentation at the
moment. I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.
Revision 1.80: download - view: text, markup, annotated - select for diffs
Thu Nov 13 01:48:13 2003 UTC (21 years, 1 month ago) by jonathan
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -2
lines
Add m_tag_delete_nonpesrsistent(), for deleting all packet tags on
mbuf chains which are recycled (e.g., ICMP reflection, loopback
interface). A consensus was reached that such recycled packets should
behave (more-or-less) the same way if a new chain had been allocated
and the contents copied to that chain.
Some packet tags may in future be marked as "persistent" (e.g., for
mandatory access controls) and should persist across such deletion.
NetBSD as yet hos no persistent tags, so m_tag_delete_nonpersistent()
just deletes all tags. This should not be relied upon.
Revision 1.79: download - view: text, markup, annotated - select for diffs
Tue Nov 11 20:25:26 2003 UTC (21 years, 1 month ago) by jonathan
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +3 -3
lines
Change global head-of-local-IP-address list from in_ifaddr to
in_ifaddrhead. Recent changes in struct names caused a namespace
collision in fast-ipsec, which are most cleanly fixed by using
"in_ifaddrhead" as the listhead name.
Revision 1.78: download - view: text, markup, annotated - select for diffs
Fri Aug 22 22:00:36 2003 UTC (21 years, 3 months ago) by itojun
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +2 -6
lines
remove ipsec_set/getsocket. now we explicitly pass socket * to ip{,6}_output.
Revision 1.77: download - view: text, markup, annotated - select for diffs
Fri Aug 22 21:53:03 2003 UTC (21 years, 3 months ago) by itojun
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +3 -3
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.76: download - view: text, markup, annotated - select for diffs
Fri Aug 15 03:42:02 2003 UTC (21 years, 4 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +10 -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.75: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:33:12 2003 UTC (21 years, 4 months ago) by agc
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +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.74: download - view: text, markup, annotated - select for diffs
Thu Jun 26 21:43:39 2003 UTC (21 years, 5 months ago) by itojun
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +3 -3
lines
fix comment
Revision 1.66.10.2: download - view: text, markup, annotated - select for diffs
Mon Jun 16 13:46:51 2003 UTC (21 years, 6 months ago) by grant
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.66.10.1: preferred, colored; branchpoint 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66.10.1: +8 -2
lines
Pull up revision 1.73 (requested by tron in ticket #1260):
Clear hardware checksum flags before reusing a mbuf for an ICMP reply as
suggested by Enami Tsugutomo. This fixes PR kern/21203 by myself.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Thu Apr 17 16:57:49 2003 UTC (21 years, 8 months ago) by tron
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +8 -2
lines
Clear hardware checksum flags before reusing a mbuf for an ICMP reply as
suggested by Enami Tsugutomo. This fixes PR kern/21203 by myself.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Wed Feb 26 06:31:14 2003 UTC (21 years, 9 months ago) by matt
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +4 -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.59.2.7: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:45:17 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.59.2.6: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59.2.6: +0 -2
lines
Catch up to -current.
Revision 1.60.2.4: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:43:58 2002 UTC (22 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.60.2.3: preferred, colored; branchpoint 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60.2.3: +2 -4
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.71: download - view: text, markup, annotated - select for diffs
Mon Sep 23 05:51:12 2002 UTC (22 years, 2 months ago) by simonb
Branches: MAIN
CVS tags: nathanw_sa_before_merge,
nathanw_sa_base,
kqueue-beforemerge,
kqueue-base,
kqueue-aftermerge,
gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw,
fvdl_fs64_base
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +2 -4
lines
Remove breaks after returns, unreachable returns and returns after
returns(!).
Revision 1.60.2.3: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:49:13 2002 UTC (22 years, 3 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.60.2.2: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.2.2: +24 -21
lines
sync kqueue branch with HEAD
Revision 1.66.8.3: download - view: text, markup, annotated - select for diffs
Thu Aug 29 00:56:46 2002 UTC (22 years, 3 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.66.8.2: preferred, colored; branchpoint 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66.8.2: +23 -21
lines
catch up with -current.
Revision 1.59.2.6: download - view: text, markup, annotated - select for diffs
Tue Aug 27 23:47:59 2002 UTC (22 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.59.2.5: preferred, colored
Changes since revision 1.59.2.5: +21 -19
lines
Catch up to -current.
Revision 1.70: download - view: text, markup, annotated - select for diffs
Wed Aug 14 00:23:30 2002 UTC (22 years, 4 months ago) by itojun
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +23 -21
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.59.2.5: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:46:47 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.59.2.4: preferred, colored
Changes since revision 1.59.2.4: +3 -2
lines
Catch up to -current.
Revision 1.66.8.2: download - view: text, markup, annotated - select for diffs
Mon Jul 15 10:36:57 2002 UTC (22 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.66.8.1: preferred, colored; branchpoint 1.66: preferred, colored
Changes since revision 1.66.8.1: +3 -2
lines
catch up with -current.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Sun Jun 30 22:40:34 2002 UTC (22 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -2
lines
Changes to allow the IPv4 and IPv6 layers to align headers themseves,
as necessary:
* Implement a new mbuf utility routine, m_copyup(), is is like
m_pullup(), except that it always prepends and copies, rather
than only doing so if the desired length is larger than m->m_len.
m_copyup() also allows an offset into the destination mbuf, which
allows space for packet headers, in the forwarding case.
* Add *_HDR_ALIGNED_P() macros for IP, IPv6, ICMP, and IGMP. These
macros expand to 1 if __NO_STRICT_ALIGNMENT is defined, so that
architectures which do not have strict alignment constraints don't
pay for the test or visit the new align-if-needed path.
* Use the new macros to check if a header needs to be aligned, or to
assert that it already is, as appropriate.
Note: This code is still somewhat experimental. However, the new
code path won't be visited if individual device drivers continue
to guarantee that packets are delivered to layer 3 already properly
aligned (which are rules that are already in use).
Revision 1.60.2.2: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:50:51 2002 UTC (22 years, 5 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.60.2.1: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.2.1: +24 -24
lines
catch up with -current on kqueue branch
Revision 1.66.8.1: download - view: text, markup, annotated - select for diffs
Thu Jun 20 15:52:20 2002 UTC (22 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +24 -24
lines
catch up with -current.
Revision 1.59.2.4: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:48:43 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.59.2.3: preferred, colored
Changes since revision 1.59.2.3: +24 -24
lines
Catch up to -current.
Revision 1.66.10.1: download - view: text, markup, annotated - select for diffs
Sat Jun 15 00:53:41 2002 UTC (22 years, 6 months ago) by lukem
Branches: netbsd-1-6
CVS tags: netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-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.66: preferred, colored
Changes since revision 1.66: +2 -2
lines
Pull up revision 1.68 (requested by itojun in ticket #266):
set IPv4 parameter to modern value.
- ICMPv4 redirect entry timeout = 600 sec (previous: never timeout)
Revision 1.68: download - view: text, markup, annotated - select for diffs
Thu Jun 13 16:25:54 2002 UTC (22 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +3 -3
lines
set IPv4 parameter to modern value.
- turn on path MTU discovery (previous: turned off)
- ICMPv4 redirect entry timeout = 600 sec (previous: never timeout)
Revision 1.67: download - view: text, markup, annotated - select for diffs
Sun Jun 9 16:33:40 2002 UTC (22 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +23 -23
lines
whitespace
Revision 1.60.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 20:02:49 2002 UTC (22 years, 11 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +94 -28
lines
Sync kqueue branch with -current.
Revision 1.59.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:17:49 2001 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.59.2.2: preferred, colored
Changes since revision 1.59.2.2: +94 -28
lines
Catch up to -current.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Tue Nov 13 00:32:37 2001 UTC (23 years, 1 month ago) by lukem
Branches: MAIN
CVS tags: newlock-base,
newlock,
netbsd-1-6-base,
ifpoll-base,
eeh-devprop-base,
eeh-devprop
Branch point for: netbsd-1-6,
gehenna-devsw
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +4 -1
lines
add RCSIDs
Revision 1.61.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 12 21:19:23 2001 UTC (23 years, 1 month ago) by thorpej
Branches: thorpej-mips-cache
Diff to: previous 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61: +91 -28
lines
Sync the thorpej-mips-cache branch with -current.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Sun Nov 4 20:55:27 2001 UTC (23 years, 1 month ago) by matt
Branches: MAIN
CVS tags: thorpej-mips-cache-base
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +4 -7
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.64: download - view: text, markup, annotated - select for diffs
Sun Nov 4 13:38:50 2001 UTC (23 years, 1 month ago) by matt
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +15 -17
lines
Keep only one mtu_table (the two were identical except for
one value - 65280).
Revision 1.63: download - view: text, markup, annotated - select for diffs
Tue Oct 30 06:41:10 2001 UTC (23 years, 1 month ago) by kml
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +74 -2
lines
Add in support for timing out IPv4 routes added due to redirects,
as discussed in tech-net several weeks ago. It turned out that
KAME had already added this functionality to the IPv6 stack, so
I followed their example in adding the sysctl variables
net.inet.icmp.rediraccept and net.inet.icmp.redirtimeout.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Mon Oct 29 07:02:33 2001 UTC (23 years, 1 month ago) by simonb
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +1 -5
lines
Don't need to include <uvm/uvm_extern.h> just to include <sys/sysctl.h>
anymore.
Revision 1.59.2.2: download - view: text, markup, annotated - select for diffs
Mon Oct 22 20:41:57 2001 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.59.2.1: preferred, colored
Changes since revision 1.59.2.1: +4 -4
lines
Catch up to -current.
Revision 1.61: download - view: text, markup, annotated - select for diffs
Sat Oct 20 03:18:17 2001 UTC (23 years, 1 month ago) by matt
Branches: MAIN
Branch point for: thorpej-mips-cache
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +4 -4
lines
Make the two MTU tables const and change their type to u_int (one was int
and one was u_long!).
Revision 1.59.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 9 01:58:24 2001 UTC (23 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +1 -2
lines
Catch up with -current.
Revision 1.47.2.5: download - view: text, markup, annotated - select for diffs
Fri Apr 6 00:24:30 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.47.2.4: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.2.4: +2 -2
lines
Pull up revision 1.58 (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.38.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 12 13:31:49 2001 UTC (23 years, 9 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.38.2.2: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.2.2: +1 -9
lines
Sync with HEAD.
Revision 1.47.2.4: download - view: text, markup, annotated - select for diffs
Sun Mar 11 21:10:13 2001 UTC (23 years, 9 months ago) by he
Branches: netbsd-1-5
Diff to: previous 1.47.2.3: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.3: +1 -8
lines
Pull up revision 1.59 (requested by itojun):
Ensure that we enforce inbound IPsec policy on all IP protocols,
not just TCP, UDP and ICMP.
Revision 1.60: download - view: text, markup, annotated - select for diffs
Thu Mar 8 00:17:05 2001 UTC (23 years, 9 months ago) by itojun
Branches: MAIN
CVS tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base,
thorpej-devvp-base3,
thorpej-devvp-base2,
thorpej-devvp-base,
thorpej-devvp,
pre-chs-ubcperf,
post-chs-ubcperf
Branch point for: kqueue
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +1 -2
lines
Remove a bogus rtfree(); OpenBSD PR 1706.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Mar 1 16:31:38 2001 UTC (23 years, 9 months ago) by itojun
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +1 -8
lines
make sure to enforce inbound ipsec policy checking, for any protocols on top
of ip (check it when final header is visited). sync with kame.
XXX kame team will need to re-check policy engine code
Revision 1.38.2.2: download - view: text, markup, annotated - select for diffs
Sun Feb 11 19:17:14 2001 UTC (23 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.38.2.1: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.2.1: +2 -2
lines
Sync with HEAD.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed Jan 24 09:04:15 2001 UTC (23 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +2 -2
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.38.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 18:10:28 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +259 -62
lines
Update thorpej_scsipi to -current as of a month ago
Revision 1.57: download - view: text, markup, annotated - select for diffs
Wed Oct 18 20:34:00 2000 UTC (24 years, 1 month ago) by itojun
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +6 -6
lines
s/mtudisc_callback/icmp_&/ so that we don't feel conflict between IPv4 and
IPv6 counterpart. (or icmp4_&?)
Revision 1.56: download - view: text, markup, annotated - select for diffs
Wed Oct 18 19:20:02 2000 UTC (24 years, 1 month ago) by itojun
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +4 -2
lines
count successful path MTU changes. good for debugging.
(there could be some discussion on when to increase the counter...)
Revision 1.55: download - view: text, markup, annotated - select for diffs
Wed Oct 18 17:09:14 2000 UTC (24 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +54 -13
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.47.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 16 01:22:22 2000 UTC (24 years, 4 months ago) by itojun
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE,
netbsd-1-5-BETA2,
netbsd-1-5-BETA
Diff to: previous 1.47.2.2: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.2: +17 -35
lines
pullup (approved by releng-1-5)
switch from net.inet*.*.*ratelimit to net.inet*.*.ppslimit.
(tags are rough estimate - we had some try-and-error in main trunc)
sys/netinet/icmp6.h 1.9 -> 1.11
sys/netinet/icmp_var.h 1.15 -> 1.17
sys/netinet/in_proto.c 1.39 -> 1.42
sys/netinet/ip_icmp.c 1.50 -> 1.51, 1.52 -> 1.54
sys/netinet/tcp_input.c 1.111 -> 1.112, 1.115 -> 1.117
sys/netinet/tcp_usrreq.c 1.52 -> 1.53
sys/netinet/tcp_var.h 1.72 -> 1.75
sys/netinet6/icmp6.c 1.34 -> 1.35, 1.36 -> 1.38
sys/netinet6/in6_proto.c 1.17 -> 1.19
Revision 1.47.2.2: download - view: text, markup, annotated - select for diffs
Fri Jul 28 16:58:09 2000 UTC (24 years, 4 months ago) by sommerfeld
Branches: netbsd-1-5
CVS tags: netbsd-1-5-ALPHA2
Diff to: previous 1.47.2.1: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.1: +34 -4
lines
Pull up UDP, ICMP fixes:
- Drop packet, increment udps_badlen if the udp header length field
reports a size smaller than the udp header; defends against bogus
packets seen by by Assar Westerlund.
- allow icmp_error() to work when icmpreturndatabytes is sufficiently
large that the icmp error message doesn't fit in a header mbuf.
- defend against mbuf chains shorter than their contained ip->ip_len.
Joint work of myself, itojun, and assar
Approved by thorpej
revisions pulled up:
sys/netinet/ip_icmp.c 1.52
sys/netinet/udp_usrreq.c 1.70
Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Jul 28 04:06:53 2000 UTC (24 years, 4 months ago) by itojun
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +2 -31
lines
nuke the following sysctl variables. "ppsratelimit" should work better.
need to recompile sbin/sysctl after updating /usr/include.
net.inet.tcp.rstratelimit
net.inet.icmp.errratelimit
net.inet6.icmp6.errratelimit
Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Jul 27 11:36:14 2000 UTC (24 years, 4 months ago) by itojun
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +1 -9
lines
do not disable icmp error rate limitation for local address.
local address can be abused too. pps rate limitation should work fine for
moderate amount of icmp errors.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Mon Jul 24 03:32:31 2000 UTC (24 years, 4 months ago) by sommerfeld
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +34 -4
lines
Improve robustness of icmp_error():
- allow it to work when icmpreturndatabytes is sufficiently large that the
icmp error message doesn't fit in a header mbuf.
- defend against mbuf chains shorter than their contained ip->ip_len.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Jul 10 09:31:30 2000 UTC (24 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +21 -2
lines
implement net.inet.icmp.errppslimit.
make default value for net.inet.icmp.erratelimit to 0, as < 10ms value
does not do the right thing.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Thu Jul 6 12:51:40 2000 UTC (24 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +1 -2
lines
remove unnecessary #include <netkey/key_debug.h>. from kame.
Revision 1.47.2.1: download - view: text, markup, annotated - select for diffs
Sun Jul 2 14:25:59 2000 UTC (24 years, 5 months ago) by sommerfeld
Branches: netbsd-1-5
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +10 -2
lines
Pull up 1.49: don't rate-limit ICMP we send to ourselves.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat Jul 1 21:46:40 2000 UTC (24 years, 5 months ago) by sommerfeld
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +10 -2
lines
Don't rate-limit ICMP errors from packets we send to ourselves.
The dns resolver depends on reliably receiving errors to allow it to
quickly detect a dead local nameserver.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Wed Jun 28 03:01:16 2000 UTC (24 years, 5 months ago) by mrg
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -2
lines
<vm/vm.h> -> <uvm/uvm_extern.h>
Revision 1.46.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 17:09:47 2000 UTC (24 years, 5 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +41 -25
lines
Sync w/ netbsd-1-5-base.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Jun 10 12:39:19 2000 UTC (24 years, 6 months ago) by darrenr
Branches: MAIN
CVS tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +41 -25
lines
add icmpreturndatabytes kernel variable (default 8) which specifies the
number of extra data bytes to return in ICMP error messages. This is
also available via sysctl as net.icmp.returndatabytes and is limited to
[8,512].
Revision 1.46: download - view: text, markup, annotated - select for diffs
Mon May 22 12:08:43 2000 UTC (24 years, 6 months ago) by itojun
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -1
lines
disallow negative numbers for ratelimit interval (tcp, icmp, icmp6).
Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed May 10 03:31:30 2000 UTC (24 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +5 -2
lines
add missing boundary checks to ip options processing.
correct timestamp option validation (len and ptr upper/lower bound
based on RFC791).
fill "pointer" field for parameter problem in timestamp option processing.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Thu Mar 30 13:24:59 2000 UTC (24 years, 8 months ago) by augustss
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +16 -16
lines
Remove register declarations.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Wed Mar 1 12:49:32 2000 UTC (24 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -3
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.42: download - view: text, markup, annotated - select for diffs
Thu Feb 24 09:54:49 2000 UTC (24 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -1
lines
don't transmit ICMPv4 packet back, if the original packet was encyrpted.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Feb 17 10:59:35 2000 UTC (24 years, 9 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +1 -4
lines
Change the use of pfil hooks. There is no longer a single list of all
pfil information, instead, struct protosw now contains a structure
which caontains list heads, etc. The per-protosw pfil struct is passed
to pfil_hook_get(), along with an in/out flag to get the head of the
relevant filter list. This has been done for only IPv4 and IPv6, at
present, with these patches only enabling filtering for IPPROTO_IP and
IPPROTO_IPV6, although it is possible to have tcp/udp, etc, dedicated
filters now also. The ipfilter code has been updated to only filter
IPv4 packets - next major release of ipfilter is required for ipv6.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Feb 15 04:03:49 2000 UTC (24 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +58 -3
lines
Add ICMP error rate limiting, based on the same for ICMP6.
Note, we're reusing the previously unused slot for "MTU discovery" (which
was moved to the "net.inet.ip" branch of the sysctl tree quite some time
ago).
Revision 1.39: download - view: text, markup, annotated - select for diffs
Tue Jan 25 17:07:56 2000 UTC (24 years, 10 months ago) by sommerfeld
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +71 -14
lines
Pick source address for ICMP errors a bit more intelligently when
there are multiple addresses on the interface.
From Marc Horowitz <marc@netbsd.org>, who left this sitting for too long.
Revision 1.36.6.3: download - view: text, markup, annotated - select for diffs
Tue Nov 30 13:35:30 1999 UTC (25 years ago) by itojun
Branches: kame
CVS tags: kame_141_19991130
Diff to: previous 1.36.6.2: preferred, colored; branchpoint 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.6.2: +3 -1
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.36.4.2: download - view: text, markup, annotated - select for diffs
Mon Aug 2 22:34:58 1999 UTC (25 years, 4 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.36.4.1: preferred, colored; branchpoint 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.4.1: +3 -1
lines
Update from trunk.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Jul 9 22:57:18 1999 UTC (25 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
wrstuden-devbsize,
fvdl-softdep-base,
fvdl-softdep,
comdex-fall-1999-base,
comdex-fall-1999,
chs-ubc2-base
Branch point for: thorpej_scsipi
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -1
lines
defopt IPSEC and IPSEC_ESP (both into opt_ipsec.h).
Revision 1.36.6.2: download - view: text, markup, annotated - select for diffs
Tue Jul 6 11:02:45 1999 UTC (25 years, 5 months ago) by itojun
Branches: kame
CVS tags: kame_14_19990705
Diff to: previous 1.36.6.1: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.6.1: +30 -30
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.36.4.1: download - view: text, markup, annotated - select for diffs
Thu Jul 1 23:47:01 1999 UTC (25 years, 5 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +101 -2
lines
Sync w/ -current.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Thu Jul 1 08:12:50 1999 UTC (25 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +101 -2
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.36.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 28 06:37:00 1999 UTC (25 years, 5 months ago) by itojun
Branches: kame
CVS tags: kame_14_19990628
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +101 -2
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.36: download - view: text, markup, annotated - select for diffs
Tue Mar 30 19:02:56 1999 UTC (25 years, 8 months ago) by mycroft
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.35: preferred, colored
Changes since revision 1.35: +10 -1
lines
Fix a null pointer dereference in the case where forwarding is turned on and
there are interfaces up but with no addresses.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Jan 19 23:39:57 1999 UTC (25 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +1 -2
lines
There's just no plausible reason to byte-swap ip_id internally. It's opaque.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Jan 19 23:03:21 1999 UTC (25 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -4
lines
Don't screw with ip_len; just subtract from it where we actually use the
value.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Jan 19 22:10:42 1999 UTC (25 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -2
lines
Fix byte-swapping of ip_len in returned IP header.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Jan 11 22:35:06 1999 UTC (25 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -2
lines
Fix byte order and ip_len inconsistencies in ICMP reply code. Also, fix
some formatting and HTONS(foo) vs. foo = htons(foo) inconsistencies.
PR #6602, Darren Reed.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat Dec 19 02:46:12 1998 UTC (25 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +37 -37
lines
Reverse the copyright-notice-swap. It went against existing practice.
Revision 1.30.4.1: download - view: text, markup, annotated - select for diffs
Fri Dec 11 04:53:08 1998 UTC (26 years ago) by kenh
Branches: kenh-if-detach
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +22 -6
lines
The beginnings of interface detach support. Still some bugs, but mostly
works for me.
This work was originally by Bill Studenmund, and cleaned up by me.
Revision 1.25.2.3: download - view: text, markup, annotated - select for diffs
Thu Oct 1 17:57:34 1998 UTC (26 years, 2 months ago) by cgd
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
Diff to: previous 1.25.2.2: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.2.2: +59 -9
lines
pull up revisions 1.27-1.28, 1.30 from trunk. (tls)
Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Sep 30 21:52:25 1998 UTC (26 years, 2 months ago) by tls
Branches: MAIN
CVS tags: kenh-if-detach-base,
chs-ubc-base,
chs-ubc
Branch point for: kenh-if-detach
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +38 -38
lines
Switch order of TNF and UCB copyrights so UCB copyright is first; this seems more appropriate since UCB wrote the original code, after all.
Revision 1.25.2.2: download - view: text, markup, annotated - select for diffs
Sat May 9 03:33:00 1998 UTC (26 years, 7 months ago) by mycroft
Branches: netbsd-1-3
CVS tags: netbsd-1-3-PATCH002
Diff to: previous 1.25.2.1: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.2.1: +36 -2
lines
Pull up patch from kml.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Apr 29 03:44:11 1998 UTC (26 years, 7 months ago) by kml
Branches: MAIN
CVS tags: eeh-paddr_t-base,
eeh-paddr_t
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +35 -2
lines
Add support for deletion of routes added by path MTU discovery;
uses new generic route timeout code. Add sysctl for timeout period.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Feb 15 18:24:26 1998 UTC (26 years, 10 months ago) by tls
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +38 -1
lines
Add correct copyright notice for IP address hash change. This code is donated to TNF by the original copyright holder, Panix.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Feb 13 18:21:43 1998 UTC (26 years, 10 months ago) by tls
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +22 -9
lines
Change list of interface IP addresses to a hash. Improves performance on hosts with a large number of IP addresses significantly.
Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Mon Jan 5 09:54:09 1998 UTC (26 years, 11 months ago) by thorpej
Branches: WFJ-920714,
CSRG
CVS tags: lite-2,
lite-1,
date-03-may-96
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +171 -99
lines
Import sys/netinet from 4.4BSD-Lite for reference purposes.
Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 30 02:15:27 1997 UTC (27 years, 1 month ago) by mellon
Branches: netbsd-1-3
CVS tags: netbsd-1-3-RELEASE,
netbsd-1-3-PATCH001,
netbsd-1-3-BETA
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +17 -8
lines
Pull rev 1.26 up from trunk
Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Oct 29 05:28:44 1997 UTC (27 years, 1 month ago) by kml
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +17 -8
lines
Changes to path MTU discovery to correctly handle "needs
fragmentation" ICMP messages that specify a new MTU size of zero
(from, say, old buggy Linux kernels).
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Oct 18 21:18:30 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.24: preferred, colored
Changes since revision 1.24: +2 -5
lines
change sysctl net.inet.icmp.mtudisc to net.inet.ip.mtudisc
Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Oct 17 22:12:24 1997 UTC (27 years, 2 months ago) by kml
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +74 -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.23: download - view: text, markup, annotated - select for diffs
Tue Jun 24 01:26:19 1997 UTC (27 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-signal-base,
thorpej-signal,
marc-pcmcia-bp,
marc-pcmcia-base,
marc-pcmcia,
bouyer-scsipi
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -2
lines
Increment icmpstat.icps_badlen for bad length of ICMP_MASKREQ, per
Stevens in TCP/IP Illustrated vol. 2, p.319. Submitted by
Koji Imada <koji@math.human.nagoya-u.ac.jp> in PR #3712.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Oct 13 02:03:04 1996 UTC (28 years, 2 months ago) by christos
Branches: MAIN
CVS tags: thorpej-setroot,
mrg-vm-swap,
is-newarp-before-merge,
is-newarp-base,
is-newarp
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +9 -9
lines
backout previous kprintf changes
Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Oct 10 23:12:48 1996 UTC (28 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +9 -9
lines
printf -> kprintf, sprintf -> ksprintf
Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Sep 9 14:51:14 1996 UTC (28 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +12 -10
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.19: download - view: text, markup, annotated - select for diffs
Tue Feb 13 23:42:22 1996 UTC (28 years, 10 months ago) by christos
Branches: MAIN
CVS tags: netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-PATCH001,
netbsd-1-2-BETA,
netbsd-1-2
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +26 -8
lines
netinet prototypes
Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Jun 12 00:47:39 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,
netbsd-1-1
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3
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.17: download - view: text, markup, annotated - select for diffs
Sun Jun 4 05:58:25 1995 UTC (29 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +6 -6
lines
Don't cast things unnecessarily.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Jun 4 05:07:00 1995 UTC (29 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +9 -12
lines
Clean up many more casts.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Jun 1 21:46:27 1995 UTC (29 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -9
lines
Don't use INADDR_* constants in case labels.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Jun 1 21:36:22 1995 UTC (29 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -4
lines
Avoid byte-swapping IP addresses at run time.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed May 31 21:50:38 1995 UTC (29 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -1
lines
Integrate multicast 3.5 distribution, with several bugs fixed and general
cleanup. This is a (working) snapshot of work in progress.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon May 15 01:25:21 1995 UTC (29 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +6 -7
lines
KNF
Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Apr 13 06:31:59 1995 UTC (29 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2
lines
be a bit more careful and explicit with types. (basically a large no-op.)
Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Jun 29 06:38:16 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.9: preferred, colored
Changes since revision 1.9: +3 -2
lines
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri May 13 06:06:17 1994 UTC (30 years, 7 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +146 -81
lines
Update to 4.4-Lite networking code, with a few local changes.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Feb 2 05:59:02 1994 UTC (30 years, 10 months ago) by hpeyerl
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1 -3
lines
Multicast is no longer optional.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Jan 10 20:14:18 1994 UTC (30 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2
lines
Should compile now with or without `options MULTICAST'.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Jan 8 23:50:43 1994 UTC (30 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +5 -1
lines
More prototypes.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Jan 8 21:21:45 1994 UTC (30 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -4
lines
Fix some inconsistent spacing; spaces at the end of lines, etc.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Dec 18 00:41:56 1993 UTC (31 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +17 -17
lines
Canonicalize all #includes.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Dec 6 04:59:34 1993 UTC (31 years ago) by hpeyerl
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +7 -2
lines
multicast support.
>From Chris Maeda, cmaeda@cs.washington.edu
These patches are derived from the IP Multicast patches for BSDI.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu May 20 03:50:20 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.1: preferred, colored
Changes since revision 1.1: +2 -1
lines
more rcsid additions and file header cleanups
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>