CVS commit: src/share/misc

2020-04-29 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Wed Apr 29 22:17:38 UTC 2020

Modified Files:
src/share/misc: acronyms.comp

Log Message:
LSO   large send offload


To generate a diff of this commit:
cvs rdiff -u -r1.301 -r1.302 src/share/misc/acronyms.comp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/misc

2017-09-17 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Sep 17 21:55:07 UTC 2017

Modified Files:
src/share/misc: acronyms.comp

Log Message:
GVFS git virtual file system


To generate a diff of this commit:
cvs rdiff -u -r1.184 -r1.185 src/share/misc/acronyms.comp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/lib/libkern

2016-05-10 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Wed May 11 03:17:22 UTC 2016

Modified Files:
src/sys/lib/libkern: libkern.h

Log Message:
provide const versions of container_of macros.

discussed with riastradh@ by email


To generate a diff of this commit:
cvs rdiff -u -r1.122 -r1.123 src/sys/lib/libkern/libkern.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet

2016-02-15 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Mon Feb 15 19:00:42 UTC 2016

Modified Files:
src/sys/netinet: sctp_indata.c sctputil.c

Log Message:
Fix building of IPv4-Mapped IPv6 addresses.

As discussed on tech-net@ use in6_sin_2_v4mapsin6() to build mapped
addresses.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/netinet/sctp_indata.c
cvs rdiff -u -r1.1 -r1.2 src/sys/netinet/sctputil.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2016-02-15 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Mon Feb 15 14:59:03 UTC 2016

Modified Files:
src/sys/netinet: in_pcb.c tcp_input.c tcp_subr.c tcp_usrreq.c
udp_usrreq.c
src/sys/netinet6: in6.c in6.h

Log Message:
Reduce code duplication.

Split creation of IPv4-Mapped IPv6 addresses into its own function
and use it.

No functional change intended.  As posted to tech-net@


To generate a diff of this commit:
cvs rdiff -u -r1.162 -r1.163 src/sys/netinet/in_pcb.c
cvs rdiff -u -r1.344 -r1.345 src/sys/netinet/tcp_input.c
cvs rdiff -u -r1.264 -r1.265 src/sys/netinet/tcp_subr.c
cvs rdiff -u -r1.210 -r1.211 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.223 -r1.224 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.194 -r1.195 src/sys/netinet6/in6.c
cvs rdiff -u -r1.86 -r1.87 src/sys/netinet6/in6.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet

2016-02-14 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Feb 14 23:47:57 UTC 2016

Modified Files:
src/sys/netinet: tcp_usrreq.c

Log Message:
remove duplicated #include of 


To generate a diff of this commit:
cvs rdiff -u -r1.209 -r1.210 src/sys/netinet/tcp_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/linux/common

2015-05-24 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun May 24 17:07:27 UTC 2015

Modified Files:
src/sys/compat/linux/common: linux_socket.c

Log Message:
convert remaining linux_get_sa() users to use linux_get_sa_sb() and
pass the pointer to the sockaddr in msghdr.msg_name, while removing
the MSG_NAMEMBUF flag.

now that the original linux_get_sa() is unused remove it and to make
function names consistent again rename linux_get_sa_sb() to linux_get_sa().


To generate a diff of this commit:
cvs rdiff -u -r1.124 -r1.125 src/sys/compat/linux/common/linux_socket.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2015-05-24 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun May 24 15:43:45 UTC 2015

Modified Files:
src/sys/netinet: in_pcb.c in_pcb.h tcp_input.c
src/sys/netinet6: in6_pcb.c in6_pcb.h

Log Message:
remove transitional functions in{,6}_pcbconnect_m() that were used in
converting protocol user requests to accept sockaddr instead of mbufs.

remove tcp_input copy in to mbuf from sockaddr and just copy to sockaddr
to make it possible for the transitional functions to go away.

no version bump since these functions only existed for a short time and
were commented as adapters (they appeared in 7.99.15).


To generate a diff of this commit:
cvs rdiff -u -r1.160 -r1.161 src/sys/netinet/in_pcb.c
cvs rdiff -u -r1.58 -r1.59 src/sys/netinet/in_pcb.h
cvs rdiff -u -r1.340 -r1.341 src/sys/netinet/tcp_input.c
cvs rdiff -u -r1.141 -r1.142 src/sys/netinet6/in6_pcb.c
cvs rdiff -u -r1.45 -r1.46 src/sys/netinet6/in6_pcb.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/svr4

2015-05-23 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sat May 23 15:27:55 UTC 2015

Modified Files:
src/sys/compat/svr4: svr4_stream.c

Log Message:
get rid of unnecessary use of mbuf to hold sockaddr, which was leaked...

while here change use to typed pointer sockaddr * instead of void * which
also lets us get rid of sasize variable used to track length (since we
can now use sa_len easily)


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/sys/compat/svr4/svr4_stream.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netsmb

2015-05-22 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Fri May 22 22:05:32 UTC 2015

Modified Files:
src/sys/netsmb: smb_trantcp.c

Log Message:
pass connect address directly to soconnect()

instead of allocating an mbuf, copying the address into it and then
mtod()'ing it back to a sockaddr * for soconnect.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/netsmb/smb_trantcp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/sys

2015-05-21 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Thu May 21 22:24:24 UTC 2015

Modified Files:
src/sys/sys: param.h

Log Message:
bump to 7.99.18 for change to nfs_boot_sendrecv


To generate a diff of this commit:
cvs rdiff -u -r1.479 -r1.480 src/sys/sys/param.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2015-05-20 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Thu May 21 02:04:22 UTC 2015

Modified Files:
src/sys/kern: subr_tftproot.c
src/sys/nfs: krpc_subr.c nfs_boot.c nfs_bootdhcp.c nfsdiskless.h

Log Message:
change nfs_boot_sendrecv to take sockaddr_in * instead of mbuf *

fixes m_serv (single mbuf leak) leak in kern/subr_tftproot.c


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/kern/subr_tftproot.c
cvs rdiff -u -r1.40 -r1.41 src/sys/nfs/krpc_subr.c
cvs rdiff -u -r1.84 -r1.85 src/sys/nfs/nfs_boot.c
cvs rdiff -u -r1.54 -r1.55 src/sys/nfs/nfs_bootdhcp.c
cvs rdiff -u -r1.31 -r1.32 src/sys/nfs/nfsdiskless.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci/ixgbe

2015-05-20 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Thu May 21 00:45:27 UTC 2015

Modified Files:
src/sys/dev/pci/ixgbe: ixv.c

Log Message:
remove duplicated assignment of mh->m_len


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/pci/ixgbe/ixv.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2015-05-10 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun May 10 18:55:22 UTC 2015

Modified Files:
src/sys/kern: subr_tftproot.c

Log Message:
mtod mbuf to sockaddr * for so_send().


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/kern/subr_tftproot.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/nfs

2015-05-09 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sat May  9 18:12:19 UTC 2015

Modified Files:
src/sys/nfs: krpc_subr.c nfs_bootdhcp.c

Log Message:
when calling nfs_boot_sendrecv pass NULL for pointers instead of 0


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/nfs/krpc_subr.c
cvs rdiff -u -r1.53 -r1.54 src/sys/nfs/nfs_bootdhcp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2015-05-09 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sat May  9 15:22:47 UTC 2015

Modified Files:
src/sys/kern: uipc_socket.c uipc_syscalls.c
src/sys/nfs: nfs_boot.c nfs_socket.c
src/sys/sys: param.h socketvar.h

Log Message:
change sosend() to accept sockaddr * instead of mbuf * for nam.

bump to 7.99.16


To generate a diff of this commit:
cvs rdiff -u -r1.244 -r1.245 src/sys/kern/uipc_socket.c
cvs rdiff -u -r1.177 -r1.178 src/sys/kern/uipc_syscalls.c
cvs rdiff -u -r1.83 -r1.84 src/sys/nfs/nfs_boot.c
cvs rdiff -u -r1.195 -r1.196 src/sys/nfs/nfs_socket.c
cvs rdiff -u -r1.477 -r1.478 src/sys/sys/param.h
cvs rdiff -u -r1.138 -r1.139 src/sys/sys/socketvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2015-05-02 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun May  3 04:18:45 UTC 2015

Modified Files:
src/sys/kern: uipc_socket.c

Log Message:
flip (NULL == addr) to (addr == NULL) use in conditional from previous
commit.


To generate a diff of this commit:
cvs rdiff -u -r1.243 -r1.244 src/sys/kern/uipc_socket.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2015-05-02 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sat May  2 23:46:04 UTC 2015

Modified Files:
src/sys/kern: uipc_socket.c

Log Message:
compare mbuf * pointer to NULL instead of 0


To generate a diff of this commit:
cvs rdiff -u -r1.242 -r1.243 src/sys/kern/uipc_socket.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2015-05-02 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sat May  2 21:15:33 UTC 2015

Modified Files:
src/sys/kern: uipc_socket.c

Log Message:
remove unnecessary check that nam != NULL before deref in soconnect()
(added in previous commit).

sockargs copyin() makes sure we don't get NULL here


To generate a diff of this commit:
cvs rdiff -u -r1.241 -r1.242 src/sys/kern/uipc_socket.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2015-05-02 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sat May  2 20:10:26 UTC 2015

Modified Files:
src/sys/kern: uipc_socket.c

Log Message:
make soconnect() fail with EAFNOSUPPORT if the domain of the socket does
not match family received in the sockaddr.

* connect() now fails as documented in connect(2).
* atf test t_connect:connect_foreign_family now passes.


To generate a diff of this commit:
cvs rdiff -u -r1.240 -r1.241 src/sys/kern/uipc_socket.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2015-05-02 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sat May  2 17:18:04 UTC 2015

