The NetBSD Project

CVS log for src/sys/netbt/rfcomm_socket.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.38.36.1: download - view: text, markup, annotated - select for diffs
Sat Aug 2 05:57:49 2025 UTC (15 months, 2 weeks ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +3 -4 lines
Sync with HEAD

Revision 1.39: download - view: text, markup, annotated - select for diffs
Fri Jul 5 04:31:53 2024 UTC (2 years, 4 months ago) by rin
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, perseant-exfatfs-base-20250801, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11, HEAD
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -4 lines
sys: Drop redundant NULL check before m_freem(9)

m_freem(9) safely has accepted NULL argument at least since 4.2BSD:
https://www.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/sys/sys/uipc_mbuf.c

Compile-tested on amd64/ALL.

Suggested by knakahara@

Revision 1.37.18.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:47 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +4 -6 lines
Sync with HEAD

Revision 1.33.10.1: download - view: text, markup, annotated - select for diffs
Tue Jan 29 08:12:17 2019 UTC (7 years, 9 months ago) by msaitoh
Branches: netbsd-7-1
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +4 -6 lines
Pull up following revision(s) (requested by martin in ticket #1676):
sys/net/link_proto.c				1.37
sys/netatalk/ddp_usrreq.c			1.72
sys/netbt/hci_socket.c				1.46
sys/netbt/l2cap_socket.c			1.36
sys/netbt/rfcomm_socket.c			1.38
sys/netbt/sco_socket.c				1.38
sys/netinet/tcp_usrreq.c			1.223 via patch
sys/netinet6/raw_ip6.c				1.173
sys/netinet6/udp6_usrreq.c			1.146
sys/netmpls/mpls_proto.c			1.32
sys/netnatm/natm.c				patch

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

Revision 1.33.6.1: download - view: text, markup, annotated - select for diffs
Tue Jan 29 08:09:00 2019 UTC (7 years, 9 months ago) by msaitoh
Branches: netbsd-7-0
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +4 -6 lines
Pull up following revision(s) (requested by martin in ticket #1676):
sys/net/link_proto.c				1.37
sys/netatalk/ddp_usrreq.c			1.72
sys/netbt/hci_socket.c				1.46
sys/netbt/l2cap_socket.c			1.36
sys/netbt/rfcomm_socket.c			1.38
sys/netbt/sco_socket.c				1.38
sys/netinet/tcp_usrreq.c			1.223 via patch
sys/netinet6/raw_ip6.c				1.173
sys/netinet6/udp6_usrreq.c			1.146
sys/netmpls/mpls_proto.c			1.32
sys/netnatm/natm.c				patch

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

Revision 1.33.2.1: download - view: text, markup, annotated - select for diffs
Tue Jan 29 07:57:00 2019 UTC (7 years, 9 months ago) by msaitoh
Branches: netbsd-7
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +4 -6 lines
Pull up following revision(s) (requested by martin in ticket #1676):
sys/net/link_proto.c				1.37
sys/netatalk/ddp_usrreq.c			1.72
sys/netbt/hci_socket.c				1.46
sys/netbt/l2cap_socket.c			1.36
sys/netbt/rfcomm_socket.c			1.38
sys/netbt/sco_socket.c				1.38
sys/netinet/tcp_usrreq.c			1.223 via patch
sys/netinet6/raw_ip6.c				1.173
sys/netinet6/udp6_usrreq.c			1.146
sys/netmpls/mpls_proto.c			1.32
sys/netnatm/natm.c				patch

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

Revision 1.37.10.1: download - view: text, markup, annotated - select for diffs
Tue Jan 29 07:04:09 2019 UTC (7 years, 9 months ago) by msaitoh
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +4 -6 lines
Pull up following revision(s) (requested by martin in ticket #1175):
sys/net/link_proto.c				1.37
sys/netatalk/ddp_usrreq.c			1.72
sys/netbt/hci_socket.c				1.46
sys/netbt/l2cap_socket.c			1.36
sys/netbt/rfcomm_socket.c			1.38
sys/netbt/sco_socket.c				1.38
sys/netinet/sctp_usrreq.c			1.14
sys/netinet/tcp_usrreq.c			1.223
sys/netinet6/raw_ip6.c				1.173
sys/netinet6/sctp6_usrreq.c			1.17
sys/netinet6/udp6_usrreq.c			1.146
sys/netmpls/mpls_proto.c			1.32
sys/netnatm/natm.c				patch

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

Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Jan 28 12:53:01 2019 UTC (7 years, 9 months ago) by martin
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, thorpej-altq-separation-base, thorpej-altq-separation, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, perseant-exfatfs-base-20240630, perseant-exfatfs-base, netbsd-9-base, netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-sunxi-drm-base, bouyer-sunxi-drm, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: perseant-exfatfs
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +4 -6 lines
Fix memory leaks pointed out by Ilja Van Sprundel: all
sendoob() functions are expted to free both passed
mbuf chains.

Revision 1.10.38.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:03 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.10.38.1: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.38.1: +11 -88 lines
update from HEAD

Revision 1.33.4.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:25 2015 UTC (11 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.33.4.1: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.4.1: +11 -87 lines
Sync with HEAD

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat May 2 17:18:03 2015 UTC (11 years, 6 months ago) by rtr
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, netbsd-8
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +5 -6 lines
make connect syscall use sockaddr_big and modify pr_{send,connect}
nam parameter type from buf * to sockaddr *.

final commit for parameter type changes to protocol user requests

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

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Apr 26 21:40:49 2015 UTC (11 years, 6 months ago) by rtr
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -68 lines
remove pr_generic from struct pr_usrreqs and all implementations of
pr_generic in protocols.

bump to 7.99.13

approved by rmind@

Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Apr 24 22:32:37 2015 UTC (11 years, 6 months ago) by rtr
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +8 -17 lines
make accept, getsockname and getpeername syscalls use sockaddr_big and modify
pr_{accept,sockname,peername} nam parameter type from mbuf * to sockaddr *.

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

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

Revision 1.33.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:22 2015 UTC (11 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -5 lines
Sync with HEAD

Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Apr 3 20:01:07 2015 UTC (11 years, 7 months ago) by rtr
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -5 lines
* change pr_bind to accept struct sockaddr * instead of struct mbuf *
* update protocol bind implementations to use/expect sockaddr *
  instead of mbuf *
* introduce sockaddr_big struct for storage of addr data passed via
  sys_bind; sockaddr_big is of sufficient size and alignment to
  accommodate all addr data sizes received.
* modify sys_bind to allocate sockaddr_big instead of using an mbuf.
* bump kernel version to 7.99.9 for change to pr_bind() parameter type.

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

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

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

Revision 1.10.38.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:35 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +359 -140 lines
Rebase to HEAD as of a few days ago.

Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:56:23 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +358 -139 lines
Rebase.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Aug 9 05:33:01 2014 UTC (12 years, 3 months ago) by rtr
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE
Branch point for: nick-nhusb, netbsd-7-1, netbsd-7-0, netbsd-7
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +28 -8 lines
split PRU_CONNECT2 & PRU_PURGEIF function out of pr_generic() usrreq
switches and put into separate functions

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

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

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

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

patch only briefly reviewed by rmind@

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Aug 8 03:05:45 2014 UTC (12 years, 3 months ago) by rtr
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +19 -9 lines
split PRU_RCVD function out of pr_generic() usrreq switches and put into
separate functions

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

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

Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Aug 5 07:55:32 2014 UTC (12 years, 3 months ago) by rtr
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +38 -19 lines
split PRU_SEND function out of pr_generic() usrreq switches and put into
separate functions

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

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

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

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

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

patch reviewed by rmind

Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue Aug 5 05:24:26 2014 UTC (12 years, 3 months ago) by rtr
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +5 -5 lines
revert the removal of struct lwp * parameter from bind, listen and connect
user requests.

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

Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Jul 31 15:16:06 2014 UTC (12 years, 3 months ago) by rtr
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +6 -4 lines
release mbuf on failure of PRU_SEND

Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Jul 31 03:39:35 2014 UTC (12 years, 3 months ago) by rtr
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +51 -17 lines
split PRU_DISCONNECT, PRU_SHUTDOWN and PRU_ABORT function out of
pr_generic() usrreq switches and put into separate functions

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

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

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

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

patch reviewed by rmind

Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Jul 30 10:04:26 2014 UTC (12 years, 3 months ago) by rtr
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +28 -16 lines
split PRU_CONNECT function out of pr_generic() usrreq switches and put
into seaparate functions

  xxx_listen(struct socket *, struct mbuf *)

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

patch reviewed by rmind

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Jul 24 15:12:03 2014 UTC (12 years, 3 months ago) by rtr
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +43 -17 lines
split PRU_BIND and PRU_LISTEN function out of pr_generic() usrreq
switches and put into separate functions
  xxx_bind(struct socket *, struct mbuf *)
  xxx_listen(struct socket *)

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

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

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

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

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

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

patch reviewed by rmind

welcome to netbsd 6.99.48

Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Jul 23 13:17:18 2014 UTC (12 years, 3 months ago) by rtr
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +29 -6 lines
split PRU_SENDOOB and PRU_RCVOOB function out of pr_generic() usrreq
switches and put into separate functions
  xxx_sendoob(struct socket *, struct mbuf *, struct mbuf *)
  xxx_recvoob(struct socket *, struct mbuf *, int)

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

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

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

reviewed by rmind

Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Jul 9 14:41:42 2014 UTC (12 years, 4 months ago) by rtr
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +22 -8 lines
* split PRU_ACCEPT function out of pr_generic() usrreq switches and put
  into a separate function xxx_accept(struct socket *, struct mbuf *)

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

patch reviewed by rmind

Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Jul 9 04:54:03 2014 UTC (12 years, 4 months ago) by rtr
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +39 -15 lines
* split PRU_PEERADDR and PRU_SOCKADDR function out of pr_generic()
  usrreq switches and put into separate functions
  xxx_{peer,sock}addr(struct socket *, struct mbuf *).

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

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

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

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

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

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

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

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

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

patch reviewed by rmind

welcome to 6.99.47

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Jul 7 17:13:56 2014 UTC (12 years, 4 months ago) by rtr
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +5 -3 lines
* sprinkle KASSERT(solocked(so)); in all pr_stat() functions.
* fix remaining inconsistent struct socket parameter names.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Jul 7 15:13:21 2014 UTC (12 years, 4 months ago) by rtr
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
backout change that made pr_stat return EOPNOTSUPP for protocols that
were not filling in struct stat.

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

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

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Jul 7 07:09:58 2014 UTC (12 years, 4 months ago) by rtr
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -8 lines
* have pr_stat return EOPNOTSUPP consistently for all protocols that do
  not fill in struct stat instead of returning success.

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

proposed on tech-net@

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Jul 6 03:33:33 2014 UTC (12 years, 4 months ago) by rtr
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +16 -5 lines
* split PRU_SENSE functionality out of xxx_usrreq() switches and place into
  separate xxx_stat(struct socket *, struct stat *) functions.
* replace calls using pr_generic with req == PRU_SENSE with pr_stat().

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

reviewed by rmind

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Jul 1 05:49:18 2014 UTC (12 years, 4 months ago) by rtr
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -4 lines
fix parameter types in pr_ioctl, called xx_control() functions and remove
abuse of pointer to struct mbuf type.

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

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

reviewed by rmind@

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Jun 22 08:10:18 2014 UTC (12 years, 4 months ago) by rtr
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +14 -10 lines
* split PRU_CONTROL functionality out of xxx_userreq() switches and place
  into separate xxx_ioctl() functions.
* place KASSERT(req != PRU_CONTROL) inside xxx_userreq() as it is now
  inappropriate for req = PRU_CONTROL in xxx_userreq().
* replace calls to pr_generic() with req = PRU_CONTROL with pr_ioctl().
* remove & fixup references to PRU_CONTROL xxx_userreq() function comments.
* fix various comments references for xxx_userreq() that mentioned
  PRU_CONTROL as xxx_userreq() no longer handles the request.

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

Reviewed by rmind@

Revision 1.10.28.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:09 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +3 -3 lines
sync with head.

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

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

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue May 20 19:04:00 2014 UTC (12 years, 6 months ago) by rmind
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +5 -5 lines
Adjust PR_WRAP_USRREQS() to include the attach/detach functions.
We still need the kernel-lock for some corner cases.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue May 20 18:25:54 2014 UTC (12 years, 6 months ago) by rmind
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +12 -10 lines
netbt: rename some attach/detach functions to have _pcb suffix, so
we could use standard attach/detach naming for pr_usrreq functions.
No functional change.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon May 19 15:44:04 2014 UTC (12 years, 6 months ago) by martin
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -5 lines
Make it compile without options DIAGNOSTIC by removing a variable only set
once and only tested once in an assert.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon May 19 02:51:24 2014 UTC (12 years, 6 months ago) by rmind
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +53 -37 lines
- Split off PRU_ATTACH and PRU_DETACH logic into separate functions.
- Replace malloc with kmem and eliminate M_PCB while here.
- Sprinkle more asserts.

Revision 1.10.44.2: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:13 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.10.44.1: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.44.1: +4 -3 lines
sync with head

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun May 18 14:46:16 2014 UTC (12 years, 6 months ago) by rmind
Branches: MAIN
CVS tags: rmind-smpnet-nbase, rmind-smpnet-base
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +11 -3 lines
Add struct pr_usrreqs with a pr_generic function and prepare for the
dismantling of pr_usrreq in the protocols; no functional change intended.
PRU_ATTACH/PRU_DETACH changes will follow soon.

Bump for struct protosw.  Welcome to 6.99.62!

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Aug 29 17:49:21 2013 UTC (13 years, 2 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pagecache-base9, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
Remove SS_ISCONFIRMING, it is unused and TP4 will not come back.

Revision 1.10.44.1: download - view: text, markup, annotated - select for diffs
Wed Aug 28 15:21:48 2013 UTC (13 years, 2 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +59 -38 lines
Checkpoint work in progress:
- Initial split of the protocol user-request method into the following
  methods: pr_attach, pr_detach and pr_generic for old the pr_usrreq.
- Adjust socreate(9) and sonewconn(9) to call pr_attach without the
  socket lock held (as a preparation for the locking scheme adjustment).
- Adjust all pr_attach routines to assert that PCB is not set.
- Sprinkle various comments, document some routines and their locking.
- Remove M_PCB, replace with kmem(9).
- Fix few bugs spotted on the way.

Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:14:17 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +13 -20 lines
sync with head.

Revision 1.9.8.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:17:46 2008 UTC (18 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +13 -20 lines
Sync with HEAD.

Revision 1.8.18.2: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:57 2008 UTC (18 years, 1 month ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.8.18.1: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.18.1: +11 -18 lines
Sync with HEAD.

Revision 1.9.4.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:37:00 2008 UTC (18 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +13 -20 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Aug 6 15:01:24 2008 UTC (18 years, 3 months ago) by plunky
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base11, yamt-nfs-mp-base10, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-premerge-20101231, matt-mips64-base2, khorben-n900, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +13 -20 lines
Convert socket options code to use a sockopt structure
instead of laying everything into an mbuf.

approved by core

Revision 1.8.18.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:23 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +8 -3 lines
Sync with HEAD.

Revision 1.8.20.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:35:28 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +8 -3 lines
sync with head.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Apr 24 11:38:37 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, yamt-nfs-mp-base, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp, wrstuden-revivesa, haad-dm
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +8 -3 lines
Merge the socket locking patch:

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

With much feedback from matt@ and plunky@.

Revision 1.7.8.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:33:44 2007 UTC (19 years ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +8 -6 lines
sync with HEAD

Revision 1.1.2.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:36:06 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.1.2.4: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.4: +8 -6 lines
sync with head.

Revision 1.7.6.1: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:49:04 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +8 -6 lines
Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.4.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:17:19 2007 UTC (19 years ago) by ad
Branches: vmlocking
Diff to: previous 1.4.2.2: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.2: +8 -6 lines
Sync with head.

Revision 1.7.10.1: download - view: text, markup, annotated - select for diffs
Thu Oct 18 08:33:13 2007 UTC (19 years, 1 month ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +8 -6 lines
sync with head.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Oct 15 18:04:34 2007 UTC (19 years, 1 month ago) by plunky
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, mjf-devfs, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1
Branch point for: yamt-pf42, mjf-devfs2
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +8 -6 lines
for PRU_ATTACH, we should make sure that so_pcb is not allocated when
there is any error

Revision 1.1.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:42:43 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.1.2.3: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.3: +49 -15 lines
sync with head.

Revision 1.3.8.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 07:05:13 2007 UTC (19 years, 2 months ago) by wrstuden
Branches: wrstuden-fixsa
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +27 -2 lines
Sync w/ NetBSD-4-RC_1

Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 19 16:04:19 2007 UTC (19 years, 4 months ago) by liamjfoy
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +27 -2 lines
Pull up following revision(s) (requested by plunky in ticket #744):
	sys/netbt/l2cap_lower.c: revision 1.6
	sys/dev/bluetooth/btdev.h: revision 1.6
	sys/netbt/sco_socket.c: revision 1.9
	sys/netbt/rfcomm_upper.c: revision 1.3
	sys/netbt/l2cap_socket.c: revision 1.7
	sys/netbt/rfcomm_upper.c: revision 1.5
	lib/libusbhid/usbhid.h: revision 1.5
	sys/netbt/rfcomm_upper.c: revision 1.6
	usr.sbin/btdevctl/btdevctl.c: revision 1.4
	usr.sbin/btdevctl/btdevctl.h: revision 1.3
	usr.sbin/btdevctl/btdevctl.8: revision 1.4
	sys/netbt/rfcomm_session.c: revision 1.5
	sys/netbt/hci.h: revision 1.10
	usr.bin/rfcomm_sppd/rfcomm_sppd.c: revision 1.6
	sys/netbt/hci_link.c: revision 1.11
	usr.bin/rfcomm_sppd/rfcomm_sppd.c: revision 1.7
	usr.bin/rfcomm_sppd/rfcomm_sppd.c: revision 1.8
	sys/dev/bluetooth/btsco.c: revision 1.14
	sys/netbt/rfcomm_session.c: revision 1.9
	usr.sbin/btdevctl/sdp.c: revision 1.2
	share/man/man9/bluetooth.9: revision 1.2
	usr.sbin/btdevctl/sdp.c: revision 1.3
	sys/dev/bluetooth/bthidev.c: revision 1.8
	sys/netbt/l2cap.h: revision 1.4
	sys/netbt/rfcomm.h: revision 1.3
	sys/netbt/l2cap.h: revision 1.5
	sys/netbt/l2cap_misc.c: revision 1.3
	share/man/man4/bluetooth.4: revision 1.5
	lib/libusbhid/usbhid.3: revision 1.11
	sys/netbt/bluetooth.h: revision 1.5
	share/man/man4/bthidev.4: revision 1.8
	sys/netbt/rfcomm_dlc.c: revision 1.3
	usr.sbin/btdevctl/print.c: revision 1.8
	sys/netbt/rfcomm_socket.c: revision 1.7
	sys/netbt/l2cap_signal.c: revision 1.4
	sys/netbt/l2cap_signal.c: revision 1.5
	sys/netbt/l2cap_signal.c: revision 1.7
	sys/netbt/hci_event.c: revision 1.6
	usr.bin/rfcomm_sppd/rfcomm_sppd.1: revision 1.5
	sys/netbt/l2cap_upper.c: revision 1.3
	sys/netbt/l2cap_lower.c: revision 1.2
	usr.sbin/btdevctl/db.c: revision 1.3
	sys/netbt/l2cap_upper.c: revision 1.6
	lib/libusbhid/descr.c: revision 1.5
	sys/netbt/l2cap_upper.c: revision 1.7
	sys/netbt/l2cap_lower.c: revision 1.4
Add 'service level' security for L2CAP and RFCOMM connections, following
the Linux (BlueZ) API.
   - L2CAP or RFCOMM connections can require the baseband radio link
   mode be any of:
       authenticated (devices are paired)
       encrypted (implies authentication)
       secured (encryption, plus generate new link key)
   - for sockets, the mode is set using setsockopt(2) and the socket
   connection will be aborted if the mode change fails.
   - mode settings will be applied during connection establishment, and
   for safety, we enter a wait state and will only proceed when the mode
   settings are successfuly set.
   - It is possible to change the mode on already open connections, but
   not possible to guarantee that data already queued (from either end)
   will not be delivered. (this is a feature, not a bug)
   - bthidev(4) and rfcomm_sppd(1) support "auth", "encrypt" and
   "secure" options
   - btdevctl(8) by default enables "auth" for HIDs, and "encrypt" for
   keyboards (which are required to support it)
   - ALSO INCLUDES OTHER MINOR FIXES

Revision 1.4.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:11:15 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +43 -12 lines
Sync with head.

Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Fri Jun 8 14:17:42 2007 UTC (19 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.2.1: +27 -2 lines
Sync with head.

Revision 1.3.4.3: download - view: text, markup, annotated - select for diffs
Mon May 7 10:55:57 2007 UTC (19 years, 6 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.3.4.2: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.4.2: +27 -2 lines
sync with head.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Apr 21 06:15:23 2007 UTC (19 years, 7 months ago) by plunky
Branches: MAIN
CVS tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-idlelwp-base8, vmlocking-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-armv6, jmcneill-pm
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +27 -2 lines
Add 'service level' security for L2CAP and RFCOMM connections, following
the Linux (BlueZ) API.

    - L2CAP or RFCOMM connections can require the baseband radio link
    mode be any of:
	authenticated (devices are paired)
	encrypted (implies authentication)
	secured (encryption, plus generate new link key)

    - for sockets, the mode is set using setsockopt(2) and the socket
    connection will be aborted if the mode change fails.

    - mode settings will be applied during connection establishment, and
    for safety, we enter a wait state and will only proceed when the mode
    settings are successfuly set.

    - It is possible to change the mode on already open connections, but
    not possible to guarantee that data already queued (from either end)
    will not be delivered. (this is a feature, not a bug)

    - bthidev(4) and rfcomm_sppd(1) support "auth", "encrypt" and
    "secure" options

    - btdevctl(8) by default enables "auth" for HIDs, and "encrypt" for
    keyboards (which are required to support it)

Revision 1.3.4.2: download - view: text, markup, annotated - select for diffs
Sun Apr 15 16:03:59 2007 UTC (19 years, 7 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.3.4.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.1: +18 -12 lines
sync with head.

Revision 1.4.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 10 13:26:49 2007 UTC (19 years, 7 months ago) by ad
Branches: vmlocking
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +18 -12 lines
Sync with head.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Mar 31 18:17:13 2007 UTC (19 years, 7 months ago) by plunky
Branches: MAIN
CVS tags: thorpej-atomic-base, thorpej-atomic
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +8 -2 lines
change declaration for protosw.h const symbolic strings to static, so that
they can be used by more than one source file without causing duplicate
definitions.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Mar 30 20:47:03 2007 UTC (19 years, 7 months ago) by plunky
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +12 -12 lines
be more explicit and consistent in use of KASSERT with pointers,
test against NULL

Revision 1.3.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:59:35 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +8 -5 lines
Sync with HEAD.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Mar 5 19:11:54 2007 UTC (19 years, 8 months ago) by plunky
Branches: MAIN
CVS tags: reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +8 -5 lines
return ENOPROTOOPT when protocol options are not known

Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:32 2006 UTC (19 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.1.2.2: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.2: +4 -3 lines
sync with head.

Revision 1.1.16.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:19:06 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.1.16.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.16.1: +6 -6 lines
sync with head.

Revision 1.1.12.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:36 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +4 -3 lines
Sync with head.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:45 2006 UTC (20 years ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, wrstuden-fixsa, netbsd-4
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +6 -6 lines
__unused removal on arguments; approved by core.

Revision 1.1.16.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:07:28 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +6 -5 lines
sync with head

Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:32:37 2006 UTC (20 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +6 -5 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.1.14.2: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:58:39 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.1.14.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.14.1: +378 -0 lines
sync with head

Revision 1.1.8.2: download - view: text, markup, annotated - select for diffs
Thu Jul 13 17:49:58 2006 UTC (20 years, 4 months ago) by gdamore
Branches: gdamore-uart
Diff to: previous 1.1.8.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.8.1: +378 -0 lines
Merge from HEAD.

Revision 1.1.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 26 12:53:57 2006 UTC (20 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.1.6.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.6.1: +378 -0 lines
sync with head.

Revision 1.1.4.2: download - view: text, markup, annotated - select for diffs
Thu Jun 22 03:39:50 2006 UTC (20 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.1.4.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.4.1: +378 -0 lines
Complete a sync sys/ with head.

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:10:51 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.1: +378 -0 lines
sync with head.

Revision 1.1.14.1
Mon Jun 19 15:44:45 2006 UTC (20 years, 5 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
FILE REMOVED
Changes since revision 1.1: +0 -378 lines
file rfcomm_socket.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:58:39 +0000

Revision 1.1.8.1
Mon Jun 19 15:44:45 2006 UTC (20 years, 5 months ago) by gdamore
Branches: gdamore-uart
FILE REMOVED
Changes since revision 1.1: +0 -378 lines
file rfcomm_socket.c was added on branch gdamore-uart on 2006-07-13 17:49:58 +0000

Revision 1.1.6.1
Mon Jun 19 15:44:45 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
FILE REMOVED
Changes since revision 1.1: +0 -378 lines
file rfcomm_socket.c was added on branch yamt-pdpolicy on 2006-06-26 12:53:57 +0000

Revision 1.1.4.1
Mon Jun 19 15:44:45 2006 UTC (20 years, 5 months ago) by chap
Branches: chap-midi
FILE REMOVED
Changes since revision 1.1: +0 -378 lines
file rfcomm_socket.c was added on branch chap-midi on 2006-06-22 03:39:50 +0000

Revision 1.1.2.1
Mon Jun 19 15:44:45 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
FILE REMOVED
Changes since revision 1.1: +0 -378 lines
file rfcomm_socket.c was added on branch yamt-lazymbuf on 2006-06-21 15:10:51 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 15:44:45 2006 UTC (20 years, 5 months ago) by gdamore
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, rpaulo-netinet-merge-pcb-base, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, yamt-pdpolicy, yamt-lazymbuf, rpaulo-netinet-merge-pcb, newlock2, gdamore-uart, chap-midi
Initial import of bluetooth stack on behalf of Iain Hibbert.  (plunky@,
NetBSD Foundation Membership still pending.)  This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.

Diff request

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

Log view options

CVSweb <webmaster@jp.NetBSD.org>