The NetBSD Project

CVS log for src/sys/netinet/ip_var.h

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.134 / (download) - annotate - [select for diffs], Sun Apr 10 09:50:46 2022 UTC (9 months, 3 weeks ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.133: +2 -2 lines
Diff to previous 1.133 (colored)

fix various typos in comments and output/log messages.

Revision 1.130.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:29:01 2021 UTC (21 months, 4 weeks ago) by thorpej
Branch: thorpej-futex
Changes since 1.130: +5 -2 lines
Diff to previous 1.130 (colored) next main 1.131 (colored)

Sync with HEAD.

Revision 1.133 / (download) - annotate - [select for diffs], Wed Feb 3 18:13:13 2021 UTC (23 months, 4 weeks ago) by roy
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.132: +3 -3 lines
Diff to previous 1.132 (colored)

CTASSERT -> __CTASSERT to unbreak userland build.

While here move __packed in tcp_debug.h back to where it was and
note removal warrants more investigation.

Revision 1.132 / (download) - annotate - [select for diffs], Wed Feb 3 11:53:43 2021 UTC (23 months, 4 weeks ago) by roy
Branch: MAIN
Changes since 1.131: +4 -1 lines
Diff to previous 1.131 (colored)

Sprinkle CTASSERT to enforce on-wire layout without __packed

Revision 1.131 / (download) - annotate - [select for diffs], Wed Feb 3 05:51:40 2021 UTC (23 months, 4 weeks ago) by roy
Branch: MAIN
Changes since 1.130: +2 -2 lines
Diff to previous 1.130 (colored)

Remove __packed from various network structures

They are already network aligned and adding the __packed attribute
just causes needless compiler warnings about accssing members of packed
objects.

Revision 1.130 / (download) - annotate - [select for diffs], Fri Aug 28 06:31:42 2020 UTC (2 years, 5 months ago) by ozaki-r
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.129: +7 -2 lines
Diff to previous 1.129 (colored)

inet: reduce silent packet discards

Revision 1.129 / (download) - annotate - [select for diffs], Fri Aug 28 06:19:13 2020 UTC (2 years, 5 months ago) by ozaki-r
Branch: MAIN
Changes since 1.128: +4 -2 lines
Diff to previous 1.128 (colored)

inet, inet6: count packets dropped by IPsec

The counters count packets dropped due to security policy checks.

Revision 1.125.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:47 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.125: +6 -4 lines
Diff to previous 1.125 (colored) next main 1.126 (colored)

Sync with HEAD

Revision 1.128 / (download) - annotate - [select for diffs], Mon May 13 07:47:59 2019 UTC (3 years, 8 months ago) by ozaki-r
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, 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, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.127: +4 -2 lines
Diff to previous 1.127 (colored)

Count packets dropped by pfil

Revision 1.122.2.4 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:56 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.122.2.3: +2 -2 lines
Diff to previous 1.122.2.3 (colored) to branchpoint 1.122 (colored) next main 1.123 (colored)

Ssync with HEAD

Revision 1.127 / (download) - annotate - [select for diffs], Fri Sep 14 05:09:51 2018 UTC (4 years, 4 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, isaki-audio2-base, isaki-audio2
Changes since 1.126: +2 -2 lines
Diff to previous 1.126 (colored)

Use non-variadic function pointer in protosw::pr_input.

Revision 1.122.2.3 / (download) - annotate - [select for diffs], Sat Jul 28 04:38:10 2018 UTC (4 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.122.2.2: +2 -2 lines
Diff to previous 1.122.2.2 (colored) to branchpoint 1.122 (colored)

Sync with HEAD

Revision 1.126 / (download) - annotate - [select for diffs], Tue Jul 10 15:46:58 2018 UTC (4 years, 6 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-0906, pgoyette-compat-0728
Changes since 1.125: +2 -2 lines
Diff to previous 1.125 (colored)

Remove the second argument from ip_reass_packet(). We want the IP header
on the mbuf, not elsewhere. Simplifies the NPF reassembly code a little.
No real functional change.

Revision 1.122.2.2 / (download) - annotate - [select for diffs], Mon Apr 16 02:00:08 2018 UTC (4 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.122.2.1: +3 -8 lines
Diff to previous 1.122.2.1 (colored) to branchpoint 1.122 (colored)

Sync with HEAD, resolve some conflicts

Revision 1.125 / (download) - annotate - [select for diffs], Sun Apr 8 12:18:06 2018 UTC (4 years, 9 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415
Branch point for: phil-wifi
Changes since 1.124: +2 -3 lines
Diff to previous 1.124 (colored)

Remove the ipre_mlast field and the TRAVERSE macro.

The goal was to store in ipre_mlast the last mbuf of the chain, so that
m_cat could be called on it. But it's not needed, since m_cat already
does the equivalent of TRAVERSE itself.

If it were needed, there would be a bug, since we don't call TRAVERSE on
ipre_mlast when creating a new reassembly entry.

Revision 1.124 / (download) - annotate - [select for diffs], Sun Apr 8 11:50:46 2018 UTC (4 years, 9 months ago) by maxv
Branch: MAIN
Changes since 1.123: +2 -6 lines
Diff to previous 1.123 (colored)

Remove unused field, and sync comment with reality.

Revision 1.122.2.1 / (download) - annotate - [select for diffs], Sat Apr 7 04:12:19 2018 UTC (4 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.122: +1 -14 lines
Diff to previous 1.122 (colored)

Sync with HEAD.  77 conflicts resolved - all of them $NetBSD$

Revision 1.123 / (download) - annotate - [select for diffs], Tue Apr 3 08:46:01 2018 UTC (4 years, 10 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-0407
Changes since 1.122: +1 -14 lines
Diff to previous 1.122 (colored)

Remove unused fields and outdated comment.

Revision 1.119.6.2 / (download) - annotate - [select for diffs], Sun Feb 11 21:17:34 2018 UTC (4 years, 11 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.119.6.1: +3 -2 lines
Diff to previous 1.119.6.1 (colored) to branchpoint 1.119 (colored) next main 1.120 (colored)

Pull up following revision(s) (requested by ozaki-r in ticket #536):
	distrib/sets/lists/base/shl.mi: 1.825
	distrib/sets/lists/comp/mi: 1.2168-1.2169
	distrib/sets/lists/comp/shl.mi: 1.310
	distrib/sets/lists/debug/mi: 1.234
	distrib/sets/lists/debug/shl.mi: 1.188
	distrib/sets/lists/man/mi: 1.1570
	distrib/sets/lists/tests/mi: 1.772
	etc/mtree/NetBSD.dist.tests: 1.150
	share/man/man4/Makefile: 1.650
	share/man/man4/ipsec.4: 1.42-1.43
	share/man/man4/ipsecif.4: 1.1-1.5
	sys/arch/amd64/conf/ALL: 1.77
	sys/arch/amd64/conf/GENERIC: 1.480
	sys/conf/files: 1.1191
	sys/net/Makefile: 1.34
	sys/net/files.net: 1.14
	sys/net/if.c: 1.404
	sys/net/if.h: 1.248
	sys/net/if_gif.c: 1.135
	sys/net/if_ipsec.c: 1.1-1.3
	sys/net/if_ipsec.h: 1.1
	sys/net/if_l2tp.c: 1.16
	sys/net/if_types.h: 1.28
	sys/netinet/in.c: 1.214
	sys/netinet/in.h: 1.103
	sys/netinet/in_gif.c: 1.92
	sys/netinet/ip_var.h: 1.122
	sys/netinet6/in6.c: 1.257
	sys/netinet6/in6.h: 1.88
	sys/netinet6/in6_gif.c: 1.90
	sys/netinet6/ip6_var.h: 1.75
	sys/netipsec/Makefile: 1.6
	sys/netipsec/files.netipsec: 1.13
	sys/netipsec/ipsec.h: 1.62
	sys/netipsec/ipsecif.c: 1.1
	sys/netipsec/ipsecif.h: 1.1
	sys/netipsec/key.c: 1.246-1.247
	sys/netipsec/key.h: 1.34
	sys/rump/net/Makefile.rumpnetcomp: 1.20
	sys/rump/net/lib/libipsec/IPSEC.ioconf: 1.1
	sys/rump/net/lib/libipsec/Makefile: 1.1
	sys/rump/net/lib/libipsec/ipsec_component.c: 1.1
	tests/net/Makefile: 1.34
	tests/net/if_ipsec/Makefile: 1.1
	tests/net/if_ipsec/t_ipsec.sh: 1.1-1.2
Don't touch an SP without a reference to it
unify processing to check nesting count for some tunnel protocols.
add ipsec(4) interface, which is used for route-based VPN.
man and ATF are added later, please see man for details.
reviewed by christos@n.o, joerg@n.o and ozaki-r@n.o, thanks.
https://mail-index.netbsd.org/tech-net/2017/12/18/msg006557.html
ipsec(4) interface supports rump now.
add ipsec(4) interface ATF.
add ipsec(4) interface man as ipsecif.4.
add ipsec(4) interface to amd64/GENERIC and amd64/ALL configs.
apply in{,6}_tunnel_validate() to gif(4).
Spell IPsec that way. Simplify macro usage. Sort SEE ALSO. Bump
date for previous.
Improve wording and macro use.
Some parts are not clear to me, so someone with knowledge of ipsecif(4)
should improve this some more.
Improve ipsecif.4. Default port ipsec(4) NAT-T is tested now.
pointed out by wiz@n.o and suggested by ozaki-r@n.o, thanks.
Change the prefix of test names to ipsecif_ to distinguish from tests for ipsec(4)
New sentence, new line. Remove empty macro.
Fix PR kern/52920. Pointed out by David Binderman, thanks.
Improve wording, and put a new drawing, from me and Kengo Nakahara.
apply a little more #ifdef INET/INET6.  fixes !INET6 builds.

Revision 1.122 / (download) - annotate - [select for diffs], Wed Jan 10 10:56:30 2018 UTC (5 years ago) by knakahara
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.121: +3 -2 lines
Diff to previous 1.121 (colored)

add ipsec(4) interface, which is used for route-based VPN.

man and ATF are added later, please see man for details.

reviewed by christos@n.o, joerg@n.o and ozaki-r@n.o, thanks.
https://mail-index.netbsd.org/tech-net/2017/12/18/msg006557.html

Revision 1.119.6.1 / (download) - annotate - [select for diffs], Thu Dec 21 21:08:13 2017 UTC (5 years, 1 month ago) by snj
Branch: netbsd-8
Changes since 1.119: +11 -2 lines
Diff to previous 1.119 (colored)

Pull up following revision(s) (requested by ryo in ticket #445):
	distrib/sets/lists/debug/mi: revision 1.222
	distrib/sets/lists/tests/mi: revision 1.760
	share/man/man4/ip.4: revision 1.38
	sys/netinet/in.c: revision 1.207
	sys/netinet/in.h: revision 1.101
	sys/netinet/in_pcb.c: revision 1.179
	sys/netinet/in_pcb.h: revision 1.64
	sys/netinet/ip_output.c: revision 1.284, 1.286
	sys/netinet/ip_var.h: revision 1.120-1.121
	sys/netinet/raw_ip.c: revision 1.166-1.167
	sys/netinet/udp_usrreq.c: revision 1.235-1.236
	sys/netinet/udp_var.h: revision 1.42
	tests/net/net/Makefile: revision 1.21
	tests/net/net/t_pktinfo_send.c: revision 1.1-1.2
Add support IP_PKTINFO for sendmsg(2).
The source address or output interface can be specified by adding IP_PKTINFO
to the control part of the message on a SOCK_DGRAM or SOCK_RAW socket.
Reviewed by ozaki-r@ and christos@. thanks.
--
As is the case with IPV6_PKTINFO, IP_PKTINFO can be sent without EADDRINUSE
even if the UDP address:port in use is specified.

Revision 1.121 / (download) - annotate - [select for diffs], Mon Dec 11 05:47:18 2017 UTC (5 years, 1 month ago) by ryo
Branch: MAIN
Changes since 1.120: +2 -2 lines
Diff to previous 1.120 (colored)

As is the case with IPV6_PKTINFO, IP_PKTINFO can be sent without EADDRINUSE
even if the UDP address:port in use is specified.

Revision 1.97.14.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:04 2017 UTC (5 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.97.14.1: +26 -9 lines
Diff to previous 1.97.14.1 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored)

update from HEAD

Revision 1.107.2.7 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:12 2017 UTC (5 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.107.2.6: +15 -5 lines
Diff to previous 1.107.2.6 (colored) to branchpoint 1.107 (colored) next main 1.108 (colored)

Sync with HEAD

Revision 1.120 / (download) - annotate - [select for diffs], Thu Aug 10 04:31:58 2017 UTC (5 years, 5 months ago) by ryo
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, nick-nhusb-base-20170825
Changes since 1.119: +11 -2 lines
Diff to previous 1.119 (colored)

Add support IP_PKTINFO for sendmsg(2).

The source address or output interface can be specified by adding IP_PKTINFO
to the control part of the message on a SOCK_DGRAM or SOCK_RAW socket.

Reviewed by ozaki-r@ and christos@. thanks.

Revision 1.114.2.4 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:29 2017 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.114.2.3: +2 -2 lines
Diff to previous 1.114.2.3 (colored) to branchpoint 1.114 (colored) next main 1.115 (colored)

Sync with HEAD

Revision 1.116.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:06 2017 UTC (5 years, 9 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.116: +5 -4 lines
Diff to previous 1.116 (colored) next main 1.117 (colored)

Sync with HEAD

Revision 1.119 / (download) - annotate - [select for diffs], Fri Mar 31 06:49:44 2017 UTC (5 years, 10 months ago) by ozaki-r
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.118: +2 -2 lines
Diff to previous 1.118 (colored)

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.114.2.3 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:50 2017 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.114.2.2: +4 -3 lines
Diff to previous 1.114.2.2 (colored) to branchpoint 1.114 (colored)

Sync with HEAD

Revision 1.118 / (download) - annotate - [select for diffs], Fri Mar 3 07:13:06 2017 UTC (5 years, 11 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320
Changes since 1.117: +2 -2 lines
Diff to previous 1.117 (colored)

Pass inpcb/in6pcb instead of socket to ip_output/ip6_output

- Passing a socket to Layer 3 is layer violation and even unnecessary
- The change makes codes of callers and IPsec a bit simple

Revision 1.117 / (download) - annotate - [select for diffs], Thu Feb 16 08:12:44 2017 UTC (5 years, 11 months ago) by knakahara
Branch: MAIN
Changes since 1.116: +3 -2 lines
Diff to previous 1.116 (colored)

add l2tp(4) L2TPv3 interface.

originally implemented by IIJ SEIL team.

Revision 1.107.2.6 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:59 2017 UTC (5 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.107.2.5: +2 -2 lines
Diff to previous 1.107.2.5 (colored) to branchpoint 1.107 (colored)

Sync with HEAD

Revision 1.114.2.2 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:51 2017 UTC (6 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.114.2.1: +2 -2 lines
Diff to previous 1.114.2.1 (colored) to branchpoint 1.114 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.116 / (download) - annotate - [select for diffs], Thu Dec 8 05:16:33 2016 UTC (6 years, 1 month ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, nick-nhusb-base-20170204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.115: +2 -2 lines
Diff to previous 1.115 (colored)

Add rtcache_unref to release points of rtentry stemming from rtcache

In the MP-safe world, a rtentry stemming from a rtcache can be freed at any
points. So we need to protect rtentries somehow say by reference couting or
passive references. Regardless of the method, we need to call some release
function of a rtentry after using it.

The change adds a new function rtcache_unref to release a rtentry. At this
point, this function does nothing because for now we don't add a reference
to a rtentry when we get one from a rtcache. We will add something useful
in a further commit.

This change is a part of changes for MP-safe routing table. It is separated
to avoid one big change that makes difficult to debug by bisecting.

Revision 1.107.2.5 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:09 2016 UTC (6 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.107.2.4: +4 -3 lines
Diff to previous 1.107.2.4 (colored) to branchpoint 1.107 (colored)

Sync with HEAD

Revision 1.114.2.1 / (download) - annotate - [select for diffs], Sat Aug 6 00:19:10 2016 UTC (6 years, 5 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.114: +4 -3 lines
Diff to previous 1.114 (colored)

Sync with HEAD

Revision 1.115 / (download) - annotate - [select for diffs], Mon Aug 1 10:22:53 2016 UTC (6 years, 6 months ago) by knakahara
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, pgoyette-localcount-20160806, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914
Changes since 1.114: +4 -3 lines
Diff to previous 1.114 (colored)

improve fast-forward performance when the number of flows exceeds IPFLOW_MAX.

In the fast-forward case, when the number of flows exceeds IPFLOW_MAX, the
performmance degraded to about 50% compared to the case less than IPFLOW_MAX
flows. This modification suppresses the degradation to 65%. Furthermore,
the modified kernel is about the same performance as the original kernel
when the number of flows is less than IPFLOW_MAX.

The original patch is implemented by ryo@n.o. Thanks.

Revision 1.107.2.4 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:22 2016 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.107.2.3: +2 -3 lines
Diff to previous 1.107.2.3 (colored) to branchpoint 1.107 (colored)

Sync with HEAD

Revision 1.114 / (download) - annotate - [select for diffs], Tue Jun 21 03:28:27 2016 UTC (6 years, 7 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160726, nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Changes since 1.113: +2 -2 lines
Diff to previous 1.113 (colored)

Replace ifp of ip_moptions and ip6_moptions with if_index

The motivation is the same as the mbuf's rcvif case; avoid having a pointer
of an ifnet object in ip_moptions and ip6_moptions, which is not MP-safe.

ip_moptions and ip6_moptions can be stored in a PCB for inet or inet6
that's life time is different from ifnet one and so an ifnet object can be
disappeared anytime we get it via them. Thus we need to look up an ifnet
object by if_index every time for safe.

Revision 1.113 / (download) - annotate - [select for diffs], Mon Jun 13 08:29:55 2016 UTC (6 years, 7 months ago) by knakahara
Branch: MAIN
Changes since 1.112: +1 -2 lines
Diff to previous 1.112 (colored)

make ipflow_reap() static function.

Revision 1.107.2.3 / (download) - annotate - [select for diffs], Sun May 29 08:44:38 2016 UTC (6 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.107.2.2: +3 -3 lines
Diff to previous 1.107.2.2 (colored) to branchpoint 1.107 (colored)

Sync with HEAD

Revision 1.112 / (download) - annotate - [select for diffs], Thu Apr 28 00:16:56 2016 UTC (6 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.111: +2 -2 lines
Diff to previous 1.111 (colored)

Constify rtentry of if_output

We no longer need to change rtentry below if_output.

The change makes it clear where rtentries are changed (or not)
and helps forthcoming locking (os psrefing) rtentries.

Revision 1.111 / (download) - annotate - [select for diffs], Tue Apr 26 09:30:01 2016 UTC (6 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.110: +2 -2 lines
Diff to previous 1.110 (colored)

Stop using rt_gwroute on packet sending paths

rt_gwroute of rtentry is a reference to a rtentry of the gateway
for a rtentry with RTF_GATEWAY. That was used by L2 (arp and ndp)
to look up L2 addresses. By separating L2 nexthop caches, we don't
need a route for the purpose and we can stop using rt_gwroute.
By doing so, we can reduce referencing and modifying rtentries,
which makes it easy to apply a lock (and/or psref) to the
routing table and rtentries.

One issue to do this is to keep RTF_REJECT behavior. It seems it
was broken when we moved rtalloc1 things from L2 output routines
(e.g., ether_output) to ip_hresolv_output, but (fortunately?)
it works unexpectedly. What we mistook are:
- RTF_REJECT was checked for any routes in L2 output routines,
  but in ip_hresolv_output it is checked only when the route
  is RTF_GATEWAY
- The RTF_REJECT check wasn't copied to IPv6 (nd6_output)

It seems that rt_gwroute checks hid the mistakes and it looked
work (unexpectedly) and removing rt_gwroute checks unveil the
issue. So we need to fix RTF_REJECT checks in ip_hresolv_output
and also add them to nd6_output.

One more point we have to care is returning an errno; we need
to mimic looutput behavior. Originally RTF_REJECT check was
done either in L2 output routines or in looutput. The latter is
applied when a reject route directs to a loopback interface.
However, now RTF_REJECT check is done before looutput so to keep
the original behavior we need to return an errno which looutput
chooses. Added rt_check_reject_route does such tweaks.

Revision 1.107.2.2 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:33 2016 UTC (6 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.107.2.1: +4 -3 lines
Diff to previous 1.107.2.1 (colored) to branchpoint 1.107 (colored)

Sync with HEAD

Revision 1.110 / (download) - annotate - [select for diffs], Wed Jan 20 22:12:22 2016 UTC (7 years ago) by riastradh
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319
Changes since 1.109: +3 -2 lines
Diff to previous 1.109 (colored)

Give proper prototype to ip_output.

Revision 1.109 / (download) - annotate - [select for diffs], Wed Jan 20 22:02:54 2016 UTC (7 years ago) by riastradh
Branch: MAIN
Changes since 1.108: +2 -2 lines
Diff to previous 1.108 (colored)

Give proper prototype to rip_output.

Revision 1.107.2.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:25 2015 UTC (7 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.107: +4 -1 lines
Diff to previous 1.107 (colored)

Sync with HEAD

Revision 1.108 / (download) - annotate - [select for diffs], Thu Jun 4 09:20:00 2015 UTC (7 years, 8 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606
Changes since 1.107: +4 -1 lines
Diff to previous 1.107 (colored)

Pull out route lookups from L2 output routines

Route lookups for routes of RTF_GATEWAY were done in L2 output
routines such as ether_output, but they should be done in L3
i.e., before L2 output routines. This change places the lookups
between L3 output routines (say ip_output) and the L2 output
routines.

The change is based on dyoung's patch submitted in the thread:
https://mail-index.netbsd.org/tech-net/2013/02/01/msg003847.html
You can find out detailed investigations by dyoung about the
issue in there.

Note that the change introduces a workaround for MPLS. ether_output
knew that it needs to fill the ethertype of a frame as MPLS,
based on a tag of an original route (rtentry), but now we don't
pass it to ehter_output. So we have to tell that in another way.
We use mtag to do so for now, which introduces some overhead.
We should fix it somehow in the future.

Discussed on tech-kern and tech-net.

Revision 1.107 / (download) - annotate - [select for diffs], Sat Oct 11 21:12:51 2014 UTC (8 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.106: +4 -1 lines
Diff to previous 1.106 (colored)

exposet multicast option functions which are used by the v6 code now.

Revision 1.97.14.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:35 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.97: +37 -22 lines
Diff to previous 1.97 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.99.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:25 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.99: +19 -21 lines
Diff to previous 1.99 (colored) next main 1.100 (colored)

Rebase.

Revision 1.106 / (download) - annotate - [select for diffs], Thu Jun 5 23:48:16 2014 UTC (8 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-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
Changes since 1.105: +1 -2 lines
Diff to previous 1.105 (colored)

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

Discussed on tech-net.

Revision 1.105 / (download) - annotate - [select for diffs], Fri May 30 02:17:01 2014 UTC (8 years, 8 months ago) by rmind
Branch: MAIN
Changes since 1.104: +3 -4 lines
Diff to previous 1.104 (colored)

Use __CTASSERT() in the header.

Revision 1.104 / (download) - annotate - [select for diffs], Thu May 29 23:02:48 2014 UTC (8 years, 8 months ago) by rmind
Branch: MAIN
Changes since 1.103: +13 -6 lines
Diff to previous 1.103 (colored)

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

Revision 1.103 / (download) - annotate - [select for diffs], Fri May 23 19:35:24 2014 UTC (8 years, 8 months ago) by rmind
Branch: MAIN
Changes since 1.102: +1 -2 lines
Diff to previous 1.102 (colored)

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

Revision 1.102 / (download) - annotate - [select for diffs], Thu May 22 23:42:53 2014 UTC (8 years, 8 months ago) by rmind
Branch: MAIN
Changes since 1.101: +1 -4 lines
Diff to previous 1.101 (colored)

- Make ip_setmoptions(), ip_getmoptions() and ip_pcbopts() static.
- ip_output: eliminate 7th variadic argument; IP_RETURNMTU is flag
  always used to store MTU size into struct inpcb::inp_errormtu.
- Clean up these routines: reduce #ifdefs, variable scopes, etc.

Revision 1.101 / (download) - annotate - [select for diffs], Thu May 22 22:01:12 2014 UTC (8 years, 8 months ago) by rmind
Branch: MAIN
Changes since 1.100: +7 -11 lines
Diff to previous 1.100 (colored)

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

No functional change.

Revision 1.97.4.1 / (download) - annotate - [select for diffs], Thu May 22 11:41:10 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.97: +19 -2 lines
Diff to previous 1.97 (colored) next main 1.98 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.97.18.3 / (download) - annotate - [select for diffs], Sun May 18 17:46:13 2014 UTC (8 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.97.18.2: +1 -1 lines
Diff to previous 1.97.18.2 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored)

sync with head

Revision 1.100 / (download) - annotate - [select for diffs], Sun May 18 14:46:16 2014 UTC (8 years, 8 months ago) by rmind
Branch: MAIN
CVS Tags: rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.99: +2 -1 lines
Diff to previous 1.99 (colored)

Add struct pr_usrreqs with a pr_generic function and prepare for the
dismantling of pr_usrreq in the protocols; no functional change intended.
PRU_ATTACH/PRU_DETACH changes will follow soon.

Bump for struct protosw.  Welcome to 6.99.62!

Revision 1.99 / (download) - annotate - [select for diffs], Wed Mar 19 10:54:20 2014 UTC (8 years, 10 months ago) by liamjfoy
Branch: MAIN
CVS Tags: yamt-pagecache-base9, riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Changes since 1.98: +19 -2 lines
Diff to previous 1.98 (colored)

Move ipflow into ip_var.h and fix confliction

Revision 1.98 / (download) - annotate - [select for diffs], Wed Mar 19 08:27:21 2014 UTC (8 years, 10 months ago) by liamjfoy
Branch: MAIN
Changes since 1.97: +2 -2 lines
Diff to previous 1.97 (colored)

Remove ipflow_prune and replace with ipflow_reap. ok rmind@

Revision 1.97.18.2 / (download) - annotate - [select for diffs], Wed Aug 28 15:21:48 2013 UTC (9 years, 5 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.97.18.1: +2 -1 lines
Diff to previous 1.97.18.1 (colored) to branchpoint 1.97 (colored)

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.97.18.1 / (download) - annotate - [select for diffs], Wed Jul 17 03:16:31 2013 UTC (9 years, 6 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.97: +8 -15 lines
Diff to previous 1.97 (colored)

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

Revision 1.96.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:55 2011 UTC (11 years, 7 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.96: +3 -1 lines
Diff to previous 1.96 (colored) next main 1.97 (colored)

Sync with HEAD.

Revision 1.91.6.2 / (download) - annotate - [select for diffs], Tue May 31 03:05:07 2011 UTC (11 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.91.6.1: +2 -0 lines
Diff to previous 1.91.6.1 (colored) to branchpoint 1.91 (colored) next main 1.92 (colored)

sync with head

Revision 1.97 / (download) - annotate - [select for diffs], Tue May 3 17:44:31 2011 UTC (11 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet
Changes since 1.96: +3 -1 lines
Diff to previous 1.96 (colored)

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

Contributed by Coyote Point Systems, Inc.

Revision 1.91.6.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:58 2011 UTC (11 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.91: +8 -25 lines
Diff to previous 1.91 (colored)

sync with head

Revision 1.91.4.3 / (download) - annotate - [select for diffs], Sat Nov 6 08:08:50 2010 UTC (12 years, 2 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.91.4.2: +2 -2 lines
Diff to previous 1.91.4.2 (colored) to branchpoint 1.91 (colored) next main 1.92 (colored)

Sync with HEAD.

Revision 1.96 / (download) - annotate - [select for diffs], Fri Nov 5 00:21:51 2010 UTC (12 years, 3 months ago) by rmind
Branch: MAIN
CVS Tags: uebayasi-xip-base4, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.95: +2 -2 lines
Diff to previous 1.95 (colored)

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

Revision 1.91.4.2 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:40 2010 UTC (12 years, 3 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.91.4.1: +1 -3 lines
Diff to previous 1.91.4.1 (colored) to branchpoint 1.91 (colored)

Sync with HEAD (-D20101022).

Revision 1.87.4.3 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:38 2010 UTC (12 years, 3 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.87.4.2: +2 -4 lines
Diff to previous 1.87.4.2 (colored) to branchpoint 1.87 (colored) next main 1.88 (colored)

sync with head

Revision 1.95 / (download) - annotate - [select for diffs], Wed Aug 25 00:05:14 2010 UTC (12 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, uebayasi-xip-base3
Changes since 1.94: +2 -4 lines
Diff to previous 1.94 (colored)

Use own IPv4 reassembly queue entry structure and leave struct ipqent only
for TCP.  Now both struct ipfr_qent, struct ipfr_queue and hashed fragment
queue are abstracted and no longer public.

Revision 1.91.4.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:47 2010 UTC (12 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.91: +7 -22 lines
Diff to previous 1.91 (colored)

Sync with HEAD.

Revision 1.87.4.2 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:56 2010 UTC (12 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.87.4.1: +7 -22 lines
Diff to previous 1.87.4.1 (colored) to branchpoint 1.87 (colored)

sync with head.

Revision 1.94 / (download) - annotate - [select for diffs], Mon Jul 19 19:16:45 2010 UTC (12 years, 6 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10, uebayasi-xip-base2
Changes since 1.93: +1 -5 lines
Diff to previous 1.93 (colored)

Revert previous change of making struct ipqent invisible to userland.

Revision 1.93 / (download) - annotate - [select for diffs], Mon Jul 19 14:09:45 2010 UTC (12 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.92: +6 -25 lines
Diff to previous 1.92 (colored)

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

OK matt@

Revision 1.92 / (download) - annotate - [select for diffs], Tue Jul 13 22:16:10 2010 UTC (12 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.91: +12 -4 lines
Diff to previous 1.91 (colored)

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

OK matt@

Revision 1.87.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:14:17 2009 UTC (13 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.87: +8 -6 lines
Diff to previous 1.87 (colored)

sync with head.

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Tue Mar 3 18:33:38 2009 UTC (13 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.90: +2 -1 lines
Diff to previous 1.90 (colored) next main 1.91 (colored)

Sync with HEAD.

Revision 1.91 / (download) - annotate - [select for diffs], Sun Feb 1 17:04:11 2009 UTC (14 years ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, uebayasi-xip-base1, uebayasi-xip-base, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.90: +2 -1 lines
Diff to previous 1.90 (colored)

Init ipflow pool dynamically instead of using a linkset.

Revision 1.84.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:32 2009 UTC (14 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.84.6.2: +1 -1 lines
Diff to previous 1.84.6.2 (colored) to branchpoint 1.84 (colored) next main 1.85 (colored)

Sync with HEAD.

Revision 1.87.10.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:46 2008 UTC (14 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.87: +7 -6 lines
Diff to previous 1.87 (colored) next main 1.88 (colored)

Sync with HEAD.

Revision 1.90 / (download) - annotate - [select for diffs], Sun Oct 12 11:15:54 2008 UTC (14 years, 3 months ago) by plunky
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap
Changes since 1.89: +2 -2 lines
Diff to previous 1.89 (colored)

update ip_pcbopts() to use sockopt(9) API.

cleans up function and one small fix is that we now stop copying user
options to the mbuf when the _EOL is given, previously this function
would continue to copy options.

Revision 1.84.6.2 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:58 2008 UTC (14 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.84.6.1: +5 -4 lines
Diff to previous 1.84.6.1 (colored) to branchpoint 1.84 (colored)

Sync with HEAD.

Revision 1.87.6.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:37:01 2008 UTC (14 years, 4 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.87: +6 -5 lines
Diff to previous 1.87 (colored) next main 1.88 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.89 / (download) - annotate - [select for diffs], Sat Aug 16 21:51:44 2008 UTC (14 years, 5 months ago) by plunky
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Changes since 1.88: +2 -2 lines
Diff to previous 1.88 (colored)

constify sockopt in the PRCO_SETOPT path

Revision 1.88 / (download) - annotate - [select for diffs], Wed Aug 6 15:01:23 2008 UTC (14 years, 5 months ago) by plunky
Branch: MAIN
Changes since 1.87: +6 -5 lines
Diff to previous 1.87 (colored)

Convert socket options code to use a sockopt structure
instead of laying everything into an mbuf.

approved by core

Revision 1.84.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:24 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.84: +38 -56 lines
Diff to previous 1.84 (colored)

Sync with HEAD.

Revision 1.87 / (download) - annotate - [select for diffs], Sat Apr 12 05:58:22 2008 UTC (14 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp, wrstuden-revivesa, haad-dm
Changes since 1.86: +2 -8 lines
Diff to previous 1.86 (colored)

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

Revision 1.86 / (download) - annotate - [select for diffs], Wed Apr 9 05:14:20 2008 UTC (14 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.85: +2 -18 lines
Diff to previous 1.85 (colored)

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

Revision 1.85 / (download) - annotate - [select for diffs], Mon Apr 7 06:31:28 2008 UTC (14 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.84: +38 -34 lines
Diff to previous 1.84 (colored)

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

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

Revision 1.79.10.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:06 2008 UTC (14 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.79.10.2: +2 -41 lines
Diff to previous 1.79.10.2 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored)

sync with HEAD

Revision 1.80.4.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:08 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.80: +3 -37 lines
Diff to previous 1.80 (colored) next main 1.81 (colored)

Sync with HEAD.

Revision 1.72.2.6 / (download) - annotate - [select for diffs], Mon Feb 11 15:00:05 2008 UTC (14 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.72.2.5: +2 -41 lines
Diff to previous 1.72.2.5 (colored) to branchpoint 1.72 (colored) next main 1.73 (colored)

sync with head.

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

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

Revision 1.72.2.5 / (download) - annotate - [select for diffs], Mon Jan 21 09:47:17 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.72.2.4: +8 -2 lines
Diff to previous 1.72.2.4 (colored) to branchpoint 1.72 (colored)

sync with head

Revision 1.79.10.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:57:29 2008 UTC (15 years ago) by matt
Branch: matt-armv6
Changes since 1.79.10.1: +8 -2 lines
Diff to previous 1.79.10.1 (colored) to branchpoint 1.79 (colored)

sync with HEAD

Revision 1.80.10.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:57:23 2008 UTC (15 years, 1 month ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.80: +8 -2 lines
Diff to previous 1.80 (colored) next main 1.81 (colored)

Sync with HEAD

Revision 1.80.6.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:40 2007 UTC (15 years, 1 month ago) by ad
Branch: vmlocking2
Changes since 1.80: +8 -2 lines
Diff to previous 1.80 (colored) next main 1.81 (colored)

Sync with head.

Revision 1.83 / (download) - annotate - [select for diffs], Tue Dec 25 18:33:47 2007 UTC (15 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.82: +2 -2 lines
Diff to previous 1.82 (colored)

Convert many of the uses of __attribute__ to equivalent
__packed, __unused and __dead macros from cdefs.h

Revision 1.82 / (download) - annotate - [select for diffs], Sat Dec 22 16:04:45 2007 UTC (15 years, 1 month ago) by matt
Branch: MAIN
Changes since 1.81: +6 -1 lines
Diff to previous 1.81 (colored)

Make sure ip_newid etal doesn't return an ip_id of 0.

Revision 1.81 / (download) - annotate - [select for diffs], Sat Dec 22 15:40:02 2007 UTC (15 years, 1 month ago) by matt
Branch: MAIN
Changes since 1.80: +2 -1 lines
Diff to previous 1.80 (colored)

Add ipq_tos to struct ipqe.  (Doesn't increase size since the last member
was a u_int16_t).

Revision 1.79.10.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:33:51 2007 UTC (15 years, 2 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.79: +1 -2 lines
Diff to previous 1.79 (colored)

sync with HEAD

Revision 1.72.2.4 / (download) - annotate - [select for diffs], Sat Oct 27 11:36:09 2007 UTC (15 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.72.2.3: +1 -2 lines
Diff to previous 1.72.2.3 (colored) to branchpoint 1.72 (colored)

sync with head.

Revision 1.78.4.2 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:51 2007 UTC (15 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.78.4.1: +1 -2 lines
Diff to previous 1.78.4.1 (colored) to branchpoint 1.78 (colored) next main 1.79 (colored)

Sync with head.

Revision 1.79.12.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:29:03 2007 UTC (15 years, 4 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.79: +1 -2 lines
Diff to previous 1.79 (colored) next main 1.80 (colored)

sync with head.

Revision 1.79.8.1 / (download) - annotate - [select for diffs], Thu Oct 4 15:44:53 2007 UTC (15 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.79: +1 -2 lines
Diff to previous 1.79 (colored) next main 1.80 (colored)

Sync with HEAD.

Revision 1.80 / (download) - annotate - [select for diffs], Tue Oct 2 20:35:04 2007 UTC (15 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs, bouyer-xeni386
Changes since 1.79: +1 -2 lines
Diff to previous 1.79 (colored)

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

Revision 1.72.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:42:59 2007 UTC (15 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.72.2.2: +4 -3 lines
Diff to previous 1.72.2.2 (colored) to branchpoint 1.72 (colored)

sync with head.

Revision 1.78.6.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:11:25 2007 UTC (15 years, 6 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.78: +4 -3 lines
Diff to previous 1.78 (colored) next main 1.79 (colored)

Sync with head.

Revision 1.77.20.2 / (download) - annotate - [select for diffs], Sun Apr 15 16:04:00 2007 UTC (15 years, 9 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.77.20.1: +4 -3 lines
Diff to previous 1.77.20.1 (colored) to branchpoint 1.77 (colored) next main 1.78 (colored)

sync with head.

Revision 1.78.4.1 / (download) - annotate - [select for diffs], Tue Apr 10 13:26:50 2007 UTC (15 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.78: +4 -3 lines
Diff to previous 1.78 (colored)

Sync with head.

Revision 1.78.8.1 / (download) - annotate - [select for diffs], Thu Mar 29 19:28:00 2007 UTC (15 years, 10 months ago) by reinoud
Branch: reinoud-bufcleanup
Changes since 1.78: +4 -3 lines
Diff to previous 1.78 (colored) next main 1.79 (colored)

Pullup to -current

Revision 1.79 / (download) - annotate - [select for diffs], Sun Mar 25 20:12:20 2007 UTC (15 years, 10 months ago) by liamjfoy
Branch: MAIN
CVS Tags: yamt-x86pmap-base, yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-armv6, jmcneill-pm
Changes since 1.78: +4 -3 lines
Diff to previous 1.78 (colored)

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

Revision 1.77.20.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:56 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.77: +2 -2 lines
Diff to previous 1.77 (colored)

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

Revision 1.72.2.2 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:45 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.72.2.1: +2 -2 lines
Diff to previous 1.72.2.1 (colored) to branchpoint 1.72 (colored)

sync with head.

Revision 1.78 / (download) - annotate - [select for diffs], Sat Feb 17 22:34:11 2007 UTC (15 years, 11 months ago) by dyoung
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, reinoud-bufcleanup, mjf-ufs-trans
Changes since 1.77: +2 -2 lines
Diff to previous 1.77 (colored)

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

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

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

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

Constify:

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

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

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

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

Revision 1.76.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:58:47 2006 UTC (16 years, 4 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored) next main 1.77 (colored)

sync with head

Revision 1.72.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:11:01 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.72: +3 -5 lines
Diff to previous 1.72 (colored)

sync with head.

Revision 1.76.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:40:10 2006 UTC (16 years, 9 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored) next main 1.77 (colored)

Sync with head.

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:23 2006 UTC (16 years, 11 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored) next main 1.77 (colored)

sync with head.

Revision 1.77 / (download) - annotate - [select for diffs], Thu Feb 16 20:17:20 2006 UTC (16 years, 11 months ago) by perry
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, post-newlock2-merge, peter-altq-base, peter-altq, newlock2-nbase, newlock2-base, newlock2, 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, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-idlelwp
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored)

Change "inline" back to "__inline" in .h files -- C99 is still too
new, and some apps compile things in C89 mode. C89 keywords stay.

As per core@.

Revision 1.76 / (download) - annotate - [select for diffs], Sat Dec 24 20:45:09 2005 UTC (17 years, 1 month ago) by perry
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.75: +4 -4 lines
Diff to previous 1.75 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:57 2005 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored)

merge ktrace-lwp.

Revision 1.56.2.7 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:24 2005 UTC (17 years, 1 month ago) by christos
Branch: ktrace-lwp
Changes since 1.56.2.6: +2 -4 lines
Diff to previous 1.56.2.6 (colored) next main 1.57 (colored)

Sync with head.

Revision 1.74 / (download) - annotate - [select for diffs], Sat Dec 10 23:36:23 2005 UTC (17 years, 1 month ago) by elad
Branch: MAIN
CVS Tags: ktrace-lwp-base
Changes since 1.73: +2 -2 lines
Diff to previous 1.73 (colored)

Multiple inclusion protection, as suggested by christos@ on tech-kern@
few days ago.

Revision 1.72.8.1 / (download) - annotate - [select for diffs], Tue Nov 29 21:23:33 2005 UTC (17 years, 2 months ago) by yamt
Branch: yamt-readahead
Changes since 1.72: +1 -3 lines
Diff to previous 1.72 (colored) next main 1.73 (colored)

sync with head.

Revision 1.73 / (download) - annotate - [select for diffs], Tue Nov 22 17:52:38 2005 UTC (17 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-readahead-base3
Changes since 1.72: +0 -2 lines
Diff to previous 1.72 (colored)

revert rev.1.72 as it isn't necessary.

Revision 1.56.2.6 / (download) - annotate - [select for diffs], Thu Nov 10 14:11:07 2005 UTC (17 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.5: +26 -5 lines
Diff to previous 1.56.2.5 (colored)

Sync with HEAD. Here we go again...

Revision 1.72 / (download) - annotate - [select for diffs], Fri May 6 04:28:37 2005 UTC (17 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base2, yamt-readahead-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-readahead, yamt-lazymbuf
Changes since 1.71: +3 -1 lines
Diff to previous 1.71 (colored)

Add #include <sys/protosw.h> when _KERNEL

Revision 1.69.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:33 2005 UTC (17 years, 9 months ago) by kent
Branch: kent-audio2
Changes since 1.69: +24 -5 lines
Diff to previous 1.69 (colored) next main 1.70 (colored)

sync with -current

Revision 1.71 / (download) - annotate - [select for diffs], Fri Apr 29 10:39:09 2005 UTC (17 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.70: +1 -2 lines
Diff to previous 1.70 (colored)

move decl of inetsw to its own header to avoid array of incomplete type.
found by gcc4.  reported by Adam Ciarcinski.

Revision 1.69.8.1 / (download) - annotate - [select for diffs], Wed Apr 13 21:34:57 2005 UTC (17 years, 9 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.69: +24 -4 lines
Diff to previous 1.69 (colored) next main 1.70 (colored)

Pull up revision 1.70 (requested by yamt in ticket #145):
when doing TSO, avoid to use duplicated ip_id heavily.
XXX ip_randomid

Revision 1.70 / (download) - annotate - [select for diffs], Thu Apr 7 12:22:47 2005 UTC (17 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.69: +24 -4 lines
Diff to previous 1.69 (colored)

when doing TSO, avoid to use duplicated ip_id heavily.
XXX ip_randomid

Revision 1.56.2.5 / (download) - annotate - [select for diffs], Sat Dec 18 09:33:05 2004 UTC (18 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.4: +2 -1 lines
Diff to previous 1.56.2.4 (colored)

Sync with HEAD.

Revision 1.69 / (download) - annotate - [select for diffs], Wed Dec 15 04:25:19 2004 UTC (18 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, kent-audio1-beforemerge
Branch point for: netbsd-3, kent-audio2
Changes since 1.68: +2 -1 lines
Diff to previous 1.68 (colored)

Don't perform checksums on loopback interfaces.  They can be reenabled with
the net.inet.*.do_loopback_cksum sysctl.

Approved by: groo

Revision 1.56.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:37:12 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.3: +1 -1 lines
Diff to previous 1.56.2.3 (colored)

Fix the sync with head I botched.

Revision 1.56.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:54:54 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.2: +2 -2 lines
Diff to previous 1.56.2.2 (colored)

Sync with HEAD.

Revision 1.56.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:54:43 2004 UTC (18 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.1: +59 -42 lines
Diff to previous 1.56.2.1 (colored)

Sync with HEAD

Revision 1.68 / (download) - annotate - [select for diffs], Thu Apr 22 01:01:41 2004 UTC (18 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1, BEFORE-IPF413
Changes since 1.67: +4 -1 lines
Diff to previous 1.67 (colored)

Constify protosw arrays.  This can reduce the kernel .data section by
over 4K (if all the network protocols) are loaded.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Apr 21 17:49:46 2004 UTC (18 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.66: +36 -36 lines
Diff to previous 1.66 (colored)

no space between function name and paren: foo (blah) -> foo(blah)

Revision 1.66 / (download) - annotate - [select for diffs], Sun Apr 18 21:00:36 2004 UTC (18 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.65: +38 -38 lines
Diff to previous 1.65 (colored)

De __P()

Revision 1.65 / (download) - annotate - [select for diffs], Fri Dec 12 21:17:59 2003 UTC (19 years, 1 month ago) by scw
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, BEFORE-IPF411
Changes since 1.64: +2 -1 lines
Diff to previous 1.64 (colored)

Make fast-ipsec and ipflow (Fast Forwarding) interoperate.

The idea is that we only clear M_CANFASTFWD if an SPD exists
for the packet. Otherwise, it's safe to add a fast-forward
cache entry for the route.

To make this work properly, we invalidate the entire ipflow
cache if a fast-ipsec key is added or changed.

Revision 1.64 / (download) - annotate - [select for diffs], Mon Dec 8 02:23:27 2003 UTC (19 years, 1 month ago) by jonathan
Branch: MAIN
Changes since 1.63: +2 -1 lines
Diff to previous 1.63 (colored)

Add new field ipq_nfrags to struct ipq. Maintain count of fragments
(fragments, not fragmented packets) in each queue entry.
Use ipq_nfrags to maintain a count of total fragments in reassembly queue.

Revision 1.63 / (download) - annotate - [select for diffs], Sat Dec 6 23:56:10 2003 UTC (19 years, 2 months ago) by jonathan
Branch: MAIN
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored)

Replace the single global IP reassembly list/listhead, with a
hashtable of list-heads. Independently re-invented, then reworked to
match similar code in FreeBSD.

Revision 1.62 / (download) - annotate - [select for diffs], Wed Nov 26 21:15:47 2003 UTC (19 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.61: +1 -5 lines
Diff to previous 1.61 (colored)

define RANDOM_IP_ID by default (unifdef -DRANDOM_IP_ID).
one use remains in sys/netipsec, which is kept for freebsd source code compat.

Revision 1.61 / (download) - annotate - [select for diffs], Tue Nov 25 14:44:13 2003 UTC (19 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

knf

Revision 1.60 / (download) - annotate - [select for diffs], Mon Nov 17 21:34:27 2003 UTC (19 years, 2 months ago) by jonathan
Branch: MAIN
Changes since 1.59: +19 -1 lines
Diff to previous 1.59 (colored)

Revert the (default) ip_id algorithm to the pre-randomid algorithm,
due to demonstrated low-period repeated IDs from the randomized IP_id
code.  Consensus is that the low-period repetition (much less than
2^15) is not suitable for general-purpose use.

Allocators of new IPv4 IDs should now call the function ip_newid().
Randomized IP_ids is now a config-time option, "options RANDOM_IP_ID".
ip_newid() can use ip_random-id()_IP_ID if and only if configured
with RANDOM_IP_ID. A sysctl knob should be  provided.

This API may be reworked in the near future to support linear ip_id
counters per (src,dst) IP-address pair.

Revision 1.59 / (download) - annotate - [select for diffs], Sat Sep 6 03:36:31 2003 UTC (19 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.58: +3 -2 lines
Diff to previous 1.58 (colored)

randomize IPv4/v6 fragment ID and IPv6 flowlabel.  avoids predictability
of these fields.  ip_id.c is from openbsd.  ip6_id.c is adapted by kame.

Revision 1.58 / (download) - annotate - [select for diffs], Tue Aug 19 01:20:03 2003 UTC (19 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.57: +2 -1 lines
Diff to previous 1.57 (colored)

make ip_fragment public (it is for coming PF integration)

Revision 1.57 / (download) - annotate - [select for diffs], Thu Aug 7 16:33:14 2003 UTC (19 years, 6 months ago) by agc
Branch: MAIN
Changes since 1.56: +2 -6 lines
Diff to previous 1.56 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.56.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:27:00 2003 UTC (19 years, 7 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.56 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:57 2003 UTC (19 years, 7 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.55: +1 -1 lines
Diff to previous 1.55 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.55 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:09 2003 UTC (19 years, 7 months ago) by darrenr
Branch: MAIN
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.54 / (download) - annotate - [select for diffs], Mon Jun 23 13:58:06 2003 UTC (19 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.53: +7 -4 lines
Diff to previous 1.53 (colored)

Protect opt_*.h includes by _KERNEL_OPT

Revision 1.53 / (download) - annotate - [select for diffs], Mon Jun 23 11:02:15 2003 UTC (19 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.52: +4 -1 lines
Diff to previous 1.52 (colored)

Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Jun 15 02:49:33 2003 UTC (19 years, 7 months ago) by matt
Branch: MAIN
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored)

Change the way multicasts are kept.  They now use a hash table in the same
manner as the ifaddr hash table.  By doing this, the mkludge code can go
away.  At the same time, keep track of what pcbs are using what ifaddr and
when an address is deleted from an interface, notify/abort all sockets
that have that address as a source.  Switch IGMP and multicasts to use pools
for allocation.  Fix a number of potential problems in the igmp code where
allocation failures could cause a trap/panic.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Feb 26 06:31:15 2003 UTC (19 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.50: +5 -1 lines
Diff to previous 1.50 (colored)

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.50 / (download) - annotate - [select for diffs], Tue Jan 28 22:35:20 2003 UTC (20 years ago) by wiz
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

success, not sucess. Noted by mjl.

Revision 1.45.4.4 / (download) - annotate - [select for diffs], Thu Oct 10 18:44:05 2002 UTC (20 years, 3 months ago) by jdolecek
Branch: kqueue
Changes since 1.45.4.3: +2 -2 lines
Diff to previous 1.45.4.3 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.45.2.4 / (download) - annotate - [select for diffs], Tue Sep 17 21:23:06 2002 UTC (20 years, 4 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.45.2.3: +1 -1 lines
Diff to previous 1.45.2.3 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored)

Catch up to -current.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Sep 11 02:41:20 2002 UTC (20 years, 4 months ago) by itojun
Branch: 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
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

correct signedness mixup in pointer passing.  sync w/kame

Revision 1.45.4.3 / (download) - annotate - [select for diffs], Fri Sep 6 08:49:17 2002 UTC (20 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.45.4.2: +7 -1 lines
Diff to previous 1.45.4.2 (colored) to branchpoint 1.45 (colored)

sync kqueue branch with HEAD

Revision 1.45.2.3 / (download) - annotate - [select for diffs], Thu Aug 1 02:46:48 2002 UTC (20 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.45.2.2: +7 -1 lines
Diff to previous 1.45.2.2 (colored) to branchpoint 1.45 (colored)

Catch up to -current.

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Mon Jul 15 10:36:59 2002 UTC (20 years, 6 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.47: +7 -1 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

catch up with -current.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Jun 30 22:40:35 2002 UTC (20 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.47: +7 -1 lines
Diff to previous 1.47 (colored)

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.45.4.2 / (download) - annotate - [select for diffs], Sun Jun 23 17:50:58 2002 UTC (20 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.45.4.1: +6 -5 lines
Diff to previous 1.45.4.1 (colored) to branchpoint 1.45 (colored)

catch up with -current on kqueue branch

Revision 1.45.2.2 / (download) - annotate - [select for diffs], Thu Jun 20 03:48:53 2002 UTC (20 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.45.2.1: +6 -5 lines
Diff to previous 1.45.2.1 (colored) to branchpoint 1.45 (colored)

Catch up to -current.

Revision 1.47 / (download) - annotate - [select for diffs], Tue May 7 02:59:38 2002 UTC (20 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Branch point for: gehenna-devsw
Changes since 1.46: +6 -5 lines
Diff to previous 1.46 (colored)

Change struct ipqe to use TAILQ's instead of LIST's (primarily for TCP's
benefit currently).  Rework tcp_reass code to optimize the 4 most likely causes
of out-of-order packets: first OoO pkt, next OoO pkt in seq, OoO pkt is part
of new chuck of OoO packets, and the OoO pkt fills the first hole.  Add evcnts
to instrument tcp_reass (enabled by the options TCP_REASS_COUNTERS).  This is
part 1/2 of tcp_reass changes.

Revision 1.45.4.1 / (download) - annotate - [select for diffs], Thu Jan 10 20:02:57 2002 UTC (21 years ago) by thorpej
Branch: kqueue
Changes since 1.45: +2 -1 lines
Diff to previous 1.45 (colored)

Sync kqueue branch with -current.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Tue Jan 8 00:34:10 2002 UTC (21 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.45: +2 -1 lines
Diff to previous 1.45 (colored)

Catch up to -current.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Dec 21 02:51:47 2001 UTC (21 years, 1 month ago) by itojun
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Changes since 1.45: +2 -1 lines
Diff to previous 1.45 (colored)

have rip_ctlinput to notify routing changes to raw sockets
(protosw change to be done).  sync with kame

Revision 1.38.2.3 / (download) - annotate - [select for diffs], Mon Mar 12 13:31:50 2001 UTC (21 years, 10 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.38.2.2: +2 -1 lines
Diff to previous 1.38.2.2 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored)

Sync with HEAD.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Mar 2 04:26:10 2001 UTC (21 years, 11 months ago) by itojun
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: nathanw_sa, kqueue
Changes since 1.44: +2 -1 lines
Diff to previous 1.44 (colored)

increase ipstat.ips_badaddr if the packet fails to pass address checks.

Revision 1.38.2.2 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:56 2001 UTC (22 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.38.2.1: +2 -1 lines
Diff to previous 1.38.2.1 (colored) to branchpoint 1.38 (colored)

Sync with head (for UBC+NFS fixes, mostly).

Revision 1.44 / (download) - annotate - [select for diffs], Sat Jan 13 07:19:33 2001 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.43: +2 -1 lines
Diff to previous 1.43 (colored)

allow IP_MULTICAST_IF and IP_ADD/DROP_MEMBERSHIP to specify interface
by interface index.  if the interface address specified is in 0.0.0.0/8
it will be considered as interface index in network byteorder.

getsockopt(IP_MULTICAST_IF) preserves old behavior if
setsockopt(IP_MULTICAST_IF) was done with interface address, and
returns interface index if setsockopt(IP_MULTICAST_IF) was done with
interface index (again using the form in 0.0.0.0/8).

Suggested by Dave Thaler, based on RIPv2 MIB spec (RFC1724 section 3.3).

http://mail-index.netbsd.org/tech-net/2001/01/13/0003.html

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:10:34 2000 UTC (22 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.38: +34 -33 lines
Diff to previous 1.38 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.43 / (download) - annotate - [select for diffs], Tue Oct 17 02:57:01 2000 UTC (22 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored)

Add an IP_MTUDISC flag to the flags that can be passed to
ip_output().  This flag, if set, causes ip_output() to set
DF in the IP header if the MTU in the route is not locked.

This allows a bunch of redundant code, which I was never
really all that happy about adding in the first place, to
be eliminated.

Inspired by a similar change made by provos@openbsd.org when
he integrated NetBSD's Path MTU Discovery code into OpenBSD.

Revision 1.41.4.1 / (download) - annotate - [select for diffs], Sat Aug 26 16:38:33 2000 UTC (22 years, 5 months ago) by tron
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.41: +3 -1 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

Pull up from current (approved by thorpej):

Add new sysctl variables "net.inet.ip.lowportmin" and
"net.inet.ip.lowportmax" which can be used to the set minimum
and maximum port number assigned to sockets using
IP_PORTRANGE_LOW.

syssrc/sys/netinet/in.h			1.49 -> 1.50
syssrc/sys/netinet/in_pcb.c		1.66 -> 1.67
syssrc/sys/netinet/ip_input.c		1.116 -> 1.117
syssrc/sys/netinet/ip_var.h		1.41 -> 1.42

Revision 1.42 / (download) - annotate - [select for diffs], Fri Aug 25 13:35:06 2000 UTC (22 years, 5 months ago) by tron
Branch: MAIN
Changes since 1.41: +3 -1 lines
Diff to previous 1.41 (colored)

Add new sysctl variables "net.inet.ip.lowportmin" and
"net.inet.ip.lowportmax" which can be used to the set minimum
and maximum port number assigned to sockets using
IP_PORTRANGE_LOW.

Revision 1.41 / (download) - annotate - [select for diffs], Thu Mar 30 02:37:40 2000 UTC (22 years, 10 months ago) by simonb
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.40: +1 -3 lines
Diff to previous 1.40 (colored)

Delete redundant decl of ip_gif_ttl - it's in <netinet/in_gif.h>.
Delete redundant decl of ip_mforward() - it's in <netinet/ip_mroute.h>.

Revision 1.38.8.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:36:18 1999 UTC (23 years, 1 month ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.38: +31 -31 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

Pull up to last week's -current.

Revision 1.36.10.3 / (download) - annotate - [select for diffs], Tue Nov 30 13:35:34 1999 UTC (23 years, 2 months ago) by itojun
Branch: kame
CVS Tags: kame_141_19991130
Changes since 1.36.10.2: +1 -1 lines
Diff to previous 1.36.10.2 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

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.40 / (download) - annotate - [select for diffs], Sat Nov 20 00:38:00 1999 UTC (23 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, chs-ubc2-newbase
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

Add the `packed' attribute to structures which describe wire protocol data.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Nov 19 10:41:42 1999 UTC (23 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.38: +30 -30 lines
Diff to previous 1.38 (colored)

Update protocoles and interfaces stats counters to 64bit.
RTM_IFINFO is now 0xf, 0xe is RTM_OIFINFO which returns the old (if_msghdr14)
struct with 32bit counters (binary compat, conditioned on COMPAT_14).
Same for sysctl: node 3 is renamed NET_RT_OIFLIST, NET_RT_IFLIST is now node 4.
Change rt_msg1() to add an mbuf to the mbuf chain instead of just panic()
when the message is larger than MHLEN.

Revision 1.36.8.2 / (download) - annotate - [select for diffs], Mon Aug 2 22:34:59 1999 UTC (23 years, 6 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.36.8.1: +2 -2 lines
Diff to previous 1.36.8.1 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

Update from trunk.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Jul 6 12:23:21 1999 UTC (23 years, 7 months ago) by itojun
Branch: MAIN
CVS Tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

sync with KAME/NetBSD 1.4, SNAP kit 19990705.
key changes are:
- icmp6 redirect fix (dst check)
- revised ip6 multicast check for loopback i/f
- several RCS ID cleanups

Revision 1.36.10.2 / (download) - annotate - [select for diffs], Tue Jul 6 11:02:47 1999 UTC (23 years, 7 months ago) by itojun
Branch: kame
CVS Tags: kame_14_19990705
Changes since 1.36.10.1: +2 -31 lines
Diff to previous 1.36.10.1 (colored) to branchpoint 1.36 (colored)

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.8.1 / (download) - annotate - [select for diffs], Thu Jul 1 23:47:02 1999 UTC (23 years, 7 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.36: +3 -1 lines
Diff to previous 1.36 (colored)

Sync w/ -current.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jul 1 08:12:51 1999 UTC (23 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.36: +3 -1 lines
Diff to previous 1.36 (colored)

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.10.1 / (download) - annotate - [select for diffs], Mon Jun 28 06:37:01 1999 UTC (23 years, 7 months ago) by itojun
Branch: kame
CVS Tags: kame_14_19990628
Changes since 1.36: +32 -1 lines
Diff to previous 1.36 (colored)

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) - annotate - [select for diffs], Thu Oct 8 01:41:46 1998 UTC (24 years, 4 months ago) by thorpej
Branch: 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, kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Branch point for: kame, chs-ubc2
Changes since 1.35: +2 -1 lines
Diff to previous 1.35 (colored)

Use the pool allocator for ipflow entries.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Oct 8 01:19:26 1998 UTC (24 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.34: +2 -1 lines
Diff to previous 1.34 (colored)

Use the pool allocator for ipqent structures.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jun 2 15:48:03 1998 UTC (24 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.33: +4 -3 lines
Diff to previous 1.33 (colored)

In addition to the IP flow hash table, put the flows on a list.  The table
is used for fast lookup, the list for traversal of all flows.  Also, use
PRT timers.

Revision 1.33 / (download) - annotate - [select for diffs], Mon May 11 23:13:40 1998 UTC (24 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.32: +0 -1 lines
Diff to previous 1.32 (colored)

Back out previous.  This problem was already fixed in a different way.

Revision 1.32 / (download) - annotate - [select for diffs], Mon May 11 23:09:35 1998 UTC (24 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored)

Let usr.sbin/tcpdump build again.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Sat May 9 03:33:00 1998 UTC (24 years, 9 months ago) by mycroft
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002
Changes since 1.22: +4 -1 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Pull up patch from kml.

Revision 1.31 / (download) - annotate - [select for diffs], Mon May 4 19:24:53 1998 UTC (24 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.30: +7 -1 lines
Diff to previous 1.30 (colored)

Default IP flow to being enabled.  Add a sysctl to control the maximum
number of flows (net.inet.ip.maxflows).  If set to 0, will disable fast
path forwarding.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Apr 30 17:47:26 1998 UTC (24 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.29: +2 -1 lines
Diff to previous 1.29 (colored)

Need <net/route.h>

Revision 1.29 / (download) - annotate - [select for diffs], Wed Apr 29 21:37:54 1998 UTC (24 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.28: +22 -5 lines
Diff to previous 1.28 (colored)

Add support for "fast" forwarding.  Add hooks in if_ethersubr.c and
if_fddisubr.c to fastpath IP forwarding.  If ip_forward successfully
forwards a packet, it will create a cache (ipflow) entry.  ether_input
and fddi_input will first call ipflow_fastforward with the received
packet and if the packet passes enough tests, it will be forwarded (the
ttl is decremented and the cksum is adjusted incrementally).

Revision 1.28 / (download) - annotate - [select for diffs], Wed Apr 29 20:43:29 1998 UTC (24 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.27: +8 -1 lines
Diff to previous 1.27 (colored)

New TCP reassembly code.  The new code reduces the memory needed by
out-of-order packets and builds the infrastructure needed for sending
SACK blocks (to be added shortly).

Revision 1.27 / (download) - annotate - [select for diffs], Wed Apr 29 03:44:12 1998 UTC (24 years, 9 months ago) by kml
Branch: MAIN
Changes since 1.26: +8 -7 lines
Diff to previous 1.26 (colored)

Add support for deletion of routes added by path MTU discovery;
uses new generic route timeout code.  Add sysctl for timeout period.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Mar 24 03:10:02 1998 UTC (24 years, 10 months ago) by kml
Branch: MAIN
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

Ensure that we take the IP option length into account when we calculate
the effective maximum send size for TCP.  ip_optlen() and tcp_optlen()
should probably be inlined for efficiency.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Feb 10 01:27:05 1998 UTC (24 years, 11 months ago) by perry
Branch: MAIN
Changes since 1.24: +6 -1 lines
Diff to previous 1.24 (colored)

add/cleanup multiple inclusion protection.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jan 5 10:31:59 1998 UTC (25 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Finishing merging 4.4BSD-Lite2 netinet.  At this point, the only changes
left were SCCS IDs and Copyright dates.

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Mon Jan 5 09:56:04 1998 UTC (25 years, 1 month ago) by thorpej
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +2 -2 lines
Diff to previous 1.1.1.2 (colored)

Import sys/netinet from 4.4BSD-Lite2 for reference purposes.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Mon Jan 5 09:54:15 1998 UTC (25 years, 1 month ago) by thorpej
Branch: WFJ-920714, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1.1.1: +77 -25 lines
Diff to previous 1.1.1.1 (colored)

Import sys/netinet from 4.4BSD-Lite for reference purposes.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jan 5 09:52:05 1998 UTC (25 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.22: +3 -1 lines
Diff to previous 1.22 (colored)

enhance ephemeral port allocation code:
* support sysctl net.inet.ip.anonportmin (lowest ephemeral port)
  and net.inet.ip.anonportmax (highest ephemeral port).
  these can't be set to >65535, < IPPORT_RESERVED (unless IPNOPRIVPORTS
  is defined), and anonportmin has to be < anonportmax.
* use a cleaner way of only cycling through the available set once;
  this will be useful for when a random allocation scheme is used
* define IPPORT_ANON{MIN,MAX} instead of IPPORT_USER{LOW,HIGH}

Revision 1.22 / (download) - annotate - [select for diffs], Sat Oct 18 21:18:32 1997 UTC (25 years, 3 months ago) by kml
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Branch point for: netbsd-1-3
Changes since 1.21: +4 -3 lines
Diff to previous 1.21 (colored)

change sysctl net.inet.icmp.mtudisc to net.inet.ip.mtudisc

Revision 1.20.4.1 / (download) - annotate - [select for diffs], Tue Oct 14 10:29:32 1997 UTC (25 years, 3 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Oct 14 08:38:01 1997 UTC (25 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: marc-pcmcia-base
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

Define IP_RETURNMTU.  (Matt missed this part of his diff, I guess :-)

Revision 1.20 / (download) - annotate - [select for diffs], Tue Jun 24 02:26:05 1997 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp, bouyer-scsipi
Branch point for: marc-pcmcia
Changes since 1.19: +4 -8 lines
Diff to previous 1.19 (colored)

Eliminate use of dtom() from the network code, allowing more flexible
use of mbuf external storage and increasing performance (by eliminating
an m_pullup() for clusters in the IP reassembly code).

Changes from Koji Imada <koji@math.human.nagoya-u.ac.jp>, in PR #3628
and #3480, with ever-so-slight integration changes by me.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jan 11 05:21:12 1997 UTC (26 years ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.18: +5 -1 lines
Diff to previous 1.18 (colored)

Implement the IP_RECVIF socket option: supply a datagram packet's incoming
interface using a sockaddr_dl in a control mbuf.

Implement SO_TIMESTAMP for IP datagrams.

Move packet information option processing into a generic function
so that they work with multicast UDP and raw IP as well as unicast UDP.

Contributed by Bill Fenner <fenner@parc.xerox.com>.

Revision 1.16.4.2 / (download) - annotate - [select for diffs], Wed Dec 11 04:01:07 1996 UTC (26 years, 1 month ago) by mycroft
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.16.4.1: +2 -2 lines
Diff to previous 1.16.4.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

From trunk:
Eliminate SS_PRIV; instead, pass down a proc pointer to the usrreq methods
that need it.
Fix numerous memory leaks and bogus return values.

Revision 1.16.4.1 / (download) - annotate - [select for diffs], Sun Nov 10 21:57:52 1996 UTC (26 years, 2 months ago) by thorpej
Branch: netbsd-1-2
Changes since 1.16: +7 -6 lines
Diff to previous 1.16 (colored)

Update from trunk:
- Make ip_len and ip_off unsigned.
- Make sure we don't accept or transmit packets larger than the
  maximim IP packet size.
This fixes the so-called `death ping' bug.

Sum of work from Bill Fenner <fenner@parc.xerox.com>,
Kevin Lahey <kml@nas.nasa.gov>, and myself.

Thanks to Curt Sampson, Jukka Marin, and Kevin Lahey for testing
this under NetBSD 1.2

Revision 1.18 / (download) - annotate - [select for diffs], Fri Oct 25 06:24:16 1996 UTC (26 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.17: +7 -6 lines
Diff to previous 1.17 (colored)

Make length and offset fields unsigned. From Kevin M. Lahey <kml@nas.nasa.gov>
Add a counter to IP stats, to count packets which are discarded on the
grounds that they are too large.

Revision 1.17 / (download) - annotate - [select for diffs], Wed May 22 13:55:29 1996 UTC (26 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and
PRU_CONTROL.  The usrreq interface really needs to be split up, but this will have to wait.
Remove SS_PRIV completely.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Feb 13 23:43:20 1996 UTC (26 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.15: +4 -5 lines
Diff to previous 1.15 (colored)

netinet prototypes

Revision 1.15 / (download) - annotate - [select for diffs], Tue Nov 21 01:07:38 1995 UTC (27 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.14: +38 -38 lines
Diff to previous 1.14 (colored)

make netinet work on systems where pointers and longs are 64 bits
(like the alpha).  Biggest problem: IP headers were overlayed with
structure which included pointers, and which therefore didn't overlay
properly on 64-bit machines.  Solution: instead of threading pointers
through IP header overlays, add a "queue element" structure to do
the threading, and point it at the ip headers.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Jun 12 00:47:47 1995 UTC (27 years, 7 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.13: +6 -6 lines
Diff to previous 1.13 (colored)

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.13 / (download) - annotate - [select for diffs], Sun May 14 08:23:03 1995 UTC (27 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

drop (and record) malformed IP fragments.  Fixes pr 1030 (differently).

Revision 1.12 / (download) - annotate - [select for diffs], Thu Apr 13 06:36:06 1995 UTC (27 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.11: +36 -37 lines
Diff to previous 1.11 (colored)

be a bit more careful and explicit with types.  (basically a large no-op.)

Revision 1.11 / (download) - annotate - [select for diffs], Sun Mar 26 20:32:33 1995 UTC (27 years, 10 months ago) by jtc
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

KERNEL -> _KERNEL

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jun 29 06:38:29 1994 UTC (28 years, 7 months ago) by cgd
Branch: 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
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.9 / (download) - annotate - [select for diffs], Fri May 13 06:06:28 1994 UTC (28 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.8: +45 -39 lines
Diff to previous 1.8 (colored)

Update to 4.4-Lite networking code, with a few local changes.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jan 10 23:27:43 1994 UTC (29 years ago) by mycroft
Branch: MAIN
Changes since 1.7: +21 -21 lines
Diff to previous 1.7 (colored)

Change the counters to be all the same type -- u_long.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jan 10 20:14:26 1994 UTC (29 years ago) by mycroft
Branch: MAIN
Changes since 1.6: +1 -6 lines
Diff to previous 1.6 (colored)

Should compile now with or without `options MULTICAST'.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jan 9 01:06:19 1994 UTC (29 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.5: +35 -2 lines
Diff to previous 1.5 (colored)

Prototype the rest.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jan 8 21:21:53 1994 UTC (29 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 (colored)

Fix some inconsistent spacing; spaces at the end of lines, etc.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Dec 6 04:59:42 1993 UTC (29 years, 2 months ago) by hpeyerl
Branch: MAIN
Changes since 1.3: +14 -1 lines
Diff to previous 1.3 (colored)

multicast support.
>From Chris Maeda, cmaeda@cs.washington.edu
These patches are derived from the IP Multicast patches for BSDI.

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 20 03:50:29 1993 UTC (29 years, 8 months ago) by cgd
Branch: 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
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

more rcsid additions and file header cleanups

Revision 1.2 / (download) - annotate - [select for diffs], Mon Apr 19 03:48:36 1993 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +5 -0 lines
Diff to previous 1.1 (colored)

Add consistent multiple-inclusion protection.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (29 years, 10 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (29 years, 10 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>