Modified Files:
src/sys/compat/linux/common: linux_socket.c
src/sys/compat/svr4: svr4_stream.c
src/sys/kern: uipc_socket.c uipc_syscalls.c uipc_usrreq.c
src/sys/net: if_gre.c link_proto.c raw_cb.h raw_usrreq.c rtsock.c
src/sys/netatalk: ddp_usrreq.c
src/sys/netbt: hci_socket.c l2cap_socket.c rfcomm_socket.c sco_socket.c
src/sys/netinet: dccp_usrreq.c dccp_var.h in_pcb.c in_pcb.h raw_ip.c
tcp_input.c tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: dccp6_usrreq.c dccp6_var.h in6_pcb.c in6_pcb.h
raw_ip6.c udp6_output.c udp6_usrreq.c udp6_var.h
src/sys/netipsec: keysock.c
src/sys/netmpls: mpls_proto.c
src/sys/netnatm: natm.c
src/sys/netsmb: smb_trantcp.c
src/sys/nfs: nfs_socket.c
src/sys/rump/net/lib/libsockin: sockin.c
src/sys/sys: param.h protosw.h socketvar.h un.h

Log Message:
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}


To generate a diff of this commit:
cvs rdiff -u -r1.123 -r1.124 src/sys/compat/linux/common/linux_socket.c
cvs rdiff -u -r1.84 -r1.85 src/sys/compat/svr4/svr4_stream.c
cvs rdiff -u -r1.239 -r1.240 src/sys/kern/uipc_socket.c
cvs rdiff -u -r1.176 -r1.177 src/sys/kern/uipc_syscalls.c
cvs rdiff -u -r1.178 -r1.179 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.164 -r1.165 src/sys/net/if_gre.c
cvs rdiff -u -r1.27 -r1.28 src/sys/net/link_proto.c
cvs rdiff -u -r1.24 -r1.25 src/sys/net/raw_cb.h
cvs rdiff -u -r1.53 -r1.54 src/sys/net/raw_usrreq.c
cvs rdiff -u -r1.170 -r1.171 src/sys/net/rtsock.c
cvs rdiff -u -r1.67 -r1.68 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.43 -r1.44 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.34 -r1.35 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.36 -r1.37 src/sys/netbt/rfcomm_socket.c \
src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.5 -r1.6 src/sys/netinet/dccp_usrreq.c
cvs rdiff -u -r1.1 -r1.2 src/sys/netinet/dccp_var.h
cvs rdiff -u -r1.159 -r1.160 src/sys/netinet/in_pcb.c
cvs rdiff -u -r1.57 -r1.58 src/sys/netinet/in_pcb.h
cvs rdiff -u -r1.151 -r1.152 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.338 -r1.339 src/sys/netinet/tcp_input.c
cvs rdiff -u -r1.207 -r1.208 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.220 -r1.221 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.5 -r1.6 src/sys/netinet6/dccp6_usrreq.c
cvs rdiff -u -r1.3 -r1.4 src/sys/netinet6/dccp6_var.h
cvs rdiff -u -r1.139 -r1.140 src/sys/netinet6/in6_pcb.c \
src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.44 -r1.45 src/sys/netinet6/in6_pcb.h
cvs rdiff -u -r1.48 -r1.49 src/sys/netinet6/udp6_output.c
cvs rdiff -u -r1.119 -r1.120 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.27 -r1.28 src/sys/netinet6/udp6_var.h
cvs rdiff -u -r1.47 -r1.48 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.27 -r1.28 src/sys/netmpls/mpls_proto.c
cvs rdiff -u -r1.48 -r1.49 src/sys/netnatm/natm.c
cvs rdiff -u -r1.47 -r1.48 src/sys/netsmb/smb_trantcp.c
cvs rdiff -u -r1.194 -r1.195 src/sys/nfs/nfs_socket.c
cvs rdiff -u -r1.61 -r1.62 src/sys/rump/net/lib/libsockin/sockin.c
cvs rdiff -u -r1.476 -r1.477 src/sys/sys/param.h
cvs rdiff -u -r1.63 -r1.64 src/sys/sys/protosw.h
cvs rdiff -u -r1.137 -r1.138 src/sys/sys/socketvar.h
cvs rdiff -u -r1.55 -r1.56 src/sys/sys/un.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2015-04-26 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Apr 26 21:40:49 UTC 2015

Modified Files:
src/sys/kern: uipc_usrreq.c
src/sys/net: link_proto.c rtsock.c
src/sys/netatalk: ddp_usrreq.c
src/sys/netbt: hci_socket.c l2cap_socket.c rfcomm_socket.c sco_socket.c
src/sys/netinet: dccp_usrreq.c raw_ip.c tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: dccp6_usrreq.c raw_ip6.c udp6_usrreq.c
src/sys/netipsec: keysock.c
src/sys/netmpls: mpls_proto.c
src/sys/netnatm: natm.c
src/sys/rump/net/lib/libsockin: sockin.c
src/sys/sys: param.h protosw.h

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

bump to 7.99.13

approved by rmind@


To generate a diff of this commit:
cvs rdiff -u -r1.177 -r1.178 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.26 -r1.27 src/sys/net/link_proto.c
cvs rdiff -u -r1.169 -r1.170 src/sys/net/rtsock.c
cvs rdiff -u -r1.66 -r1.67 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.42 -r1.43 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.33 -r1.34 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.35 -r1.36 src/sys/netbt/rfcomm_socket.c \
src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.3 -r1.4 src/sys/netinet/dccp_usrreq.c
cvs rdiff -u -r1.149 -r1.150 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.206 -r1.207 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.219 -r1.220 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.4 -r1.5 src/sys/netinet6/dccp6_usrreq.c
cvs rdiff -u -r1.138 -r1.139 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.118 -r1.119 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.46 -r1.47 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.26 -r1.27 src/sys/netmpls/mpls_proto.c
cvs rdiff -u -r1.47 -r1.48 src/sys/netnatm/natm.c
cvs rdiff -u -r1.60 -r1.61 src/sys/rump/net/lib/libsockin/sockin.c
cvs rdiff -u -r1.474 -r1.475 src/sys/sys/param.h
cvs rdiff -u -r1.62 -r1.63 src/sys/sys/protosw.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2015-04-26 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Apr 26 16:45:51 UTC 2015

Modified Files:
src/sys/netinet: in_pcb.c
src/sys/netinet6: in6_pcb.c

Log Message:
return EINVAL if sin{,6}_len != sizeof(sockaddr_in{,6}) respectively in
in{,6}_pcbconnect().

checking just m->m_len isn't enough because there are various places that
assume sa_len has been properly populated.


To generate a diff of this commit:
cvs rdiff -u -r1.157 -r1.158 src/sys/netinet/in_pcb.c
cvs rdiff -u -r1.136 -r1.137 src/sys/netinet6/in6_pcb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet

2015-04-25 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sat Apr 25 15:19:54 UTC 2015

Modified Files:
src/sys/netinet: raw_ip.c

Log Message:
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 *.


To generate a diff of this commit:
cvs rdiff -u -r1.148 -r1.149 src/sys/netinet/raw_ip.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet6

2015-04-25 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sat Apr 25 14:56:05 UTC 2015

Modified Files:
src/sys/netinet6: dccp6_usrreq.c dccp6_var.h

Log Message:
fix missed parameter type change in dccp6_accept() to sockaddr * from mbuf *


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/netinet6/dccp6_usrreq.c
cvs rdiff -u -r1.2 -r1.3 src/sys/netinet6/dccp6_var.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netatalk

2015-04-24 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Fri Apr 24 23:36:49 UTC 2015

Modified Files:
src/sys/netatalk: ddp_usrreq.c

Log Message:
make at_pcbconnect() take sockaddr_at * instead of mbuf *.

move m_len check into callers which results in small duplication of
code that will go away when the callers are converted to receive
sockaddr * instead of mbuf *.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/netatalk/ddp_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2015-04-24 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Fri Apr 24 22:32:38 UTC 2015

Modified Files:
src/sys/compat/svr4: svr4_stream.c
src/sys/kern: uipc_socket.c uipc_syscalls.c uipc_usrreq.c
src/sys/net: if_gre.c link_proto.c raw_cb.h raw_usrreq.c rtsock.c
src/sys/netatalk: ddp_usrreq.c
src/sys/netbt: hci_socket.c l2cap_socket.c rfcomm_socket.c sco_socket.c
src/sys/netinet: dccp_usrreq.c in_pcb.c in_pcb.h raw_ip.c tcp_usrreq.c
udp_usrreq.c
src/sys/netinet6: dccp6_usrreq.c in6_pcb.c in6_pcb.h raw_ip6.c
udp6_usrreq.c
src/sys/netipsec: keysock.c
src/sys/netmpls: mpls_proto.c
src/sys/netnatm: natm.c
src/sys/rump/net/lib/libsockin: sockin.c
src/sys/sys: param.h protosw.h socketvar.h

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 src/sys/compat/svr4/svr4_stream.c
cvs rdiff -u -r1.238 -r1.239 src/sys/kern/uipc_socket.c
cvs rdiff -u -r1.175 -r1.176 src/sys/kern/uipc_syscalls.c
cvs rdiff -u -r1.176 -r1.177 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.163 -r1.164 src/sys/net/if_gre.c
cvs rdiff -u -r1.25 -r1.26 src/sys/net/link_proto.c
cvs rdiff -u -r1.23 -r1.24 src/sys/net/raw_cb.h
cvs rdiff -u -r1.52 -r1.53 src/sys/net/raw_usrreq.c
cvs rdiff -u -r1.168 -r1.169 src/sys/net/rtsock.c
cvs rdiff -u -r1.64 -r1.65 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.41 -r1.42 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.32 -r1.33 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.34 -r1.35 src/sys/netbt/rfcomm_socket.c \
src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.2 -r1.3 src/sys/netinet/dccp_usrreq.c
cvs rdiff -u -r1.156 -r1.157 src/sys/netinet/in_pcb.c
cvs rdiff -u -r1.56 -r1.57 src/sys/netinet/in_pcb.h
cvs rdiff -u -r1.147 -r1.148 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.205 -r1.206 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.218 -r1.219 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.2 -r1.3 src/sys/netinet6/dccp6_usrreq.c
cvs rdiff -u -r1.135 -r1.136 src/sys/netinet6/in6_pcb.c
cvs rdiff -u -r1.42 -r1.43 src/sys/netinet6/in6_pcb.h
cvs rdiff -u -r1.137 -r1.138 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.117 -r1.118 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.45 -r1.46 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.25 -r1.26 src/sys/netmpls/mpls_proto.c
cvs rdiff -u -r1.46 -r1.47 src/sys/netnatm/natm.c
cvs rdiff -u -r1.59 -r1.60 src/sys/rump/net/lib/libsockin/sockin.c
cvs rdiff -u -r1.473 -r1.474 src/sys/sys/param.h
cvs rdiff -u -r1.61 -r1.62 src/sys/sys/protosw.h
cvs rdiff -u -r1.136 -r1.137 src/sys/sys/socketvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/svr4

