The NetBSD Project

CVS log for src/sys/netinet6/udp6_usrreq.c

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.154 / (download) - annotate - [select for diffs], Fri Nov 4 09:01:53 2022 UTC (17 months, 1 week ago) by ozaki-r
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.153: +23 -23 lines
Diff to previous 1.153 (colored) to selected 1.31 (colored)

inpcb: rename functions to in6pcb_*

Revision 1.153 / (download) - annotate - [select for diffs], Fri Nov 4 09:00:58 2022 UTC (17 months, 1 week ago) by ozaki-r
Branch: MAIN
Changes since 1.152: +6 -6 lines
Diff to previous 1.152 (colored) to selected 1.31 (colored)

inpcb: rename functions to inpcb_*

Inspired by rmind-smpnet patches.

Revision 1.152 / (download) - annotate - [select for diffs], Fri Oct 28 05:25:36 2022 UTC (17 months, 2 weeks ago) by ozaki-r
Branch: MAIN
Changes since 1.151: +26 -26 lines
Diff to previous 1.151 (colored) to selected 1.31 (colored)

inpcb: separate inpcb again to reduce the size of PCB for IPv4

The data size of PCB for IPv4 increased because of the merge of
struct in6pcb.  The change decreases the size to the original size by
separating struct inpcb (again).  struct in4pcb and in6pcb that embed
struct inpcb are introduced.

Even after the separation, users don't need to realize the separation
and only have to use some macros to access dedicated data.  For example,
inp->inp_laddr is now accessed through in4p_laddr(inp).

Revision 1.151 / (download) - annotate - [select for diffs], Fri Oct 28 05:18:39 2022 UTC (17 months, 2 weeks ago) by ozaki-r
Branch: MAIN
Changes since 1.150: +105 -107 lines
Diff to previous 1.150 (colored) to selected 1.31 (colored)

inpcb: integrate data structures of PCB into one

Data structures of network protocol control blocks (PCBs), i.e.,
struct inpcb, in6pcb and inpcb_hdr, are not organized well.  Users of
the data structures have to handle them separately and thus the code
is cluttered and duplicated.

The commit integrates the data structures into one, struct inpcb.  As a
result, users of PCBs only have to handle just one data structure, so
the code becomes simple.

One drawback is that the data size of PCB for IPv4 increases by 40 bytes
(from 248 bytes to 288 bytes).

Revision 1.150 / (download) - annotate - [select for diffs], Fri Feb 19 14:52:00 2021 UTC (3 years, 1 month ago) by christos
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, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.149: +4 -4 lines
Diff to previous 1.149 (colored) to selected 1.31 (colored)

- Make ALIGNED_POINTER use __alignof(t) instead of sizeof(t). This is more
  correct because it works with non-primitive types and provides the ABI
  alignment for the type the compiler will use.
- Remove all the *_HDR_ALIGNMENT macros and asserts
- Replace POINTER_ALIGNED_P with ACCESSIBLE_POINTER which is identical to
  ALIGNED_POINTER, but returns that the pointer is always aligned if the
  CPU supports unaligned accesses.
[ as proposed in tech-kern ]

