The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.184 / (download) - annotate - [select for diffs], Fri Nov 4 09:00:58 2022 UTC (16 months, 2 weeks ago) by ozaki-r
Branch: MAIN
CVS Tags: triaxx-drm, thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, 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.183: +12 -12 lines
Diff to previous 1.183 (colored) to selected 1.71 (colored)

inpcb: rename functions to inpcb_*

Inspired by rmind-smpnet patches.

Revision 1.183 / (download) - annotate - [select for diffs], Fri Oct 28 05:25:36 2022 UTC (16 months, 3 weeks ago) by ozaki-r
Branch: MAIN
Changes since 1.182: +16 -16 lines
Diff to previous 1.182 (colored) to selected 1.71 (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.182 / (download) - annotate - [select for diffs], Fri Oct 28 05:18:39 2022 UTC (16 months, 3 weeks ago) by ozaki-r
Branch: MAIN
Changes since 1.181: +5 -8 lines
Diff to previous 1.181 (colored) to selected 1.71 (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.181 / (download) - annotate - [select for diffs], Mon Jun 13 09:23:23 2022 UTC (21 months ago) by knakahara
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.180: +4 -4 lines
Diff to previous 1.180 (colored) to selected 1.71 (colored)

Refactor like in_pcb.c:r1.187 and in6_pcb.c:r1.168.

Use TAILQ_FOREACH instead of TAILQ_FOREACH_SAFE about inpt_queue.
rip_pcbnotify() doesn't use "ninph" pointer and doesn't remove elements.

Revision 1.180 / (download) - annotate - [select for diffs], Tue Sep 8 14:12:57 2020 UTC (3 years, 6 months 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-futex, 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.179: +3 -2 lines
Diff to previous 1.179 (colored) to selected 1.71 (colored)

Add IP_BINDANY, IPV6_BINDANY which can be used to bind to any address in
order to implement transparent proxies.

Revision 1.177.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:47 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.177: +6 -10 lines
Diff to previous 1.177 (colored) next main 1.178 (colored) to selected 1.71 (colored)

Sync with HEAD

Revision 1.179 / (download) - annotate - [select for diffs], Sun Feb 24 07:20:33 2019 UTC (5 years 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.178: +4 -2 lines
Diff to previous 1.178 (colored) to selected 1.71 (colored)

RIP, RIP6, DDP, SCTP and SCTP6 lack a length check in their _connect()
functions. Fix the first three, and add a big XXX in the SCTP ones.

Found by KASAN, triggered by SyzKaller.

Reported-by: syzbot+9eaf98dad6ca738c250d@syzkaller.appspotmail.com

Revision 1.171.2.5 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:56 2018 UTC (5 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.171.2.4: +4 -10 lines
Diff to previous 1.171.2.4 (colored) to branchpoint 1.171 (colored) next main 1.172 (colored) to selected 1.71 (colored)

Ssync with HEAD

Revision 1.178 / (download) - annotate - [select for diffs], Fri Sep 14 05:09:51 2018 UTC (5 years, 6 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
Changes since 1.177: +4 -10 lines
Diff to previous 1.177 (colored) to selected 1.71 (colored)

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

Revision 1.171.2.4 / (download) - annotate - [select for diffs], Mon May 21 04:36:16 2018 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.171.2.3: +11 -4 lines
Diff to previous 1.171.2.3 (colored) to branchpoint 1.171 (colored) to selected 1.71 (colored)

Sync with HEAD

Revision 1.177 / (download) - annotate - [select for diffs], Fri May 11 14:07:58 2018 UTC (5 years, 10 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521
Branch point for: phil-wifi
Changes since 1.176: +11 -4 lines
Diff to previous 1.176 (colored) to selected 1.71 (colored)

Make sure we have at least an IP header, and remove pointless XXXs (there
is no issue).

Revision 1.171.2.3 / (download) - annotate - [select for diffs], Wed May 2 07:20:23 2018 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.171.2.2: +2 -3 lines
Diff to previous 1.171.2.2 (colored) to branchpoint 1.171 (colored) to selected 1.71 (colored)

Synch with HEAD

Revision 1.176 / (download) - annotate - [select for diffs], Sat Apr 28 13:26:57 2018 UTC (5 years, 10 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-0502
Changes since 1.175: +2 -3 lines
Diff to previous 1.175 (colored) to selected 1.71 (colored)

Remove unused ipsec_var.h includes.

Revision 1.171.2.2 / (download) - annotate - [select for diffs], Mon Apr 16 02:00:08 2018 UTC (5 years, 11 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.171.2.1: +26 -21 lines
Diff to previous 1.171.2.1 (colored) to branchpoint 1.171 (colored) to selected 1.71 (colored)

Sync with HEAD, resolve some conflicts

Revision 1.175 / (download) - annotate - [select for diffs], Thu Apr 12 07:45:29 2018 UTC (5 years, 11 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-0422, pgoyette-compat-0415
Changes since 1.174: +12 -11 lines
Diff to previous 1.174 (colored) to selected 1.71 (colored)

Make 'opts' local to rip_sbappendaddr().

Revision 1.174 / (download) - annotate - [select for diffs], Thu Apr 12 07:28:10 2018 UTC (5 years, 11 months ago) by maxv
Branch: MAIN
Changes since 1.173: +8 -5 lines
Diff to previous 1.173 (colored) to selected 1.71 (colored)

Synchronize the code between raw_ip6.c<->icmp6.c<->raw_ip.c, so that it is
the same everywhere.

Revision 1.173 / (download) - annotate - [select for diffs], Thu Apr 12 06:49:39 2018 UTC (5 years, 11 months ago) by maxv
Branch: MAIN
Changes since 1.172: +10 -9 lines
Diff to previous 1.172 (colored) to selected 1.71 (colored)

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

Revision 1.164.4.2 / (download) - annotate - [select for diffs], Mon Apr 9 13:34:10 2018 UTC (5 years, 11 months ago) by bouyer
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.164.4.1: +3 -3 lines
Diff to previous 1.164.4.1 (colored) to branchpoint 1.164 (colored) next main 1.165 (colored) to selected 1.71 (colored)

Pull up following revision(s) (requested by roy in ticket #724):
	tests/net/icmp/t_ping.c: revision 1.19
	sys/netinet6/raw_ip6.c: revision 1.166
	sys/netinet6/ip6_input.c: revision 1.195
	sys/net/raw_usrreq.c: revision 1.59
	sys/sys/socketvar.h: revision 1.151
	sys/kern/uipc_socket2.c: revision 1.128
	tests/lib/libc/sys/t_recvmmsg.c: revision 1.2
	lib/libc/sys/recv.2: revision 1.38
	sys/net/rtsock.c: revision 1.239
	sys/netinet/udp_usrreq.c: revision 1.246
	sys/netinet6/icmp6.c: revision 1.224
	tests/net/icmp/t_ping.c: revision 1.20
	sys/netipsec/keysock.c: revision 1.63
	sys/netinet/raw_ip.c: revision 1.172
	sys/kern/uipc_socket.c: revision 1.260
	tests/net/icmp/t_ping.c: revision 1.22
	sys/kern/uipc_socket.c: revision 1.261
	tests/net/icmp/t_ping.c: revision 1.23
	sys/netinet/ip_mroute.c: revision 1.155
	sbin/route/route.c: revision 1.159
	sys/netinet6/ip6_mroute.c: revision 1.123
	sys/netatalk/ddp_input.c: revision 1.31
	sys/netcan/can.c: revision 1.3
	sys/kern/uipc_usrreq.c: revision 1.184
	sys/netinet6/udp6_usrreq.c: revision 1.138
	tests/net/icmp/t_ping.c: revision 1.18
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.
socket: clear error even when peeking
The error has already been reported and it's pointless requiring another
recv(2) call just to clear it.
socket: remove now incorrect comment that so_error is only udp
As it can be affected by route(4) sockets which are raw.
rtsock: log dropped messages that we cannot report to userland
Handle ENOBUFS when receiving messages.
Don't send messages if the receiver has died.
Sprinkle more soroverflow().
Handle ENOBUFS in recv
Handle ENOBUFS in sendto
Note value received. Harden another sendto for ENOBUFS.
Handle the routing socket overflowing gracefully.
Allow a valid sendto .... duh
Handle errors better.
Fix test for checking we sent all the data we asked to.

Revision 1.171.2.1 / (download) - annotate - [select for diffs], Thu Mar 22 01:44:51 2018 UTC (5 years, 11 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.171: +3 -3 lines
Diff to previous 1.171 (colored) to selected 1.71 (colored)

Synch with HEAD, resolve conflicts

Revision 1.172 / (download) - annotate - [select for diffs], Wed Mar 21 14:23:54 2018 UTC (5 years, 11 months ago) by roy
Branch: MAIN
CVS Tags: pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322
Changes since 1.171: +3 -3 lines
Diff to previous 1.171 (colored) to selected 1.71 (colored)

Sprinkle more soroverflow().

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

Remove unused ipsec_private.h includes.

Revision 1.170 / (download) - annotate - [select for diffs], Wed Feb 28 11:10:22 2018 UTC (6 years ago) by maxv
Branch: MAIN
Changes since 1.169: +2 -4 lines
Diff to previous 1.169 (colored) to selected 1.71 (colored)

(just forgot to commit this file, the message was)

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.169 / (download) - annotate - [select for diffs], Mon Feb 26 09:04:29 2018 UTC (6 years ago) by maxv
Branch: MAIN
Changes since 1.168: +4 -4 lines
Diff to previous 1.168 (colored) to selected 1.71 (colored)

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

ok ozaki-r@

Revision 1.168 / (download) - annotate - [select for diffs], Wed Feb 14 16:45:24 2018 UTC (6 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.167: +4 -6 lines
Diff to previous 1.167 (colored) to selected 1.71 (colored)

join lines where they fit.

Revision 1.164.4.1 / (download) - annotate - [select for diffs], Thu Dec 21 21:08:13 2017 UTC (6 years, 2 months ago) by snj
Branch: netbsd-8
Changes since 1.164: +55 -34 lines
Diff to previous 1.164 (colored) to selected 1.71 (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.167 / (download) - annotate - [select for diffs], Mon Dec 11 05:47:18 2017 UTC (6 years, 3 months ago) by ryo
Branch: MAIN
Changes since 1.166: +3 -4 lines
Diff to previous 1.166 (colored) to selected 1.71 (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.114.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:04 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.114.2.3: +98 -113 lines
Diff to previous 1.114.2.3 (colored) to branchpoint 1.114 (colored) next main 1.115 (colored) to selected 1.71 (colored)

update from HEAD

Revision 1.146.2.8 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:12 2017 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.146.2.7: +60 -46 lines
Diff to previous 1.146.2.7 (colored) to branchpoint 1.146 (colored) next main 1.147 (colored) to selected 1.71 (colored)

Sync with HEAD

Revision 1.166 / (download) - annotate - [select for diffs], Thu Aug 10 04:31:58 2017 UTC (6 years, 7 months ago) by ryo
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, nick-nhusb-base-20170825
Changes since 1.165: +56 -34 lines
Diff to previous 1.165 (colored) to selected 1.71 (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.165 / (download) - annotate - [select for diffs], Thu Jul 6 17:08:57 2017 UTC (6 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646
Changes since 1.164: +3 -11 lines
Diff to previous 1.164 (colored) to selected 1.71 (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.158.2.4 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:29 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.158.2.3: +4 -4 lines
Diff to previous 1.158.2.3 (colored) to branchpoint 1.158 (colored) next main 1.159 (colored) to selected 1.71 (colored)

Sync with HEAD

Revision 1.161.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:06 2017 UTC (6 years, 10 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.161: +12 -5 lines
Diff to previous 1.161 (colored) next main 1.162 (colored) to selected 1.71 (colored)

Sync with HEAD

Revision 1.164 / (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.163: +4 -4 lines
Diff to previous 1.163 (colored) to selected 1.71 (colored)

Remove unnecessary NULL checks for inp_socket and in6p_socket

They cannot be NULL except for programming errors.

Revision 1.158.2.3 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:50 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.158.2.2: +10 -3 lines
Diff to previous 1.158.2.2 (colored) to branchpoint 1.158 (colored) to selected 1.71 (colored)

Sync with HEAD

Revision 1.163 / (download) - annotate - [select for diffs], Fri Mar 3 07:13:06 2017 UTC (7 years ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320, jdolecek-ncq-base, jdolecek-ncq
Changes since 1.162: +3 -3 lines
Diff to previous 1.162 (colored) to selected 1.71 (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.146.2.7 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:59 2017 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.146.2.6: +9 -2 lines
Diff to previous 1.146.2.6 (colored) to branchpoint 1.146 (colored) to selected 1.71 (colored)

Sync with HEAD

Revision 1.162 / (download) - annotate - [select for diffs], Tue Jan 24 07:09:24 2017 UTC (7 years, 1 month ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20170204
Changes since 1.161: +9 -2 lines
Diff to previous 1.161 (colored) to selected 1.71 (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.158.2.2 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:21 2016 UTC (7 years, 4 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.158.2.1: +3 -5 lines
Diff to previous 1.158.2.1 (colored) to branchpoint 1.158 (colored) to selected 1.71 (colored)

Sync with HEAD

Revision 1.146.2.6 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:09 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.146.2.5: +10 -8 lines
Diff to previous 1.146.2.5 (colored) to branchpoint 1.146 (colored) to selected 1.71 (colored)

Sync with HEAD

Revision 1.161 / (download) - annotate - [select for diffs], Thu Sep 29 12:19:47 2016 UTC (7 years, 5 months ago) by roy
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20161204, nick-nhusb-base-20161004, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.160: +3 -3 lines
Diff to previous 1.160 (colored) to selected 1.71 (colored)

Now that we disallow sending or receiving from invalid addresses,
allow binding to tentative addresses.

Revision 1.160 / (download) - annotate - [select for diffs], Fri Aug 26 23:12:06 2016 UTC (7 years, 6 months ago) by roy
Branch: MAIN
CVS Tags: localcount-20160914
Changes since 1.159: +3 -5 lines
Diff to previous 1.159 (colored) to selected 1.71 (colored)

Allow bind to detached INET addresses.

Revision 1.158.2.1 / (download) - annotate - [select for diffs], Sat Aug 6 00:19:10 2016 UTC (7 years, 7 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.158: +10 -6 lines
Diff to previous 1.158 (colored) to selected 1.71 (colored)

Sync with HEAD

Revision 1.159 / (download) - annotate - [select for diffs], Mon Aug 1 03:15:31 2016 UTC (7 years, 7 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-20160806
Changes since 1.158: +10 -6 lines
Diff to previous 1.158 (colored) to selected 1.71 (colored)

Apply pserialize and psref to struct ifaddr and its variants

This change makes struct ifaddr and its variants (in_ifaddr and in6_ifaddr)
MP-safe by using pserialize and psref. At this moment, pserialize_perform
and psref_target_destroy are disabled because (1) we don't need them
because of softnet_lock (2) they cause a deadlock because of softnet_lock.
So we'll enable them when we remove softnet_lock in the future.

Revision 1.146.2.5 / (download) - annotate - [select for diffs], Sun May 29 08:44:38 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.146.2.4: +4 -5 lines
Diff to previous 1.146.2.4 (colored) to branchpoint 1.146 (colored) to selected 1.71 (colored)

Sync with HEAD

Revision 1.158 / (download) - annotate - [select for diffs], Thu May 12 02:24:17 2016 UTC (7 years, 10 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529
Branch point for: pgoyette-localcount
Changes since 1.157: +4 -4 lines
Diff to previous 1.157 (colored) to selected 1.71 (colored)

Protect ifnet list with psz and psref

The change ensures that ifnet objects in the ifnet list aren't freed during
list iterations by using pserialize(9) and psref(9).

Note that the change adds a pslist(9) for ifnet but doesn't remove the
original ifnet list (ifnet_list) to avoid breaking kvm(3) users. We
shouldn't use the original list in the kernel anymore.

Revision 1.157 / (download) - annotate - [select for diffs], Tue Apr 26 08:44:44 2016 UTC (7 years, 10 months ago) by ozaki-r
Branch: MAIN
Changes since 1.156: +2 -3 lines
Diff to previous 1.156 (colored) to selected 1.71 (colored)

Sweep unnecessary route.h inclusions

Revision 1.146.2.4 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:33 2016 UTC (8 years ago) by skrll
Branch: nick-nhusb
Changes since 1.146.2.3: +3 -9 lines
Diff to previous 1.146.2.3 (colored) to branchpoint 1.146 (colored) to selected 1.71 (colored)

Sync with HEAD

Revision 1.156 / (download) - annotate - [select for diffs], Thu Jan 21 15:41:30 2016 UTC (8 years, 1 month ago) by riastradh
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319
Changes since 1.155: +1 -1 lines
Diff to previous 1.155 (colored) to selected 1.71 (colored)

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

Hit up-arrow one too few times.

Revision 1.155 / (download) - annotate - [select for diffs], Thu Jan 21 15:27:48 2016 UTC (8 years, 1 month ago) by riastradh
Branch: MAIN
Changes since 1.154: +3 -3 lines
Diff to previous 1.154 (colored) to selected 1.71 (colored)

Give proper prototype to ip_output.

Revision 1.154 / (download) - annotate - [select for diffs], Wed Jan 20 22:02:54 2016 UTC (8 years, 1 month ago) by riastradh
Branch: MAIN
Changes since 1.153: +3 -9 lines
Diff to previous 1.153 (colored) to selected 1.71 (colored)

Give proper prototype to rip_output.

Revision 1.146.2.3 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:11 2015 UTC (8 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.146.2.2: +4 -2 lines
Diff to previous 1.146.2.2 (colored) to branchpoint 1.146 (colored) to selected 1.71 (colored)

Sync with HEAD

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

sprinkle _KERNEL_OPT

Revision 1.146.2.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:25 2015 UTC (8 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.146.2.1: +25 -55 lines
Diff to previous 1.146.2.1 (colored) to branchpoint 1.146 (colored) to selected 1.71 (colored)

Sync with HEAD

Revision 1.152 / (download) - annotate - [select for diffs], Sat May 2 17:18:03 2015 UTC (8 years, 10 months ago) by rtr
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.151: +6 -10 lines
Diff to previous 1.151 (colored) to selected 1.71 (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.151 / (download) - annotate - [select for diffs], Sat May 2 14:41:32 2015 UTC (8 years, 10 months ago) by roy
Branch: MAIN
Changes since 1.150: +13 -4 lines
Diff to previous 1.150 (colored) to selected 1.71 (colored)

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

Discussed on tech-net@

Revision 1.150 / (download) - annotate - [select for diffs], Sun Apr 26 21:40:49 2015 UTC (8 years, 10 months ago) by rtr
Branch: MAIN
Changes since 1.149: +2 -38 lines
Diff to previous 1.149 (colored) to selected 1.71 (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.149 / (download) - annotate - [select for diffs], Sat Apr 25 15:19:54 2015 UTC (8 years, 10 months ago) by rtr
Branch: MAIN
Changes since 1.148: +10 -9 lines
Diff to previous 1.148 (colored) to selected 1.71 (colored)

make rip_connect_pcb take sockaddr_in * instead of mbuf *
make rip_connect_pcb static since it appears to be used only in raw_ip.c

moves m_len check to callers which is a small duplication of code
that will go away when the callers are converted to receive sockaddr *.

Revision 1.148 / (download) - annotate - [select for diffs], Fri Apr 24 22:32:37 2015 UTC (8 years, 10 months ago) by rtr
Branch: MAIN
Changes since 1.147: +7 -7 lines
Diff to previous 1.147 (colored) to selected 1.71 (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.146.2.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:23 2015 UTC (8 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.146: +7 -9 lines
Diff to previous 1.146 (colored) to selected 1.71 (colored)

Sync with HEAD

Revision 1.147 / (download) - annotate - [select for diffs], Fri Apr 3 20:01:07 2015 UTC (8 years, 11 months ago) by rtr
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.146: +7 -9 lines
Diff to previous 1.146 (colored) to selected 1.71 (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.145.2.1 / (download) - annotate - [select for diffs], Sat Jan 17 12:10:53 2015 UTC (9 years, 2 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.145: +2 -3 lines
Diff to previous 1.145 (colored) next main 1.146 (colored) to selected 1.71 (colored)

Pull up following revision(s) (requested by maxv in ticket #427):
	sys/compat/svr4/svr4_schedctl.c: revision 1.8
	sys/netinet/tcp_timer.c: revision 1.88
	sys/miscfs/genfs/layer_vfsops.c: revision 1.45
	sys/compat/svr4/svr4_ioctl.c: revision 1.37
	sys/ufs/chfs/chfs_vfsops.c: revision 1.14
	sys/miscfs/fdesc/fdesc_vfsops.c: revision 1.91
	sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.30
	sys/compat/common/kern_time_50.c: revision 1.28
	sys/netinet6/ip6_forward.c: revision 1.74
	sys/miscfs/umapfs/umap_vnops.c: revision 1.57
	sys/compat/svr4/svr4_fcntl.c: revision 1.74
	distrib/sets/lists/comp/mi: revision 1.1931
	sys/netinet6/udp6_output.c: revision 1.46
	sys/fs/puffs/puffs_compat.c: revision 1.3
	sys/fs/udf/udf_rename.c: revision 1.11
	sys/compat/svr4/svr4_filio.c: revision 1.24
	sys/fs/udf/udf_rename.c: revision 1.12
	sys/netinet/tcp_usrreq.c: revision 1.202
	sys/miscfs/umapfs/umap_subr.c: revision 1.29
	sys/compat/linux/common/linux_fadvise64.c: revision 1.3
	sys/netinet/if_atm.c: revision 1.34
	sys/miscfs/procfs/procfs_subr.c: revision 1.106
	sys/miscfs/genfs/layer_subr.c: revision 1.37
	sys/netinet/tcp_sack.c: revision 1.30
	sys/compat/freebsd/freebsd_misc.c: revision 1.33
	sys/compat/freebsd/freebsd_file.c: revision 1.33
	sys/ufs/chfs/chfs_vnode.c: revision 1.12
	sys/compat/svr4/svr4_ttold.c: revision 1.34
	sys/compat/linux/common/linux_file.c: revision 1.114
	sys/compat/linux/arch/mips/linux_machdep.c: revision 1.43
	sys/compat/linux/common/linux_signal.c: revision 1.76
	sys/compat/common/compat_util.c: revision 1.46
	sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.18
	sys/compat/svr4/svr4_sockio.c: revision 1.36
	sys/compat/linux/arch/arm/linux_machdep.c: revision 1.32
	sys/compat/svr4/svr4_signal.c: revision 1.66
	sys/kern/kern_exec.c: revision 1.410
	sys/fs/puffs/puffs_vfsops.c: revision 1.115
	sys/compat/svr4/svr4_exec_elf64.c: revision 1.15
	sys/compat/linux/arch/i386/linux_machdep.c: revision 1.159
	sys/compat/linux/arch/alpha/linux_machdep.c: revision 1.50
	sys/compat/linux32/common/linux32_misc.c: revision 1.24
	sys/netinet/in_pcb.c: revision 1.153
	sys/sys/malloc.h: revision 1.116
	sys/compat/common/if_43.c: revision 1.9
	share/man/man9/Makefile: revision 1.380
	sys/netinet/tcp_vtw.c: revision 1.12
	sys/miscfs/umapfs/umap_vfsops.c: revision 1.95
	sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.186
	sys/compat/common/uipc_syscalls_43.c: revision 1.46
	sys/ufs/ext2fs/ext2fs_vnops.c: revision 1.115
	sys/fs/puffs/puffs_msgif.c: revision 1.97
	sys/compat/svr4/svr4_ipc.c: revision 1.27
	sys/compat/linux/common/linux_exec.c: revision 1.117
	sys/ufs/ext2fs/ext2fs_readwrite.c: revision 1.66
	sys/netinet/tcp_output.c: revision 1.179
	sys/compat/svr4/svr4_termios.c: revision 1.28
	sys/fs/udf/udf_strat_bootstrap.c: revision 1.4
	sys/fs/puffs/puffs_subr.c: revision 1.67
	sys/fs/puffs/puffs_node.c: revision 1.36
	sys/miscfs/overlay/overlay_vnops.c: revision 1.21
	sys/fs/cd9660/cd9660_node.c: revision 1.34
	sys/netinet/raw_ip.c: revision 1.146
	sys/sys/mallocvar.h: revision 1.13
	sys/miscfs/overlay/overlay_vfsops.c: revision 1.63
	share/man/man9/malloc.9: revision 1.50
	sys/netinet6/dest6.c: revision 1.18
	sys/compat/linux/common/linux_uselib.c: revision 1.33
	sys/compat/linux/common/linux_socket.c: revision 1.120
	share/man/man9/malloc.9: revision 1.51
	sys/netinet/tcp_subr.c: revision 1.257
	sys/compat/linux/common/linux_socketcall.c: revision 1.45
	sys/compat/linux/common/linux_fadvise64_64.c: revision 1.3
	sys/compat/freebsd/freebsd_ipc.c: revision 1.17
	sys/compat/linux/common/linux_misc_notalpha.c: revision 1.109
	sys/compat/linux/arch/alpha/linux_pipe.c: revision 1.17
	sys/netinet6/in6_pcb.c: revision 1.132
	sys/netinet6/in6_ifattach.c: revision 1.94
	sys/compat/svr4/svr4_exec_elf32.c: revision 1.15
	sys/miscfs/nullfs/null_vfsops.c: revision 1.90
	sys/fs/cd9660/cd9660_util.c: revision 1.12
	sys/compat/linux/arch/powerpc/linux_machdep.c: revision 1.48
	sys/compat/freebsd/freebsd_exec_elf32.c: revision 1.20
	sys/miscfs/procfs/procfs_vfsops.c: revision 1.94
	sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.28
	sys/compat/linux/common/linux_sched.c: revision 1.67
	sys/compat/linux/common/linux_exec_aout.c: revision 1.67
	sys/compat/linux/common/linux_pipe.c: revision 1.67
	sys/compat/linux/common/linux_llseek.c: revision 1.34
	sys/compat/linux/arch/mips/linux_ptrace.c: revision 1.10
Do not uselessly include <sys/malloc.h>.
Cleanup:
 - remove struct kmembuckets (dead)
 - correctly deadify MALLOC_XX
 - remove MALLOC_DEFINE_LIMIT and MALLOC_JUSTDEFINE_LIMIT (dead)
 - remove malloc_roundup(), malloc_type_setlimit(), MALLOC_DEFINE_LIMIT()
   and MALLOC_JUSTDEFINE_LIMIT() from man 9 malloc
New sentence, new line. Bump date for previous.
Obsolete malloc_roundup(9), malloc_type_setlimit(9) and MALLOC_DEFINE_LIMIT(9)
man pages.

Revision 1.146 / (download) - annotate - [select for diffs], Mon Nov 10 18:52:51 2014 UTC (9 years, 4 months ago) by maxv
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.145: +2 -3 lines
Diff to previous 1.145 (colored) to selected 1.71 (colored)

Do not uselessly include <sys/malloc.h>.

Revision 1.114.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:35 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.114.2.2: +372 -173 lines
Diff to previous 1.114.2.2 (colored) to branchpoint 1.114 (colored) to selected 1.71 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.118.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:25 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.118: +370 -164 lines
Diff to previous 1.118 (colored) next main 1.119 (colored) to selected 1.71 (colored)

Rebase.

Revision 1.145 / (download) - annotate - [select for diffs], Sat Aug 9 05:33:01 2014 UTC (9 years, 7 months ago) by rtr
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.144: +35 -32 lines
Diff to previous 1.144 (colored) to selected 1.71 (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.144 / (download) - annotate - [select for diffs], Fri Aug 8 03:05:45 2014 UTC (9 years, 7 months ago) by rtr
Branch: MAIN
Changes since 1.143: +13 -6 lines
Diff to previous 1.143 (colored) to selected 1.71 (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.143 / (download) - annotate - [select for diffs], Tue Aug 5 07:55:32 2014 UTC (9 years, 7 months ago) by rtr
Branch: MAIN
Changes since 1.142: +55 -38 lines
Diff to previous 1.142 (colored) to selected 1.71 (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.142 / (download) - annotate - [select for diffs], Tue Aug 5 05:24:26 2014 UTC (9 years, 7 months ago) by rtr
Branch: MAIN
Changes since 1.141: +5 -5 lines
Diff to previous 1.141 (colored) to selected 1.71 (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.141 / (download) - annotate - [select for diffs], Sun Aug 3 11:44:52 2014 UTC (9 years, 7 months ago) by rtr
Branch: MAIN
Changes since 1.140: +3 -3 lines
Diff to previous 1.140 (colored) to selected 1.71 (colored)

req cannot be PRU_SENDOOB here as per KASSERT() earlier in the
rip_usrreq() function.

-       KASSERT(!control || (req == PRU_SEND || req == PRU_SENDOOB));
+       KASSERT(!control || (req == PRU_SEND));

Revision 1.140 / (download) - annotate - [select for diffs], Sat Aug 2 03:55:26 2014 UTC (9 years, 7 months ago) by rtr
Branch: MAIN
Changes since 1.139: +22 -3 lines
Diff to previous 1.139 (colored) to selected 1.71 (colored)

restore splsoftnet() in various usrreqs that were removed during the PRU
splits.  we will properly review removal after the PRU split work is
complete.

Revision 1.139 / (download) - annotate - [select for diffs], Thu Jul 31 03:39:35 2014 UTC (9 years, 7 months ago) by rtr
Branch: MAIN
Changes since 1.138: +49 -18 lines
Diff to previous 1.138 (colored) to selected 1.71 (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.138 / (download) - annotate - [select for diffs], Thu Jul 31 02:21:51 2014 UTC (9 years, 7 months ago) by ozaki-r
Branch: MAIN
Changes since 1.137: +4 -4 lines
Diff to previous 1.137 (colored) to selected 1.71 (colored)

Define IFNET_EMPTY() and replace !IFNET_FIRST() with it

No functional change.

Revision 1.137 / (download) - annotate - [select for diffs], Wed Jul 30 10:04:26 2014 UTC (9 years, 7 months ago) by rtr
Branch: MAIN
Changes since 1.136: +29 -12 lines
Diff to previous 1.136 (colored) to selected 1.71 (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.136 / (download) - annotate - [select for diffs], Thu Jul 24 15:12:03 2014 UTC (9 years, 7 months ago) by rtr
Branch: MAIN
Changes since 1.135: +55 -30 lines
Diff to previous 1.135 (colored) to selected 1.71 (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.135 / (download) - annotate - [select for diffs], Wed Jul 23 13:17:18 2014 UTC (9 years, 7 months ago) by rtr
Branch: MAIN
Changes since 1.134: +27 -12 lines
Diff to previous 1.134 (colored) to selected 1.71 (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.134 / (download) - annotate - [select for diffs], Mon Jul 14 13:39:18 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
Changes since 1.133: +4 -4 lines
Diff to previous 1.133 (colored) to selected 1.71 (colored)

fix fat fingered KASSERT(solocked(0)) -> KASSERT(solocked(so)) mistake.

spotted by Takahiro HAYASHI

Revision 1.133 / (download) - annotate - [select for diffs], Wed Jul 9 14:41:42 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
Changes since 1.132: +15 -2 lines
Diff to previous 1.132 (colored) to selected 1.71 (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.132 / (download) - annotate - [select for diffs], Wed Jul 9 04:54:04 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
Changes since 1.131: +30 -10 lines
Diff to previous 1.131 (colored) to selected 1.71 (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.131 / (download) - annotate - [select for diffs], Mon Jul 7 17:13:56 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
Changes since 1.130: +4 -2 lines
Diff to previous 1.130 (colored) to selected 1.71 (colored)

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

Revision 1.130 / (download) - annotate - [select for diffs], Mon Jul 7 15:13:21 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
Changes since 1.129: +4 -3 lines
Diff to previous 1.129 (colored) to selected 1.71 (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.129 / (download) - annotate - [select for diffs], Mon Jul 7 07:09:58 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
Changes since 1.128: +3 -10 lines
Diff to previous 1.128 (colored) to selected 1.71 (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.128 / (download) - annotate - [select for diffs], Sun Jul 6 03:33:33 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
Changes since 1.127: +18 -9 lines
Diff to previous 1.127 (colored) to selected 1.71 (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.127 / (download) - annotate - [select for diffs], Tue Jul 1 05:49:18 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
Changes since 1.126: +4 -5 lines
Diff to previous 1.126 (colored) to selected 1.71 (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.126 / (download) - annotate - [select for diffs], Mon Jun 23 17:18:45 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
Changes since 1.125: +4 -4 lines
Diff to previous 1.125 (colored) to selected 1.71 (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.125 / (download) - annotate - [select for diffs], Sun Jun 22 08:10:18 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
Changes since 1.124: +12 -5 lines
Diff to previous 1.124 (colored) to selected 1.71 (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.124 / (download) - annotate - [select for diffs], Fri May 30 01:39:03 2014 UTC (9 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.123: +6 -4 lines
Diff to previous 1.123 (colored) to selected 1.71 (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.123 / (download) - annotate - [select for diffs], Thu May 22 23:42:53 2014 UTC (9 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.122: +9 -4 lines
Diff to previous 1.122 (colored) to selected 1.71 (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.112.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:41:10 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.112.2.1: +12 -21 lines
Diff to previous 1.112.2.1 (colored) to branchpoint 1.112 (colored) next main 1.113 (colored) to selected 1.71 (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.122 / (download) - annotate - [select for diffs], Tue May 20 19:04:00 2014 UTC (9 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.121: +5 -4 lines
Diff to previous 1.121 (colored) to selected 1.71 (colored)

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

Revision 1.121 / (download) - annotate - [select for diffs], Mon May 19 02:51:25 2014 UTC (9 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.120: +70 -58 lines
Diff to previous 1.120 (colored) to selected 1.71 (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.116.2.4 / (download) - annotate - [select for diffs], Sun May 18 17:46:13 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.116.2.3: +6 -11 lines
Diff to previous 1.116.2.3 (colored) to branchpoint 1.116 (colored) next main 1.117 (colored) to selected 1.71 (colored)

sync with head

Revision 1.120 / (download) - annotate - [select for diffs], Sun May 18 14:46:16 2014 UTC (9 years, 10 months ago) by rmind
Branch: MAIN
CVS Tags: rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.119: +10 -2 lines
Diff to previous 1.119 (colored) to selected 1.71 (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.119 / (download) - annotate - [select for diffs], Sun May 18 00:10:11 2014 UTC (9 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.118: +4 -4 lines
Diff to previous 1.118 (colored) to selected 1.71 (colored)

Use IFNET_FIRST() rather than open coding ifnet access.

Revision 1.118 / (download) - annotate - [select for diffs], Tue Feb 25 18:30:12 2014 UTC (10 years 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.117: +2 -7 lines
Diff to previous 1.117 (colored) to selected 1.71 (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.117 / (download) - annotate - [select for diffs], Sat Nov 23 14:20:21 2013 UTC (10 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.116: +6 -8 lines
Diff to previous 1.116 (colored) to selected 1.71 (colored)

convert from CIRCLEQ to TAILQ.

Revision 1.116.2.3 / (download) - annotate - [select for diffs], Mon Sep 23 00:57:53 2013 UTC (10 years, 5 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.116.2.2: +3 -2 lines
Diff to previous 1.116.2.2 (colored) to branchpoint 1.116 (colored) to selected 1.71 (colored)

- Add some initial locking to the IPv4 PCB.
- Rename inpcb_lookup_*() routines to be more accurate and add comments.
- Add some comments about connection life-cycle WRT socket layer.

Revision 1.116.2.2 / (download) - annotate - [select for diffs], Wed Aug 28 15:21:48 2013 UTC (10 years, 6 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.116.2.1: +65 -38 lines
Diff to previous 1.116.2.1 (colored) to branchpoint 1.116 (colored) to selected 1.71 (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.116.2.1 / (download) - annotate - [select for diffs], Wed Jul 17 03:16:31 2013 UTC (10 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.116: +265 -257 lines
Diff to previous 1.116 (colored) to selected 1.71 (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.114.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:25 2013 UTC (10 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.114.2.1: +6 -6 lines
Diff to previous 1.114.2.1 (colored) to branchpoint 1.114 (colored) to selected 1.71 (colored)

resync from head

Revision 1.116 / (download) - annotate - [select for diffs], Wed Jun 5 19:01:26 2013 UTC (10 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Changes since 1.115: +6 -6 lines
Diff to previous 1.115 (colored) to selected 1.71 (colored)

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

Revision 1.114.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:05 2013 UTC (11 years ago) by tls
Branch: tls-maxphys
Changes since 1.114: +4 -6 lines
Diff to previous 1.114 (colored) to selected 1.71 (colored)

resync with head

Revision 1.115 / (download) - annotate - [select for diffs], Tue Feb 5 17:30:02 2013 UTC (11 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: khorben-n900, agc-symver-base, agc-symver
Changes since 1.114: +4 -6 lines
Diff to previous 1.114 (colored) to selected 1.71 (colored)

Remove remnants of AF_IMPLINK.

Revision 1.112.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:41 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.112: +4 -9 lines
Diff to previous 1.112 (colored) to selected 1.71 (colored)

sync with head

Revision 1.112.6.2 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:44 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.112.6.1: +4 -9 lines
Diff to previous 1.112.6.1 (colored) to branchpoint 1.112 (colored) next main 1.113 (colored) to selected 1.71 (colored)

sync to latest -current.

Revision 1.114 / (download) - annotate - [select for diffs], Thu Mar 22 20:34:39 2012 UTC (11 years, 11 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.113: +4 -9 lines
Diff to previous 1.113 (colored) to selected 1.71 (colored)

remove KAME IPSEC, replaced by FAST_IPSEC

Revision 1.112.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:39 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.112: +6 -6 lines
Diff to previous 1.112 (colored) to selected 1.71 (colored)

merge to -current.

Revision 1.113 / (download) - annotate - [select for diffs], Mon Dec 19 11:59:57 2011 UTC (12 years, 3 months ago) by drochner
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Changes since 1.112: +6 -6 lines
Diff to previous 1.112 (colored) to selected 1.71 (colored)

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

Revision 1.112 / (download) - annotate - [select for diffs], Sun Jul 17 20:54:53 2011 UTC (12 years, 8 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.111: +2 -4 lines
Diff to previous 1.111 (colored) to selected 1.71 (colored)

Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.

Revision 1.107.2.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:28 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.107.2.1: +9 -6 lines
Diff to previous 1.107.2.1 (colored) to branchpoint 1.107 (colored) next main 1.108 (colored) to selected 1.71 (colored)

sync with head

Revision 1.111 / (download) - annotate - [select for diffs], Wed Dec 9 00:45:25 2009 UTC (14 years, 3 months ago) by dyoung
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, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, matt-premerge-20091211, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.110: +4 -5 lines
Diff to previous 1.110 (colored) to selected 1.71 (colored)

Remove superfluous cast of a pointer to void *.

Compare a pointer with NULL, not 0.

No functional change intended.

Revision 1.110 / (download) - annotate - [select for diffs], Wed Sep 16 15:23:05 2009 UTC (14 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.109: +7 -3 lines
Diff to previous 1.109 (colored) to selected 1.71 (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.107.2.1 / (download) - annotate - [select for diffs], Mon May 4 08:14:17 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.107: +44 -35 lines
Diff to previous 1.107 (colored) to selected 1.71 (colored)

sync with head.

Revision 1.108.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:13 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.108: +12 -4 lines
Diff to previous 1.108 (colored) next main 1.109 (colored) to selected 1.71 (colored)

Sync with HEAD.

Revision 1.109 / (download) - annotate - [select for diffs], Mon Jan 19 02:27:57 2009 UTC (15 years, 2 months ago) by christos
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-base2, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-base, jym-xensuspend
Changes since 1.108: +12 -4 lines
Diff to previous 1.108 (colored) to selected 1.71 (colored)

Provide compatibility to the old timeval SCM_TIMESTAMP messages.

Revision 1.107.8.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:46 2008 UTC (15 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.107: +34 -33 lines
Diff to previous 1.107 (colored) next main 1.108 (colored) to selected 1.71 (colored)

Sync with HEAD.

Revision 1.103.6.2 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:58 2008 UTC (15 years, 5 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.103.6.1: +32 -31 lines
Diff to previous 1.103.6.1 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored) to selected 1.71 (colored)

Sync with HEAD.

Revision 1.107.4.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:37:01 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.107: +34 -33 lines
Diff to previous 1.107 (colored) next main 1.108 (colored) to selected 1.71 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.108 / (download) - annotate - [select for diffs], Wed Aug 6 15:01:23 2008 UTC (15 years, 7 months ago) by plunky
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, 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.107: +34 -33 lines
Diff to previous 1.107 (colored) to selected 1.71 (colored)

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

approved by core

Revision 1.103.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:24 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.103: +21 -11 lines
Diff to previous 1.103 (colored) to selected 1.71 (colored)

Sync with HEAD.

Revision 1.105.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:29 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.105: +12 -7 lines
Diff to previous 1.105 (colored) next main 1.106 (colored) to selected 1.71 (colored)

sync with head.

Revision 1.107 / (download) - annotate - [select for diffs], Thu Apr 24 11:38:38 2008 UTC (15 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, 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.106: +5 -2 lines
Diff to previous 1.106 (colored) to selected 1.71 (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.106 / (download) - annotate - [select for diffs], Wed Apr 23 06:09:04 2008 UTC (15 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.105: +9 -7 lines
Diff to previous 1.105 (colored) to selected 1.71 (colored)

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

Revision 1.105 / (download) - annotate - [select for diffs], Sat Apr 12 05:58:22 2008 UTC (15 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.104: +11 -6 lines
Diff to previous 1.104 (colored) to selected 1.71 (colored)

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

Revision 1.104 / (download) - annotate - [select for diffs], Mon Apr 7 06:31:28 2008 UTC (15 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.103: +6 -6 lines
Diff to previous 1.103 (colored) to selected 1.71 (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.97.8.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:06 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.97.8.2: +4 -4 lines
Diff to previous 1.97.8.2 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored) to selected 1.71 (colored)

sync with HEAD

Revision 1.100.6.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:08 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.100.6.2: +4 -4 lines
Diff to previous 1.100.6.2 (colored) to branchpoint 1.100 (colored) next main 1.101 (colored) to selected 1.71 (colored)

Sync with HEAD.

Revision 1.87.2.8 / (download) - annotate - [select for diffs], Mon Feb 11 15:00:05 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.87.2.7: +4 -4 lines
Diff to previous 1.87.2.7 (colored) to branchpoint 1.87 (colored) next main 1.88 (colored) to selected 1.71 (colored)

sync with head.

Revision 1.103 / (download) - annotate - [select for diffs], Wed Feb 6 03:20:52 2008 UTC (16 years, 1 month 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.102: +4 -4 lines
Diff to previous 1.102 (colored) to selected 1.71 (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.87.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:47:17 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.87.2.6: +3 -3 lines
Diff to previous 1.87.2.6 (colored) to branchpoint 1.87 (colored) to selected 1.71 (colored)

sync with head

Revision 1.97.8.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:57:29 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.97.8.1: +5 -5 lines
Diff to previous 1.97.8.1 (colored) to branchpoint 1.97 (colored) to selected 1.71 (colored)

sync with HEAD

Revision 1.101.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:57:23 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored) next main 1.102 (colored) to selected 1.71 (colored)

Sync with HEAD

Revision 1.100.6.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:31 2007 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.100.6.1: +3 -3 lines
Diff to previous 1.100.6.1 (colored) to branchpoint 1.100 (colored) to selected 1.71 (colored)

Sync with HEAD.

Revision 1.101.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:41 2007 UTC (16 years, 2 months ago) by ad
Branch: vmlocking2
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored) next main 1.102 (colored) to selected 1.71 (colored)

Sync with head.

Revision 1.102 / (download) - annotate - [select for diffs], Fri Dec 21 02:07:55 2007 UTC (16 years, 3 months ago) by matt
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored) to selected 1.71 (colored)

Add fix for ip_id information leakage.  Since the leakage information is
primarily used with TCP SYN and RST packets and such packets are less than
the smallest sized packet that an IP stack is allowed to fragment, we simply
set ip_id to 0 for all packets 68 bytes or less.

Revision 1.100.6.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:21:14 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.100: +4 -4 lines
Diff to previous 1.100 (colored) to selected 1.71 (colored)

Sync with HEAD.

Revision 1.87.2.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:34:32 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.87.2.5: +4 -4 lines
Diff to previous 1.87.2.5 (colored) to branchpoint 1.87 (colored) to selected 1.71 (colored)

sync with head

Revision 1.97.6.3 / (download) - annotate - [select for diffs], Mon Dec 3 16:15:10 2007 UTC (16 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.97.6.2: +4 -4 lines
Diff to previous 1.97.6.2 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored) to selected 1.71 (colored)

Sync with HEAD.

Revision 1.101 / (download) - annotate - [select for diffs], Tue Nov 27 22:45:29 2007 UTC (16 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.100: +4 -4 lines
Diff to previous 1.100 (colored) to selected 1.71 (colored)

require that the options argument is the right size, not that it is greater
or equal to the requested size. Suggested by Matt Thomas.

Revision 1.97.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:33:51 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.97: +58 -48 lines
Diff to previous 1.97 (colored) to selected 1.71 (colored)

sync with HEAD

Revision 1.87.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:36:09 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.87.2.4: +57 -47 lines
Diff to previous 1.87.2.4 (colored) to branchpoint 1.87 (colored) to selected 1.71 (colored)

sync with head.

Revision 1.96.2.2 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:51 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.96.2.1: +58 -48 lines
Diff to previous 1.96.2.1 (colored) to branchpoint 1.96 (colored) next main 1.97 (colored) to selected 1.71 (colored)

Sync with head.

Revision 1.97.6.2 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:20 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.97.6.1: +57 -47 lines
Diff to previous 1.97.6.1 (colored) to branchpoint 1.97 (colored) to selected 1.71 (colored)

Sync with HEAD.

Revision 1.100 / (download) - annotate - [select for diffs], Wed Sep 19 04:33:43 2007 UTC (16 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.99: +57 -47 lines
Diff to previous 1.99 (colored) to selected 1.71 (colored)

1) Introduce a new socket option, (SOL_SOCKET, SO_NOHEADER), that
   tells a socket that it should both add a protocol header to tx'd
   datagrams and remove the header from rx'd datagrams:

        int onoff = 1, s = socket(...);
        setsockopt(s, SOL_SOCKET, SO_NOHEADER, &onoff);

2) Add an implementation of (SOL_SOCKET, SO_NOHEADER) for raw IPv4
   sockets.

3) Reorganize the protocols' pr_ctloutput implementations a bit.
   Consistently return ENOPROTOOPT when an option is unsupported,
   and EINVAL if a supported option's arguments are incorrect.
   Reorganize the flow of code so that it's more clear how/when
   options are passed down the stack until they are handled.

   Shorten some pr_ctloutput staircases for readability.

4) Extract common mbuf code into subroutines, add new sockaddr
   methods, and introduce a new subroutine, fsocreate(), for reuse
   later; use it first in sys_socket():

struct mbuf *m_getsombuf(struct socket *so)

        Create an mbuf and make its owner the socket `so'.

struct mbuf *m_intopt(struct socket *so, int val)

        Create an mbuf, make its owner the socket `so', put the
        int `val' into it, and set its length to sizeof(int).


int fsocreate(..., int *fd)

        Create a socket, a la socreate(9), put the socket into the
        given LWP's descriptor table, return the descriptor at `fd'
        on success.

void *sockaddr_addr(struct sockaddr *sa, socklen_t *slenp)
const void *sockaddr_const_addr(const struct sockaddr *sa, socklen_t *slenp)

        Extract a pointer to the address part of a sockaddr.  Write
        the length of the address  part at `slenp', if `slenp' is
        not NULL.

socklen_t sockaddr_getlen(const struct sockaddr *sa)

        Return the length of a sockaddr.  This just evaluates to
        sa->sa_len.  I only add this for consistency with code that
        appears in a portable userland library that I am going to
        import.

const struct sockaddr *sockaddr_any(const struct sockaddr *sa)

        Return the "don't care" sockaddr in the same family as
        `sa'.  This is the address a client should sobind(9) if it
        does not care the source address and, if applicable, the
        port et cetera that it uses.

const void *sockaddr_anyaddr(const struct sockaddr *sa, socklen_t *slenp)

        Return the "don't care" sockaddr in the same family as
        `sa'.  This is the address a client should sobind(9) if it
        does not care the source address and, if applicable, the
        port et cetera that it uses.

Revision 1.97.6.1 / (download) - annotate - [select for diffs], Mon Sep 3 16:49:06 2007 UTC (16 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored) to selected 1.71 (colored)

Sync with HEAD.

Revision 1.87.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:43:00 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.87.2.3: +35 -43 lines
Diff to previous 1.87.2.3 (colored) to branchpoint 1.87 (colored) to selected 1.71 (colored)

sync with head.

Revision 1.97.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:23:46 2007 UTC (16 years, 6 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored) next main 1.98 (colored) to selected 1.71 (colored)

Sync with HEAD.

Revision 1.99 / (download) - annotate - [select for diffs], Sun Sep 2 07:18:55 2007 UTC (16 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: nick-csl-alignment-base5
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored) to selected 1.71 (colored)

m_copym(..., 0, M_COPYALL, ...) -> m_copypacket(..., ...).

Revision 1.98 / (download) - annotate - [select for diffs], Sun Sep 2 03:12:23 2007 UTC (16 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored) to selected 1.71 (colored)

m_copy() was deprecated, apparently, long ago.  m_copy(...) ->
m_copym(..., M_DONTWAIT).

Revision 1.96.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:11:26 2007 UTC (16 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.96: +34 -42 lines
Diff to previous 1.96 (colored) next main 1.97 (colored) to selected 1.71 (colored)

Sync with head.

Revision 1.96.2.1 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:47 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.96: +34 -42 lines
Diff to previous 1.96 (colored) to selected 1.71 (colored)

Sync with head.

Revision 1.94.4.3 / (download) - annotate - [select for diffs], Thu May 17 13:41:50 2007 UTC (16 years, 10 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.94.4.2: +34 -42 lines
Diff to previous 1.94.4.2 (colored) to branchpoint 1.94 (colored) next main 1.95 (colored) to selected 1.71 (colored)

sync with head.

Revision 1.97 / (download) - annotate - [select for diffs], Sat May 12 02:10:25 2007 UTC (16 years, 10 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, matt-armv6, jmcneill-pm
Changes since 1.96: +34 -42 lines
Diff to previous 1.96 (colored) to selected 1.71 (colored)

KNF.  Use sockaddr_in_init().  Shorten staircases.  No functional
changes intended.

Revision 1.94.4.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:59:38 2007 UTC (17 years ago) by rmind
Branch: yamt-idlelwp
Changes since 1.94.4.1: +4 -4 lines
Diff to previous 1.94.4.1 (colored) to branchpoint 1.94 (colored) to selected 1.71 (colored)

Sync with HEAD.

Revision 1.96 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:21 2007 UTC (17 years ago) by christos
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.95: +4 -4 lines
Diff to previous 1.95 (colored) to selected 1.71 (colored)

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

Revision 1.94.4.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:56 2007 UTC (17 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.94: +5 -5 lines
Diff to previous 1.94 (colored) to selected 1.71 (colored)

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

Revision 1.87.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:45 2007 UTC (17 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.87.2.2: +5 -5 lines
Diff to previous 1.87.2.2 (colored) to branchpoint 1.87 (colored) to selected 1.71 (colored)

sync with head.

Revision 1.95 / (download) - annotate - [select for diffs], Sat Feb 17 22:34:12 2007 UTC (17 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.94: +5 -5 lines
Diff to previous 1.94 (colored) to selected 1.71 (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.87.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:33 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.87.2.1: +11 -8 lines
Diff to previous 1.87.2.1 (colored) to branchpoint 1.87 (colored) to selected 1.71 (colored)

sync with head.

Revision 1.91.2.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:19:11 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.91.2.1: +7 -6 lines
Diff to previous 1.91.2.1 (colored) to branchpoint 1.91 (colored) next main 1.92 (colored) to selected 1.71 (colored)

sync with head.

Revision 1.90.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:36 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.90: +10 -5 lines
Diff to previous 1.90 (colored) next main 1.91 (colored) to selected 1.71 (colored)

Sync with head.

Revision 1.94 / (download) - annotate - [select for diffs], Wed Oct 25 22:49:23 2006 UTC (17 years, 4 months ago) by elad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, 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
Branch point for: yamt-idlelwp
Changes since 1.93: +7 -6 lines
Diff to previous 1.93 (colored) to selected 1.71 (colored)

Introduce KAUTH_REQ_NETWORK_SOCKET_OPEN, to check if opening a socket is
allowed. It takes three int * arguments indicating domain, type, and
protocol. Replace previous KAUTH_REQ_NETWORK_SOCKET_RAWSOCK with it (but
keep it still).

Places that used to explicitly check for privileged context now don't
need it anymore, so I replaced these with XXX comment indiacting it for
future reference.

Documented and updated examples as well.

Revision 1.91.2.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:28 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.91: +6 -4 lines
Diff to previous 1.91 (colored) to selected 1.71 (colored)

sync with head

Revision 1.93 / (download) - annotate - [select for diffs], Thu Oct 5 17:35:19 2006 UTC (17 years, 5 months ago) by tls
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.92: +5 -3 lines
Diff to previous 1.92 (colored) to selected 1.71 (colored)

Protect calls to pool_put/pool_get that may occur in interrupt context
with spl used to protect other allocations and frees, or datastructure
element insertion and removal, in adjacent code.

It is almost unquestionably the case that some of the spl()/splx() calls
added here are superfluous, but it really seems wrong to see:

	s=splfoo();
	/* frob data structure */
	splx(s);
	pool_put(x);

and if we think we need to protect the first operation, then it is hard
to see why we should not think we need to protect the next.  "Better
safe than sorry".

It is also almost unquestionably the case that I missed some pool
gets/puts from interrupt context with my strategy for finding these
calls; use of PR_NOWAIT is a strong hint that a pool may be used from
interrupt context but many callers in the kernel pass a "can wait/can't
wait" flag down such that my searches might not have found them.  One
notable area that needs to be looked at is pf.

See also:

http://mail-index.netbsd.org/tech-kern/2006/07/19/0003.html
http://mail-index.netbsd.org/tech-kern/2006/07/19/0009.html

Revision 1.92 / (download) - annotate - [select for diffs], Tue Sep 19 21:42:30 2006 UTC (17 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.91: +3 -3 lines
Diff to previous 1.91 (colored) to selected 1.71 (colored)

Remove ugly (void *) casts from network scope authorization wrapper and
calls to it.

While here, adapt code for system scope listeners to avoid some more
casts (forgotten in previous run).

Update documentation.

Revision 1.88.8.3 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:55 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.88.8.2: +6 -4 lines
Diff to previous 1.88.8.2 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored) to selected 1.71 (colored)

sync with head.

Revision 1.88.4.2 / (download) - annotate - [select for diffs], Sat Sep 9 02:58:47 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.88.4.1: +6 -6 lines
Diff to previous 1.88.4.1 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored) to selected 1.71 (colored)

sync with head

Revision 1.91 / (download) - annotate - [select for diffs], Fri Sep 8 20:58:58 2006 UTC (17 years, 6 months ago) by elad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9
Branch point for: yamt-splraiseipl
Changes since 1.90: +6 -4 lines
Diff to previous 1.90 (colored) to selected 1.71 (colored)

First take at security model abstraction.

- Add a few scopes to the kernel: system, network, and machdep.

- Add a few more actions/sub-actions (requests), and start using them as
  opposed to the KAUTH_GENERIC_ISSUSER place-holders.

- Introduce a basic set of listeners that implement our "traditional"
  security model, called "bsd44". This is the default (and only) model we
  have at the moment.

- Update all relevant documentation.

- Add some code and docs to help folks who want to actually use this stuff:

  * There's a sample overlay model, sitting on-top of "bsd44", for
    fast experimenting with tweaking just a subset of an existing model.

    This is pretty cool because it's *really* straightforward to do stuff
    you had to use ugly hacks for until now...

  * And of course, documentation describing how to do the above for quick
    reference, including code samples.

All of these changes were tested for regressions using a Python-based
testsuite that will be (I hope) available soon via pkgsrc. Information
about the tests, and how to write new ones, can be found on:

	http://kauth.linbsd.org/kauthwiki

NOTE FOR DEVELOPERS: *PLEASE* don't add any code that does any of the
following:

  - Uses a KAUTH_GENERIC_ISSUSER kauth(9) request,
  - Checks 'securelevel' directly,
  - Checks a uid/gid directly.

(or if you feel you have to, contact me first)

This is still work in progress; It's far from being done, but now it'll
be a lot easier.

Relevant mailing list threads:

http://mail-index.netbsd.org/tech-security/2006/01/25/0011.html
http://mail-index.netbsd.org/tech-security/2006/03/24/0001.html
http://mail-index.netbsd.org/tech-security/2006/04/18/0000.html
http://mail-index.netbsd.org/tech-security/2006/05/15/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/01/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/25/0000.html

Many thanks to YAMAMOTO Takashi, Matt Thomas, and Christos Zoulas for help
stablizing kauth(9).

Full credit for the regression tests, making sure these changes didn't break
anything, goes to Matt Fleming and Jaime Fournier.

Happy birthday Randi! :)

Revision 1.88.8.2 / (download) - annotate - [select for diffs], Fri Aug 11 15:46:33 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.88.8.1: +5 -7 lines
Diff to previous 1.88.8.1 (colored) to branchpoint 1.88 (colored) to selected 1.71 (colored)

sync with head

Revision 1.90 / (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-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: newlock2
Changes since 1.89: +5 -7 lines
Diff to previous 1.89 (colored) to selected 1.71 (colored)

Use the LWP cached credentials where sane.

Revision 1.87.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:11:01 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.87: +8 -4 lines
Diff to previous 1.87 (colored) to selected 1.71 (colored)

sync with head.

Revision 1.88.6.1 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:47 2006 UTC (17 years, 9 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.88: +5 -3 lines
Diff to previous 1.88 (colored) next main 1.89 (colored) to selected 1.71 (colored)

Sync with head.

Revision 1.88.12.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:45 2006 UTC (17 years, 9 months ago) by tron
Branch: peter-altq
Changes since 1.88: +5 -3 lines
Diff to previous 1.88 (colored) next main 1.89 (colored) to selected 1.71 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.88.8.1 / (download) - annotate - [select for diffs], Wed May 24 10:59:03 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.88: +5 -3 lines
Diff to previous 1.88 (colored) to selected 1.71 (colored)

sync with head.

Revision 1.89 / (download) - annotate - [select for diffs], Sun May 14 21:19:34 2006 UTC (17 years, 10 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi
Changes since 1.88: +5 -3 lines
Diff to previous 1.88 (colored) to selected 1.71 (colored)

integrate kauth.

Revision 1.88.10.3 / (download) - annotate - [select for diffs], Sat May 6 23:32:11 2006 UTC (17 years, 10 months ago) by christos
Branch: elad-kernelauth
Changes since 1.88.10.2: +3 -2 lines
Diff to previous 1.88.10.2 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored) to selected 1.71 (colored)

- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.88.10.2 / (download) - annotate - [select for diffs], Fri Mar 10 15:20:54 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.88.10.1: +3 -3 lines
Diff to previous 1.88.10.1 (colored) to branchpoint 1.88 (colored) to selected 1.71 (colored)

generic_authorize() -> kauth_authorize_generic().

Revision 1.88.10.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:19:40 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.88: +4 -3 lines
Diff to previous 1.88 (colored) to selected 1.71 (colored)

Adapt to kernel authorization KPI.

Revision 1.88.4.1 / (download) - annotate - [select for diffs], Sun Feb 5 03:03:09 2006 UTC (18 years, 1 month ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.88: +3 -5 lines
Diff to previous 1.88 (colored) to selected 1.71 (colored)

inpcb_hdr is gone.

Revision 1.88 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:57 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.87: +5 -3 lines
Diff to previous 1.87 (colored) to selected 1.71 (colored)

merge ktrace-lwp.

Revision 1.70.2.7 / (download) - annotate - [select for diffs], Thu Nov 10 14:11:07 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.70.2.6: +3 -2 lines
Diff to previous 1.70.2.6 (colored) next main 1.71 (colored)

Sync with HEAD. Here we go again...

Revision 1.81.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:33 2005 UTC (18 years, 10 months ago) by kent
Branch: kent-audio2
Changes since 1.81: +51 -37 lines
Diff to previous 1.81 (colored) next main 1.82 (colored) to selected 1.71 (colored)

sync with -current

Revision 1.87 / (download) - annotate - [select for diffs], Fri Apr 29 10:39:09 2005 UTC (18 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.86: +3 -2 lines
Diff to previous 1.86 (colored) to selected 1.71 (colored)

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

Revision 1.70.2.6 / (download) - annotate - [select for diffs], Fri Apr 1 14:31:50 2005 UTC (18 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.70.2.5: +32 -2 lines
Diff to previous 1.70.2.5 (colored) to selected 1.71 (colored)

Sync with HEAD.

Revision 1.81.6.2 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:38 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.81.6.1: +32 -2 lines
Diff to previous 1.81.6.1 (colored) to branchpoint 1.81 (colored) next main 1.82 (colored) to selected 1.71 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.86 / (download) - annotate - [select for diffs], Fri Mar 11 06:16:16 2005 UTC (19 years 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
Changes since 1.85: +3 -3 lines
Diff to previous 1.85 (colored) to selected 1.71 (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.85 / (download) - annotate - [select for diffs], Thu Mar 10 05:43:25 2005 UTC (19 years ago) by atatat
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored) to selected 1.71 (colored)

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

Revision 1.84 / (download) - annotate - [select for diffs], Wed Mar 9 05:07:19 2005 UTC (19 years ago) by atatat
Branch: MAIN
Changes since 1.83: +32 -2 lines
Diff to previous 1.83 (colored) to selected 1.71 (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.81.6.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:54 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.81: +20 -37 lines
Diff to previous 1.81 (colored) to selected 1.71 (colored)

sync with head.

Revision 1.70.2.5 / (download) - annotate - [select for diffs], Fri Feb 4 11:47:48 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.70.2.4: +20 -37 lines
Diff to previous 1.70.2.4 (colored) to selected 1.71 (colored)

Sync with HEAD.

Revision 1.83 / (download) - annotate - [select for diffs], Thu Feb 3 23:16:40 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base2
Changes since 1.82: +14 -31 lines
Diff to previous 1.82 (colored) to selected 1.71 (colored)

ANSIfy function declarations

Revision 1.82 / (download) - annotate - [select for diffs], Wed Feb 2 21:41:55 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
Changes since 1.81: +9 -9 lines
Diff to previous 1.81 (colored) to selected 1.71 (colored)

de-__P -- will ANSIfy .c files later.

Revision 1.70.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:37:12 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.70.2.3: +6 -4 lines
Diff to previous 1.70.2.3 (colored) to selected 1.71 (colored)

Fix the sync with head I botched.

Revision 1.70.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:54:54 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.70.2.2: +9 -6 lines
Diff to previous 1.70.2.2 (colored) to selected 1.71 (colored)

Sync with HEAD.

Revision 1.81 / (download) - annotate - [select for diffs], Sat Sep 4 23:30:07 2004 UTC (19 years, 6 months ago) by manu
Branch: MAIN
CVS Tags: yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.80: +7 -2 lines
Diff to previous 1.80 (colored) to selected 1.71 (colored)

IPv4 PIM support, based on a submission from Pavlin Radoslavov posted on
tech-net@

Revision 1.70.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:54:43 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.70.2.1: +22 -32 lines
Diff to previous 1.70.2.1 (colored) to selected 1.71 (colored)

Sync with HEAD

Revision 1.78.2.1 / (download) - annotate - [select for diffs], Mon May 10 15:00:12 2004 UTC (19 years, 10 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.78: +3 -2 lines
Diff to previous 1.78 (colored) next main 1.79 (colored) to selected 1.71 (colored)

Pull up revision 1.80 (requested by jonathan in ticket #280):
Redo net.inet.* sysctl subtree for fast-ipsec from scratch.
Attach FAST-IPSEC statistics with 64-bit counters to new sysctl MIB.
Rework netstat to show FAST_IPSEC statistics, via sysctl,  for
netstat -p ipsec.
New kernel files:
	sys/netipsec/Makefile		(new file; install *_var.h includes)
	sys/netipsec/ipsec_var.h	(new 64-bit mib counter struct)
Changed kernel files:
	sys/Makefile			(recurse into sys/netipsec/)
	sys/netinet/in.h		(fake IP_PROTO name for fast_ipsec
					sysctl subtree.)
	sys/netipsec/ipsec.h		(minimal userspace inclusion)
	sys/netipsec/ipsec_osdep.h	(minimal userspace inclusion)
	sys/netipsec/ipsec_netbsd.c	(redo sysctl subtree from scratch)
	sys/netipsec/key*.c		(fix broken net.key subtree)
	sys/netipsec/ah_var.h		(increase all counters to 64 bits)
	sys/netipsec/esp_var.h		(increase all counters to 64 bits)
	sys/netipsec/ipip_var.h		(increase all counters to 64 bits)
	sys/netipsec/ipcomp_var.h	(increase all counters to 64 bits)
	sys/netipsec/ipsec.c		(add #include netipsec/ipsec_var.h)
	sys/netipsec/ipsec_mbuf.c	(add #include netipsec/ipsec_var.h)
	sys/netipsec/ipsec_output.c	(add #include netipsec/ipsec_var.h)
	sys/netinet/raw_ip.c		(add #include netipsec/ipsec_var.h)
	sys/netinet/tcp_input.c		(add #include netipsec/ipsec_var.h)
	sys/netinet/udp_usrreq.c	(add #include netipsec/ipsec_var.h)
Changes to usr.bin/netstat to print the new fast-ipsec sysctl tree
for "netstat -s -p ipsec":
New file:
	usr.bin/netstat/fast_ipsec.c	(print fast-ipsec counters)
Changed files:
	usr.bin/netstat/Makefile	(add fast_ipsec.c)
	usr.bin/netstat/netstat.h	(declarations for fast_ipsec.c)
	usr.bin/netstat/main.c		(call KAME-vs-fast-ipsec dispatcher)

Revision 1.80 / (download) - annotate - [select for diffs], Fri May 7 00:55:15 2004 UTC (19 years, 10 months ago) by jonathan
Branch: MAIN
CVS Tags: BEFORE-IPF413
Changes since 1.79: +3 -2 lines
Diff to previous 1.79 (colored) to selected 1.71 (colored)

Redo net.inet.* sysctl subtree for fast-ipsec from scratch.
Attach FAST-IPSEC statistics with 64-bit counters to new sysctl MIB.
Rework netstat to show FAST_IPSEC statistics, via sysctl,  for
netstat -p ipsec.

New kernel files:
	sys/netipsec/Makefile		(new file; install *_var.h includes)
	sys/netipsec/ipsec_var.h	(new 64-bit mib counter struct)

Changed kernel files:
	sys/Makefile			(recurse into sys/netipsec/)
	sys/netinet/in.h		(fake IP_PROTO name for fast_ipsec
					sysctl subtree.)
	sys/netipsec/ipsec.h		(minimal userspace inclusion)
	sys/netipsec/ipsec_osdep.h	(minimal userspace inclusion)
	sys/netipsec/ipsec_netbsd.c	(redo sysctl subtree from scratch)
	sys/netipsec/key*.c		(fix broken net.key subtree)

	sys/netipsec/ah_var.h		(increase all counters to 64 bits)
	sys/netipsec/esp_var.h		(increase all counters to 64 bits)
	sys/netipsec/ipip_var.h		(increase all counters to 64 bits)
	sys/netipsec/ipcomp_var.h	(increase all counters to 64 bits)

	sys/netipsec/ipsec.c		(add #include netipsec/ipsec_var.h)
	sys/netipsec/ipsec_mbuf.c	(add #include netipsec/ipsec_var.h)
	sys/netipsec/ipsec_output.c	(add #include netipsec/ipsec_var.h)

	sys/netinet/raw_ip.c		(add #include netipsec/ipsec_var.h)
	sys/netinet/tcp_input.c		(add #include netipsec/ipsec_var.h)
	sys/netinet/udp_usrreq.c	(add #include netipsec/ipsec_var.h)

Changes to usr.bin/netstat to print the new fast-ipsec sysctl tree
for "netstat -s -p ipsec":

New file:
	usr.bin/netstat/fast_ipsec.c	(print fast-ipsec counters)

Changed files:
	usr.bin/netstat/Makefile	(add fast_ipsec.c)
	usr.bin/netstat/netstat.h	(declarations for fast_ipsec.c)
	usr.bin/netstat/main.c		(call KAME-vs-fast-ipsec dispatcher)

Revision 1.79 / (download) - annotate - [select for diffs], Mon Apr 26 01:31:57 2004 UTC (19 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.78: +2 -14 lines
Diff to previous 1.78 (colored) to selected 1.71 (colored)

Remove #else clause of __STDC__

Revision 1.78 / (download) - annotate - [select for diffs], Wed Nov 19 18:39:34 2003 UTC (20 years, 4 months ago) by jonathan
Branch: MAIN
CVS Tags: netbsd-2-0-base, BEFORE-IPF411
Branch point for: netbsd-2-0
Changes since 1.77: +3 -2 lines
Diff to previous 1.77 (colored) to selected 1.71 (colored)

Patch back support for (badly) randomized IP ids, by request:

* Include "opt_inet.h" everywhere IP-ids are generated with ip_newid(),
  so the RANDOM_IP_ID option is visible. Also in ip_id(), to ensure
  the prototype for ip_randomid() is made visible.

* Add new sysctl to enable randomized IP-ids, provided the kernel was
  configured with RANDOM_IP_ID. (The sysctl defaults to zero, and is
  a read-only zero if RANDOM_IP_ID is not configured).

Note that the implementation of randomized IP ids is still defective,
and should not be enabled at all (even if configured) without
very careful deliberation. Caveat emptor.

Revision 1.77 / (download) - annotate - [select for diffs], Mon Nov 17 21:34:27 2003 UTC (20 years, 4 months ago) by jonathan
Branch: MAIN
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored) to selected 1.71 (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.76 / (download) - annotate - [select for diffs], Sat Sep 6 03:36:31 2003 UTC (20 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored) to selected 1.71 (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.75 / (download) - annotate - [select for diffs], Thu Sep 4 09:16:59 2003 UTC (20 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.74: +11 -5 lines
Diff to previous 1.74 (colored) to selected 1.71 (colored)

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

Revision 1.74 / (download) - annotate - [select for diffs], Fri Aug 22 22:00:37 2003 UTC (20 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.73: +2 -8 lines
Diff to previous 1.73 (colored) to selected 1.71 (colored)

remove ipsec_set/getsocket.  now we explicitly pass socket * to ip{,6}_output.

Revision 1.73 / (download) - annotate - [select for diffs], Fri Aug 22 21:53:05 2003 UTC (20 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored) to selected 1.71 (colored)

change the additional arg to be passed to ip{,6}_output to struct socket *.

this fixes KAME policy lookup which was broken by the previous commit.

Revision 1.72 / (download) - annotate - [select for diffs], Fri Aug 15 03:42:03 2003 UTC (20 years, 7 months ago) by jonathan
Branch: MAIN
Changes since 1.71: +9 -5 lines
Diff to previous 1.71 (colored)

(fast-ipsec): Add hooks to pass IPv4 IPsec traffic into fast-ipsec, if
configured with ``options FAST_IPSEC''.  Kernels with KAME IPsec or
with no IPsec should work as before.

All calls to ip_output() now always pass an additional compulsory
argument: the inpcb associated with the packet being sent,
or 0 if no inpcb is available.

Fast-ipsec tested with ICMP or UDP over ESP. TCP doesn't work, yet.

Revision 1.71 / (download) - annotate - [selected], Thu Aug 7 16:33:14 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.70: +3 -7 lines
Diff to previous 1.70 (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.70.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:27:00 2003 UTC (20 years, 8 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.70: +6 -4 lines
Diff to previous 1.70 (colored) to selected 1.71 (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.70 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:57 2003 UTC (20 years, 8 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.69: +2 -4 lines
Diff to previous 1.69 (colored) to selected 1.71 (colored)

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

Revision 1.69 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:09 2003 UTC (20 years, 8 months ago) by darrenr
Branch: MAIN
Changes since 1.68: +6 -4 lines
Diff to previous 1.68 (colored) to selected 1.71 (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.68 / (download) - annotate - [select for diffs], Tue May 27 22:36:38 2003 UTC (20 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.67: +5 -3 lines
Diff to previous 1.67 (colored) to selected 1.71 (colored)

can't use M_WAIT here, i believe.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Feb 26 06:31:15 2003 UTC (21 years ago) by matt
Branch: MAIN
Changes since 1.66: +3 -2 lines
Diff to previous 1.66 (colored) to selected 1.71 (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.66 / (download) - annotate - [select for diffs], Thu Jan 30 23:43:33 2003 UTC (21 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored) to selected 1.71 (colored)

M_SOOPTS -> MT_SOOPTS

Revision 1.55.2.6 / (download) - annotate - [select for diffs], Thu Nov 7 17:58:51 2002 UTC (21 years, 4 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.55.2.5: +19 -6 lines
Diff to previous 1.55.2.5 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored) to selected 1.71 (colored)

Sync with HEAD.

Revision 1.65 / (download) - annotate - [select for diffs], Thu Nov 7 17:49:08 2002 UTC (21 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.64: +17 -2 lines
Diff to previous 1.64 (colored) to selected 1.71 (colored)

In the IP_HDRINCL case of rip_output(), if the mbuf is read-only
then copy the header into a new mbuf before modifying it.

Fixes PR 18809.  Thanks to Chuq Silvers for diagnosing it.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Oct 22 02:44:34 2002 UTC (21 years, 5 months ago) by simonb
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-aftermerge
Changes since 1.63: +3 -2 lines
Diff to previous 1.63 (colored) to selected 1.71 (colored)

Oops, still need the call to va_arg() to advance the args pointer.

Revision 1.63 / (download) - annotate - [select for diffs], Tue Oct 22 02:34:47 2002 UTC (21 years, 5 months ago) by simonb
Branch: MAIN
Changes since 1.62: +3 -6 lines
Diff to previous 1.62 (colored) to selected 1.71 (colored)

"off" in rip_input() is set but not used, remove it.
static global "ripsrc" is never used, remove it.

Revision 1.56.2.4 / (download) - annotate - [select for diffs], Fri Sep 6 08:49:18 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.56.2.3: +13 -7 lines
Diff to previous 1.56.2.3 (colored) next main 1.57 (colored) to selected 1.71 (colored)

sync kqueue branch with HEAD

Revision 1.60.8.2 / (download) - annotate - [select for diffs], Thu Aug 29 00:56:47 2002 UTC (21 years, 6 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.60.8.1: +13 -7 lines
Diff to previous 1.60.8.1 (colored) to branchpoint 1.60 (colored) next main 1.61 (colored) to selected 1.71 (colored)

catch up with -current.

Revision 1.55.2.5 / (download) - annotate - [select for diffs], Tue Aug 27 23:48:03 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.55.2.4: +13 -7 lines
Diff to previous 1.55.2.4 (colored) to branchpoint 1.55 (colored) to selected 1.71 (colored)

Catch up to -current.

Revision 1.62 / (download) - annotate - [select for diffs], Wed Aug 14 00:23:33 2002 UTC (21 years, 7 months ago) by itojun
Branch: MAIN
CVS Tags: kqueue-base, gehenna-devsw-base
Changes since 1.61: +13 -7 lines
Diff to previous 1.61 (colored) to selected 1.71 (colored)

avoid swapping endian of ip_len and ip_off on mbuf, to meet with M_LEADINGSPACE
optimization made last year.  should solve PR 17867 and 10195.

IP_HDRINCL behavior of raw ip socket is kept unchanged.  we may want to
provide IP_HDRINCL variant that does not swap endian.

Revision 1.56.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 17:50:58 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.56.2.2: +4 -4 lines
Diff to previous 1.56.2.2 (colored) to selected 1.71 (colored)

catch up with -current on kqueue branch

Revision 1.60.8.1 / (download) - annotate - [select for diffs], Thu Jun 20 15:52:27 2002 UTC (21 years, 9 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.60: +4 -4 lines
Diff to previous 1.60 (colored) to selected 1.71 (colored)

catch up with -current.

Revision 1.55.2.4 / (download) - annotate - [select for diffs], Thu Jun 20 03:48:53 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.55.2.3: +4 -4 lines
Diff to previous 1.55.2.3 (colored) to branchpoint 1.55 (colored) to selected 1.71 (colored)

Catch up to -current.

Revision 1.61 / (download) - annotate - [select for diffs], Sun Jun 9 16:33:43 2002 UTC (21 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.60: +4 -4 lines
Diff to previous 1.60 (colored) to selected 1.71 (colored)

whitespace

Revision 1.56.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 20:02:57 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.56.2.1: +70 -6 lines
Diff to previous 1.56.2.1 (colored) to selected 1.71 (colored)

Sync kqueue branch with -current.

Revision 1.55.2.3 / (download) - annotate - [select for diffs], Tue Jan 8 00:34:11 2002 UTC (22 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.55.2.2: +65 -2 lines
Diff to previous 1.55.2.2 (colored) to branchpoint 1.55 (colored) to selected 1.71 (colored)

Catch up to -current.

Revision 1.60 / (download) - annotate - [select for diffs], Fri Dec 21 02:51:47 2001 UTC (22 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: newlock-base, newlock, 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, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.59: +65 -2 lines
Diff to previous 1.59 (colored) to selected 1.71 (colored)

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

Revision 1.55.2.2 / (download) - annotate - [select for diffs], Wed Nov 14 19:17:55 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.55.2.1: +7 -6 lines
Diff to previous 1.55.2.1 (colored) to branchpoint 1.55 (colored) to selected 1.71 (colored)

Catch up to -current.

Revision 1.59 / (download) - annotate - [select for diffs], Tue Nov 13 00:32:40 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.58: +4 -1 lines
Diff to previous 1.58 (colored) to selected 1.71 (colored)

add RCSIDs

Revision 1.57.4.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:19:26 2001 UTC (22 years, 4 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.57: +4 -6 lines
Diff to previous 1.57 (colored) next main 1.58 (colored) to selected 1.71 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Nov 4 20:55:28 2001 UTC (22 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.57: +4 -6 lines
Diff to previous 1.57 (colored) to selected 1.71 (colored)

Convert netinet to not use the internal <sys/queue.h> field names
but instead the access macros.  Use the FOREACH macros where appropriate.

Revision 1.55.2.1 / (download) - annotate - [select for diffs], Fri Aug 24 00:12:28 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.55: +2 -8 lines
Diff to previous 1.55 (colored) to selected 1.71 (colored)

Catch up with -current.

Revision 1.56.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:55 2001 UTC (22 years, 7 months ago) by lukem
Branch: kqueue
Changes since 1.56: +1 -8 lines
Diff to previous 1.56 (colored) to selected 1.71 (colored)

update to -current

Revision 1.57 / (download) - annotate - [select for diffs], Wed Jul 25 23:28:02 2001 UTC (22 years, 7 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
Branch point for: thorpej-mips-cache
Changes since 1.56: +1 -8 lines
Diff to previous 1.56 (colored) to selected 1.71 (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.56 / (download) - annotate - [select for diffs], Tue Jul 3 08:06:19 2001 UTC (22 years, 8 months ago) by itojun
Branch: MAIN
Branch point for: kqueue
Changes since 1.55: +2 -1 lines
Diff to previous 1.55 (colored) to selected 1.71 (colored)

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

Revision 1.53.4.2 / (download) - annotate - [select for diffs], Fri Apr 6 00:25:38 2001 UTC (22 years, 11 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.53.4.1: +5 -2 lines
Diff to previous 1.53.4.1 (colored) to branchpoint 1.53 (colored) next main 1.54 (colored) to selected 1.71 (colored)

Pull up revision 1.54 (requested by itojun):
  Record IPsec packet history in m_aux structure.  Let ipfilter
  look at wire-format packet only (not the decapsulated ones), so
  that VPN setting can work with NAT/ipfilter settings.

Revision 1.46.2.3 / (download) - annotate - [select for diffs], Mon Mar 12 13:31:51 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.46.2.2: +18 -1 lines
Diff to previous 1.46.2.2 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored) to selected 1.71 (colored)

Sync with HEAD.

Revision 1.53.4.1 / (download) - annotate - [select for diffs], Mon Feb 26 22:43:55 2001 UTC (23 years ago) by he
Branch: netbsd-1-5
Changes since 1.53: +18 -1 lines
Diff to previous 1.53 (colored) to selected 1.71 (colored)

Pull up revision 1.55 (requested by itojun):
  Make sure to validate packet against ipsec policy.

Revision 1.55 / (download) - annotate - [select for diffs], Mon Feb 26 07:20:44 2001 UTC (23 years ago) by itojun
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.54: +18 -1 lines
Diff to previous 1.54 (colored) to selected 1.71 (colored)

make sure to validate packet against ipsec policy.

Revision 1.46.2.2 / (download) - annotate - [select for diffs], Sun Feb 11 19:17:17 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.46.2.1: +5 -2 lines
Diff to previous 1.46.2.1 (colored) to branchpoint 1.46 (colored) to selected 1.71 (colored)

Sync with HEAD.

Revision 1.54 / (download) - annotate - [select for diffs], Wed Jan 24 09:04:15 2001 UTC (23 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.53: +5 -2 lines
Diff to previous 1.53 (colored) to selected 1.71 (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.46.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:10:34 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.46: +22 -14 lines
Diff to previous 1.46 (colored) to selected 1.71 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.53 / (download) - annotate - [select for diffs], Thu Mar 30 13:25:04 2000 UTC (23 years, 11 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.52: +9 -9 lines
Diff to previous 1.52 (colored) to selected 1.71 (colored)

Remove register declarations.

Revision 1.52 / (download) - annotate - [select for diffs], Wed Mar 1 12:49:36 2000 UTC (24 years ago) by itojun
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored) to selected 1.71 (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.51 / (download) - annotate - [select for diffs], Thu Feb 17 10:59:36 2000 UTC (24 years, 1 month ago) by darrenr
Branch: MAIN
Changes since 1.50: +1 -3 lines
Diff to previous 1.50 (colored) to selected 1.71 (colored)

Change the use of pfil hooks.  There is no longer a single list of all
pfil information, instead, struct protosw now contains a structure
which caontains list heads, etc.  The per-protosw pfil struct is passed
to pfil_hook_get(), along with an in/out flag to get the head of the
relevant filter list.  This has been done for only IPv4 and IPv6, at
present, with these patches only enabling filtering for IPPROTO_IP and
IPPROTO_IPV6, although it is possible to have tcp/udp, etc, dedicated
filters now also.  The ipfilter code has been updated to only filter
IPv4 packets - next major release of ipfilter is required for ipv6.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Feb 2 23:28:09 2000 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.49: +4 -3 lines
Diff to previous 1.49 (colored) to selected 1.71 (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.49 / (download) - annotate - [select for diffs], Tue Feb 1 22:52:08 2000 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.48: +6 -1 lines
Diff to previous 1.48 (colored) to selected 1.71 (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.48 / (download) - annotate - [select for diffs], Mon Jan 31 14:18:55 2000 UTC (24 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored) to selected 1.71 (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.46.8.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:36:19 1999 UTC (24 years, 2 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.46: +7 -3 lines
Diff to previous 1.46 (colored) next main 1.47 (colored) to selected 1.71 (colored)

Pull up to last week's -current.

Revision 1.47 / (download) - annotate - [select for diffs], Mon Dec 13 15:17:20 1999 UTC (24 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.46: +7 -3 lines
Diff to previous 1.46 (colored) to selected 1.71 (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.42.6.3 / (download) - annotate - [select for diffs], Tue Nov 30 13:35:34 1999 UTC (24 years, 3 months ago) by itojun
Branch: kame
CVS Tags: kame_141_19991130
Changes since 1.42.6.2: +7 -2 lines
Diff to previous 1.42.6.2 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored) to selected 1.71 (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.46 / (download) - annotate - [select for diffs], Mon Sep 13 12:15:55 1999 UTC (24 years, 6 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.45: +3 -2 lines
Diff to previous 1.45 (colored) to selected 1.71 (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.42.4.2 / (download) - annotate - [select for diffs], Mon Aug 2 22:34:59 1999 UTC (24 years, 7 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.42.4.1: +11 -4 lines
Diff to previous 1.42.4.1 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored) to selected 1.71 (colored)

Update from trunk.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Jul 9 22:57:20 1999 UTC (24 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.44: +2 -1 lines
Diff to previous 1.44 (colored) to selected 1.71 (colored)

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

Revision 1.42.6.2 / (download) - annotate - [select for diffs], Tue Jul 6 11:02:47 1999 UTC (24 years, 8 months ago) by itojun
Branch: kame
CVS Tags: kame_14_19990705
Changes since 1.42.6.1: +30 -1 lines
Diff to previous 1.42.6.1 (colored) to branchpoint 1.42 (colored) to selected 1.71 (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.44 / (download) - annotate - [select for diffs], Mon Jul 5 07:24:38 1999 UTC (24 years, 8 months ago) by darrenr
Branch: MAIN
Changes since 1.43: +10 -4 lines
Diff to previous 1.43 (colored) to selected 1.71 (colored)

Call icmp_error() at the bottom of rip_input IFF rip_input is the handler
for the protocol in the specified packet.
Fix statistic gathering to not make bogus increments of ips_delivered and
ips_noproto for cases where rip_input() is called by a protocol handler
(such as icmp_input or igmp_input) which has already processed the packet.

Revision 1.42.4.1 / (download) - annotate - [select for diffs], Thu Jul 1 23:47:02 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.42: +51 -2 lines
Diff to previous 1.42 (colored) to selected 1.71 (colored)

Sync w/ -current.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Jul 1 08:12:51 1999 UTC (24 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.42: +51 -2 lines
Diff to previous 1.42 (colored) to selected 1.71 (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.42.6.1 / (download) - annotate - [select for diffs], Mon Jun 28 06:37:01 1999 UTC (24 years, 8 months ago) by itojun
Branch: kame
CVS Tags: kame_14_19990628
Changes since 1.42: +22 -2 lines
Diff to previous 1.42 (colored) to selected 1.71 (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.42 / (download) - annotate - [select for diffs], Sat Jan 30 21:43:16 1999 UTC (25 years, 1 month 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
Branch point for: kame, chs-ubc2
Changes since 1.41: +7 -1 lines
Diff to previous 1.41 (colored) to selected 1.71 (colored)

Make programs that use raw IP work again; trim the header length from ip_len
before handing the packet off to the socket.

Revision 1.41.6.1 / (download) - annotate - [select for diffs], Fri Dec 11 04:53:09 1998 UTC (25 years, 3 months ago) by kenh
Branch: kenh-if-detach
Changes since 1.41: +5 -2 lines
Diff to previous 1.41 (colored) next main 1.42 (colored) to selected 1.71 (colored)

The beginnings of interface detach support.  Still some bugs, but mostly
works for me.

This work was originally by Bill Studenmund, and cleaned up by me.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Apr 3 07:49:16 1998 UTC (25 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base, eeh-paddr_t-base, eeh-paddr_t, chs-ubc-base, chs-ubc
Branch point for: kenh-if-detach
Changes since 1.40: +2 -1 lines
Diff to previous 1.40 (colored) to selected 1.71 (colored)

Fix a bug which would cause a panic in soreceive() if multiple raw
receivers ask for ancillary data.

Noted by Francis Dupont <Francis.Dupont@inria.fr> on tech-net.

Revision 1.40 / (download) - annotate - [select for diffs], Mon Jan 12 03:02:53 1998 UTC (26 years, 2 months ago) by scottr
Branch: MAIN
Changes since 1.39: +3 -1 lines
Diff to previous 1.39 (colored) to selected 1.71 (colored)

Use option header file for MROUTING

Revision 1.39 / (download) - annotate - [select for diffs], Mon Jan 5 10:32:01 1998 UTC (26 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored) to selected 1.71 (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:02 1998 UTC (26 years, 2 months ago) by thorpej
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +43 -21 lines
Diff to previous 1.1.1.2 (colored) to selected 1.71 (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:16 1998 UTC (26 years, 2 months ago) by thorpej
Branch: WFJ-920714, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1.1.1: +258 -130 lines
Diff to previous 1.1.1.1 (colored) to selected 1.71 (colored)

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

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Tue Nov 18 01:04:22 1997 UTC (26 years, 4 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.37: +5 -1 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.71 (colored)

Pull rev 1.38 up from trunk (mycroft)

Revision 1.38 / (download) - annotate - [select for diffs], Sun Nov 16 20:58:18 1997 UTC (26 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.37: +5 -1 lines
Diff to previous 1.37 (colored) to selected 1.71 (colored)

On output, if the packet length doesn't match the length in the IP header,
drop the packet with EINVAL.

Revision 1.36.10.1 / (download) - annotate - [select for diffs], Tue Oct 14 10:29:34 1997 UTC (26 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.36: +4 -3 lines
Diff to previous 1.36 (colored) next main 1.37 (colored) to selected 1.71 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Oct 14 00:52:54 1997 UTC (26 years, 5 months ago) by matt
Branch: MAIN
CVS Tags: netbsd-1-3-base, marc-pcmcia-base
Branch point for: netbsd-1-3
Changes since 1.36: +4 -3 lines
Diff to previous 1.36 (colored) to selected 1.71 (colored)

Add support for returning maximum supported MTU when ip_output fails with
EMSGSIZE.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Jan 11 05:21:13 1997 UTC (27 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, thorpej-setroot, mrg-vm-swap, marc-pcmcia-bp, is-newarp-before-merge, is-newarp-base, is-newarp, bouyer-scsipi
Branch point for: marc-pcmcia
Changes since 1.35: +22 -12 lines
Diff to previous 1.35 (colored) to selected 1.71 (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.25.4.2 / (download) - annotate - [select for diffs], Wed Dec 11 04:01:08 1996 UTC (27 years, 3 months ago) by mycroft
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.25.4.1: +178 -127 lines
Diff to previous 1.25.4.1 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored) to selected 1.71 (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.25.4.1 / (download) - annotate - [select for diffs], Sun Nov 10 21:57:53 1996 UTC (27 years, 4 months ago) by thorpej
Branch: netbsd-1-2
Changes since 1.25: +9 -1 lines
Diff to previous 1.25 (colored) to selected 1.71 (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.35 / (download) - annotate - [select for diffs], Fri Oct 25 06:33:36 1996 UTC (27 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.34: +9 -1 lines
Diff to previous 1.34 (colored) to selected 1.71 (colored)

In rip_output(), sanity check the length of the packet to be transmitted.
If it's larger than IP_MAXPACKET, return an error condition.
Based on a patch from Bill Fenner <fenner@parc.xerox.com>

Revision 1.34 / (download) - annotate - [select for diffs], Mon Sep 16 17:45:17 1996 UTC (27 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.33: +3 -1 lines
Diff to previous 1.33 (colored) to selected 1.71 (colored)

Make sure the sin_zero fields are filled.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Sep 15 18:11:08 1996 UTC (27 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored) to selected 1.71 (colored)

Hash unconnected PCBs.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Sep 9 14:51:19 1996 UTC (27 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.31: +11 -8 lines
Diff to previous 1.31 (colored) to selected 1.71 (colored)

Add in_nullhost() and in_hosteq() macros, to hide some protocol
details.  Also, fix a bug in TCP wrt SYN+URG packets.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Jun 23 12:12:49 1996 UTC (27 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.30: +48 -43 lines
Diff to previous 1.30 (colored) to selected 1.71 (colored)

Return ENOPROTOOPT rather than picking pseudo-random error values.
Don't allow SIOCGET{VIF,SG}CNT from sockets other than the multicast router.
Restructure rip_ctloutput() like ip_ctloutput(), and fix memory leaks.

Revision 1.30 / (download) - annotate - [select for diffs], Tue May 28 23:27:04 1996 UTC (27 years, 9 months ago) by pk
Branch: MAIN
Changes since 1.29: +5 -1 lines
Diff to previous 1.29 (colored) to selected 1.71 (colored)

Prototype new rip_*() functions.

Revision 1.29 / (download) - annotate - [select for diffs], Fri May 24 19:03:13 1996 UTC (27 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.28: +23 -24 lines
Diff to previous 1.28 (colored) to selected 1.71 (colored)

Move some code into a separate rip_bind() function.

Revision 1.28 / (download) - annotate - [select for diffs], Thu May 23 17:03:27 1996 UTC (27 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.27: +17 -14 lines
Diff to previous 1.27 (colored) to selected 1.71 (colored)

Make sure the control mbufs are freed in all cases.

Revision 1.27 / (download) - annotate - [select for diffs], Thu May 23 16:12:15 1996 UTC (27 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.26: +104 -66 lines
Diff to previous 1.26 (colored) to selected 1.71 (colored)

Minor changes to make this more like other protocols.  Also, fix some return
values.

Revision 1.26 / (download) - annotate - [select for diffs], Wed May 22 13:55:31 1996 UTC (27 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.25: +6 -4 lines
Diff to previous 1.25 (colored) to selected 1.71 (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.25 / (download) - annotate - [select for diffs], Sun Feb 18 18:58:33 1996 UTC (28 years, 1 month 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.24: +4 -1 lines
Diff to previous 1.24 (colored) to selected 1.71 (colored)

Fix PR/2095 options MROUTING did not compile.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Feb 13 23:43:29 1996 UTC (28 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.23: +30 -9 lines
Diff to previous 1.23 (colored) to selected 1.71 (colored)

netinet prototypes

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Fri Feb 2 06:12:52 1996 UTC (28 years, 1 month ago) by mycroft
Branch: netbsd-1-1
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored) next main 1.22 (colored) to selected 1.71 (colored)

Bring in changes for mondo patch 2.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jan 31 03:49:31 1996 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored) to selected 1.71 (colored)

Build a hash table of PCBs.  Hash function needs tweaking.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Nov 30 16:42:18 1995 UTC (28 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.21: +11 -1 lines
Diff to previous 1.21 (colored) to selected 1.71 (colored)

Handle PRU_CONTROL (David Maltz; PR#1664).

Revision 1.21 / (download) - annotate - [select for diffs], Sun Jun 18 20:01:15 1995 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001
Branch point for: netbsd-1-1
Changes since 1.20: +4 -3 lines
Diff to previous 1.20 (colored) to selected 1.71 (colored)

convert pcb lists to CIRCLEQs, so that the end can be looked at more
easily, and so that the original (insque/remque) logic can be effectively
mimiced.  (This fixes a bug in the previous set of list changes.)
also (since terminator is no longer null) reinstate uninitted list checks,
but mark them XXX.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jun 12 00:47:49 1995 UTC (28 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.19: +8 -7 lines
Diff to previous 1.19 (colored) to selected 1.71 (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.19 / (download) - annotate - [select for diffs], Sun Jun 4 05:07:11 1995 UTC (28 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.18: +6 -6 lines
Diff to previous 1.18 (colored) to selected 1.71 (colored)

Clean up many more casts.

Revision 1.18 / (download) - annotate - [select for diffs], Wed May 31 21:50:44 1995 UTC (28 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +20 -15 lines
Diff to previous 1.17 (colored) to selected 1.71 (colored)

Integrate multicast 3.5 distribution, with several bugs fixed and general
cleanup.  This is a (working) snapshot of work in progress.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Apr 13 06:36:21 1995 UTC (28 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored) to selected 1.71 (colored)

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

Revision 1.16 / (download) - annotate - [select for diffs], Thu Mar 2 09:33:40 1995 UTC (29 years ago) by glass
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored) to selected 1.71 (colored)

Fix for two bad tests in the raw IP socket input code.  Only affected
raw sockets that were bound to a local address and/or connected to a
foreign address.   Fix from Dan McDonald <danmcd@itd.nrl.navy.mil>

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jan 12 06:23:45 1995 UTC (29 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.14: +5 -2 lines
Diff to previous 1.14 (colored) to selected 1.71 (colored)

Fix mbuf leak in rip_ctloutput().

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jun 29 06:38:31 1994 UTC (29 years, 8 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.13: +3 -2 lines
Diff to previous 1.13 (colored) to selected 1.71 (colored)

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

Revision 1.13 / (download) - annotate - [select for diffs], Fri May 13 06:06:30 1994 UTC (29 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +233 -140 lines
Diff to previous 1.12 (colored) to selected 1.71 (colored)

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

Revision 1.12 / (download) - annotate - [select for diffs], Thu Feb 10 18:46:05 1994 UTC (30 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored) to selected 1.71 (colored)

Format police.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Feb 2 05:59:08 1994 UTC (30 years, 1 month ago) by hpeyerl
Branch: MAIN
Changes since 1.10: +4 -19 lines
Diff to previous 1.10 (colored) to selected 1.71 (colored)

Multicast is no longer optional.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jan 10 20:14:28 1994 UTC (30 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +10 -7 lines
Diff to previous 1.9 (colored) to selected 1.71 (colored)

Should compile now with or without `options MULTICAST'.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jan 9 01:06:21 1994 UTC (30 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.8: +7 -2 lines
Diff to previous 1.8 (colored) to selected 1.71 (colored)

Prototype the rest.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jan 8 21:21:55 1994 UTC (30 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.7: +5 -5 lines
Diff to previous 1.7 (colored) to selected 1.71 (colored)

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

Revision 1.7 / (download) - annotate - [select for diffs], Sat Dec 18 00:42:00 1993 UTC (30 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +16 -16 lines
Diff to previous 1.6 (colored) to selected 1.71 (colored)

Canonicalize all #includes.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Dec 6 04:59:44 1993 UTC (30 years, 3 months ago) by hpeyerl
Branch: MAIN
Changes since 1.5: +45 -5 lines
Diff to previous 1.5 (colored) to selected 1.71 (colored)

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

Revision 1.5 / (download) - annotate - [select for diffs], Sat May 22 11:42:37 1993 UTC (30 years, 10 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.4: +1 -2 lines
Diff to previous 1.4 (colored) to selected 1.71 (colored)

add include of select.h if necessary for protos, or delete if extraneous

Revision 1.4 / (download) - annotate - [select for diffs], Fri May 21 05:27:15 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.3: +6 -3 lines
Diff to previous 1.3 (colored) to selected 1.71 (colored)

add packet size check for raw IP provided by Paul Antonov <apg@apg.kiae.su>,
to fix the "traceroute foohost 2000 == panic" problem.

Revision 1.3 / (download) - annotate - [select for diffs], Tue May 18 18:20:12 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.2: +3 -9 lines
Diff to previous 1.2 (colored) to selected 1.71 (colored)

make kernel select interface be one-stop shopping & clean it all up.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (31 years ago) by cgd
Branch: MAIN
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8
Changes since 1.1: +10 -2 lines
Diff to previous 1.1 (colored) to selected 1.71 (colored)

after 0.2.2 "stable" patches applied

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

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: MAIN
Diff to selected 1.71 (colored)

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>