2015-04-19 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Apr 19 19:17:37 UTC 2015

Modified Files:
src/sys/compat/svr4: svr4_stream.c

Log Message:
clean up the way ti_bind() was converted to use sockaddr_big.

instead of using the original sockaddr_{in,un} structures for storage
use the single sockaddr_big structure instead.

while here ditch superfluous assignment of sockaddr sb_len since the
assignment is already performed in netaddr_to_sockaddr_{in,un}


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/sys/compat/svr4/svr4_stream.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libc/sys

2015-04-05 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Apr  5 23:28:10 UTC 2015

Modified Files:
src/tests/lib/libc/sys: t_bind.c

Log Message:
fix typo bindinging -> binding


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/sys/t_bind.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2015-04-05 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Apr  5 23:19:56 UTC 2015

Modified Files:
src/sys/kern: uipc_socket.c

Log Message:
change return from EINVAL to EAFNOSUPPORT when the domain of the socket
does not match the family of the address to be bound.

fixes atf test lib/libc/sys/t_bind bind_foreign_family


To generate a diff of this commit:
cvs rdiff -u -r1.237 -r1.238 src/sys/kern/uipc_socket.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libc/sys

2015-04-05 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Apr  5 23:17:41 UTC 2015

Modified Files:
src/tests/lib/libc/sys: t_connect.c

Log Message:
add another test program for connect(2) that checks that connect fails
with EAFNOSUPPORT (similar to the bind test) if the domain of the socket
does not match the address family of the supplied address.

test currently fails as it should


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/sys/t_connect.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libc/sys

2015-04-05 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Apr  5 23:15:54 UTC 2015

Modified Files:
src/tests/lib/libc/sys: t_bind.c

Log Message:
-   ATF_REQUIRE(EINVAL == errno);
+   ATF_REQUIRE(EAFNOSUPPORT == errno);

as per http://pubs.opengroup.org/onlinepubs/009695399/functions/bind.html

while here remove some unnecessary initialization of port and addr members
and replace with a comment explaining why.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/sys/t_bind.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/sys

2015-04-05 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Apr  5 20:33:45 UTC 2015

Modified Files:
src/lib/libc/sys: bind.2

Log Message:
Note that bind(2) can fail with EAFNOSUPPORT.  The description of why is
taken from the connect(2) manpage.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/lib/libc/sys/bind.2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2015-04-04 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Apr  5 02:26:39 UTC 2015

Modified Files:
src/sys/kern: uipc_socket.c

Log Message:
make bind() fail with EINVAL if the address family of the provided
socket does not match the address family of the sockaddr received.


To generate a diff of this commit:
cvs rdiff -u -r1.236 -r1.237 src/sys/kern/uipc_socket.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2015-04-03 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sat Apr  4 04:33:39 UTC 2015

Modified Files:
src/sys/netinet: dccp_usrreq.c
src/sys/netinet6: dccp6_usrreq.c dccp6_var.h

Log Message:
* update dccp_bind for struct mbuf * to struct sockaddr * parameter change
* pass NULL instead of casting 0 to a pointer when calling in_pcbbind()


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/netinet/dccp_usrreq.c
cvs rdiff -u -r1.1 -r1.2 src/sys/netinet6/dccp6_usrreq.c \
src/sys/netinet6/dccp6_var.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2015-04-03 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Fri Apr  3 20:01:08 UTC 2015

Modified Files:
src/sys/compat/linux/common: linux_socket.c
src/sys/compat/svr4: svr4_stream.c
src/sys/kern: uipc_socket.c uipc_syscalls.c uipc_usrreq.c
src/sys/net: if_gre.c link_proto.c rtsock.c
src/sys/netatalk: ddp_usrreq.c
src/sys/netbt: hci_socket.c l2cap_socket.c rfcomm_socket.c sco_socket.c
src/sys/netinet: in_pcb.c in_pcb.h raw_ip.c tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: in6_pcb.c in6_pcb.h raw_ip6.c udp6_usrreq.c
src/sys/netipsec: keysock.c
src/sys/netmpls: mpls_proto.c
src/sys/netnatm: natm.c
src/sys/nfs: nfs_boot.c nfs_socket.c
src/sys/rump/net/lib/libsockin: sockin.c
src/sys/sys: param.h protosw.h socket.h socketvar.h

Log Message:
* 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@


To generate a diff of this commit:
cvs rdiff -u -r1.122 -r1.123 src/sys/compat/linux/common/linux_socket.c
cvs rdiff -u -r1.81 -r1.82 src/sys/compat/svr4/svr4_stream.c
cvs rdiff -u -r1.235 -r1.236 src/sys/kern/uipc_socket.c
cvs rdiff -u -r1.174 -r1.175 src/sys/kern/uipc_syscalls.c
cvs rdiff -u -r1.175 -r1.176 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.161 -r1.162 src/sys/net/if_gre.c
cvs rdiff -u -r1.24 -r1.25 src/sys/net/link_proto.c
cvs rdiff -u -r1.166 -r1.167 src/sys/net/rtsock.c
cvs rdiff -u -r1.63 -r1.64 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.40 -r1.41 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.31 -r1.32 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.33 -r1.34 src/sys/netbt/rfcomm_socket.c \
src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.155 -r1.156 src/sys/netinet/in_pcb.c
cvs rdiff -u -r1.55 -r1.56 src/sys/netinet/in_pcb.h
cvs rdiff -u -r1.146 -r1.147 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.204 -r1.205 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.217 -r1.218 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.134 -r1.135 src/sys/netinet6/in6_pcb.c
cvs rdiff -u -r1.41 -r1.42 src/sys/netinet6/in6_pcb.h
cvs rdiff -u -r1.136 -r1.137 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.116 -r1.117 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.44 -r1.45 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.24 -r1.25 src/sys/netmpls/mpls_proto.c
cvs rdiff -u -r1.45 -r1.46 src/sys/netnatm/natm.c
cvs rdiff -u -r1.82 -r1.83 src/sys/nfs/nfs_boot.c
cvs rdiff -u -r1.193 -r1.194 src/sys/nfs/nfs_socket.c
cvs rdiff -u -r1.58 -r1.59 src/sys/rump/net/lib/libsockin/sockin.c
cvs rdiff -u -r1.468 -r1.469 src/sys/sys/param.h
cvs rdiff -u -r1.60 -r1.61 src/sys/sys/protosw.h
cvs rdiff -u -r1.116 -r1.117 src/sys/sys/socket.h
cvs rdiff -u -r1.135 -r1.136 src/sys/sys/socketvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet

2015-03-13 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sat Mar 14 02:08:16 UTC 2015

Modified Files:
src/sys/netinet: tcp_input.c

Log Message:
Move code that is conditional on options INET6 into #ifdef INET6.

* Re-organize some variable declarations to limit #ifdef's.
* Move INET and INET6 code into respective switch cases to simplify
  #ifdef INET6.

No intended functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.336 -r1.337 src/sys/netinet/tcp_input.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2015-03-05 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Fri Mar  6 03:35:00 UTC 2015

Modified Files:
src/sys/kern: uipc_syscalls.c

Log Message:
Return EINVAL if namelen isn't large enough to encompass the expected
members of sockaddr structures. i.e. sa_len and sa_family.

Discussed with and patch by christos@


To generate a diff of this commit:
cvs rdiff -u -r1.173 -r1.174 src/sys/kern/uipc_syscalls.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2015-02-28 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sat Feb 28 21:42:01 UTC 2015

Modified Files:
src/sys/kern: uipc_usrreq.c

Log Message:
Place opening brace to function at column 0, like in the rest of the file.


To generate a diff of this commit:
cvs rdiff -u -r1.173 -r1.174 src/sys/kern/uipc_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2014-08-08 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sat Aug  9 05:33:01 UTC 2014

Modified Files:
src/sys/kern: uipc_socket.c uipc_syscalls.c uipc_usrreq.c
src/sys/miscfs/fifofs: fifo_vnops.c
src/sys/net: if.c link_proto.c raw_usrreq.c rtsock.c
src/sys/netatalk: ddp_usrreq.c
src/sys/netbt: hci_socket.c l2cap_socket.c rfcomm_socket.c sco_socket.c
src/sys/netinet: raw_ip.c tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: raw_ip6.c udp6_usrreq.c
src/sys/netipsec: keysock.c
src/sys/netmpls: mpls_proto.c
src/sys/netnatm: natm.c
src/sys/rump/net/lib/libsockin: sockin.c
src/sys/sys: protosw.h un.h

Log Message:
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@