Revision 1.149 / (download) - annotate - [select for diffs], Sun Feb 14 20:58:35 2021 UTC (3 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.148: +4 -4 lines
Diff to previous 1.148 (colored) to selected 1.31 (colored)

- centralize header align and pullup into a single inline function
- use a single macro to align pointers and expose the alignment, instead
  of hard-coding 3 in 1/2 the macros.
- fix an issue in the ipv6 lt2p where it was aligning for ipv4 and pulling
  for ipv6.

Revision 1.148 / (download) - annotate - [select for diffs], Thu Aug 20 21:21:32 2020 UTC (3 years, 7 months ago) by riastradh
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.147: +26 -2 lines
Diff to previous 1.147 (colored) to selected 1.31 (colored)

[ozaki-r] Changes to the kernel core for wireguard

Revision 1.147 / (download) - annotate - [select for diffs], Mon Feb 25 07:31:32 2019 UTC (5 years, 1 month ago) by maxv
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, isaki-audio2-base, isaki-audio2, 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.146: +8 -6 lines
Diff to previous 1.146 (colored) to selected 1.31 (colored)

Fix the order in udp6_attach: soreserve should be called before
in6_pcballoc, otherwise if it fails there is still a PCB attached, and
we hit a KASSERT in socreate. In !DIAGNOSTIC this would have caused a
memory leak.

By the way I find the splsoftnet highly suspicious, in6_pcballoc already
does that.

Triggered by SyzKaller.

Reported-by: syzbot+7bace612ca3cc3e124f8@syzkaller.appspotmail.com

Revision 1.146 / (download) - annotate - [select for diffs], Mon Jan 28 12:53:01 2019 UTC (5 years, 2 months ago) by martin
Branch: MAIN
Changes since 1.145: +4 -6 lines
Diff to previous 1.145 (colored) to selected 1.31 (colored)

Fix memory leaks pointed out by Ilja Van Sprundel: all
sendoob() functions are expted to free both passed
mbuf chains.

Revision 1.145 / (download) - annotate - [select for diffs], Thu Dec 27 16:59:17 2018 UTC (5 years, 3 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118
Changes since 1.144: +5 -9 lines
Diff to previous 1.144 (colored) to selected 1.31 (colored)

Remove unused arguments.

Revision 1.144 / (download) - annotate - [select for diffs], Thu Nov 22 04:48:34 2018 UTC (5 years, 4 months ago) by knakahara
Branch: MAIN
CVS Tags: pgoyette-compat-1226, pgoyette-compat-1126
Changes since 1.143: +189 -5 lines
Diff to previous 1.143 (colored) to selected 1.31 (colored)

Support IPv6 NAT-T. Implemented by hsuenaga@IIJ and ohishi@IIJ.

Add ATF later.

Revision 1.143 / (download) - annotate - [select for diffs], Tue Nov 6 04:27:41 2018 UTC (5 years, 5 months ago) by ozaki-r
Branch: MAIN
Changes since 1.142: +6 -2 lines
Diff to previous 1.142 (colored) to selected 1.31 (colored)

Restore the length check of a sockaddr passed from userland at udp6_output

A sockaddr with invalid length could be passed to the network stack resulting in
a kernel panic like this:

	panic: sockaddr_copy: source too long, 28 < 128 bytes
	fatal breakpoint trap in supervisor mode
	trap type 1 code 0 rip 0xffffffff80216c35 cs 0x8 rflags 0x246 cr2 0x7f7ff7ef3000 ilevel 0x4 rsp 0xffff80003308b690
	curlwp 0xfffffe803e11ca40 pid 48.1 lowest kstack 0xffff8000330852c0
	Stopped in pid 48.1 (a.out) at  netbsd:breakpoint+0x5:  leave
	db{1}> bt
	breakpoint() at netbsd:breakpoint+0x5
	vpanic() at netbsd:vpanic+0x140
	panic() at netbsd:panic+0x3c
	sockaddr_copy() at netbsd:sockaddr_copy+0x95
	rtcache_setdst() at netbsd:rtcache_setdst+0x73
	rtcache_lookup2() at netbsd:rtcache_lookup2+0x56
	in6_selectroute() at netbsd:in6_selectroute+0x184
	in6_selectsrc() at netbsd:in6_selectsrc+0x119
	udp6_output() at netbsd:udp6_output+0x25e
	udp6_send_wrapper() at netbsd:udp6_send_wrapper+0x8a
	sosend() at netbsd:sosend+0x7bf
	do_sys_sendmsg_so() at netbsd:do_sys_sendmsg_so+0x28e
	do_sys_sendmsg() at netbsd:do_sys_sendmsg+0x89
	sys_sendto() at netbsd:sys_sendto+0x5c
	syscall() at netbsd:syscall+0x1ed
	--- syscall (number 133) ---
	7f7ff790173a:

Reported by Paul Ripke

Revision 1.142 / (download) - annotate - [select for diffs], Sun Nov 4 08:48:01 2018 UTC (5 years, 5 months ago) by mlelstv
Branch: MAIN
Changes since 1.141: +6 -4 lines
Diff to previous 1.141 (colored) to selected 1.31 (colored)

Fix error path in ip6 source address selection.

in6_selectsrc previously returned a pointer to an ipv6 address,
the pointer was NULL in case of an error and is checked later
instead of the also returned error code. When in6_selectsrc was
changed to store the address into a buffer, the error code
was still ignored, but the buffer pointer was never set to NULL.

As a result send() to an ipv6 address on a system that isn't
configured for ipv6 no longer returns the expected EADDRAVAIL
but fails later in ip6_output with EOPNOTSUPP when trying to
send from an unspecified address. The wrong error code caused
BIND to log the unexpected errors.

Revision 1.141 / (download) - annotate - [select for diffs], Sat Apr 28 13:26:57 2018 UTC (5 years, 11 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502
Branch point for: phil-wifi
Changes since 1.140: +2 -3 lines
Diff to previous 1.140 (colored) to selected 1.31 (colored)

Remove unused ipsec_var.h includes.

Revision 1.140 / (download) - annotate - [select for diffs], Wed Apr 18 06:17:44 2018 UTC (6 years ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-0422
Changes since 1.139: +2 -7 lines
Diff to previous 1.139 (colored) to selected 1.31 (colored)

Remove misleading comments.

Revision 1.139 / (download) - annotate - [select for diffs], Thu Apr 12 06:49:39 2018 UTC (6 years ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-0415
Changes since 1.138: +2 -3 lines
Diff to previous 1.138 (colored) to selected 1.31 (colored)

Remove misleading comment; we're just checking the SP, not verifying the
AH/ESP payload. While here style a bit.

Revision 1.138 / (download) - annotate - [select for diffs], Mon Mar 19 16:26:25 2018 UTC (6 years, 1 month ago) by roy
Branch: MAIN
CVS Tags: pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322
Changes since 1.137: +3 -3 lines
Diff to previous 1.137 (colored) to selected 1.31 (colored)

socket: report receive buffer overflows

Add soroverflow() which increments the overflow counter, sets so_error
to ENOBUFS and wakes the receive socket up.
Replace all code that manually increments this counter with soroverflow().
Add soroverflow() to raw_input().

This allows userland to detect route(4) overflows so it can re-sync
with the current state.

Revision 1.137 / (download) - annotate - [select for diffs], Wed Feb 28 11:23:24 2018 UTC (6 years, 1 month ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.136: +2 -3 lines
Diff to previous 1.136 (colored) to selected 1.31 (colored)

Remove unused ipsec_private.h includes.

Revision 1.136 / (download) - annotate - [select for diffs], Wed Feb 28 11:09:03 2018 UTC (6 years, 1 month ago) by maxv
Branch: MAIN
Changes since 1.135: +2 -3 lines
Diff to previous 1.135 (colored) to selected 1.31 (colored)

Remove duplicate IPSEC_STATINC(IPSEC_STAT_IN_POLVIO), ipsec_in_reject
already increases it. IPSEC6_STATINC is now unused, so remove it too.

Revision 1.135 / (download) - annotate - [select for diffs], Mon Feb 26 09:04:29 2018 UTC (6 years, 1 month ago) by maxv
Branch: MAIN
Changes since 1.134: +3 -3 lines
Diff to previous 1.134 (colored) to selected 1.31 (colored)

Dedup: merge ipsec4_in_reject and ipsec6_in_reject into ipsec_in_reject.
While here fix misleading comment.

ok ozaki-r@

Revision 1.134 / (download) - annotate - [select for diffs], Thu Feb 8 19:58:05 2018 UTC (6 years, 2 months ago) by maxv
Branch: MAIN
Changes since 1.133: +2 -9 lines
Diff to previous 1.133 (colored) to selected 1.31 (colored)

Remove the IN6_IS_ADDR_V4MAPPED checks in the protocol functions. They
are useless, because the IPv6 entry point (ip6_input) already performs
them.

The checks were first added in the protocol functions:

	Wed Dec 22 04:03:02 1999 UTC (18 years, 1 month ago) by itojun

"drop IPv6 packets with v4 mapped address on src/dst.  they are illegal
and may be used to fool IPv6 implementations (by using ::ffff:127.0.0.1 as
source you may be able to pretend the packet is from local node)"

Shortly afterwards they were also added in the IPv6 entry point, but
where not removed from the protocol functions:

	Mon Jan 31 10:33:22 2000 UTC (18 years ago) by itojun

"be proactive about malicious packet on the wire.  we fear that v4 mapped
address to be used as a tool to hose security filters (like bypassing
"local host only" filter by using ::ffff:127.0.0.1)."

OpenBSD did the same a few months ago. FreeBSD has never had these checks.

Revision 1.133 / (download) - annotate - [select for diffs], Thu Feb 8 11:49:37 2018 UTC (6 years, 2 months ago) by maxv
Branch: MAIN
Changes since 1.132: +5 -2 lines
Diff to previous 1.132 (colored) to selected 1.31 (colored)

pr_send can be given a NULL lwp. It looks like the

	control != NULL && lwp == NULL

condition is never supposed to happen, but add a panic for safety.

Revision 1.132 / (download) - annotate - [select for diffs], Thu Feb 8 11:34:35 2018 UTC (6 years, 2 months ago) by maxv
Branch: MAIN
Changes since 1.131: +325 -3 lines
Diff to previous 1.131 (colored) to selected 1.31 (colored)

Move udp6_output() into udp6_usrreq.c, and remove udp6_output.c. This is
more consistent with IPv4, and there is no good reason for keeping a
separate file only for one function. FreeBSD did the same.

Revision 1.131 / (download) - annotate - [select for diffs], Thu Feb 8 11:13:20 2018 UTC (6 years, 2 months ago) by maxv
Branch: MAIN
Changes since 1.130: +26 -24 lines
Diff to previous 1.130 (colored) to selected 1.31 (colored)

Style, no functional change.

Revision 1.130 / (download) - annotate - [select for diffs], Thu Jul 6 17:08:57 2017 UTC (6 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Changes since 1.129: +3 -6 lines
Diff to previous 1.129 (colored) to selected 1.31 (colored)

Merge the two copies SO_TIMESTAMP/SO_OTIMESTAMP processing to a single
function, and add a SOOPT_TIMESTAMP define reducing compat pollution from
5 places to 1.

Revision 1.129 / (download) - annotate - [select for diffs], Thu Apr 20 08:46:07 2017 UTC (6 years, 11 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, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.128: +3 -3 lines
Diff to previous 1.128 (colored) to selected 1.31 (colored)

Remove unnecessary NULL checks for inp_socket and in6p_socket

They cannot be NULL except for programming errors.

Revision 1.128 / (download) - annotate - [select for diffs], Thu Apr 20 08:45:09 2017 UTC (6 years, 11 months ago) by ozaki-r
Branch: MAIN
Changes since 1.127: +9 -10 lines
Diff to previous 1.127 (colored) to selected 1.31 (colored)

Simplify logic of udp4_sendup and udp6_sendup

They are always passed a socket with the same protocol faimiliy
as its own: AF_INET for udp4_sendup and AF_INET6 for udp6_sendup.

Revision 1.127 / (download) - annotate - [select for diffs], Tue Jan 24 07:09:25 2017 UTC (7 years, 2 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320, nick-nhusb-base-20170204, jdolecek-ncq-base, jdolecek-ncq
Changes since 1.126: +8 -6 lines
Diff to previous 1.126 (colored) to selected 1.31 (colored)

Tweak softnet_lock and NET_MPSAFE

- Don't hold softnet_lock in some functions if NET_MPSAFE
- Add softnet_lock to sysctl_net_inet_icmp_redirtimeout
- Add softnet_lock to expire_upcalls of ip_mroute.c
- Restore softnet_lock for in{,6}_pcbpurgeif{,0} if NET_MPSAFE
- Mark some softnet_lock for future work

Revision 1.126 / (download) - annotate - [select for diffs], Fri Nov 18 06:50:04 2016 UTC (7 years, 5 months ago) by knakahara
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, nick-nhusb-base-20161204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.125: +7 -2 lines
Diff to previous 1.125 (colored) to selected 1.31 (colored)

fix: "ifconfig destory" can stalls when "ifconfig" is done parallel.
This problem occurs only if NET_MPSAFE on.

ifconfig destroy side:
    kernel entry point is ifioctl => if_clone_destroy.
    pr_purgeif() acquires softnet_lock, and then ifa_remove() calls
    pserialize_perform() holding softnet_lock.
ifconfig side:
    kernel entry point is socreate.
    pr_attach()(udp_attach_wrapper()) calls sosetlock(). In this call path,
    sosetlock() try to acquire softnet_lock.
These can cause dead lock.

Revision 1.125 / (download) - annotate - [select for diffs], Tue Nov 15 20:50:28 2016 UTC (7 years, 5 months ago) by mlelstv
Branch: MAIN
Changes since 1.124: +15 -2 lines
Diff to previous 1.124 (colored) to selected 1.31 (colored)

Enforce alignment requirements that are violated in some cases.
For machines that don't need strict alignment (i386,amd64,vax,m68k) this
is a no-op.

Fixes PR kern/50766 but should be improved.

Revision 1.124 / (download) - annotate - [select for diffs], Fri Jul 15 07:40:09 2016 UTC (7 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, localcount-20160914
Changes since 1.123: +6 -7 lines
Diff to previous 1.123 (colored) to selected 1.31 (colored)

Use sin6tosa and sin6tocsa macros

No functional change.

Revision 1.123 / (download) - annotate - [select for diffs], Fri Jun 10 13:31:44 2016 UTC (7 years, 10 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Changes since 1.122: +3 -3 lines
Diff to previous 1.122 (colored) to selected 1.31 (colored)

Avoid storing a pointer of an interface in a mbuf

Having a pointer of an interface in a mbuf isn't safe if we remove big
kernel locks; an interface object (ifnet) can be destroyed anytime in any
packet processing and accessing such object via a pointer is racy. Instead
we have to get an object from the interface collection (ifindex2ifnet) via
an interface index (if_index) that is stored to a mbuf instead of an
pointer.

The change provides two APIs: m_{get,put}_rcvif_psref that use psref(9)
for sleep-able critical sections and m_{get,put}_rcvif that use
pserialize(9) for other critical sections. The change also adds another
API called m_get_rcvif_NOMPSAFE, that is NOT MP-safe and for transition
moratorium, i.e., it is intended to be used for places where are not
planned to be MP-ified soon.

The change adds some overhead due to psref to performance sensitive paths,
however the overhead is not serious, 2% down at worst.

Proposed on tech-kern and tech-net.

Revision 1.122 / (download) - annotate - [select for diffs], Tue Apr 26 08:44:45 2016 UTC (7 years, 11 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.121: +2 -3 lines
Diff to previous 1.121 (colored) to selected 1.31 (colored)

Sweep unnecessary route.h inclusions

Revision 1.121 / (download) - annotate - [select for diffs], Mon Aug 24 22:21:27 2015 UTC (8 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.120: +4 -2 lines
Diff to previous 1.120 (colored) to selected 1.31 (colored)

sprinkle _KERNEL_OPT

Revision 1.120 / (download) - annotate - [select for diffs], Sat May 2 17:18:03 2015 UTC (8 years, 11 months ago) by rtr
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.119: +6 -6 lines
Diff to previous 1.119 (colored) to selected 1.31 (colored)

make connect syscall use sockaddr_big and modify pr_{send,connect}
nam parameter type from buf * to sockaddr *.

final commit for parameter type changes to protocol user requests

* bump kernel version to 7.99.15 for parameter type changes to pr_{send,connect}

Revision 1.119 / (download) - annotate - [select for diffs], Sun Apr 26 21:40:49 2015 UTC (8 years, 11 months ago) by rtr
Branch: MAIN
Changes since 1.118: +2 -55 lines
Diff to previous 1.118 (colored) to selected 1.31 (colored)

remove pr_generic from struct pr_usrreqs and all implementations of
pr_generic in protocols.

bump to 7.99.13

approved by rmind@

Revision 1.118 / (download) - annotate - [select for diffs], Fri Apr 24 22:32:37 2015 UTC (8 years, 11 months ago) by rtr
Branch: MAIN
Changes since 1.117: +7 -7 lines
Diff to previous 1.117 (colored) to selected 1.31 (colored)

make accept, getsockname and getpeername syscalls use sockaddr_big and modify
pr_{accept,sockname,peername} nam parameter type from mbuf * to sockaddr *.

* retained use of mbuftypes[MT_SONAME] for now.
* bump to netbsd version 7.99.12 for parameter type change.

patch posted to tech-net@ 2015/04/19

Revision 1.117 / (download) - annotate - [select for diffs], Fri Apr 3 20:01:07 2015 UTC (9 years ago) by rtr
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.116: +5 -4 lines
Diff to previous 1.116 (colored) to selected 1.31 (colored)

* change pr_bind to accept struct sockaddr * instead of struct mbuf *
* update protocol bind implementations to use/expect sockaddr *
  instead of mbuf *
* introduce sockaddr_big struct for storage of addr data passed via
  sys_bind; sockaddr_big is of sufficient size and alignment to
  accommodate all addr data sizes received.
* modify sys_bind to allocate sockaddr_big instead of using an mbuf.
* bump kernel version to 7.99.9 for change to pr_bind() parameter type.

Patch posted to tech-net@
  http://mail-index.netbsd.org/tech-net/2015/03/15/msg005004.html

The choice to use a new structure sockaddr_big has been retained since
changing sockaddr_storage size would lead to unnecessary ABI change. The
use of the new structure does not preclude future work that increases
the size of sockaddr_storage and at that time sockaddr_big may be
trivially replaced.

Tested by mrg@ and myself, discussed with rmind@, posted to tech-net@

Revision 1.116 / (download) - annotate - [select for diffs], Mon Mar 30 04:25:26 2015 UTC (9 years ago) by ozaki-r
Branch: MAIN
Changes since 1.115: +12 -2 lines
Diff to previous 1.115 (colored) to selected 1.31 (colored)

Tidy up opt_ipsec.h inclusions

Revision 1.115 / (download) - annotate - [select for diffs], Sat Aug 9 05:33:01 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE
Branch point for: nick-nhusb, netbsd-7-1, netbsd-7-0, netbsd-7
Changes since 1.114: +30 -13 lines
Diff to previous 1.114 (colored) to selected 1.31 (colored)

split PRU_CONNECT2 & PRU_PURGEIF function out of pr_generic() usrreq
switches and put into separate functions

  - always KASSERT(solocked(so)) even if not implemented
    (for PRU_CONNECT2 only)

  - replace calls to pr_generic() with req = PRU_CONNECT2 with calls to
    pr_connect2()

  - replace calls to pr_generic() with req = PRU_PURGEIF with calls to
    pr_purgeif()

put common code from unp_connect2() (used by unp_connect() into
unp_connect1() and call out to it when needed

patch only briefly reviewed by rmind@

Revision 1.114 / (download) - annotate - [select for diffs], Fri Aug 8 03:05:45 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
Changes since 1.113: +13 -5 lines
Diff to previous 1.113 (colored) to selected 1.31 (colored)

split PRU_RCVD function out of pr_generic() usrreq switches and put into
separate functions

  - always KASSERT(solocked(so)) even if not implemented

  - replace calls to pr_generic() with req = PRU_RCVD with calls to
    pr_rcvd()

Revision 1.113 / (download) - annotate - [select for diffs], Tue Aug 5 07:55:32 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
Changes since 1.112: +25 -9 lines
Diff to previous 1.112 (colored) to selected 1.31 (colored)

split PRU_SEND function out of pr_generic() usrreq switches and put into
separate functions

   xxx_send(struct socket *, struct mbuf *, struct mbuf *,
       struct mbuf *, struct lwp *)

  - always KASSERT(solocked(so)) even if not implemented

  - replace calls to pr_generic() with req = PRU_SEND with calls to
    pr_send()

rename existing functions that operate on PCB for consistency (and to
free up their names for xxx_send() PRUs

  - l2cap_send() -> l2cap_send_pcb()
  - sco_send() -> sco_send_pcb()
  - rfcomm_send() -> rfcomm_send_pcb()

patch reviewed by rmind

Revision 1.112 / (download) - annotate - [select for diffs], Tue Aug 5 05:24:27 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
Changes since 1.111: +7 -7 lines
Diff to previous 1.111 (colored) to selected 1.31 (colored)

revert the removal of struct lwp * parameter from bind, listen and connect
user requests.

this should resolve the issue relating to nfs client hangs presented
recently by wiz on current-users@

Revision 1.111 / (download) - annotate - [select for diffs], Thu Jul 31 03:39:35 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
Changes since 1.110: +61 -25 lines
Diff to previous 1.110 (colored) to selected 1.31 (colored)

split PRU_DISCONNECT, PRU_SHUTDOWN and PRU_ABORT function out of
pr_generic() usrreq switches and put into separate functions

   xxx_disconnect(struct socket *)
   xxx_shutdown(struct socket *)
   xxx_abort(struct socket *)

   - always KASSERT(solocked(so)) even if not implemented
   - replace calls to pr_generic() with req =
PRU_{DISCONNECT,SHUTDOWN,ABORT}
     with calls to pr_{disconnect,shutdown,abort}() respectively

rename existing internal functions used to implement above functionality
to permit use of the names for xxx_{disconnect,shutdown,abort}().

   - {l2cap,sco,rfcomm}_disconnect() ->
{l2cap,sco,rfcomm}_disconnect_pcb()
   - {unp,rip,tcp}_disconnect() -> {unp,rip,tcp}_disconnect1()
   - unp_shutdown() -> unp_shutdown1()

patch reviewed by rmind

Revision 1.110 / (download) - annotate - [select for diffs], Wed Jul 30 10:04:26 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
Changes since 1.109: +26 -14 lines
Diff to previous 1.109 (colored) to selected 1.31 (colored)

split PRU_CONNECT function out of pr_generic() usrreq switches and put
into seaparate functions

  xxx_listen(struct socket *, struct mbuf *)

  - always KASSERT(solocked(so)) and KASSERT(nam != NULL)
  - replace calls to pr_generic() with req = PRU_CONNECT with
    pr_connect()
  - rename existin {l2cap,sco,rfcomm}_connect() to
    {l2cap,sco,rfcomm}_connect_pcb() respectively to permit
    naming consistency with other protocols functions.
  - drop struct lwp * parameter from unp_connect() and at_pcbconnect()
    and use curlwp instead where appropriate.

patch reviewed by rmind

Revision 1.109 / (download) - annotate - [select for diffs], Thu Jul 24 15:12:03 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
Changes since 1.108: +32 -9 lines
Diff to previous 1.108 (colored) to selected 1.31 (colored)

split PRU_BIND and PRU_LISTEN function out of pr_generic() usrreq
switches and put into separate functions
  xxx_bind(struct socket *, struct mbuf *)
  xxx_listen(struct socket *)

  - always KASSERT(solocked(so)) even if not implemented

  - replace calls to pr_generic() with req = PRU_BIND with call to
    pr_bind()

  - replace calls to pr_generic() with req = PRU_LISTEN with call to
    pr_listen()

  - drop struct lwp * parameter from at_pcbsetaddr(), in_pcbbind() and
    unp_bind() and always use curlwp.

rename existing functions that operate on PCB for consistency (and to
free up their names for xxx_{bind,listen}() PRUs

  - l2cap_{bind,listen}() -> l2cap_{bind,listen}_pcb()
  - sco_{bind,listen}() -> sco_{bind,listen}_pcb()
  - rfcomm_{bind,listen}() -> rfcomm_{bind,listen}_pcb()

patch reviewed by rmind

welcome to netbsd 6.99.48

Revision 1.108 / (download) - annotate - [select for diffs], Wed Jul 23 13:17:18 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
Changes since 1.107: +29 -4 lines
Diff to previous 1.107 (colored) to selected 1.31 (colored)

split PRU_SENDOOB and PRU_RCVOOB function out of pr_generic() usrreq
switches and put into separate functions
  xxx_sendoob(struct socket *, struct mbuf *, struct mbuf *)
  xxx_recvoob(struct socket *, struct mbuf *, int)

  - always KASSERT(solocked(so)) even if request is not implemented

  - replace calls to pr_generic() with req = PRU_{SEND,RCV}OOB with
    calls to pr_{send,recv}oob() respectively.

there is still some tweaking of m_freem(m) and m_freem(control) to come
for consistency.  not performed with this commit for clarity.

reviewed by rmind

Revision 1.107 / (download) - annotate - [select for diffs], Wed Jul 9 14:41:42 2014 UTC (9 years, 9 months ago) by rtr
Branch: MAIN
Changes since 1.106: +13 -3 lines
Diff to previous 1.106 (colored) to selected 1.31 (colored)

* split PRU_ACCEPT function out of pr_generic() usrreq switches and put
  into a separate function xxx_accept(struct socket *, struct mbuf *)

note: future cleanup will take place to remove struct mbuf parameter
type and replace it with a more appropriate type.

patch reviewed by rmind

Revision 1.106 / (download) - annotate - [select for diffs], Wed Jul 9 04:54:04 2014 UTC (9 years, 9 months ago) by rtr
Branch: MAIN
Changes since 1.105: +30 -10 lines
Diff to previous 1.105 (colored) to selected 1.31 (colored)

* split PRU_PEERADDR and PRU_SOCKADDR function out of pr_generic()
  usrreq switches and put into separate functions
  xxx_{peer,sock}addr(struct socket *, struct mbuf *).

    - KASSERT(solocked(so)) always in new functions even if request
      is not implemented

    - KASSERT(pcb != NULL) and KASSERT(nam) if the request is
      implemented and not for tcp.

* for tcp roll #ifdef KPROF and #ifdef DEBUG code from tcp_usrreq() into
  easier to cut & paste functions tcp_debug_capture() and
tcp_debug_trace()

    - functions provided by rmind
    - remaining use of PRU_{PEER,SOCK}ADDR #define to be removed in a
      future commit.

* rename netbt functions to permit consistency of pru function names
  (as has been done with other requests already split out).

    - l2cap_{peer,sock}addr()  -> l2cap_{peer,sock}_addr_pcb()
    - rfcomm_{peer,sock}addr() -> rfcomm_{peer,sock}_addr_pcb()
    - sco_{peer,sock}addr()    -> sco_{peer,sock}_addr_pcb()

* split/refactor do_sys_getsockname(lwp, fd, which, nam) into
  two functions do_sys_get{peer,sock}name(fd, nam).

    - move PRU_PEERADDR handling into do_sys_getpeername() from
      do_sys_getsockname()
    - have svr4_stream directly call do_sys_get{sock,peer}name()
      respectively instead of providing `which' & fix a DPRINTF string
      that incorrectly wrote "getpeername" when it meant "getsockname"
    - fix sys_getpeername() and sys_getsockname() to call
      do_sys_get{sock,peer}name() without `which' and `lwp' & adjust
      comments
    - bump kernel version for removal of lwp & which parameters from
      do_sys_getsockname()

note: future cleanup to remove struct mbuf * abuse in
xxx_{peer,sock}name()
still to come, not done in this commit since it is easier to do post
split.

patch reviewed by rmind

welcome to 6.99.47

Revision 1.105 / (download) - annotate - [select for diffs], Mon Jul 7 17:13:56 2014 UTC (9 years, 9 months ago) by rtr
Branch: MAIN
Changes since 1.104: +4 -2 lines
Diff to previous 1.104 (colored) to selected 1.31 (colored)

* sprinkle KASSERT(solocked(so)); in all pr_stat() functions.
* fix remaining inconsistent struct socket parameter names.

Revision 1.104 / (download) - annotate - [select for diffs], Mon Jul 7 15:13:21 2014 UTC (9 years, 9 months ago) by rtr
Branch: MAIN
Changes since 1.103: +4 -3 lines
Diff to previous 1.103 (colored) to selected 1.31 (colored)

backout change that made pr_stat return EOPNOTSUPP for protocols that
were not filling in struct stat.

decision made after further discussion with rmind and investigation of
how other operating systems behave.  soo_stat() is doing just enough to
be able to call what gets returned valid and thus justifys a return of
success.

additional review will be done to determine of the pr_stat functions
that were already returning EOPNOTSUPP can be considered successful with
what soo_stat() is doing.

Revision 1.103 / (download) - annotate - [select for diffs], Mon Jul 7 07:09:59 2014 UTC (9 years, 9 months ago) by rtr
Branch: MAIN
Changes since 1.102: +3 -9 lines
Diff to previous 1.102 (colored) to selected 1.31 (colored)

* have pr_stat return EOPNOTSUPP consistently for all protocols that do
  not fill in struct stat instead of returning success.

* in pr_stat remove all checks for non-NULL so->so_pcb except where the
  pcb is actually used (i.e. cases where we don't return EOPNOTSUPP).

proposed on tech-net@

Revision 1.102 / (download) - annotate - [select for diffs], Sun Jul 6 03:33:33 2014 UTC (9 years, 9 months ago) by rtr
Branch: MAIN
Changes since 1.101: +17 -8 lines
Diff to previous 1.101 (colored) to selected 1.31 (colored)

* split PRU_SENSE functionality out of xxx_usrreq() switches and place into
  separate xxx_stat(struct socket *, struct stat *) functions.
* replace calls using pr_generic with req == PRU_SENSE with pr_stat().

further change will follow that cleans up the pattern used to extract the
pcb and test for its presence.

reviewed by rmind

Revision 1.101 / (download) - annotate - [select for diffs], Tue Jul 1 05:49:19 2014 UTC (9 years, 9 months ago) by rtr
Branch: MAIN
Changes since 1.100: +4 -6 lines
Diff to previous 1.100 (colored) to selected 1.31 (colored)

fix parameter types in pr_ioctl, called xx_control() functions and remove
abuse of pointer to struct mbuf type.

param2 changed to u_long type and uses parameter name 'cmd' (ioctl command)
param3 changed to void * type and uses parameter name 'data'
param4 changed to struct ifnet * and uses parameter name 'ifp'
param5 has been removed (formerly struct lwp *) and uses of 'l' have been
       replaced with curlwp from curproc(9).

callers have had (now unnecessary) casts to struct mbuf * removed, called
code has had (now unnecessary) casts to u_long, void * and struct ifnet *
respectively removed.

reviewed by rmind@

Revision 1.100 / (download) - annotate - [select for diffs], Mon Jun 23 17:18:45 2014 UTC (9 years, 9 months ago) by rtr
Branch: MAIN
Changes since 1.99: +4 -4 lines
Diff to previous 1.99 (colored) to selected 1.31 (colored)

where appropriate rename xxx_ioctl() struct mbuf * parameters from
`control' to `ifp' after split from xxx_usrreq().

sys_socket.c
    fix wrapping of arguments to be consistent with other function calls
    in the file after replacing pr_usrreq() call with pr_ioctl() which
    required one less argument.

link_proto.c
    fix indentation of parameters in link_ioctl() prototype to be
    consistent with the rest of the file.

discussed with rmind@

Revision 1.99 / (download) - annotate - [select for diffs], Sun Jun 22 08:10:19 2014 UTC (9 years, 9 months ago) by rtr
Branch: MAIN
Changes since 1.98: +21 -14 lines
Diff to previous 1.98 (colored) to selected 1.31 (colored)

* split PRU_CONTROL functionality out of xxx_userreq() switches and place
  into separate xxx_ioctl() functions.
* place KASSERT(req != PRU_CONTROL) inside xxx_userreq() as it is now
  inappropriate for req = PRU_CONTROL in xxx_userreq().
* replace calls to pr_generic() with req = PRU_CONTROL with pr_ioctl().
* remove & fixup references to PRU_CONTROL xxx_userreq() function comments.
* fix various comments references for xxx_userreq() that mentioned
  PRU_CONTROL as xxx_userreq() no longer handles the request.

a further change will follow to fix parameter and naming inconsistencies
retained from original code.

Reviewed by rmind@

Revision 1.98 / (download) - annotate - [select for diffs], Fri May 30 01:39:03 2014 UTC (9 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored) to selected 1.31 (colored)

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

Revision 1.97 / (download) - annotate - [select for diffs], Thu May 22 22:56:53 2014 UTC (9 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.96: +341 -10 lines
Diff to previous 1.96 (colored) to selected 1.31 (colored)

Move udp6_input(), udp6_sendup(), udp6_realinput() and udp6_input_checksum()
from udp_usrreq.c to udp6_usrreq.c where they belong.  No functional change.

Revision 1.96 / (download) - annotate - [select for diffs], Tue May 20 19:04:00 2014 UTC (9 years, 11 months ago) by rmind
Branch: MAIN
Changes since 1.95: +5 -4 lines
Diff to previous 1.95 (colored) to selected 1.31 (colored)

Adjust PR_WRAP_USRREQS() to include the attach/detach functions.
We still need the kernel-lock for some corner cases.

Revision 1.95 / (download) - annotate - [select for diffs], Mon May 19 02:51:25 2014 UTC (9 years, 11 months ago) by rmind
Branch: MAIN
Changes since 1.94: +56 -36 lines
Diff to previous 1.94 (colored) to selected 1.31 (colored)

- Split off PRU_ATTACH and PRU_DETACH logic into separate functions.
- Replace malloc with kmem and eliminate M_PCB while here.
- Sprinkle more asserts.

Revision 1.94 / (download) - annotate - [select for diffs], Sun May 18 14:46:16 2014 UTC (9 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.93: +10 -2 lines
Diff to previous 1.93 (colored) to selected 1.31 (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.93 / (download) - annotate - [select for diffs], Tue Feb 25 18:30:12 2014 UTC (10 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base9, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.92: +3 -7 lines
Diff to previous 1.92 (colored) to selected 1.31 (colored)

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

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

Revision 1.92 / (download) - annotate - [select for diffs], Thu Jan 2 18:29:01 2014 UTC (10 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.91: +5 -2 lines
Diff to previous 1.91 (colored) to selected 1.31 (colored)

Allow kernels compiled with INET+INET6 to be booted as IPv4-only or IPv6-only.

Revision 1.91 / (download) - annotate - [select for diffs], Fri Jun 22 14:54:35 2012 UTC (11 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.90: +3 -51 lines
Diff to previous 1.90 (colored) to selected 1.31 (colored)

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

Revision 1.90 / (download) - annotate - [select for diffs], Sat Sep 24 17:22:14 2011 UTC (12 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-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
Branch point for: yamt-pagecache
Changes since 1.89: +92 -2 lines
Diff to previous 1.89 (colored) to selected 1.31 (colored)

Add inet6 part of the rfc6056 code contributed by Vlad Balan as part of
Google SoC-2011

Revision 1.89 / (download) - annotate - [select for diffs], Tue May 3 18:28:45 2011 UTC (12 years, 11 months ago) by dyoung
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored) to selected 1.31 (colored)

Reduces the resources demanded by TCP sessions in TIME_WAIT-state using
methods called Vestigial Time-Wait (VTW) and Maximum Segment Lifetime
Truncation (MSLT).

MSLT and VTW were contributed by Coyote Point Systems, Inc.

Even after a TCP session enters the TIME_WAIT state, its corresponding
socket and protocol control blocks (PCBs) stick around until the TCP
Maximum Segment Lifetime (MSL) expires.  On a host whose workload
necessarily creates and closes down many TCP sockets, the sockets & PCBs
for TCP sessions in TIME_WAIT state amount to many megabytes of dead
weight in RAM.

Maximum Segment Lifetimes Truncation (MSLT) assigns each TCP session to
a class based on the nearness of the peer.  Corresponding to each class
is an MSL, and a session uses the MSL of its class.  The classes are
loopback (local host equals remote host), local (local host and remote
host are on the same link/subnet), and remote (local host and remote
host communicate via one or more gateways).  Classes corresponding to
nearer peers have lower MSLs by default: 2 seconds for loopback, 10
seconds for local, 60 seconds for remote.  Loopback and local sessions
expire more quickly when MSLT is used.

Vestigial Time-Wait (VTW) replaces a TIME_WAIT session's PCB/socket
dead weight with a compact representation of the session, called a
"vestigial PCB".  VTW data structures are designed to be very fast and
memory-efficient: for fast insertion and lookup of vestigial PCBs,
the PCBs are stored in a hash table that is designed to minimize the
number of cacheline visits per lookup/insertion.  The memory both
for vestigial PCBs and for elements of the PCB hashtable come from
fixed-size pools, and linked data structures exploit this to conserve
memory by representing references with a narrow index/offset from the
start of a pool instead of a pointer.  When space for new vestigial PCBs
runs out, VTW makes room by discarding old vestigial PCBs, oldest first.
VTW cooperates with MSLT.

It may help to think of VTW as a "FIN cache" by analogy to the SYN
cache.

A 2.8-GHz Pentium 4 running a test workload that creates TIME_WAIT
sessions as fast as it can is approximately 17% idle when VTW is active
versus 0% idle when VTW is inactive.  It has 103 megabytes more free RAM
when VTW is active (approximately 64k vestigial PCBs are created) than
when it is inactive.

Revision 1.88 / (download) - annotate - [select for diffs], Wed Sep 16 15:23:05 2009 UTC (14 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: rmind-uvmplock, jruoho-x86intr
Changes since 1.87: +7 -4 lines
Diff to previous 1.87 (colored) to selected 1.31 (colored)

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

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

Revision 1.87 / (download) - annotate - [select for diffs], Wed Mar 18 16:00:23 2009 UTC (15 years, 1 month ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-base
Changes since 1.86: +4 -4 lines
Diff to previous 1.86 (colored) to selected 1.31 (colored)

bzero -> memset

Revision 1.86 / (download) - annotate - [select for diffs], Sun May 4 07:22:15 2008 UTC (15 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base2, 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, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, jym-xensuspend
Changes since 1.85: +3 -8 lines
Diff to previous 1.85 (colored) to selected 1.31 (colored)

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

PR kern/38577

Revision 1.85 / (download) - annotate - [select for diffs], Mon Apr 28 15:01:39 2008 UTC (15 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored) to selected 1.31 (colored)

udp6_init: fix a comment.

Revision 1.84 / (download) - annotate - [select for diffs], Thu Apr 24 11:38:38 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.83: +13 -10 lines
Diff to previous 1.83 (colored) to selected 1.31 (colored)

Merge the socket locking patch:

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

With much feedback from matt@ and plunky@.

Revision 1.83 / (download) - annotate - [select for diffs], Wed Apr 23 05:26:50 2008 UTC (15 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.82: +7 -27 lines
Diff to previous 1.82 (colored) to selected 1.31 (colored)

Use <net/net_stats.h> / netstat_sysctl().

Revision 1.82 / (download) - annotate - [select for diffs], Tue Apr 15 04:43:25 2008 UTC (16 years ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.81: +46 -4 lines
Diff to previous 1.81 (colored) to selected 1.31 (colored)

Make udp6 stats per-cpu.

Revision 1.81 / (download) - annotate - [select for diffs], Wed Feb 27 19:54:27 2008 UTC (16 years, 1 month ago) by matt
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored) to selected 1.31 (colored)

Convert to ansi definitions from old-style definitons.
Remember that func() is not ansi, func(void) is.

Revision 1.80 / (download) - annotate - [select for diffs], Wed Nov 14 22:58:27 2007 UTC (16 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-base, jmcneill-pm-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.79: +13 -22 lines
Diff to previous 1.79 (colored) to selected 1.31 (colored)

KNF.  Remove superfluous parentheses.  In the switch-statement,
consolidate all of the 'error = EOPNOTSUPP;' cases.  No functional
change intended.

Revision 1.79 / (download) - annotate - [select for diffs], Tue Nov 6 23:47:08 2007 UTC (16 years, 5 months ago) by dyoung
Branch: MAIN
Changes since 1.78: +8 -3 lines
Diff to previous 1.78 (colored) to selected 1.31 (colored)

Take a clue from udp_usrreq(): block IPL_SOFTNET in udp6_usrreq(),
both while we purge an interface, and while we call udp6_output().

XXX udp6_usrreq() needs more attention.

Revision 1.78 / (download) - annotate - [select for diffs], Thu Nov 1 20:33:59 2007 UTC (16 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored) to selected 1.31 (colored)

De-__P().

Revision 1.77 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:28 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-idlelwp-base8, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.76: +5 -5 lines
Diff to previous 1.76 (colored) to selected 1.31 (colored)

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

Revision 1.76 / (download) - annotate - [select for diffs], Sat Feb 17 22:34:15 2007 UTC (17 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.75: +8 -16 lines
Diff to previous 1.75 (colored) to selected 1.31 (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.75 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:13 2006 UTC (17 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: 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, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, rpaulo-netinet-merge-pcb-base, post-newlock2-merge, 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, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-idlelwp
Changes since 1.74: +6 -8 lines
Diff to previous 1.74 (colored) to selected 1.31 (colored)

Use the LWP cached credentials where sane.

Revision 1.74 / (download) - annotate - [select for diffs], Fri May 5 00:03:22 2006 UTC (17 years, 11 months ago) by rpaulo
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi
Changes since 1.73: +7 -6 lines
Diff to previous 1.73 (colored) to selected 1.31 (colored)

Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292).
* RFC 3542 isn't binary compatible with RFC 2292.
* RFC 2292 support is on by default but can be disabled.
* update ping6, telnet and traceroute6 to the new API.

From the KAME project (www.kame.net).
Reviewed by core.

Revision 1.73 / (download) - annotate - [select for diffs], Sat Jan 21 00:15:37 2006 UTC (18 years, 3 months ago) by rpaulo
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored) to selected 1.31 (colored)

Better support of IPv6 scoped addresses.

- most of the kernel code will not care about the actual encoding of
  scope zone IDs and won't touch "s6_addr16[1]" directly.
- similarly, most of the kernel code will not care about link-local
  scoped addresses as a special case.
- scope boundary check will be stricter.  For example, the current
  *BSD code allows a packet with src=::1 and dst=(some global IPv6
  address) to be sent outside of the node, if the application do:
    s = socket(AF_INET6);
    bind(s, "::1");
    sendto(s, some_global_IPv6_addr);
  This is clearly wrong, since ::1 is only meaningful within a single
  node, but the current implementation of the *BSD kernel cannot
  reject this attempt.
- and, while there, don't try to remove the ff02::/32 interface route
  entry in in6_ifdetach() as it's already gone.

This also includes some level of support for the standard source
address selection algorithm defined in RFC3484, which will be
completed on in the future.

From the KAME project via JINMEI Tatuya.
Approved by core@.

Revision 1.72 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:02 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.71: +6 -4 lines
Diff to previous 1.71 (colored) to selected 1.31 (colored)

merge ktrace-lwp.

Revision 1.71 / (download) - annotate - [select for diffs], Tue Nov 15 18:39:46 2005 UTC (18 years, 5 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-readahead-base3, yamt-readahead-base2, ktrace-lwp-base
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) to selected 1.31 (colored)

Pass the current process structure to in_pcbconnect() so that it can
pass it to in_pcbbind() so that can allocate a low numbered port
if setsockopt() has been used to set IP_PORTRANGE to IP_PORTRANGE_LOW.
While there, fail in_pcbconnect() if the in_pcbbind() fails - rather
than sending the request out from a port of zero.
This has been largely broken since the socket option was added in 1998.

Revision 1.70 / (download) - annotate - [select for diffs], Sun Aug 28 21:01:02 2005 UTC (18 years, 7 months ago) by rpaulo
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-readahead
Changes since 1.69: +9 -2 lines
Diff to previous 1.69 (colored) to selected 1.31 (colored)

Implement net.inet6.udp6.stats.

Reviewed by Elad Efrat.

Revision 1.69 / (download) - annotate - [select for diffs], Wed Aug 10 13:06:49 2005 UTC (18 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.68: +3 -2 lines
Diff to previous 1.68 (colored) to selected 1.31 (colored)

move {tcp,udp}_do_loopback_cksum back to tcp/udp
so that they can be referenced by ipv6.

Revision 1.68 / (download) - annotate - [select for diffs], Sun May 29 21:43:51 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.67: +5 -5 lines
Diff to previous 1.67 (colored) to selected 1.31 (colored)

- avoid shadowed variables
- sprinkle const.

Revision 1.67 / (download) - annotate - [select for diffs], Fri Mar 11 06:16:16 2005 UTC (19 years, 1 month ago) by atatat
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored) to selected 1.31 (colored)

Revert the change that made kern.file2 and net.*.*.pcblist into nodes
instead of structs.  It had other deleterious side-effects that are
rather nasty.  Another solution must be found.

Revision 1.66 / (download) - annotate - [select for diffs], Thu Mar 10 05:43:28 2005 UTC (19 years, 1 month ago) by atatat
Branch: MAIN
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored) to selected 1.31 (colored)

Change types of kern.file2 and net.*.*.pcblist to NODE

Revision 1.65 / (download) - annotate - [select for diffs], Wed Mar 9 05:07:19 2005 UTC (19 years, 1 month ago) by atatat
Branch: MAIN
Changes since 1.64: +9 -2 lines
Diff to previous 1.64 (colored) to selected 1.31 (colored)

Add the following nodes to the sysctl tree:

	net.local.stream.pcblist
	net.local.dgram.pcblist
	net.inet.tcp.pcblist
	net.inet.udp.pcblist
	net.inet.raw.pcblist
	net.inet6.tcp6.pcblist
	net.inet6.udp6.pcblist
	net.inet6.raw6.pcblist

which allow retrieval of the pcbs in use for those protocols.  The
struct involved is 32/64 bit clean and incorporates parts of struct
inpcb, struct unpcb, a bit of struct tcpcb, and two socket addresses.

Revision 1.64 / (download) - annotate - [select for diffs], Wed Dec 15 04:25:21 2004 UTC (19 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge
Branch point for: yamt-km, kent-audio2
Changes since 1.63: +9 -2 lines
Diff to previous 1.63 (colored) to selected 1.31 (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.63 / (download) - annotate - [select for diffs], Tue May 25 04:34:01 2004 UTC (19 years, 10 months ago) by atatat
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1
Changes since 1.62: +8 -5 lines
Diff to previous 1.62 (colored) to selected 1.31 (colored)

Sysctl descriptions under net subtree (net.key not done)

Revision 1.62 / (download) - annotate - [select for diffs], Wed Mar 24 15:34:55 2004 UTC (20 years ago) by atatat
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.61: +12 -7 lines
Diff to previous 1.61 (colored) to selected 1.31 (colored)

Tango on sysctl_createv() and flags.  The flags have all been renamed,
and sysctl_createv() now uses more arguments.

Revision 1.61 / (download) - annotate - [select for diffs], Thu Dec 4 19:38:24 2003 UTC (20 years, 4 months ago) by atatat
Branch: MAIN
Changes since 1.60: +26 -26 lines
Diff to previous 1.60 (colored) to selected 1.31 (colored)

Dynamic sysctl.

Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al.  Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.

Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded.  Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.

All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.

PS - I'm sorry, but there's a distinct lack of documentation at the
moment.  I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Oct 25 08:26:14 2003 UTC (20 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.59: +3 -2 lines
Diff to previous 1.59 (colored) to selected 1.31 (colored)

fix uninitialized variables

Revision 1.59 / (download) - annotate - [select for diffs], Sat Sep 6 03:12:55 2003 UTC (20 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.58: +2 -7 lines
Diff to previous 1.58 (colored) to selected 1.31 (colored)

clarify flowlabel handling

Revision 1.58 / (download) - annotate - [select for diffs], Thu Sep 4 09:17:09 2003 UTC (20 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.57: +16 -29 lines
Diff to previous 1.57 (colored) to selected 1.31 (colored)

revamp inpcb/in6pcb so that they are more aligned with each other.
in6pcb lookup now uses hash(9).

Revision 1.57 / (download) - annotate - [select for diffs], Fri Aug 22 22:05:11 2003 UTC (20 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.56: +2 -8 lines
Diff to previous 1.56 (colored) to selected 1.31 (colored)

no need for opt_ipsec.h any longer

Revision 1.56 / (download) - annotate - [select for diffs], Thu Aug 7 16:33:30 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.55: +3 -7 lines
Diff to previous 1.55 (colored) to selected 1.31 (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.55 / (download) - annotate - [select for diffs], Sun Jun 29 22:32:03 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.54: +2 -4 lines
Diff to previous 1.54 (colored) to selected 1.31 (colored)

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

Revision 1.54 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:12 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.53: +6 -4 lines
Diff to previous 1.53 (colored) to selected 1.31 (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.53 / (download) - annotate - [select for diffs], Wed Sep 11 02:46:47 2002 UTC (21 years, 7 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.52: +7 -7 lines
Diff to previous 1.52 (colored) to selected 1.31 (colored)

KNF - return is not a function.  sync w/kame.

Revision 1.52 / (download) - annotate - [select for diffs], Sun May 12 20:33:51 2002 UTC (21 years, 11 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, gehenna-devsw-base, gehenna-devsw
Changes since 1.51: +4 -2 lines
Diff to previous 1.51 (colored) to selected 1.31 (colored)

Eliminate commons.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Nov 13 00:57:07 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Changes since 1.50: +4 -1 lines
Diff to previous 1.50 (colored) to selected 1.31 (colored)

add RCSIDs

Revision 1.50 / (download) - annotate - [select for diffs], Mon Oct 29 07:02:36 2001 UTC (22 years, 5 months ago) by simonb
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.49: +2 -4 lines
Diff to previous 1.49 (colored) to selected 1.31 (colored)

Don't need to include <uvm/uvm_extern.h> just to include <sys/sysctl.h>
anymore.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Oct 24 06:36:39 2001 UTC (22 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored) to selected 1.31 (colored)

more whitespace sync with kame

Revision 1.48 / (download) - annotate - [select for diffs], Wed Oct 24 06:04:08 2001 UTC (22 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.47: +1 -327 lines
Diff to previous 1.47 (colored) to selected 1.31 (colored)

remove unused codepath (unifdef -UUDP6)

Revision 1.47 / (download) - annotate - [select for diffs], Thu Oct 18 07:44:36 2001 UTC (22 years, 6 months ago) by itojun
Branch: MAIN
Branch point for: thorpej-mips-cache
Changes since 1.46: +5 -3 lines
Diff to previous 1.46 (colored) to selected 1.31 (colored)

reduce diffs with kame (mostly cosmetic).
move IPV6_CHECKSUM processing to sys/netinet6/raw_ip6.c.
constify a couple of places.

Revision 1.46 / (download) - annotate - [select for diffs], Mon Oct 15 09:51:17 2001 UTC (22 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored) to selected 1.31 (colored)

implement IPV6_V6ONLY socket option from draft-ietf-ipngwg-rfc2553bis-03.txt.
IPV6_BINDV6ONLY (netbsd only) is deprecated, but still work just like before.

Revision 1.45 / (download) - annotate - [select for diffs], Wed Jul 25 23:28:04 2001 UTC (22 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Changes since 1.44: +1 -8 lines
Diff to previous 1.44 (colored) to selected 1.31 (colored)

allocate ipsec policy buffer attached to pcb in in*_pcballoc, before
giving anyone accesses to pcb (do not reveal an inconsistent ones).
sync with kame

Revision 1.44 / (download) - annotate - [select for diffs], Tue Jul 3 08:06:20 2001 UTC (22 years, 9 months ago) by itojun
Branch: MAIN
Branch point for: kqueue
Changes since 1.43: +2 -1 lines
Diff to previous 1.43 (colored) to selected 1.31 (colored)

call in{,6}_pcbpurgeif0() before in{,6}_purgeif().

Revision 1.43 / (download) - annotate - [select for diffs], Sun May 27 17:36:07 2001 UTC (22 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.42: +3 -6 lines
Diff to previous 1.42 (colored) to selected 1.31 (colored)

remove debug printfs, which can be too noisy.  sync with kame.

Revision 1.42 / (download) - annotate - [select for diffs], Thu May 24 07:22:28 2001 UTC (22 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.41: +5 -2 lines
Diff to previous 1.41 (colored) to selected 1.31 (colored)

call icmp6_mtudisc_update(foo, 0) even if ICMPv6 messages are very short.
let icmp6 layer decide whether we take PMTUD routes or not.

Revision 1.41 / (download) - annotate - [select for diffs], Tue May 8 10:15:15 2001 UTC (22 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.40: +11 -8 lines
Diff to previous 1.40 (colored) to selected 1.31 (colored)

correct faith prefix determination.  use sys/netinet/if_faith.c:faithprefix()
to determine.  sync with kame.
(without this change, non-faith socket may mistakenly accept for-faith traffic)

Revision 1.40 / (download) - annotate - [select for diffs], Sun Feb 11 06:49:53 2001 UTC (23 years, 2 months ago) by itojun
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.39: +41 -46 lines
Diff to previous 1.39 (colored) to selected 1.31 (colored)

pull latest kame pcbnotify code.  synchronizes ICMPv6 path mtu discovery
behavior with other protocols (i.e. validation, use of hiwat/lowat).

Revision 1.39 / (download) - annotate - [select for diffs], Sat Feb 10 04:14:29 2001 UTC (23 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.38: +8 -8 lines
Diff to previous 1.38 (colored) to selected 1.31 (colored)

to sync with kame better, (1) remove register declaration for variables,
(2) sync whitespaces, (3) update comments. (4) bring in some of portability
and logging enhancements.  no functional changes here.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Feb 8 16:48:02 2001 UTC (23 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.37: +1 -205 lines
Diff to previous 1.37 (colored) to selected 1.31 (colored)

move udp6_output() to separate file.  (sync better with kame)

Revision 1.37 / (download) - annotate - [select for diffs], Wed Jan 24 09:04:17 2001 UTC (23 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.36: +6 -3 lines
Diff to previous 1.36 (colored) to selected 1.31 (colored)

- record IPsec packet history into m_aux structure.
- let ipfilter look at wire-format packet only (not the decapsulated ones),
  so that VPN setting can work with NAT/ipfilter settings.
sync with kame.

TODO: use header history for stricter inbound validation

Revision 1.36 / (download) - annotate - [select for diffs], Sat Dec 9 01:29:50 2000 UTC (23 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.35: +5 -6 lines
Diff to previous 1.35 (colored) to selected 1.31 (colored)

update icmp6 too big validation.  the change is necessary since pmtud is
mandatory for IPv6 (so we can't just validate by using connected pcb - we need
to allow traffic from unconnected pcb to do pmtud).
- if the traffic is validated by xx_ctlinput, allow up to "hiwat" pmtud
  route entries.
- if the traffic was not validated by xx_ctlinput, allow up to "lowat" pmtud
  route entries (there's upper limit, so bad guys cannot blow up our routing
  table).
sync with kame

XXX need to think again about default hiwat/lowat value.
XXX victim selection to help starvation case

Revision 1.35 / (download) - annotate - [select for diffs], Mon Nov 6 00:50:13 2000 UTC (23 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored) to selected 1.31 (colored)

fix IPv4 TTL selection with AF_INET6 API.  sync with kame.  From: jdc

Revision 1.34 / (download) - annotate - [select for diffs], Thu Oct 19 01:14:13 2000 UTC (23 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.33: +52 -8 lines
Diff to previous 1.33 (colored) to selected 1.31 (colored)

validate ICMPv6 too big message.
XXX too restrictive given frequent uses of sendto(2)

Revision 1.33 / (download) - annotate - [select for diffs], Fri Oct 13 17:53:45 2000 UTC (23 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.32: +6 -2 lines
Diff to previous 1.32 (colored) to selected 1.31 (colored)

validate mbuf chain length on *_ctlinput.  remote node may be able to
transmit a truncated icmp6 packet and panic the system.  sync with kame.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jul 7 15:54:19 2000 UTC (23 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.31: +15 -59 lines
Diff to previous 1.31 (colored)

sync with kame.
introduce in6_{recover,embed}scope, for in-kernel scoped-address manipulation.
improve in6_pcbnotify.

Revision 1.31 / (download) - annotate - [selected], Wed Jun 28 03:04:04 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

<vm/vm.h> -> <uvm/uvm_extern.h>

Revision 1.30 / (download) - annotate - [select for diffs], Thu Jun 8 13:51:34 2000 UTC (23 years, 10 months ago) by itojun
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Changes since 1.29: +6 -1 lines
Diff to previous 1.29 (colored) to selected 1.31 (colored)

make sure not to overwrite sockaddr on PRU_SEND/PRU_CONNECT to
link-local address.  From: frank

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jun 5 06:38:23 2000 UTC (23 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.28: +6 -6 lines
Diff to previous 1.28 (colored) to selected 1.31 (colored)

pass struct proc * down to udp6_output and in6_pcbbind.

Revision 1.28 / (download) - annotate - [select for diffs], Mon May 22 15:22:36 2000 UTC (23 years, 11 months ago) by itojun
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored) to selected 1.31 (colored)

make net.inet6.udp6.* sysctl name meet with IPv4 counterpart.
XXX do we need to keep symbols mistakingly added (like UDP6CTL_SENDMAX)
for backward compatibility?  I believe not.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Apr 17 16:26:07 2000 UTC (24 years ago) by itojun
Branch: MAIN
Changes since 1.26: +22 -20 lines
Diff to previous 1.26 (colored) to selected 1.31 (colored)

fix endian issue in filling in interface id.
better sync with kame (nuke space at EOL).

Revision 1.26 / (download) - annotate - [select for diffs], Wed Mar 1 12:49:50 2000 UTC (24 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored) to selected 1.31 (colored)

introduce m->m_pkthdr.aux to hold random data which needs to be passed
between protocol handlers.

ipsec socket pointers, ipsec decryption/auth information, tunnel
decapsulation information are in my mind - there can be several other usage.
at this moment, we use this for ipsec socket pointer passing.  this will
avoid reuse of m->m_pkthdr.rcvif in ipsec code.

due to the change, MHLEN will be decreased by sizeof(void *) - for example,
for i386, MHLEN was 100 bytes, but is now 96 bytes.
we may want to increase MSIZE from 128 to 256 for some of our architectures.

take caution if you use it for keeping some data item for long period
of time - use extra caution on M_PREPEND() or m_adj(), as they may result
in loss of m->m_pkthdr.aux pointer (and mbuf leak).

this will bump kernel version.

(as discussed in tech-net, tested in kame tree)

Revision 1.25 / (download) - annotate - [select for diffs], Mon Feb 28 16:10:52 2000 UTC (24 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.24: +12 -11 lines
Diff to previous 1.24 (colored) to selected 1.31 (colored)

make ICMPv6 redirect actually flush route cache in udp6/raw6 socket.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Feb 25 00:29:00 2000 UTC (24 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.23: +4 -3 lines
Diff to previous 1.23 (colored) to selected 1.31 (colored)

remove extra NULL check
typo in PULLDOWN_TEST case
note: the fixes does not affect normal configuration.
(sync with kame)

Revision 1.23 / (download) - annotate - [select for diffs], Sun Feb 6 12:49:49 2000 UTC (24 years, 2 months ago) by itojun
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored) to selected 1.31 (colored)

fix include pathname for better rfc2292 compliance.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Feb 6 08:06:45 2000 UTC (24 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored) to selected 1.31 (colored)

don't chase mbuf pointer when it is NULL.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Feb 2 23:28:10 2000 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +4 -3 lines
Diff to previous 1.20 (colored) to selected 1.31 (colored)

PRU_PURGEADDR -> PRU_PURGEIF, per a discussion w/ itojun.  In the IPv4
and IPv6 code, also use this to traverse PCB tables, looking for cached
routes referencing the dying ifnet, forcing them to be refreshed.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Feb 1 22:52:12 2000 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.19: +6 -1 lines
Diff to previous 1.19 (colored) to selected 1.31 (colored)

First-draft if_detach() implementation, originally from Bill Studnemund,
although this version has been changed somewhat:
- reference counting on ifaddrs isn't as complete as Bill's original
  work was.  This is hard to get right, and we should attack one
  protocol at a time.
- This doesn't do reference counting or dynamic allocation of ifnets yet.
- This version introduces a new PRU -- PRU_PURGEADDR, which is used to
  purge an ifaddr from a protocol.  The old method Bill used didn't work
  on all protocols, and it only worked on some because it was Very Lucky.

This mostly works ... i.e. works for my USB Ethernet, except for a dangling
ifaddr reference left by the IPv6 code; have not yet tracked this down.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jan 31 14:19:07 2000 UTC (24 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored) to selected 1.31 (colored)

bring in latest KAME ipsec tree.
- interop issues in ipcomp is fixed
- padding type (after ESP) is configurable
- key database memory management (need more fixes)
- policy specification is revisited

XXX m->m_pkthdr.rcvif is still overloaded - hope to fix it soon

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jan 31 10:39:27 2000 UTC (24 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.17: +5 -1 lines
Diff to previous 1.17 (colored) to selected 1.31 (colored)

destination port == 0 is illegal based on RFC768.
(NetBSD PR: 9137 - I thought I committed this already but I wasn't)

Revision 1.17 / (download) - annotate - [select for diffs], Thu Jan 6 15:46:11 2000 UTC (24 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.16: +3 -35 lines
Diff to previous 1.16 (colored) to selected 1.31 (colored)

remove extra portability #ifdef (like #ifdef __FreeBSD__) in KAME IPv6/IPsec
code, from netbsd-current repository.
#ifdef'ed version is always available from ftp.kame.net.

XXX please do not make too many diff-unfriendly changes, we'll need to take
bunch of diffs on upgrade...

Revision 1.16 / (download) - annotate - [select for diffs], Wed Dec 22 04:03:03 1999 UTC (24 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.15: +8 -1 lines
Diff to previous 1.15 (colored) to selected 1.31 (colored)

drop IPv6 packets with v4 mapped address on src/dst.  they are illegal
and may be used to fool IPv6 implementations (by using ::ffff:127.0.0.1 as
source you may be able to pretend the packet is from local node)

Revision 1.15 / (download) - annotate - [select for diffs], Wed Dec 15 06:28:45 1999 UTC (24 years, 4 months ago) by itojun
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.14: +3 -2 lines
Diff to previous 1.14 (colored) to selected 1.31 (colored)

do not overwrite traffic class field when we write IPv6 version field.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Dec 13 15:17:24 1999 UTC (24 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.13: +215 -59 lines
Diff to previous 1.13 (colored) to selected 1.31 (colored)

sync IPv6 part with latest KAME tree.   IPsec part is left unmodified
due to massive changes in KAME side.
- IPv6 output goes through nd6_output
- faith can capture IPv4 packets as well - you can run IPv4-to-IPv6 translator
  using heavily modified DNS servers
- per-interface statistics (required for IPv6 MIB)
- interface autoconfig is revisited
- udp input handling has a big change for mapped address support.
- introduce in4_cksum() for non-overwriting checksumming
- introduce m_pulldown()
- neighbor discovery cleanups/improvements
- netinet/in.h strictly conforms to RFC2553 (no extra defs visible to userland)
- IFA_STATS is fixed a bit (not tested)
- and more more more.

TODO:
- cleanup os-independency #ifdef
- avoid rcvif dual use (for IPsec) to help ifdetach

(sorry for jumbo commit, I can't separate this any more...)

Revision 1.13 / (download) - annotate - [select for diffs], Mon Sep 13 12:15:56 1999 UTC (24 years, 7 months ago) by itojun
Branch: MAIN
CVS Tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored) to selected 1.31 (colored)

- Call in{,6}_pcbdetach if ipsec initialization is failed during PRU_ATTACH.
  This situation happens on severe memory shortage.  We may need more
  improvements here and there.
- Grab IEEE802 address from IFT_ETHER card, even if the card is
  inserted after bootup time.  Is there any other card that can be
  inserted afterwards?  pcmcia fddi card? :-P
- RFC2373 u bit handling suggests that we SHOULD NOT copy interface id from
  ethernet card to pseudo interface, when ethernet card has IEEE802/EUI64
  with u bit != 0 (this means that IEEE802/EUI64 is not universally unique).
  Do not use such address as, for example, interface id for gif interface.
  (I have such an ethernet card myself)
  This may change interface id for your gif interface.  be careful upgrading
  rc files.

(sync with recent KAME)

Revision 1.12 / (download) - annotate - [select for diffs], Wed Aug 25 12:38:14 1999 UTC (24 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored) to selected 1.31 (colored)

ctlinput handling must look at ip6_src, not ip6_dst.
(this makes path mtu handling wrong)

Revision 1.11 / (download) - annotate - [select for diffs], Fri Aug 13 10:57:05 1999 UTC (24 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored) to selected 1.31 (colored)

fix multicast demux.

From: Matthias Drochner <drochner@zel459.zel.kfa-juelich.de>

Revision 1.10 / (download) - annotate - [select for diffs], Mon Aug 9 10:55:30 1999 UTC (24 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.9: +4 -8 lines
Diff to previous 1.9 (colored) to selected 1.31 (colored)

return with doing nothing from xx_ctlinput(), when sa->sa_family
is not the expected one.

I see PRC_REDIRECT_HOST with sa->sa_family == AF_UNIX coming to
{tcp,udp}_ctlinput() when I use dhclient, and I feel like adding
more sanity checks, without logging - if we log it it is too noisy.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Aug 9 02:24:52 1999 UTC (24 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.8: +6 -3 lines
Diff to previous 1.8 (colored) to selected 1.31 (colored)

log() needs "\n" at the end.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Aug 5 16:01:07 1999 UTC (24 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.7: +16 -4 lines
Diff to previous 1.7 (colored) to selected 1.31 (colored)

import recent kAME fixes.
- initialize hoplimit for raw6 socket properly.
- respect SO_TIMESTAMP on udp6.
- more sanity checks.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jul 31 18:41:17 1999 UTC (24 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.6: +21 -4 lines
Diff to previous 1.6 (colored) to selected 1.31 (colored)

sync with recent KAME.
- loosen ipsec restriction on packet diredtion.
- revise icmp6 redirect handling on IsRouter bit.
- tcp/udp notification processing (link-local address case)
- cosmetic fixes (better code share across *BSD).

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jul 30 10:35:38 1999 UTC (24 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.5: +1 -2 lines
Diff to previous 1.5 (colored) to selected 1.31 (colored)

remove reference to in6_systm.h (file itself will be removed afterwords)

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jul 9 22:57:30 1999 UTC (24 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.4: +3 -1 lines
Diff to previous 1.4 (colored) to selected 1.31 (colored)

defopt IPSEC and IPSEC_ESP (both into opt_ipsec.h).

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jul 4 02:01:16 1999 UTC (24 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.3: +7 -7 lines
Diff to previous 1.3 (colored) to selected 1.31 (colored)

s/splnet/splsoftnet/ in IPv6/IPsec part.
hope I made no mistake (the kernel works fine but I need a regress test)

Suggested by: thorpej

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jul 3 21:30:20 1999 UTC (24 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.2: +2 -0 lines
Diff to previous 1.2 (colored) to selected 1.31 (colored)

RCS ID police.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jul 1 08:12:58 1999 UTC (24 years, 9 months ago) by itojun
Branch: MAIN
Branch point for: chs-ubc2
Changes since 1.1: +811 -0 lines
Diff to previous 1.1 (colored) to selected 1.31 (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.1, Mon Jun 28 06:37:08 1999 UTC (24 years, 9 months ago) by itojun
Branch: MAIN
Branch point for: kame
FILE REMOVED

file udp6_usrreq.c was initially added on branch kame.

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>