To generate a diff of this commit:
cvs rdiff -u -r1.233 -r1.234 src/sys/kern/uipc_socket.c
cvs rdiff -u -r1.171 -r1.172 src/sys/kern/uipc_syscalls.c
cvs rdiff -u -r1.168 -r1.169 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.76 -r1.77 src/sys/miscfs/fifofs/fifo_vnops.c
cvs rdiff -u -r1.289 -r1.290 src/sys/net/if.c
cvs rdiff -u -r1.23 -r1.24 src/sys/net/link_proto.c
cvs rdiff -u -r1.51 -r1.52 src/sys/net/raw_usrreq.c
cvs rdiff -u -r1.162 -r1.163 src/sys/net/rtsock.c
cvs rdiff -u -r1.62 -r1.63 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.39 -r1.40 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.30 -r1.31 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.32 -r1.33 src/sys/netbt/rfcomm_socket.c \
src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.144 -r1.145 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.199 -r1.200 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.216 -r1.217 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.135 -r1.136 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.114 -r1.115 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.42 -r1.43 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.23 -r1.24 src/sys/netmpls/mpls_proto.c
cvs rdiff -u -r1.44 -r1.45 src/sys/netnatm/natm.c
cvs rdiff -u -r1.57 -r1.58 src/sys/rump/net/lib/libsockin/sockin.c
cvs rdiff -u -r1.59 -r1.60 src/sys/sys/protosw.h
cvs rdiff -u -r1.54 -r1.55 src/sys/sys/un.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2014-08-07 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Fri Aug  8 03:05:45 UTC 2014

Modified Files:
src/sys/dev: kttcp.c
src/sys/kern: uipc_socket.c uipc_usrreq.c
src/sys/net: if_gre.c link_proto.c raw_usrreq.c rtsock.c
src/sys/netatalk: ddp_usrreq.c
src/sys/netbt: hci_socket.c l2cap_socket.c rfcomm.h rfcomm_socket.c
rfcomm_upper.c sco_socket.c
src/sys/netinet: raw_ip.c tcp_input.c tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: raw_ip6.c udp6_usrreq.c
src/sys/netipsec: keysock.c
src/sys/netmpls: mpls_proto.c
src/sys/netnatm: natm.c
src/sys/rump/net/lib/libsockin: sockin.c
src/sys/sys: protosw.h

Log Message:
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()


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/kttcp.c
cvs rdiff -u -r1.232 -r1.233 src/sys/kern/uipc_socket.c
cvs rdiff -u -r1.167 -r1.168 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.158 -r1.159 src/sys/net/if_gre.c
cvs rdiff -u -r1.22 -r1.23 src/sys/net/link_proto.c
cvs rdiff -u -r1.50 -r1.51 src/sys/net/raw_usrreq.c
cvs rdiff -u -r1.161 -r1.162 src/sys/net/rtsock.c
cvs rdiff -u -r1.61 -r1.62 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.38 -r1.39 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.29 -r1.30 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.17 -r1.18 src/sys/netbt/rfcomm.h
cvs rdiff -u -r1.31 -r1.32 src/sys/netbt/rfcomm_socket.c \
src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.20 -r1.21 src/sys/netbt/rfcomm_upper.c
cvs rdiff -u -r1.143 -r1.144 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.333 -r1.334 src/sys/netinet/tcp_input.c
cvs rdiff -u -r1.198 -r1.199 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.215 -r1.216 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.134 -r1.135 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.113 -r1.114 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.41 -r1.42 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.22 -r1.23 src/sys/netmpls/mpls_proto.c
cvs rdiff -u -r1.43 -r1.44 src/sys/netnatm/natm.c
cvs rdiff -u -r1.56 -r1.57 src/sys/rump/net/lib/libsockin/sockin.c
cvs rdiff -u -r1.58 -r1.59 src/sys/sys/protosw.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netatalk

2014-08-07 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Thu Aug  7 07:51:28 UTC 2014

Modified Files:
src/sys/netatalk: ddp_usrreq.c

Log Message:
suppress possibly used uninitialized warning on sgimips

from martin@


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/sys/netatalk/ddp_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netatalk

2014-08-06 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Thu Aug  7 01:02:30 UTC 2014

Modified Files:
src/sys/netatalk: ddp_usrreq.c

Log Message:
remove KASSERT(nam != NULL) from ddp_send() the following code makes
the validity of it questionable.  we'll investigate later whether it
can be put back and the code simplified.


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/netatalk/ddp_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/sys

2014-08-05 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Tue Aug  5 14:02:42 UTC 2014

Modified Files:
src/sys/sys: un.h

Log Message:
whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/sys/sys/un.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2014-08-05 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Tue Aug  5 08:52:10 UTC 2014

Modified Files:
src/sys/kern: uipc_usrreq.c

Log Message:
actually use the passed in struct lwp *l instead of curlwp in unp_connect()


To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 src/sys/kern/uipc_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2014-08-05 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Tue Aug  5 07:55:32 UTC 2014

Modified Files:
src/sys/dev: kttcp.c
src/sys/dev/bluetooth: bthidev.c btmagic.c btsco.c
src/sys/kern: uipc_socket.c uipc_usrreq.c
src/sys/net: if_gre.c link_proto.c raw_cb.h raw_usrreq.c rtsock.c
src/sys/netatalk: ddp_usrreq.c
src/sys/netbt: hci_socket.c l2cap.h l2cap_lower.c l2cap_socket.c
l2cap_upper.c rfcomm.h rfcomm_session.c rfcomm_socket.c
rfcomm_upper.c sco.h sco_socket.c sco_upper.c
src/sys/netinet: raw_ip.c tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: raw_ip6.c udp6_usrreq.c
src/sys/netipsec: keysock.c
src/sys/netmpls: mpls_proto.c
src/sys/netnatm: natm.c
src/sys/nfs: nfs_socket.c
src/sys/rump/net/lib/libsockin: sockin.c
src/sys/sys: protosw.h

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/kttcp.c
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/bluetooth/bthidev.c
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/bluetooth/btmagic.c
cvs rdiff -u -r1.32 -r1.33 src/sys/dev/bluetooth/btsco.c
cvs rdiff -u -r1.231 -r1.232 src/sys/kern/uipc_socket.c
cvs rdiff -u -r1.165 -r1.166 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.157 -r1.158 src/sys/net/if_gre.c
cvs rdiff -u -r1.21 -r1.22 src/sys/net/link_proto.c
cvs rdiff -u -r1.22 -r1.23 src/sys/net/raw_cb.h
cvs rdiff -u -r1.49 -r1.50 src/sys/net/raw_usrreq.c
cvs rdiff -u -r1.160 -r1.161 src/sys/net/rtsock.c
cvs rdiff -u -r1.58 -r1.59 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.37 -r1.38 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.17 -r1.18 src/sys/netbt/l2cap.h src/sys/netbt/l2cap_upper.c
cvs rdiff -u -r1.9 -r1.10 src/sys/netbt/l2cap_lower.c
cvs rdiff -u -r1.28 -r1.29 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.16 -r1.17 src/sys/netbt/rfcomm.h
cvs rdiff -u -r1.22 -r1.23 src/sys/netbt/rfcomm_session.c
cvs rdiff -u -r1.30 -r1.31 src/sys/netbt/rfcomm_socket.c \
src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.19 -r1.20 src/sys/netbt/rfcomm_upper.c
cvs rdiff -u -r1.10 -r1.11 src/sys/netbt/sco.h
cvs rdiff -u -r1.15 -r1.16 src/sys/netbt/sco_upper.c
cvs rdiff -u -r1.142 -r1.143 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.197 -r1.198 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.214 -r1.215 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.133 -r1.134 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.112 -r1.113 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.40 -r1.41 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.21 -r1.22 src/sys/netmpls/mpls_proto.c
cvs rdiff -u -r1.42 -r1.43 src/sys/netnatm/natm.c
cvs rdiff -u -r1.191 -r1.192 src/sys/nfs/nfs_socket.c
cvs rdiff -u -r1.55 -r1.56 src/sys/rump/net/lib/libsockin/sockin.c
cvs rdiff -u -r1.57 -r1.58 src/sys/sys/protosw.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet

2014-08-05 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Tue Aug  5 07:10:41 UTC 2014

Modified Files:
src/sys/netinet: tcp_usrreq.c

Log Message:
get_tcppcb() is nearly always called upon entry to usrreqs so
KASSERT(solocked(so)) inside it and remove the redundant KASSERT
everywhere we are using tcp_getpcb()


To generate a diff of this commit:
cvs rdiff -u -r1.196 -r1.197 src/sys/netinet/tcp_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2014-08-04 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Tue Aug  5 05:24:27 UTC 2014

Modified Files:
src/sys/kern: uipc_socket.c uipc_usrreq.c
src/sys/net: link_proto.c raw_usrreq.c rtsock.c
src/sys/netatalk: ddp_usrreq.c
src/sys/netbt: hci_socket.c l2cap_socket.c rfcomm_socket.c sco_socket.c
src/sys/netinet: in_pcb.c in_pcb.h raw_ip.c tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: in6_pcb.c in6_pcb.h raw_ip6.c udp6_usrreq.c
src/sys/netipsec: keysock.c
src/sys/netmpls: mpls_proto.c
src/sys/netnatm: natm.c
src/sys/rump/net/lib/libsockin: sockin.c
src/sys/sys: protosw.h un.h

Log Message:
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@


To generate a diff of this commit:
cvs rdiff -u -r1.230 -r1.231 src/sys/kern/uipc_socket.c
cvs rdiff -u -r1.164 -r1.165 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.20 -r1.21 src/sys/net/link_proto.c
cvs rdiff -u -r1.48 -r1.49 src/sys/net/raw_usrreq.c
cvs rdiff -u -r1.159 -r1.160 src/sys/net/rtsock.c
cvs rdiff -u -r1.57 -r1.58 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.36 -r1.37 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.27 -r1.28 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.29 -r1.30 src/sys/netbt/rfcomm_socket.c \
src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.150 -r1.151 src/sys/netinet/in_pcb.c
cvs rdiff -u -r1.53 -r1.54 src/sys/netinet/in_pcb.h
cvs rdiff -u -r1.141 -r1.142 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.195 -r1.196 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.213 -r1.214 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.127 -r1.128 src/sys/netinet6/in6_pcb.c
cvs rdiff -u -r1.38 -r1.39 src/sys/netinet6/in6_pcb.h
cvs rdiff -u -r1.132 -r1.133 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.111 -r1.112 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.39 -r1.40 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.20 -r1.21 src/sys/netmpls/mpls_proto.c
cvs rdiff -u -r1.41 -r1.42 src/sys/netnatm/natm.c
cvs rdiff -u -r1.54 -r1.55 src/sys/rump/net/lib/libsockin/sockin.c
cvs rdiff -u -r1.56 -r1.57 src/sys/sys/protosw.h
cvs rdiff -u -r1.52 -r1.53 src/sys/sys/un.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet

2014-08-03 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Aug  3 11:44:52 UTC 2014

Modified Files:
src/sys/netinet: raw_ip.c

Log Message:
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));


To generate a diff of this commit:
cvs rdiff -u -r1.140 -r1.141 src/sys/netinet/raw_ip.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet

2014-08-01 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sat Aug  2 03:55:26 UTC 2014

Modified Files:
src/sys/netinet: raw_ip.c tcp_usrreq.c udp_usrreq.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.139 -r1.140 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.194 -r1.195 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.212 -r1.213 src/sys/netinet/udp_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netbt

2014-07-31 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Thu Jul 31 15:16:06 UTC 2014

Modified Files:
src/sys/netbt: rfcomm_socket.c

Log Message:
release mbuf on failure of PRU_SEND


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/netbt/rfcomm_socket.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2014-07-31 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Thu Jul 31 14:12:57 UTC 2014

Modified Files:
src/sys/kern: uipc_usrreq.c
src/sys/sys: un.h

Log Message:
* remove declarations of unp_bind, unp_discard, unp_disconnect1, unp_drop,
  unp_shutdown1, unp_internalize and unp_output functions from sys/un.h
  and  instead declare them as static in uipc_usrreq.c with prototype
  declarations as necessary.

* remove struct lwp * parameter from unp_output() while here and just
  use curlwp instead.

as discussed with rmind


To generate a diff of this commit:
cvs rdiff -u -r1.163 -r1.164 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.51 -r1.52 src/sys/sys/un.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/net

2014-07-31 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Thu Jul 31 13:21:33 UTC 2014

Modified Files:
src/sys/net: link_proto.c

Log Message:
split PRU_CONNECT, PRU_RCVOOB and PRU_SENDOOB into separate functions
(all implemented as EOPNOTSUPP).


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/net/link_proto.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netmpls

2014-07-30 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Thu Jul 31 05:37:00 UTC 2014

Modified Files:
src/sys/netmpls: mpls_proto.c

Log Message:
add missing KASSERT(req != PRU_XXX) to mpls_usrreq() for PRUs that have
already been split.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/netmpls/mpls_proto.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/net

2014-07-30 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Thu Jul 31 05:13:53 UTC 2014

Modified Files:
src/sys/net: raw_usrreq.c

Log Message:
fix missed conversion to call to pr_connect() from pr_generic() when
PRU_CONNECT split was done.

-   error = (*so->so_proto->pr_usrreqs->pr_generic)(so,
-   PRU_CONNECT, NULL, nam, NULL, l);
+   error = (*so->so_proto->pr_usrreqs->pr_connect)(so, 
nam);

without this change KASSERT() would be triggered if raw send needs to
perform a connect.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/net/raw_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2014-07-30 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Thu Jul 31 03:39:36 UTC 2014

Modified Files:
src/sys/dev/bluetooth: bthidev.c btmagic.c btsco.c
src/sys/kern: uipc_socket.c uipc_socket2.c uipc_usrreq.c
src/sys/net: link_proto.c raw_usrreq.c rtsock.c
src/sys/netatalk: ddp_usrreq.c
src/sys/netbt: hci_socket.c l2cap.h l2cap_socket.c l2cap_upper.c
rfcomm.h rfcomm_session.c rfcomm_socket.c rfcomm_upper.c sco.h
sco_socket.c sco_upper.c
src/sys/netinet: raw_ip.c tcp_usrreq.c tcp_var.h udp_usrreq.c
src/sys/netinet6: raw_ip6.c udp6_usrreq.c
src/sys/netipsec: keysock.c
src/sys/netmpls: mpls_proto.c
src/sys/netnatm: natm.c
src/sys/rump/net/lib/libsockin: sockin.c
src/sys/sys: protosw.h un.h

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/bluetooth/bthidev.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/bluetooth/btmagic.c
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/bluetooth/btsco.c
cvs rdiff -u -r1.228 -r1.229 src/sys/kern/uipc_socket.c
cvs rdiff -u -r1.119 -r1.120 src/sys/kern/uipc_socket2.c
cvs rdiff -u -r1.162 -r1.163 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.18 -r1.19 src/sys/net/link_proto.c
cvs rdiff -u -r1.46 -r1.47 src/sys/net/raw_usrreq.c
cvs rdiff -u -r1.158 -r1.159 src/sys/net/rtsock.c
cvs rdiff -u -r1.56 -r1.57 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.35 -r1.36 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.16 -r1.17 src/sys/netbt/l2cap.h src/sys/netbt/l2cap_upper.c
cvs rdiff -u -r1.26 -r1.27 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.15 -r1.16 src/sys/netbt/rfcomm.h
cvs rdiff -u -r1.21 -r1.22 src/sys/netbt/rfcomm_session.c
cvs rdiff -u -r1.27 -r1.28 src/sys/netbt/rfcomm_socket.c
cvs rdiff -u -r1.18 -r1.19 src/sys/netbt/rfcomm_upper.c
cvs rdiff -u -r1.9 -r1.10 src/sys/netbt/sco.h
cvs rdiff -u -r1.28 -r1.29 src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.14 -r1.15 src/sys/netbt/sco_upper.c
cvs rdiff -u -r1.138 -r1.139 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.193 -r1.194 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.174 -r1.175 src/sys/netinet/tcp_var.h
cvs rdiff -u -r1.211 -r1.212 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.131 -r1.132 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.110 -r1.111 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.38 -r1.39 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.18 -r1.19 src/sys/netmpls/mpls_proto.c
cvs rdiff -u -r1.40 -r1.41 src/sys/netnatm/natm.c
cvs rdiff -u -r1.53 -r1.54 src/sys/rump/net/lib/libsockin/sockin.c
cvs rdiff -u -r1.55 -r1.56 src/sys/sys/protosw.h
cvs rdiff -u -r1.50 -r1.51 src/sys/sys/un.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2014-07-30 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Wed Jul 30 10:04:26 UTC 2014

Modified Files:
src/sys/dev/bluetooth: bthidev.c btmagic.c btsco.c
src/sys/kern: uipc_socket.c uipc_usrreq.c
src/sys/net: raw_usrreq.c rtsock.c
src/sys/netatalk: ddp_usrreq.c
src/sys/netbt: hci_socket.c l2cap.h l2cap_socket.c l2cap_upper.c
rfcomm.h rfcomm_socket.c rfcomm_upper.c sco.h sco_socket.c
sco_upper.c
src/sys/netinet: raw_ip.c tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: raw_ip6.c udp6_usrreq.c
src/sys/netipsec: keysock.c
src/sys/netmpls: mpls_proto.c
src/sys/netnatm: natm.c
src/sys/rump/net/lib/libsockin: sockin.c
src/sys/sys: protosw.h un.h

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/bluetooth/bthidev.c
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/bluetooth/btmagic.c
cvs rdiff -u -r1.30 -r1.31 src/sys/dev/bluetooth/btsco.c
cvs rdiff -u -r1.227 -r1.228 src/sys/kern/uipc_socket.c
cvs rdiff -u -r1.161 -r1.162 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.45 -r1.46 src/sys/net/raw_usrreq.c
cvs rdiff -u -r1.157 -r1.158 src/sys/net/rtsock.c
cvs rdiff -u -r1.55 -r1.56 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.34 -r1.35 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.15 -r1.16 src/sys/netbt/l2cap.h src/sys/netbt/l2cap_upper.c
cvs rdiff -u -r1.25 -r1.26 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.14 -r1.15 src/sys/netbt/rfcomm.h
cvs rdiff -u -r1.26 -r1.27 src/sys/netbt/rfcomm_socket.c
cvs rdiff -u -r1.17 -r1.18 src/sys/netbt/rfcomm_upper.c
cvs rdiff -u -r1.8 -r1.9 src/sys/netbt/sco.h
cvs rdiff -u -r1.27 -r1.28 src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.13 -r1.14 src/sys/netbt/sco_upper.c
cvs rdiff -u -r1.136 -r1.137 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.192 -r1.193 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.210 -r1.211 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.129 -r1.130 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.109 -r1.110 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.37 -r1.38 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.17 -r1.18 src/sys/netmpls/mpls_proto.c
cvs rdiff -u -r1.39 -r1.40 src/sys/netnatm/natm.c
cvs rdiff -u -r1.52 -r1.53 src/sys/rump/net/lib/libsockin/sockin.c
cvs rdiff -u -r1.54 -r1.55 src/sys/sys/protosw.h
cvs rdiff -u -r1.49 -r1.50 src/sys/sys/un.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet

2014-07-29 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Wed Jul 30 06:53:53 UTC 2014

Modified Files:
src/sys/netinet: tcp_usrreq.c

Log Message:
put boilerplate extraction of inpcb or in6pcb and tcpcb performed in tcp
usrreqs into a function that can be called instead of cut & pasting it
to every single usrreq function.

tcp_getpcb(struct socket *, struct inpcb **, struct in6pcb **, struct tcpcb **)

  * examines the family of the provided socket and fills in either inpcb
or in6pcb and tcpcb.
  * if the pcb is not present for the family of the socket EINVAL is
returned, if the family is not AF_INET{,6} EAFNOSUPPORT is returned.

signature provided by and patch reviewed by rmind


To generate a diff of this commit:
cvs rdiff -u -r1.191 -r1.192 src/sys/netinet/tcp_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/net/lib/libsockin

2014-07-28 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Mon Jul 28 10:09:51 UTC 2014

Modified Files:
src/sys/rump/net/lib/libsockin: sockin.c

Log Message:
add missing KASSERT()s at the top of sockin_usrreq(), req shall not be
either of these operations.

>   KASSERT(req != PRU_BIND);
>   KASSERT(req != PRU_LISTEN);


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/rump/net/lib/libsockin/sockin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet

2014-07-24 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Thu Jul 24 16:02:19 UTC 2014

Modified Files:
src/sys/netinet: tcp_usrreq.c

Log Message:
cleanup after last commit

- add KASSERT(req != PRU_BIND) and KASSERT(req != PRU_LISTEN) inside
  tcp_usrreq() as these reqs should no longer reach here.
- remove (now unreachable) PRU_LISTEN case in switch.


To generate a diff of this commit:
cvs rdiff -u -r1.190 -r1.191 src/sys/netinet/tcp_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2014-07-24 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Thu Jul 24 15:12:04 UTC 2014

Modified Files:
src/sys/dev/bluetooth: bthidev.c btmagic.c btsco.c
src/sys/kern: uipc_socket.c uipc_usrreq.c
src/sys/net: link_proto.c raw_usrreq.c rtsock.c
src/sys/netatalk: ddp_usrreq.c
src/sys/netbt: hci_socket.c l2cap.h l2cap_socket.c l2cap_upper.c
rfcomm.h rfcomm_session.c rfcomm_socket.c rfcomm_upper.c sco.h
sco_socket.c sco_upper.c
src/sys/netinet: in_pcb.c in_pcb.h raw_ip.c tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: in6_pcb.c in6_pcb.h raw_ip6.c udp6_usrreq.c
src/sys/netipsec: keysock.c
src/sys/netmpls: mpls_proto.c
src/sys/netnatm: natm.c
src/sys/rump/net/lib/libsockin: sockin.c
src/sys/sys: param.h protosw.h un.h

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/bluetooth/bthidev.c
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/bluetooth/btmagic.c
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/bluetooth/btsco.c
cvs rdiff -u -r1.226 -r1.227 src/sys/kern/uipc_socket.c
cvs rdiff -u -r1.160 -r1.161 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.17 -r1.18 src/sys/net/link_proto.c
cvs rdiff -u -r1.44 -r1.45 src/sys/net/raw_usrreq.c
cvs rdiff -u -r1.156 -r1.157 src/sys/net/rtsock.c
cvs rdiff -u -r1.54 -r1.55 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.33 -r1.34 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.14 -r1.15 src/sys/netbt/l2cap.h src/sys/netbt/l2cap_upper.c
cvs rdiff -u -r1.24 -r1.25 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.13 -r1.14 src/sys/netbt/rfcomm.h
cvs rdiff -u -r1.20 -r1.21 src/sys/netbt/rfcomm_session.c
cvs rdiff -u -r1.25 -r1.26 src/sys/netbt/rfcomm_socket.c
cvs rdiff -u -r1.16 -r1.17 src/sys/netbt/rfcomm_upper.c
cvs rdiff -u -r1.7 -r1.8 src/sys/netbt/sco.h
cvs rdiff -u -r1.26 -r1.27 src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.12 -r1.13 src/sys/netbt/sco_upper.c
cvs rdiff -u -r1.148 -r1.149 src/sys/netinet/in_pcb.c
cvs rdiff -u -r1.52 -r1.53 src/sys/netinet/in_pcb.h
cvs rdiff -u -r1.135 -r1.136 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.189 -r1.190 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.209 -r1.210 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.125 -r1.126 src/sys/netinet6/in6_pcb.c
cvs rdiff -u -r1.37 -r1.38 src/sys/netinet6/in6_pcb.h
cvs rdiff -u -r1.128 -r1.129 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.108 -r1.109 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.36 -r1.37 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.16 -r1.17 src/sys/netmpls/mpls_proto.c
cvs rdiff -u -r1.38 -r1.39 src/sys/netnatm/natm.c
cvs rdiff -u -r1.50 -r1.51 src/sys/rump/net/lib/libsockin/sockin.c
cvs rdiff -u -r1.457 -r1.458 src/sys/sys/param.h
cvs rdiff -u -r1.53 -r1.54 src/sys/sys/protosw.h
cvs rdiff -u -r1.48 -r1.49 src/sys/sys/un.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2014-07-23 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Wed Jul 23 13:17:19 UTC 2014

Modified Files:
src/sys/dev: kttcp.c
src/sys/kern: uipc_socket.c uipc_usrreq.c
src/sys/net: raw_usrreq.c rtsock.c
src/sys/netatalk: ddp_usrreq.c
src/sys/netbt: hci_socket.c l2cap_socket.c rfcomm_socket.c sco_socket.c
src/sys/netinet: raw_ip.c tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: raw_ip6.c udp6_usrreq.c
src/sys/netipsec: keysock.c
src/sys/netmpls: mpls_proto.c
src/sys/netnatm: natm.c
src/sys/rump/net/lib/libsockin: sockin.c
src/sys/sys: protosw.h

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/kttcp.c
cvs rdiff -u -r1.225 -r1.226 src/sys/kern/uipc_socket.c
cvs rdiff -u -r1.159 -r1.160 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.43 -r1.44 src/sys/net/raw_usrreq.c
cvs rdiff -u -r1.155 -r1.156 src/sys/net/rtsock.c
cvs rdiff -u -r1.53 -r1.54 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.32 -r1.33 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.23 -r1.24 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.24 -r1.25 src/sys/netbt/rfcomm_socket.c
cvs rdiff -u -r1.25 -r1.26 src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.134 -r1.135 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.188 -r1.189 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.208 -r1.209 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.127 -r1.128 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.107 -r1.108 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.35 -r1.36 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.15 -r1.16 src/sys/netmpls/mpls_proto.c
cvs rdiff -u -r1.37 -r1.38 src/sys/netnatm/natm.c
cvs rdiff -u -r1.49 -r1.50 src/sys/rump/net/lib/libsockin/sockin.c
cvs rdiff -u -r1.52 -r1.53 src/sys/sys/protosw.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet

2014-07-14 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Mon Jul 14 13:39:18 UTC 2014

Modified Files:
src/sys/netinet: raw_ip.c

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

spotted by Takahiro HAYASHI


To generate a diff of this commit:
cvs rdiff -u -r1.133 -r1.134 src/sys/netinet/raw_ip.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet

2014-07-14 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Mon Jul 14 13:20:41 UTC 2014

Modified Files:
src/sys/netinet: tcp_usrreq.c

Log Message:
pr_generic() for req = PRU_RCVOOB is always called with control == NULL
so don't bother with a conditional block that handles non-NULL, it
doesn't happen.


To generate a diff of this commit:
cvs rdiff -u -r1.187 -r1.188 src/sys/netinet/tcp_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/net/lib/libsockin

2014-07-09 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Wed Jul  9 15:37:55 UTC 2014

Modified Files:
src/sys/rump/net/lib/libsockin: sockin.c

Log Message:
fix name clash i introduced when adding sockin_accept() pru by renaming
the rump sockin_accept(struct socket *) to sockin_waccept(struct socket *)

not a very creative name the 'w' indicates worker and was chosen to
prefix the word accept to make it not pattern match with _accept. if
someone prefers a different name then please feel free to change it.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/rump/net/lib/libsockin/sockin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2014-07-09 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Wed Jul  9 14:41:43 UTC 2014

Modified Files:
src/sys/kern: uipc_socket.c uipc_usrreq.c
src/sys/net: if_mpls.c raw_usrreq.c rtsock.c
src/sys/netatalk: ddp_usrreq.c
src/sys/netbt: hci_socket.c l2cap_socket.c rfcomm_socket.c sco_socket.c
src/sys/netinet: raw_ip.c tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: raw_ip6.c udp6_usrreq.c
src/sys/netipsec: keysock.c
src/sys/netmpls: mpls_proto.c
src/sys/netnatm: natm.c
src/sys/rump/net/lib/libsockin: sockin.c
src/sys/sys: protosw.h

Log Message:
* 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


To generate a diff of this commit:
cvs rdiff -u -r1.224 -r1.225 src/sys/kern/uipc_socket.c
cvs rdiff -u -r1.158 -r1.159 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.14 -r1.15 src/sys/net/if_mpls.c
cvs rdiff -u -r1.42 -r1.43 src/sys/net/raw_usrreq.c
cvs rdiff -u -r1.154 -r1.155 src/sys/net/rtsock.c
cvs rdiff -u -r1.52 -r1.53 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.31 -r1.32 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.22 -r1.23 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.23 -r1.24 src/sys/netbt/rfcomm_socket.c
cvs rdiff -u -r1.24 -r1.25 src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.132 -r1.133 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.185 -r1.186 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.207 -r1.208 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.126 -r1.127 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.106 -r1.107 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.34 -r1.35 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.14 -r1.15 src/sys/netmpls/mpls_proto.c
cvs rdiff -u -r1.36 -r1.37 src/sys/netnatm/natm.c
cvs rdiff -u -r1.47 -r1.48 src/sys/rump/net/lib/libsockin/sockin.c
cvs rdiff -u -r1.51 -r1.52 src/sys/sys/protosw.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2014-07-08 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Wed Jul  9 04:54:04 UTC 2014

Modified Files:
src/sys/compat/svr4: svr4_stream.c
src/sys/kern: uipc_syscalls.c uipc_usrreq.c
src/sys/net: if_gre.c link_proto.c raw_usrreq.c rtsock.c
src/sys/netatalk: ddp_usrreq.c
src/sys/netbt: hci_socket.c l2cap.h l2cap_socket.c l2cap_upper.c
rfcomm.h rfcomm_dlc.c rfcomm_session.c rfcomm_socket.c
rfcomm_upper.c sco.h sco_socket.c sco_upper.c
src/sys/netinet: raw_ip.c tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: raw_ip6.c udp6_usrreq.c
src/sys/netipsec: keysock.c
src/sys/netmpls: mpls_proto.c
src/sys/netnatm: natm.c
src/sys/rump/net/lib/libsockin: sockin.c
src/sys/sys: param.h protosw.h socketvar.h

Log Message:
* 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


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/sys/compat/svr4/svr4_stream.c
cvs rdiff -u -r1.170 -r1.171 src/sys/kern/uipc_syscalls.c
cvs rdiff -u -r1.157 -r1.158 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.156 -r1.157 src/sys/net/if_gre.c
cvs rdiff -u -r1.14 -r1.15 src/sys/net/link_proto.c
cvs rdiff -u -r1.41 -r1.42 src/sys/net/raw_usrreq.c
cvs rdiff -u -r1.153 -r1.154 src/sys/net/rtsock.c
cvs rdiff -u -r1.51 -r1.52 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.30 -r1.31 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.13 -r1.14 src/sys/netbt/l2cap.h src/sys/netbt/l2cap_upper.c
cvs rdiff -u -r1.21 -r1.22 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.12 -r1.13 src/sys/netbt/rfcomm.h
cvs rdiff -u -r1.7 -r1.8 src/sys/netbt/rfcomm_dlc.c
cvs rdiff -u -r1.19 -r1.20 src/sys/netbt/rfcomm_session.c
cvs rdiff -u -r1.22 -r1.23 src/sys/netbt/rfcomm_socket.c
cvs rdiff -u -r1.15 -r1.16 src/sys/netbt/rfcomm_upper.c
cvs rdiff -u -r1.6 -r1.7 src/sys/netbt/sco.h
cvs rdiff -u -r1.23 -r1.24 src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.11 -r1.12 src/sys/netbt/sco_upper.c
cvs rdiff -u -r1.131 -r1.132 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.184 -r1.185 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.206 -r1.207 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.125 -r1.126 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.105 -r1.106 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.33 -r1.34 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.13 -r1.14 src/sys/netmpls/mpls_proto.c
cvs rdiff -u -r1.35 -r1.36 src/sys/netnatm/natm.c
cvs rdiff -u -r1.46 -r1.47 src/sys/rump/net/lib/libsockin/sockin.c
cvs rdiff -u -r1.456 -r1.457 src/sys/sys/param.h
cvs rdiff -u -r1.50 -r1.51 src/sys/sys/protosw.h
cvs rdiff -u -r1.133 -r1.134 src/sys/sys/socketvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2014-07-07 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Mon Jul  7 17:13:57 UTC 2014

Modified Files:
src/sys/kern: uipc_usrreq.c
src/sys/net: link_proto.c rtsock.c
src/sys/netatalk: ddp_usrreq.c
src/sys/netbt: hci_socket.c l2cap_socket.c rfcomm_socket.c sco_socket.c
src/sys/netinet: raw_ip.c tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: raw_ip6.c udp6_usrreq.c
src/sys/netipsec: keysock.c
src/sys/netmpls: mpls_proto.c
src/sys/netnatm: natm.c
src/sys/rump/net/lib/libsockin: sockin.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.156 -r1.157 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.13 -r1.14 src/sys/net/link_proto.c
cvs rdiff -u -r1.152 -r1.153 src/sys/net/rtsock.c
cvs rdiff -u -r1.50 -r1.51 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.29 -r1.30 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.20 -r1.21 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.21 -r1.22 src/sys/netbt/rfcomm_socket.c
cvs rdiff -u -r1.22 -r1.23 src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.130 -r1.131 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.183 -r1.184 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.205 -r1.206 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.124 -r1.125 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.104 -r1.105 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.32 -r1.33 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.12 -r1.13 src/sys/netmpls/mpls_proto.c
cvs rdiff -u -r1.34 -r1.35 src/sys/netnatm/natm.c
cvs rdiff -u -r1.45 -r1.46 src/sys/rump/net/lib/libsockin/sockin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2014-07-07 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Mon Jul  7 15:13:22 UTC 2014

Modified Files:
src/sys/net: rtsock.c
src/sys/netatalk: ddp_usrreq.c
src/sys/netbt: hci_socket.c l2cap_socket.c rfcomm_socket.c sco_socket.c
src/sys/netinet: raw_ip.c tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: raw_ip6.c udp6_usrreq.c
src/sys/netipsec: keysock.c
src/sys/netnatm: natm.c
src/sys/rump/net/lib/libsockin: sockin.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.151 -r1.152 src/sys/net/rtsock.c
cvs rdiff -u -r1.49 -r1.50 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.28 -r1.29 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.19 -r1.20 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.20 -r1.21 src/sys/netbt/rfcomm_socket.c
cvs rdiff -u -r1.21 -r1.22 src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.129 -r1.130 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.182 -r1.183 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.204 -r1.205 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.123 -r1.124 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.103 -r1.104 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.31 -r1.32 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.33 -r1.34 src/sys/netnatm/natm.c
cvs rdiff -u -r1.44 -r1.45 src/sys/rump/net/lib/libsockin/sockin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/net

2014-07-07 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Mon Jul  7 10:18:20 UTC 2014

Modified Files:
src/sys/net: rtsock.c

Log Message:
return EOPNOTSUPP for pr_stat instead of returning success since we
don't fill in the struct stat passed to us.


To generate a diff of this commit:
cvs rdiff -u -r1.150 -r1.151 src/sys/net/rtsock.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2014-07-07 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Mon Jul  7 07:09:59 UTC 2014

Modified Files:
src/sys/netatalk: ddp_usrreq.c
src/sys/netbt: hci_socket.c l2cap_socket.c rfcomm_socket.c sco_socket.c
src/sys/netinet: raw_ip.c tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: raw_ip6.c udp6_usrreq.c
src/sys/netipsec: keysock.c
src/sys/netnatm: natm.c
src/sys/rump/net/lib/libsockin: sockin.c

Log Message:
* 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@


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.27 -r1.28 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.18 -r1.19 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.19 -r1.20 src/sys/netbt/rfcomm_socket.c
cvs rdiff -u -r1.20 -r1.21 src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.128 -r1.129 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.181 -r1.182 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.203 -r1.204 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.122 -r1.123 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.102 -r1.103 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.30 -r1.31 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.32 -r1.33 src/sys/netnatm/natm.c
cvs rdiff -u -r1.43 -r1.44 src/sys/rump/net/lib/libsockin/sockin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/net/lib/libsockin

2014-07-06 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Jul  6 16:18:46 UTC 2014

Modified Files:
src/sys/rump/net/lib/libsockin: sockin.c

Log Message:
* split PRU_SENSE functionality out of sockin_usrreq() and place into
  separate sockin_stat(struct socket *, struct stat *) function.
* change behavior of function to just return success (like pretty much
  every other implementation) instead of panic()ing due to lack of
  implementation.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/rump/net/lib/libsockin/sockin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/net

2014-07-06 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Jul  6 16:06:19 UTC 2014

Modified Files:
src/sys/net: link_proto.c

Log Message:
* split PRU_SENSE functionality out of link_usrreq() and place into
  separate link_stat(struct socket *, struct stat *) function


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/net/link_proto.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netnatm

2014-07-06 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Jul  6 15:49:14 UTC 2014

Modified Files:
src/sys/netnatm: natm.c

Log Message:
* #include  for kmem_intr_free()
* add missing variables used by natm_attach(), natm_ioctl()


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/netnatm/natm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netnatm

2014-07-06 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Jul  6 15:44:25 UTC 2014

Modified Files:
src/sys/netnatm: natm.h natm_pcb.c

Log Message:
* #include  for kmem_intr_xxx()
* ansify pcb_add() function signature and make its prototype parameter
  types match its definition.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/netnatm/natm.h
cvs rdiff -u -r1.15 -r1.16 src/sys/netnatm/natm_pcb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netnatm

2014-07-06 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Jul  6 15:09:38 UTC 2014

Modified Files:
src/sys/netnatm: natm.c

Log Message:
fix pasto in function name should be natm_stat instead of natm_ioctl


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/netnatm/natm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netmpls

2014-07-05 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Jul  6 04:47:26 UTC 2014

Modified Files:
src/sys/netmpls: mpls_proto.c

Log Message:
* split PRU_SENSE functionality out of mpls_usrreq() and place into
  separate mpls_stat(struct socket *, struct stat *) function

missed this in previous commit, fixes build of ALL kernel.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/netmpls/mpls_proto.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2014-07-05 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Jul  6 03:33:33 UTC 2014

Modified Files:
src/sys/kern: sys_socket.c uipc_usrreq.c
src/sys/net: raw_usrreq.c rtsock.c
src/sys/netatalk: ddp_usrreq.c
src/sys/netbt: hci_socket.c l2cap_socket.c rfcomm_socket.c sco_socket.c
src/sys/netinet: raw_ip.c tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: raw_ip6.c udp6_usrreq.c
src/sys/netipsec: keysock.c
src/sys/netnatm: natm.c
src/sys/sys: protosw.h

Log Message:
* 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


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/kern/sys_socket.c
cvs rdiff -u -r1.155 -r1.156 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.40 -r1.41 src/sys/net/raw_usrreq.c
cvs rdiff -u -r1.149 -r1.150 src/sys/net/rtsock.c
cvs rdiff -u -r1.47 -r1.48 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.26 -r1.27 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.17 -r1.18 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.18 -r1.19 src/sys/netbt/rfcomm_socket.c
cvs rdiff -u -r1.19 -r1.20 src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.127 -r1.128 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.180 -r1.181 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.202 -r1.203 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.121 -r1.122 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.101 -r1.102 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.29 -r1.30 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.29 -r1.30 src/sys/netnatm/natm.c
cvs rdiff -u -r1.49 -r1.50 src/sys/sys/protosw.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/sys

2014-07-01 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Tue Jul  1 13:25:21 UTC 2014

Modified Files:
src/sys/sys: param.h

Log Message:
Bump to version 6.99.45 for removal of struct lwp * parameter from pr_ioctl


To generate a diff of this commit:
cvs rdiff -u -r1.454 -r1.455 src/sys/sys/param.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2014-06-30 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Tue Jul  1 05:49:19 UTC 2014

Modified Files:
src/sys/compat/common: if_43.c
src/sys/kern: sys_socket.c uipc_usrreq.c
src/sys/net: if.c if.h link_proto.c rtsock.c
src/sys/netatalk: at_control.c at_extern.h ddp_usrreq.c
src/sys/netbt: hci.h hci_ioctl.c hci_socket.c l2cap_socket.c
rfcomm_socket.c sco_socket.c
src/sys/netinet: in.c in_var.h raw_ip.c tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: in6.c in6_var.h raw_ip6.c udp6_usrreq.c
src/sys/netipsec: keysock.c
src/sys/netmpls: mpls_proto.c
src/sys/netnatm: natm.c
src/sys/rump/net/lib/libnetinet: netinet_component.c
src/sys/rump/net/lib/libsockin: sockin.c
src/sys/sys: protosw.h

Log Message:
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@


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/compat/common/if_43.c
cvs rdiff -u -r1.70 -r1.71 src/sys/kern/sys_socket.c
cvs rdiff -u -r1.154 -r1.155 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.283 -r1.284 src/sys/net/if.c
cvs rdiff -u -r1.167 -r1.168 src/sys/net/if.h
cvs rdiff -u -r1.11 -r1.12 src/sys/net/link_proto.c
cvs rdiff -u -r1.148 -r1.149 src/sys/net/rtsock.c
cvs rdiff -u -r1.34 -r1.35 src/sys/netatalk/at_control.c
cvs rdiff -u -r1.17 -r1.18 src/sys/netatalk/at_extern.h
cvs rdiff -u -r1.46 -r1.47 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.38 -r1.39 src/sys/netbt/hci.h
cvs rdiff -u -r1.11 -r1.12 src/sys/netbt/hci_ioctl.c
cvs rdiff -u -r1.25 -r1.26 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.16 -r1.17 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.17 -r1.18 src/sys/netbt/rfcomm_socket.c
cvs rdiff -u -r1.18 -r1.19 src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.146 -r1.147 src/sys/netinet/in.c
cvs rdiff -u -r1.69 -r1.70 src/sys/netinet/in_var.h
cvs rdiff -u -r1.126 -r1.127 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.179 -r1.180 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.201 -r1.202 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.171 -r1.172 src/sys/netinet6/in6.c
cvs rdiff -u -r1.69 -r1.70 src/sys/netinet6/in6_var.h
cvs rdiff -u -r1.120 -r1.121 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.100 -r1.101 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.28 -r1.29 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.10 -r1.11 src/sys/netmpls/mpls_proto.c
cvs rdiff -u -r1.28 -r1.29 src/sys/netnatm/natm.c
cvs rdiff -u -r1.2 -r1.3 src/sys/rump/net/lib/libnetinet/netinet_component.c
cvs rdiff -u -r1.41 -r1.42 src/sys/rump/net/lib/libsockin/sockin.c
cvs rdiff -u -r1.48 -r1.49 src/sys/sys/protosw.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2014-06-28 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sat Jun 28 09:16:18 UTC 2014

Modified Files:
src/distrib/sparc64/bootfs: boot.cfg
src/sys/arch/i386/stand/boot: boot2.c
src/sys/arch/i386/stand/lib: bootmenu.c bootmenu.h
src/sys/arch/i386/stand/pxeboot: main.c
src/sys/arch/sparc/stand/ofwboot: boot.c
src/sys/arch/zaurus/stand/zboot: boot.c boot.h bootmenu.c bootmenu.h
pathnames.h
src/sys/lib/libsa: Makefile
Added Files:
src/sys/lib/libsa: bootcfg.c bootcfg.h

Log Message:
patch posted to tech-kern@ 2014/06/25 for review with minor changes
resulting from feedback.

move multiple copies of code for parsing boot.cfg file from sparc, i386
and zaurus into libsa/bootcfg.{h,c}. largely retained i386 parsing logic
in addition to keeping sparc dispatch function while remaining consistent
with boot.cfg(5).

previous sparc64 file format has been obsoleted but only used by boot
CDs distrib/sparc64/bootfs/boot.cfg has been updated to compensate.

exported names have been prefixed with either BOOTCFG_ or bootcfg_ as per
feedback from christos@

tested on amd64 & sparc64 but not zaurus.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/distrib/sparc64/bootfs/boot.cfg
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/i386/stand/boot/boot2.c
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/i386/stand/lib/bootmenu.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/i386/stand/lib/bootmenu.h
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/i386/stand/pxeboot/main.c
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/sparc/stand/ofwboot/boot.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/zaurus/stand/zboot/boot.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/zaurus/stand/zboot/boot.h \
src/sys/arch/zaurus/stand/zboot/bootmenu.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/zaurus/stand/zboot/bootmenu.h
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/zaurus/stand/zboot/pathnames.h
cvs rdiff -u -r1.82 -r1.83 src/sys/lib/libsa/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/lib/libsa/bootcfg.c \
src/sys/lib/libsa/bootcfg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2014-06-23 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Mon Jun 23 17:18:45 UTC 2014

Modified Files:
src/sys/kern: sys_socket.c
src/sys/net: link_proto.c
src/sys/netatalk: ddp_usrreq.c
src/sys/netinet: raw_ip.c tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: raw_ip6.c udp6_usrreq.c

Log Message:
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@


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/kern/sys_socket.c
cvs rdiff -u -r1.10 -r1.11 src/sys/net/link_proto.c
cvs rdiff -u -r1.45 -r1.46 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.125 -r1.126 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.178 -r1.179 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.200 -r1.201 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.119 -r1.120 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.99 -r1.100 src/sys/netinet6/udp6_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2014-06-22 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Jun 22 08:10:19 UTC 2014

Modified Files:
src/sys/compat/common: if_43.c
src/sys/kern: sys_socket.c uipc_usrreq.c
src/sys/net: if.c link_proto.c raw_usrreq.c rtsock.c
src/sys/netatalk: ddp_usrreq.c
src/sys/netbt: hci.h hci_ioctl.c hci_socket.c l2cap_socket.c
rfcomm_socket.c sco_socket.c
src/sys/netinet: raw_ip.c tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: raw_ip6.c udp6_usrreq.c
src/sys/netipsec: keysock.c
src/sys/netmpls: mpls_proto.c
src/sys/netnatm: natm.c
src/sys/rump/net/lib/libsockin: sockin.c
src/sys/sys: protosw.h

Log Message:
* 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@


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/compat/common/if_43.c
cvs rdiff -u -r1.68 -r1.69 src/sys/kern/sys_socket.c
cvs rdiff -u -r1.153 -r1.154 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.282 -r1.283 src/sys/net/if.c
cvs rdiff -u -r1.9 -r1.10 src/sys/net/link_proto.c
cvs rdiff -u -r1.39 -r1.40 src/sys/net/raw_usrreq.c
cvs rdiff -u -r1.147 -r1.148 src/sys/net/rtsock.c
cvs rdiff -u -r1.44 -r1.45 src/sys/netatalk/ddp_usrreq.c
cvs rdiff -u -r1.37 -r1.38 src/sys/netbt/hci.h
cvs rdiff -u -r1.10 -r1.11 src/sys/netbt/hci_ioctl.c
cvs rdiff -u -r1.24 -r1.25 src/sys/netbt/hci_socket.c
cvs rdiff -u -r1.15 -r1.16 src/sys/netbt/l2cap_socket.c
cvs rdiff -u -r1.16 -r1.17 src/sys/netbt/rfcomm_socket.c
cvs rdiff -u -r1.17 -r1.18 src/sys/netbt/sco_socket.c
cvs rdiff -u -r1.124 -r1.125 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.177 -r1.178 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.199 -r1.200 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.118 -r1.119 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.98 -r1.99 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.27 -r1.28 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.9 -r1.10 src/sys/netmpls/mpls_proto.c
cvs rdiff -u -r1.27 -r1.28 src/sys/netnatm/natm.c
cvs rdiff -u -r1.40 -r1.41 src/sys/rump/net/lib/libsockin/sockin.c
cvs rdiff -u -r1.47 -r1.48 src/sys/sys/protosw.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/sets/lists/comp

2010-12-11 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sun Dec 12 00:19:44 UTC 2010

Modified Files:
src/distrib/sets/lists/comp: md.amd64

Log Message:
add obsolete entries for libamu to make MKDEBUGLIB=yes work on amd64 again


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/distrib/sets/lists/comp/md.amd64

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/sets/lists/comp

2010-12-11 Thread Tyler R. Retzlaff
Module Name:src
Committed By:   rtr
Date:   Sat Dec 11 10:41:13 UTC 2010

Modified Files:
src/distrib/sets/lists/comp: md.amd64 mi

Log Message:
add missing liblua_g.a debuglib entries needed for MKDEBUGLIB=yes


To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 src/distrib/sets/lists/comp/md.amd64
cvs rdiff -u -r1.1534 -r1.1535 src/distrib/sets/lists/comp/mi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.