wok-next rev 19780

Up glib, glib-networking, libnl, libevent, libpcap, libsoup.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jun 17 01:38:14 2017 +0300 (2017-06-17)
parents e70c0b9c5adf
children 028634d82da8
files glib-networking-dev/receipt glib-networking/receipt glib/receipt libevent-dev/receipt libevent/receipt libnl-dev/receipt libnl-tools/receipt libnl/receipt libnl/stuff/libnl-1.1-ULONG_MAX.patch libpcap-dev/receipt libpcap/receipt libpcap/stuff/patches/libpcap-1.8.1-enable_bluetooth-1.patch libpcap/stuff/patches/series libsoup-dev/receipt libsoup-gnome/receipt libsoup/receipt
line diff
     1.1 --- a/glib-networking-dev/receipt	Fri Jun 16 15:39:43 2017 +0300
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,20 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="glib-networking-dev"
     1.7 -VERSION="2.48.2"
     1.8 -CATEGORY="development"
     1.9 -SHORT_DESC="TLS support for glib (development files)"
    1.10 -MAINTAINER="pankso@slitaz.org"
    1.11 -LICENSE="LGPL2"
    1.12 -WEB_SITE="http://www.gtk.org/"
    1.13 -HOST_ARCH="i486 arm"
    1.14 -
    1.15 -WANTED="glib-networking"
    1.16 -DEPENDS="glib-networking glib-dev glibc-dev gmp-dev gnutls-dev libffi-dev \
    1.17 -libtasn1-dev nettle-dev p11-kit-dev pcre-dev zlib-dev"
    1.18 -
    1.19 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.20 -genpkg_rules()
    1.21 -{
    1.22 -	cook_copy_files *.la
    1.23 -}
     2.1 --- a/glib-networking/receipt	Fri Jun 16 15:39:43 2017 +0300
     2.2 +++ b/glib-networking/receipt	Sat Jun 17 01:38:14 2017 +0300
     2.3 @@ -1,7 +1,7 @@
     2.4 -# SliTaz package receipt.
     2.5 +# SliTaz package receipt v2.
     2.6  
     2.7  PACKAGE="glib-networking"
     2.8 -VERSION="2.48.2"
     2.9 +VERSION="2.50.0"
    2.10  CATEGORY="x-window"
    2.11  SHORT_DESC="TLS support for glib"
    2.12  MAINTAINER="pankso@slitaz.org"
    2.13 @@ -12,14 +12,9 @@
    2.14  TARBALL="$PACKAGE-$VERSION.tar.xz"
    2.15  WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
    2.16  
    2.17 -DEPENDS="glib gmp libffi libgnutls libtasn1 nettle p11-kit pcre zlib"
    2.18 +BUILD_DEPENDS="intltool gnutls-dev gsettings-desktop-schemas"
    2.19  BUILD_DEPENDS_arm="glib-dev gnutls-dev"
    2.20 -BUILD_DEPENDS="intltool gnutls-dev gsettings-desktop-schemas"
    2.21 -
    2.22 -# Handle cross compilation.
    2.23 -case "$ARCH" in
    2.24 -	arm*) BUILD_DEPENDS=$BUILD_DEPENDS_arm ;;
    2.25 -esac
    2.26 +SPLIT="glib-networking-dev"
    2.27  
    2.28  # Rules to configure and make the package.
    2.29  compile_rules()
    2.30 @@ -34,5 +29,18 @@
    2.31  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.32  genpkg_rules()
    2.33  {
    2.34 -	cook_copy_files *.so*
    2.35 +	case $PACKAGE in
    2.36 +		glib-networking)
    2.37 +			copy @std
    2.38 +			DEPENDS="glib gmp libffi libgnutls libtasn1 nettle p11-kit pcre \
    2.39 +			util-linux-blkid util-linux-mount util-linux-uuid zlib"
    2.40 +			;;
    2.41 +		*-dev)
    2.42 +			copy @dev
    2.43 +			DEPENDS="glib-networking glib-dev glibc-dev gmp-dev gnutls-dev \
    2.44 +			libffi-dev libtasn1-dev nettle-dev p11-kit-dev pcre-dev \
    2.45 +			util-linux-blkid-dev util-linux-mount-dev util-linux-uuid-dev \
    2.46 +			zlib-dev"
    2.47 +			;;
    2.48 +	esac
    2.49  }
     3.1 --- a/glib/receipt	Fri Jun 16 15:39:43 2017 +0300
     3.2 +++ b/glib/receipt	Sat Jun 17 01:38:14 2017 +0300
     3.3 @@ -6,7 +6,7 @@
     3.4  SHORT_DESC="C routines"
     3.5  MAINTAINER="pankso@slitaz.org"
     3.6  LICENSE="GPL2"
     3.7 -WEB_SITE="http://www.gtk.org/"
     3.8 +WEB_SITE="https://developer.gnome.org/glib/"
     3.9  HOST_ARCH="i486 arm"
    3.10  
    3.11  TARBALL="$PACKAGE-$VERSION.tar.xz"
    3.12 @@ -66,7 +66,8 @@
    3.13  		glib)
    3.14  			copy @std
    3.15  			# Python codegen, tester, Perl mkenums --> glib-dev
    3.16 -			cd $fs/usr/bin; rm gdbus-codegen gtester* glib-mkenums
    3.17 +			cd $fs/usr/bin
    3.18 +			rm gdbus-codegen gtester* glib-mkenums glib-gettextize
    3.19  			rm -r $fs/usr/share
    3.20  			DEPENDS="elfutils libffi pcre util-linux-blkid util-linux-mount \
    3.21  			util-linux-uuid zlib"
     4.1 --- a/libevent-dev/receipt	Fri Jun 16 15:39:43 2017 +0300
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,22 +0,0 @@
     4.4 -# SliTaz package receipt.
     4.5 -
     4.6 -PACKAGE="libevent-dev"
     4.7 -VERSION="2.0.22"
     4.8 -CATEGORY="development"
     4.9 -SHORT_DESC="An event notification library."
    4.10 -MAINTAINER="0dddba11@googlemail.com"
    4.11 -LICENSE="BSD"
    4.12 -WANTED="libevent"
    4.13 -WEB_SITE="http://libevent.org"
    4.14 -HOST_ARCH="i486 arm"
    4.15 -
    4.16 -DEPENDS="libevent pkg-config"
    4.17 -
    4.18 -# Rules to gen a SliTaz package suitable for Tazpkg.
    4.19 -genpkg_rules()
    4.20 -{
    4.21 -	mkdir -p $fs/usr/lib
    4.22 -	cp -a $install/usr/lib/*.*a $fs/usr/lib
    4.23 -	cp -a $install/usr/include $fs/usr
    4.24 -	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    4.25 -}
     5.1 --- a/libevent/receipt	Fri Jun 16 15:39:43 2017 +0300
     5.2 +++ b/libevent/receipt	Sat Jun 17 01:38:14 2017 +0300
     5.3 @@ -1,23 +1,25 @@
     5.4 -# SliTaz package receipt.
     5.5 +# SliTaz package receipt v2.
     5.6  
     5.7  PACKAGE="libevent"
     5.8 -VERSION="2.0.22"
     5.9 +VERSION="2.1.8"
    5.10  CATEGORY="system-tools"
    5.11 -SHORT_DESC="An event notification library."
    5.12 +SHORT_DESC="An event notification library"
    5.13  MAINTAINER="0dddba11@googlemail.com"
    5.14  LICENSE="BSD"
    5.15 -TARBALL="$PACKAGE-$VERSION-stable.tar.gz"
    5.16 -WEB_SITE="http://libevent.org"
    5.17 -WGET_URL="http://downloads.sourceforge.net/levent/$TARBALL"
    5.18 +WEB_SITE="http://libevent.org/"
    5.19  HOST_ARCH="i486 arm"
    5.20  
    5.21 -DEPENDS="openssl"
    5.22 +TARBALL="$PACKAGE-$VERSION-stable.tar.gz"
    5.23 +WGET_URL="https://github.com/libevent/libevent/releases/download/release-$VERSION-stable/$TARBALL"
    5.24 +
    5.25  BUILD_DEPENDS="openssl-dev zlib-dev"
    5.26 +SPLIT="libevent-dev"
    5.27  
    5.28  # Rules to configure and make the package.
    5.29  compile_rules()
    5.30  {
    5.31  	./configure \
    5.32 +		--disable-static \
    5.33  		$CONFIGURE_ARGS &&
    5.34  	make && make install
    5.35  }
    5.36 @@ -25,7 +27,15 @@
    5.37  # Rules to gen a SliTaz package suitable for Tazpkg.
    5.38  genpkg_rules()
    5.39  {
    5.40 -	mkdir -p $fs/usr/lib
    5.41 -	cp -a $install/usr/bin $fs/usr
    5.42 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    5.43 +	case $PACKAGE in
    5.44 +		libevent)
    5.45 +			copy *.so*
    5.46 +			DEPENDS="libcrypto libssl"
    5.47 +			;;
    5.48 +		*-dev)
    5.49 +			copy @std @dev
    5.50 +			remove_already_packed
    5.51 +			DEPENDS="libcrypto-dev openssl-dev"
    5.52 +			;;
    5.53 +	esac
    5.54  }
     6.1 --- a/libnl-dev/receipt	Fri Jun 16 15:39:43 2017 +0300
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,25 +0,0 @@
     6.4 -# SliTaz package receipt.
     6.5 -
     6.6 -PACKAGE="libnl-dev"
     6.7 -VERSION="3.2.24"
     6.8 -CATEGORY="network"
     6.9 -SHORT_DESC="netlink library devel files."
    6.10 -MAINTAINER="pascal.bellard@slitaz.org"
    6.11 -LICENSE="LGPL2.1"
    6.12 -WEB_SITE="http://people.suug.ch/~tgr/libnl"
    6.13 -WANTED="libnl"
    6.14 -HOST_ARCH="i486 arm"
    6.15 -
    6.16 -DEPENDS="libnl"
    6.17 -
    6.18 -# Rules to gen a SliTaz package suitable for Tazpkg.
    6.19 -genpkg_rules()
    6.20 -{
    6.21 -	mkdir -p $fs/usr/lib
    6.22 -	cp -a $install/usr/include $fs/usr
    6.23 -	cp -a $install/usr/lib/*.*a $fs/usr/lib
    6.24 -	cp -a $install/usr/lib/libnl $fs/usr/lib
    6.25 -	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    6.26 -	find $fs/usr/lib -type f -name "*.so" -exec rm -f {} \;
    6.27 -}
    6.28 -
     7.1 --- a/libnl-tools/receipt	Fri Jun 16 15:39:43 2017 +0300
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,20 +0,0 @@
     7.4 -# SliTaz package receipt.
     7.5 -
     7.6 -PACKAGE="libnl-tools"
     7.7 -VERSION="3.2.24"
     7.8 -CATEGORY="network"
     7.9 -SHORT_DESC="The netlink tiny tools."
    7.10 -MAINTAINER="pascal.bellard@slitaz.org"
    7.11 -LICENSE="LGPL2.1"
    7.12 -WEB_SITE="http://people.suug.ch/~tgr/libnl"
    7.13 -HOST_ARCH="i486 arm"
    7.14 -
    7.15 -WANTED="libnl"
    7.16 -DEPENDS="libnl"
    7.17 -
    7.18 -# Rules to gen a SliTaz package suitable for Tazpkg.
    7.19 -genpkg_rules()
    7.20 -{
    7.21 -	mkdir -p $fs/usr
    7.22 -	cp -a $install/usr/sbin $fs/usr
    7.23 -}
     8.1 --- a/libnl/receipt	Fri Jun 16 15:39:43 2017 +0300
     8.2 +++ b/libnl/receipt	Sat Jun 17 01:38:14 2017 +0300
     8.3 @@ -1,34 +1,43 @@
     8.4 -# SliTaz package receipt.
     8.5 +# SliTaz package receipt v2.
     8.6  
     8.7  PACKAGE="libnl"
     8.8 -VERSION="3.2.24"
     8.9 +VERSION="3.2.29"
    8.10  CATEGORY="network"
    8.11 -SHORT_DESC="netlink library."
    8.12 +SHORT_DESC="Netlink protocol library suite"
    8.13  MAINTAINER="pascal.bellard@slitaz.org"
    8.14  LICENSE="LGPL2.1"
    8.15 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    8.16 -WEB_SITE="http://people.suug.ch/~tgr/libnl"
    8.17 -WGET_URL="$WEB_SITE/files/$TARBALL"
    8.18 +WEB_SITE="http://www.infradead.org/~tgr/libnl/"
    8.19  HOST_ARCH="i486 arm"
    8.20  
    8.21 -# Cross compile needs host flex
    8.22 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    8.23 +WGET_URL="https://github.com/thom311/libnl/releases/download/libnl${VERSION//./_}/$TARBALL"
    8.24 +
    8.25  BUILD_DEPENDS="flex"
    8.26 +SPLIT="libnl-tools libnl-dev"
    8.27  
    8.28  # Rules to configure and make the package.
    8.29  compile_rules()
    8.30  {
    8.31  	./configure \
    8.32  		--sysconfdir=/etc \
    8.33 -		$CONFIGURE_ARGS && 
    8.34 +		--disable-static \
    8.35 +		$CONFIGURE_ARGS &&
    8.36  	make && make install
    8.37  }
    8.38  
    8.39  # Rules to gen a SliTaz package suitable for Tazpkg.
    8.40  genpkg_rules()
    8.41  {
    8.42 -	mkdir -p $fs/usr/lib
    8.43 -	cp -a $install/etc $fs
    8.44 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    8.45 -	cp -a $install/usr/lib/libnl $fs/usr/lib
    8.46 -	find $fs/usr/lib -type f -name "*.*a" -exec rm -f {} \;
    8.47 +	case $PACKAGE in
    8.48 +		libnl)
    8.49 +			copy etc/ *.so*
    8.50 +			CONFIG_FILES="/etc/libnl/classid /etc/libnl/pktloc"
    8.51 +			;;
    8.52 +		libnl-tools)
    8.53 +			copy @std
    8.54 +			remove_already_packed
    8.55 +			CAT="network|tiny tools"
    8.56 +			;;
    8.57 +		*-dev) copy @dev;;
    8.58 +	esac
    8.59  }
     9.1 --- a/libnl/stuff/libnl-1.1-ULONG_MAX.patch	Fri Jun 16 15:39:43 2017 +0300
     9.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.3 @@ -1,10 +0,0 @@
     9.4 ---- include/netlink-local.h	Mon Jan 14 15:48:45 2008
     9.5 -+++ include/netlink-local.h	Sat Sep 26 06:33:01 2009
     9.6 -@@ -26,6 +26,7 @@
     9.7 - #include <sys/socket.h>
     9.8 - #include <inttypes.h>
     9.9 - #include <assert.h>
    9.10 -+#include <limits.h>
    9.11 - 
    9.12 - #include <arpa/inet.h>
    9.13 - #include <netdb.h>
    10.1 --- a/libpcap-dev/receipt	Fri Jun 16 15:39:43 2017 +0300
    10.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.3 @@ -1,19 +0,0 @@
    10.4 -# SliTaz package receipt.
    10.5 -
    10.6 -PACKAGE="libpcap-dev"
    10.7 -VERSION="1.7.4"
    10.8 -CATEGORY="development"
    10.9 -SHORT_DESC="devel files for libpcap"
   10.10 -MAINTAINER="slaxemulator@gmail.com"
   10.11 -LICENSE="BSD"
   10.12 -WEB_SITE="http://www.tcpdump.org/"
   10.13 -HOST_ARCH="i486 arm"
   10.14 -
   10.15 -WANTED="libpcap"
   10.16 -DEPENDS="libpcap"
   10.17 -
   10.18 -# Rules to gen a SliTaz package suitable for Tazpkg.
   10.19 -genpkg_rules()
   10.20 -{
   10.21 -	copy @dev
   10.22 -}
    11.1 --- a/libpcap/receipt	Fri Jun 16 15:39:43 2017 +0300
    11.2 +++ b/libpcap/receipt	Sat Jun 17 01:38:14 2017 +0300
    11.3 @@ -1,9 +1,9 @@
    11.4 -# SliTaz package receipt.
    11.5 +# SliTaz package receipt v2.
    11.6  
    11.7  PACKAGE="libpcap"
    11.8 -VERSION="1.7.4"
    11.9 +VERSION="1.8.1"
   11.10  CATEGORY="libdevel"
   11.11 -SHORT_DESC="functions for user-level packet capture, used in low-level network \
   11.12 +SHORT_DESC="Functions for user-level packet capture, used in low-level network \
   11.13  monitoring"
   11.14  MAINTAINER="sdaigl@lacitec.on.ca"
   11.15  LICENSE="BSD"
   11.16 @@ -13,14 +13,13 @@
   11.17  TARBALL="$PACKAGE-$VERSION.tar.gz"
   11.18  WGET_URL="http://www.tcpdump.org/release/$TARBALL"
   11.19  
   11.20 -DEPENDS="libnl"
   11.21 -BUILD_DEPENDS="flex bison"
   11.22 -BUILD_DEPENDS_arm=""
   11.23 +BUILD_DEPENDS="flex bison libnl-dev"
   11.24 +BUILD_DEPENDS_arm=" "
   11.25 +SPLIT="libpcap-dev"
   11.26  
   11.27  # Handle cross compilation
   11.28  case "$ARCH" in
   11.29  	arm)
   11.30 -		BUILD_DEPENDS="$BUILD_DEPENDS_arm"
   11.31  		ARCH_ARGS="--with-pcap=linux"
   11.32  		export ac_cv_linux_vers=2
   11.33  		;;
   11.34 @@ -37,5 +36,8 @@
   11.35  # Rules to gen a SliTaz package suitable for Tazpkg.
   11.36  genpkg_rules()
   11.37  {
   11.38 -	copy @std
   11.39 +	case $PACKAGE in
   11.40 +		libpcap) copy @std; DEPENDS="libnl";;
   11.41 +		*-dev) copy @dev;;
   11.42 +	esac
   11.43  }
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/libpcap/stuff/patches/libpcap-1.8.1-enable_bluetooth-1.patch	Sat Jun 17 01:38:14 2017 +0300
    12.3 @@ -0,0 +1,785 @@
    12.4 +Submitted By:            Fernando de Oliveira <famobr at yahoo dot com dot br>
    12.5 +Date:                    2014-09-07
    12.6 +Initial Package Version: 1.6.2 (problem started with 1.6.1)
    12.7 +Upstream Status:         Unknown
    12.8 +Origin:                  ArchLinux
    12.9 +URL:                     https://projects.archlinux.org/svntogit/packages.git/plain/trunk/mgmt.h?h=packages/libpcap
   12.10 +Description:             Fix build with bluez-5.21
   12.11 +
   12.12 +
   12.13 +diff -Naur libpcap-1.6.2.orig/bluetooth/mgmt.h libpcap-1.6.2/bluetooth/mgmt.h
   12.14 +--- libpcap-1.6.2.orig/bluetooth/mgmt.h	1969-12-31 21:00:00.000000000 -0300
   12.15 ++++ libpcap-1.6.2/bluetooth/mgmt.h	2014-09-07 14:11:36.456414731 -0300
   12.16 +@@ -0,0 +1,772 @@
   12.17 ++/*
   12.18 ++ *  BlueZ - Bluetooth protocol stack for Linux
   12.19 ++ *
   12.20 ++ *  Copyright (C) 2010  Nokia Corporation
   12.21 ++ *  Copyright (C) 2010  Marcel Holtmann <marcel@holtmann.org>
   12.22 ++ *
   12.23 ++ *
   12.24 ++ *  This program is free software; you can redistribute it and/or modify
   12.25 ++ *  it under the terms of the GNU General Public License as published by
   12.26 ++ *  the Free Software Foundation; either version 2 of the License, or
   12.27 ++ *  (at your option) any later version.
   12.28 ++ *
   12.29 ++ *  This program is distributed in the hope that it will be useful,
   12.30 ++ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
   12.31 ++ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12.32 ++ *  GNU General Public License for more details.
   12.33 ++ *
   12.34 ++ *  You should have received a copy of the GNU General Public License
   12.35 ++ *  along with this program; if not, write to the Free Software
   12.36 ++ *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
   12.37 ++ *
   12.38 ++ */
   12.39 ++
   12.40 ++#ifndef __packed
   12.41 ++#define __packed __attribute__((packed))
   12.42 ++#endif
   12.43 ++
   12.44 ++#define MGMT_INDEX_NONE			0xFFFF
   12.45 ++
   12.46 ++#define MGMT_STATUS_SUCCESS		0x00
   12.47 ++#define MGMT_STATUS_UNKNOWN_COMMAND	0x01
   12.48 ++#define MGMT_STATUS_NOT_CONNECTED	0x02
   12.49 ++#define MGMT_STATUS_FAILED		0x03
   12.50 ++#define MGMT_STATUS_CONNECT_FAILED	0x04
   12.51 ++#define MGMT_STATUS_AUTH_FAILED		0x05
   12.52 ++#define MGMT_STATUS_NOT_PAIRED		0x06
   12.53 ++#define MGMT_STATUS_NO_RESOURCES	0x07
   12.54 ++#define MGMT_STATUS_TIMEOUT		0x08
   12.55 ++#define MGMT_STATUS_ALREADY_CONNECTED	0x09
   12.56 ++#define MGMT_STATUS_BUSY		0x0a
   12.57 ++#define MGMT_STATUS_REJECTED		0x0b
   12.58 ++#define MGMT_STATUS_NOT_SUPPORTED	0x0c
   12.59 ++#define MGMT_STATUS_INVALID_PARAMS	0x0d
   12.60 ++#define MGMT_STATUS_DISCONNECTED	0x0e
   12.61 ++#define MGMT_STATUS_NOT_POWERED		0x0f
   12.62 ++#define MGMT_STATUS_CANCELLED		0x10
   12.63 ++#define MGMT_STATUS_INVALID_INDEX	0x11
   12.64 ++#define MGMT_STATUS_RFKILLED		0x12
   12.65 ++
   12.66 ++struct mgmt_hdr {
   12.67 ++	uint16_t opcode;
   12.68 ++	uint16_t index;
   12.69 ++	uint16_t len;
   12.70 ++} __packed;
   12.71 ++#define MGMT_HDR_SIZE	6
   12.72 ++
   12.73 ++struct mgmt_addr_info {
   12.74 ++	bdaddr_t bdaddr;
   12.75 ++	uint8_t type;
   12.76 ++} __packed;
   12.77 ++
   12.78 ++#define MGMT_OP_READ_VERSION		0x0001
   12.79 ++struct mgmt_rp_read_version {
   12.80 ++	uint8_t version;
   12.81 ++	uint16_t revision;
   12.82 ++} __packed;
   12.83 ++
   12.84 ++#define MGMT_OP_READ_COMMANDS		0x0002
   12.85 ++struct mgmt_rp_read_commands {
   12.86 ++	uint16_t num_commands;
   12.87 ++	uint16_t num_events;
   12.88 ++	uint16_t opcodes[0];
   12.89 ++} __packed;
   12.90 ++
   12.91 ++#define MGMT_OP_READ_INDEX_LIST		0x0003
   12.92 ++struct mgmt_rp_read_index_list {
   12.93 ++	uint16_t num_controllers;
   12.94 ++	uint16_t index[0];
   12.95 ++} __packed;
   12.96 ++
   12.97 ++/* Reserve one extra byte for names in management messages so that they
   12.98 ++ * are always guaranteed to be nul-terminated */
   12.99 ++#define MGMT_MAX_NAME_LENGTH		(248 + 1)
  12.100 ++#define MGMT_MAX_SHORT_NAME_LENGTH	(10 + 1)
  12.101 ++
  12.102 ++#define MGMT_SETTING_POWERED		0x00000001
  12.103 ++#define MGMT_SETTING_CONNECTABLE	0x00000002
  12.104 ++#define MGMT_SETTING_FAST_CONNECTABLE	0x00000004
  12.105 ++#define MGMT_SETTING_DISCOVERABLE	0x00000008
  12.106 ++#define MGMT_SETTING_BONDABLE		0x00000010
  12.107 ++#define MGMT_SETTING_LINK_SECURITY	0x00000020
  12.108 ++#define MGMT_SETTING_SSP		0x00000040
  12.109 ++#define MGMT_SETTING_BREDR		0x00000080
  12.110 ++#define MGMT_SETTING_HS			0x00000100
  12.111 ++#define MGMT_SETTING_LE			0x00000200
  12.112 ++#define MGMT_SETTING_ADVERTISING	0x00000400
  12.113 ++#define MGMT_SETTING_SECURE_CONN	0x00000800
  12.114 ++#define MGMT_SETTING_DEBUG_KEYS		0x00001000
  12.115 ++#define MGMT_SETTING_PRIVACY		0x00002000
  12.116 ++#define MGMT_SETTING_CONFIGURATION	0x00004000
  12.117 ++
  12.118 ++#define MGMT_OP_READ_INFO		0x0004
  12.119 ++struct mgmt_rp_read_info {
  12.120 ++	bdaddr_t bdaddr;
  12.121 ++	uint8_t version;
  12.122 ++	uint16_t manufacturer;
  12.123 ++	uint32_t supported_settings;
  12.124 ++	uint32_t current_settings;
  12.125 ++	uint8_t dev_class[3];
  12.126 ++	uint8_t name[MGMT_MAX_NAME_LENGTH];
  12.127 ++	uint8_t short_name[MGMT_MAX_SHORT_NAME_LENGTH];
  12.128 ++} __packed;
  12.129 ++
  12.130 ++struct mgmt_mode {
  12.131 ++	uint8_t val;
  12.132 ++} __packed;
  12.133 ++
  12.134 ++struct mgmt_cod {
  12.135 ++	uint8_t val[3];
  12.136 ++} __packed;
  12.137 ++
  12.138 ++#define MGMT_OP_SET_POWERED		0x0005
  12.139 ++
  12.140 ++#define MGMT_OP_SET_DISCOVERABLE	0x0006
  12.141 ++struct mgmt_cp_set_discoverable {
  12.142 ++	uint8_t val;
  12.143 ++	uint16_t timeout;
  12.144 ++} __packed;
  12.145 ++
  12.146 ++#define MGMT_OP_SET_CONNECTABLE		0x0007
  12.147 ++
  12.148 ++#define MGMT_OP_SET_FAST_CONNECTABLE	0x0008
  12.149 ++
  12.150 ++#define MGMT_OP_SET_BONDABLE		0x0009
  12.151 ++
  12.152 ++#define MGMT_OP_SET_LINK_SECURITY	0x000A
  12.153 ++
  12.154 ++#define MGMT_OP_SET_SSP			0x000B
  12.155 ++
  12.156 ++#define MGMT_OP_SET_HS			0x000C
  12.157 ++
  12.158 ++#define MGMT_OP_SET_LE			0x000D
  12.159 ++
  12.160 ++#define MGMT_OP_SET_DEV_CLASS		0x000E
  12.161 ++struct mgmt_cp_set_dev_class {
  12.162 ++	uint8_t major;
  12.163 ++	uint8_t minor;
  12.164 ++} __packed;
  12.165 ++
  12.166 ++#define MGMT_OP_SET_LOCAL_NAME		0x000F
  12.167 ++struct mgmt_cp_set_local_name {
  12.168 ++	uint8_t name[MGMT_MAX_NAME_LENGTH];
  12.169 ++	uint8_t short_name[MGMT_MAX_SHORT_NAME_LENGTH];
  12.170 ++} __packed;
  12.171 ++
  12.172 ++#define MGMT_OP_ADD_UUID		0x0010
  12.173 ++struct mgmt_cp_add_uuid {
  12.174 ++	uint8_t uuid[16];
  12.175 ++	uint8_t svc_hint;
  12.176 ++} __packed;
  12.177 ++
  12.178 ++#define MGMT_OP_REMOVE_UUID		0x0011
  12.179 ++struct mgmt_cp_remove_uuid {
  12.180 ++	uint8_t uuid[16];
  12.181 ++} __packed;
  12.182 ++
  12.183 ++struct mgmt_link_key_info {
  12.184 ++	struct mgmt_addr_info addr;
  12.185 ++	uint8_t type;
  12.186 ++	uint8_t val[16];
  12.187 ++	uint8_t pin_len;
  12.188 ++} __packed;
  12.189 ++
  12.190 ++#define MGMT_OP_LOAD_LINK_KEYS		0x0012
  12.191 ++struct mgmt_cp_load_link_keys {
  12.192 ++	uint8_t debug_keys;
  12.193 ++	uint16_t key_count;
  12.194 ++	struct mgmt_link_key_info keys[0];
  12.195 ++} __packed;
  12.196 ++
  12.197 ++struct mgmt_ltk_info {
  12.198 ++	struct mgmt_addr_info addr;
  12.199 ++	uint8_t type;
  12.200 ++	uint8_t master;
  12.201 ++	uint8_t enc_size;
  12.202 ++	uint16_t ediv;
  12.203 ++	uint64_t rand;
  12.204 ++	uint8_t val[16];
  12.205 ++} __packed;
  12.206 ++
  12.207 ++#define MGMT_OP_LOAD_LONG_TERM_KEYS	0x0013
  12.208 ++struct mgmt_cp_load_long_term_keys {
  12.209 ++	uint16_t key_count;
  12.210 ++	struct mgmt_ltk_info keys[0];
  12.211 ++} __packed;
  12.212 ++
  12.213 ++#define MGMT_OP_DISCONNECT		0x0014
  12.214 ++struct mgmt_cp_disconnect {
  12.215 ++	struct mgmt_addr_info addr;
  12.216 ++} __packed;
  12.217 ++struct mgmt_rp_disconnect {
  12.218 ++	struct mgmt_addr_info addr;
  12.219 ++} __packed;
  12.220 ++
  12.221 ++#define MGMT_OP_GET_CONNECTIONS		0x0015
  12.222 ++struct mgmt_rp_get_connections {
  12.223 ++	uint16_t conn_count;
  12.224 ++	struct mgmt_addr_info addr[0];
  12.225 ++} __packed;
  12.226 ++
  12.227 ++#define MGMT_OP_PIN_CODE_REPLY		0x0016
  12.228 ++struct mgmt_cp_pin_code_reply {
  12.229 ++	struct mgmt_addr_info addr;
  12.230 ++	uint8_t pin_len;
  12.231 ++	uint8_t pin_code[16];
  12.232 ++} __packed;
  12.233 ++
  12.234 ++#define MGMT_OP_PIN_CODE_NEG_REPLY	0x0017
  12.235 ++struct mgmt_cp_pin_code_neg_reply {
  12.236 ++	struct mgmt_addr_info addr;
  12.237 ++} __packed;
  12.238 ++
  12.239 ++#define MGMT_OP_SET_IO_CAPABILITY	0x0018
  12.240 ++struct mgmt_cp_set_io_capability {
  12.241 ++	uint8_t io_capability;
  12.242 ++} __packed;
  12.243 ++
  12.244 ++#define MGMT_OP_PAIR_DEVICE		0x0019
  12.245 ++struct mgmt_cp_pair_device {
  12.246 ++	struct mgmt_addr_info addr;
  12.247 ++	uint8_t io_cap;
  12.248 ++} __packed;
  12.249 ++struct mgmt_rp_pair_device {
  12.250 ++	struct mgmt_addr_info addr;
  12.251 ++} __packed;
  12.252 ++
  12.253 ++#define MGMT_OP_CANCEL_PAIR_DEVICE	0x001A
  12.254 ++
  12.255 ++#define MGMT_OP_UNPAIR_DEVICE		0x001B
  12.256 ++struct mgmt_cp_unpair_device {
  12.257 ++	struct mgmt_addr_info addr;
  12.258 ++	uint8_t disconnect;
  12.259 ++} __packed;
  12.260 ++struct mgmt_rp_unpair_device {
  12.261 ++	struct mgmt_addr_info addr;
  12.262 ++} __packed;
  12.263 ++
  12.264 ++#define MGMT_OP_USER_CONFIRM_REPLY	0x001C
  12.265 ++struct mgmt_cp_user_confirm_reply {
  12.266 ++	struct mgmt_addr_info addr;
  12.267 ++} __packed;
  12.268 ++struct mgmt_rp_user_confirm_reply {
  12.269 ++	struct mgmt_addr_info addr;
  12.270 ++} __packed;
  12.271 ++
  12.272 ++#define MGMT_OP_USER_CONFIRM_NEG_REPLY	0x001D
  12.273 ++
  12.274 ++#define MGMT_OP_USER_PASSKEY_REPLY	0x001E
  12.275 ++struct mgmt_cp_user_passkey_reply {
  12.276 ++	struct mgmt_addr_info addr;
  12.277 ++	uint32_t passkey;
  12.278 ++} __packed;
  12.279 ++struct mgmt_rp_user_passkey_reply {
  12.280 ++	struct mgmt_addr_info addr;
  12.281 ++} __packed;
  12.282 ++
  12.283 ++#define MGMT_OP_USER_PASSKEY_NEG_REPLY	0x001F
  12.284 ++struct mgmt_cp_user_passkey_neg_reply {
  12.285 ++	struct mgmt_addr_info addr;
  12.286 ++} __packed;
  12.287 ++
  12.288 ++#define MGMT_OP_READ_LOCAL_OOB_DATA	0x0020
  12.289 ++struct mgmt_rp_read_local_oob_data {
  12.290 ++	uint8_t hash[16];
  12.291 ++	uint8_t randomizer[16];
  12.292 ++} __packed;
  12.293 ++struct mgmt_rp_read_local_oob_ext_data {
  12.294 ++	uint8_t hash192[16];
  12.295 ++	uint8_t randomizer192[16];
  12.296 ++	uint8_t hash256[16];
  12.297 ++	uint8_t randomizer256[16];
  12.298 ++} __packed;
  12.299 ++
  12.300 ++#define MGMT_OP_ADD_REMOTE_OOB_DATA	0x0021
  12.301 ++struct mgmt_cp_add_remote_oob_data {
  12.302 ++	struct mgmt_addr_info addr;
  12.303 ++	uint8_t hash[16];
  12.304 ++	uint8_t randomizer[16];
  12.305 ++} __packed;
  12.306 ++
  12.307 ++#define MGMT_OP_REMOVE_REMOTE_OOB_DATA	0x0022
  12.308 ++struct mgmt_cp_remove_remote_oob_data {
  12.309 ++	struct mgmt_addr_info addr;
  12.310 ++} __packed;
  12.311 ++
  12.312 ++#define MGMT_OP_START_DISCOVERY		0x0023
  12.313 ++struct mgmt_cp_start_discovery {
  12.314 ++	uint8_t type;
  12.315 ++} __packed;
  12.316 ++
  12.317 ++#define MGMT_OP_STOP_DISCOVERY		0x0024
  12.318 ++struct mgmt_cp_stop_discovery {
  12.319 ++	uint8_t type;
  12.320 ++} __packed;
  12.321 ++
  12.322 ++#define MGMT_OP_CONFIRM_NAME		0x0025
  12.323 ++struct mgmt_cp_confirm_name {
  12.324 ++	struct mgmt_addr_info addr;
  12.325 ++	uint8_t name_known;
  12.326 ++} __packed;
  12.327 ++struct mgmt_rp_confirm_name {
  12.328 ++	struct mgmt_addr_info addr;
  12.329 ++} __packed;
  12.330 ++
  12.331 ++#define MGMT_OP_BLOCK_DEVICE		0x0026
  12.332 ++struct mgmt_cp_block_device {
  12.333 ++	struct mgmt_addr_info addr;
  12.334 ++} __packed;
  12.335 ++
  12.336 ++#define MGMT_OP_UNBLOCK_DEVICE		0x0027
  12.337 ++struct mgmt_cp_unblock_device {
  12.338 ++	struct mgmt_addr_info addr;
  12.339 ++} __packed;
  12.340 ++
  12.341 ++#define MGMT_OP_SET_DEVICE_ID		0x0028
  12.342 ++struct mgmt_cp_set_device_id {
  12.343 ++	uint16_t source;
  12.344 ++	uint16_t vendor;
  12.345 ++	uint16_t product;
  12.346 ++	uint16_t version;
  12.347 ++} __packed;
  12.348 ++
  12.349 ++#define MGMT_OP_SET_ADVERTISING		0x0029
  12.350 ++
  12.351 ++#define MGMT_OP_SET_BREDR		0x002A
  12.352 ++
  12.353 ++#define MGMT_OP_SET_STATIC_ADDRESS	0x002B
  12.354 ++struct mgmt_cp_set_static_address {
  12.355 ++	bdaddr_t bdaddr;
  12.356 ++} __packed;
  12.357 ++
  12.358 ++#define MGMT_OP_SET_SCAN_PARAMS		0x002C
  12.359 ++struct mgmt_cp_set_scan_params {
  12.360 ++	uint16_t interval;
  12.361 ++	uint16_t window;
  12.362 ++} __packed;
  12.363 ++
  12.364 ++#define MGMT_OP_SET_SECURE_CONN		0x002D
  12.365 ++
  12.366 ++#define MGMT_OP_SET_DEBUG_KEYS		0x002E
  12.367 ++
  12.368 ++struct mgmt_irk_info {
  12.369 ++	struct mgmt_addr_info addr;
  12.370 ++	uint8_t val[16];
  12.371 ++} __packed;
  12.372 ++
  12.373 ++#define MGMT_OP_SET_PRIVACY		0x002F
  12.374 ++struct mgmt_cp_set_privacy {
  12.375 ++	uint8_t privacy;
  12.376 ++	uint8_t irk[16];
  12.377 ++} __packed;
  12.378 ++
  12.379 ++#define MGMT_OP_LOAD_IRKS		0x0030
  12.380 ++struct mgmt_cp_load_irks {
  12.381 ++	uint16_t irk_count;
  12.382 ++	struct mgmt_irk_info irks[0];
  12.383 ++} __packed;
  12.384 ++
  12.385 ++#define MGMT_OP_GET_CONN_INFO		0x0031
  12.386 ++struct mgmt_cp_get_conn_info {
  12.387 ++	struct mgmt_addr_info addr;
  12.388 ++} __packed;
  12.389 ++struct mgmt_rp_get_conn_info {
  12.390 ++	struct mgmt_addr_info addr;
  12.391 ++	int8_t rssi;
  12.392 ++	int8_t tx_power;
  12.393 ++	int8_t max_tx_power;
  12.394 ++} __packed;
  12.395 ++
  12.396 ++#define MGMT_OP_GET_CLOCK_INFO		0x0032
  12.397 ++struct mgmt_cp_get_clock_info {
  12.398 ++	struct mgmt_addr_info addr;
  12.399 ++} __packed;
  12.400 ++struct mgmt_rp_get_clock_info {
  12.401 ++	struct mgmt_addr_info addr;
  12.402 ++	uint32_t  local_clock;
  12.403 ++	uint32_t  piconet_clock;
  12.404 ++	uint16_t  accuracy;
  12.405 ++} __packed;
  12.406 ++
  12.407 ++#define MGMT_OP_ADD_DEVICE		0x0033
  12.408 ++struct mgmt_cp_add_device {
  12.409 ++	struct mgmt_addr_info addr;
  12.410 ++	uint8_t action;
  12.411 ++} __packed;
  12.412 ++struct mgmt_rp_add_device {
  12.413 ++	struct mgmt_addr_info addr;
  12.414 ++} __packed;
  12.415 ++
  12.416 ++#define MGMT_OP_REMOVE_DEVICE		0x0034
  12.417 ++struct mgmt_cp_remove_device {
  12.418 ++	struct mgmt_addr_info addr;
  12.419 ++} __packed;
  12.420 ++struct mgmt_rp_remove_device {
  12.421 ++	struct mgmt_addr_info addr;
  12.422 ++} __packed;
  12.423 ++
  12.424 ++struct mgmt_conn_param {
  12.425 ++	struct mgmt_addr_info addr;
  12.426 ++	uint16_t min_interval;
  12.427 ++	uint16_t max_interval;
  12.428 ++	uint16_t latency;
  12.429 ++	uint16_t timeout;
  12.430 ++} __packed;
  12.431 ++
  12.432 ++#define MGMT_OP_LOAD_CONN_PARAM		0x0035
  12.433 ++struct mgmt_cp_load_conn_param {
  12.434 ++	uint16_t param_count;
  12.435 ++	struct mgmt_conn_param params[0];
  12.436 ++} __packed;
  12.437 ++
  12.438 ++#define MGMT_OP_READ_UNCONF_INDEX_LIST	0x0036
  12.439 ++struct mgmt_rp_read_unconf_index_list {
  12.440 ++	uint16_t num_controllers;
  12.441 ++	uint16_t index[0];
  12.442 ++} __packed;
  12.443 ++
  12.444 ++#define MGMT_OPTION_EXTERNAL_CONFIG	0x00000001
  12.445 ++#define MGMT_OPTION_PUBLIC_ADDRESS	0x00000002
  12.446 ++
  12.447 ++#define MGMT_OP_READ_CONFIG_INFO	0x0037
  12.448 ++struct mgmt_rp_read_config_info {
  12.449 ++	uint16_t manufacturer;
  12.450 ++	uint32_t supported_options;
  12.451 ++	uint32_t missing_options;
  12.452 ++} __packed;
  12.453 ++
  12.454 ++#define MGMT_OP_SET_EXTERNAL_CONFIG	0x0038
  12.455 ++struct mgmt_cp_set_external_config {
  12.456 ++	uint8_t config;
  12.457 ++} __packed;
  12.458 ++
  12.459 ++#define MGMT_OP_SET_PUBLIC_ADDRESS	0x0039
  12.460 ++struct mgmt_cp_set_public_address {
  12.461 ++	bdaddr_t bdaddr;
  12.462 ++} __packed;
  12.463 ++
  12.464 ++#define MGMT_EV_CMD_COMPLETE		0x0001
  12.465 ++struct mgmt_ev_cmd_complete {
  12.466 ++	uint16_t opcode;
  12.467 ++	uint8_t status;
  12.468 ++	uint8_t data[0];
  12.469 ++} __packed;
  12.470 ++
  12.471 ++#define MGMT_EV_CMD_STATUS		0x0002
  12.472 ++struct mgmt_ev_cmd_status {
  12.473 ++	uint16_t opcode;
  12.474 ++	uint8_t status;
  12.475 ++} __packed;
  12.476 ++
  12.477 ++#define MGMT_EV_CONTROLLER_ERROR	0x0003
  12.478 ++struct mgmt_ev_controller_error {
  12.479 ++	uint8_t error_code;
  12.480 ++} __packed;
  12.481 ++
  12.482 ++#define MGMT_EV_INDEX_ADDED		0x0004
  12.483 ++
  12.484 ++#define MGMT_EV_INDEX_REMOVED		0x0005
  12.485 ++
  12.486 ++#define MGMT_EV_NEW_SETTINGS		0x0006
  12.487 ++
  12.488 ++#define MGMT_EV_CLASS_OF_DEV_CHANGED	0x0007
  12.489 ++struct mgmt_ev_class_of_dev_changed {
  12.490 ++	uint8_t class_of_dev[3];
  12.491 ++} __packed;
  12.492 ++
  12.493 ++#define MGMT_EV_LOCAL_NAME_CHANGED	0x0008
  12.494 ++struct mgmt_ev_local_name_changed {
  12.495 ++	uint8_t name[MGMT_MAX_NAME_LENGTH];
  12.496 ++	uint8_t short_name[MGMT_MAX_SHORT_NAME_LENGTH];
  12.497 ++} __packed;
  12.498 ++
  12.499 ++#define MGMT_EV_NEW_LINK_KEY		0x0009
  12.500 ++struct mgmt_ev_new_link_key {
  12.501 ++	uint8_t store_hint;
  12.502 ++	struct mgmt_link_key_info key;
  12.503 ++} __packed;
  12.504 ++
  12.505 ++#define MGMT_EV_NEW_LONG_TERM_KEY	0x000A
  12.506 ++struct mgmt_ev_new_long_term_key {
  12.507 ++	uint8_t store_hint;
  12.508 ++	struct mgmt_ltk_info key;
  12.509 ++} __packed;
  12.510 ++
  12.511 ++#define MGMT_EV_DEVICE_CONNECTED	0x000B
  12.512 ++struct mgmt_ev_device_connected {
  12.513 ++	struct mgmt_addr_info addr;
  12.514 ++	uint32_t flags;
  12.515 ++	uint16_t eir_len;
  12.516 ++	uint8_t eir[0];
  12.517 ++} __packed;
  12.518 ++
  12.519 ++#define MGMT_DEV_DISCONN_UNKNOWN	0x00
  12.520 ++#define MGMT_DEV_DISCONN_TIMEOUT	0x01
  12.521 ++#define MGMT_DEV_DISCONN_LOCAL_HOST	0x02
  12.522 ++#define MGMT_DEV_DISCONN_REMOTE		0x03
  12.523 ++
  12.524 ++#define MGMT_EV_DEVICE_DISCONNECTED	0x000C
  12.525 ++struct mgmt_ev_device_disconnected {
  12.526 ++	struct mgmt_addr_info addr;
  12.527 ++	uint8_t reason;
  12.528 ++} __packed;
  12.529 ++
  12.530 ++#define MGMT_EV_CONNECT_FAILED		0x000D
  12.531 ++struct mgmt_ev_connect_failed {
  12.532 ++	struct mgmt_addr_info addr;
  12.533 ++	uint8_t status;
  12.534 ++} __packed;
  12.535 ++
  12.536 ++#define MGMT_EV_PIN_CODE_REQUEST	0x000E
  12.537 ++struct mgmt_ev_pin_code_request {
  12.538 ++	struct mgmt_addr_info addr;
  12.539 ++	uint8_t secure;
  12.540 ++} __packed;
  12.541 ++
  12.542 ++#define MGMT_EV_USER_CONFIRM_REQUEST	0x000F
  12.543 ++struct mgmt_ev_user_confirm_request {
  12.544 ++	struct mgmt_addr_info addr;
  12.545 ++	uint8_t confirm_hint;
  12.546 ++	uint32_t value;
  12.547 ++} __packed;
  12.548 ++
  12.549 ++#define MGMT_EV_USER_PASSKEY_REQUEST	0x0010
  12.550 ++struct mgmt_ev_user_passkey_request {
  12.551 ++	struct mgmt_addr_info addr;
  12.552 ++} __packed;
  12.553 ++
  12.554 ++#define MGMT_EV_AUTH_FAILED		0x0011
  12.555 ++struct mgmt_ev_auth_failed {
  12.556 ++	struct mgmt_addr_info addr;
  12.557 ++	uint8_t status;
  12.558 ++} __packed;
  12.559 ++
  12.560 ++#define MGMT_DEV_FOUND_CONFIRM_NAME	0x01
  12.561 ++#define MGMT_DEV_FOUND_LEGACY_PAIRING	0x02
  12.562 ++#define MGMT_DEV_FOUND_NOT_CONNECTABLE	0x04
  12.563 ++
  12.564 ++#define MGMT_EV_DEVICE_FOUND		0x0012
  12.565 ++struct mgmt_ev_device_found {
  12.566 ++	struct mgmt_addr_info addr;
  12.567 ++	int8_t rssi;
  12.568 ++	uint32_t flags;
  12.569 ++	uint16_t eir_len;
  12.570 ++	uint8_t eir[0];
  12.571 ++} __packed;
  12.572 ++
  12.573 ++#define MGMT_EV_DISCOVERING		0x0013
  12.574 ++struct mgmt_ev_discovering {
  12.575 ++	uint8_t type;
  12.576 ++	uint8_t discovering;
  12.577 ++} __packed;
  12.578 ++
  12.579 ++#define MGMT_EV_DEVICE_BLOCKED		0x0014
  12.580 ++struct mgmt_ev_device_blocked {
  12.581 ++	struct mgmt_addr_info addr;
  12.582 ++} __packed;
  12.583 ++
  12.584 ++#define MGMT_EV_DEVICE_UNBLOCKED	0x0015
  12.585 ++struct mgmt_ev_device_unblocked {
  12.586 ++	struct mgmt_addr_info addr;
  12.587 ++} __packed;
  12.588 ++
  12.589 ++#define MGMT_EV_DEVICE_UNPAIRED		0x0016
  12.590 ++struct mgmt_ev_device_unpaired {
  12.591 ++	struct mgmt_addr_info addr;
  12.592 ++} __packed;
  12.593 ++
  12.594 ++#define MGMT_EV_PASSKEY_NOTIFY		0x0017
  12.595 ++struct mgmt_ev_passkey_notify {
  12.596 ++	struct mgmt_addr_info addr;
  12.597 ++	uint32_t passkey;
  12.598 ++	uint8_t entered;
  12.599 ++} __packed;
  12.600 ++
  12.601 ++#define MGMT_EV_NEW_IRK			0x0018
  12.602 ++struct mgmt_ev_new_irk {
  12.603 ++	uint8_t  store_hint;
  12.604 ++	bdaddr_t rpa;
  12.605 ++	struct mgmt_irk_info key;
  12.606 ++} __packed;
  12.607 ++
  12.608 ++struct mgmt_csrk_info {
  12.609 ++	struct mgmt_addr_info addr;
  12.610 ++	uint8_t master;
  12.611 ++	uint8_t val[16];
  12.612 ++} __packed;
  12.613 ++
  12.614 ++#define MGMT_EV_NEW_CSRK		0x0019
  12.615 ++struct mgmt_ev_new_csrk {
  12.616 ++	uint8_t store_hint;
  12.617 ++	struct mgmt_csrk_info key;
  12.618 ++} __packed;
  12.619 ++
  12.620 ++#define MGMT_EV_DEVICE_ADDED		0x001a
  12.621 ++struct mgmt_ev_device_added {
  12.622 ++	struct mgmt_addr_info addr;
  12.623 ++	uint8_t action;
  12.624 ++} __packed;
  12.625 ++
  12.626 ++#define MGMT_EV_DEVICE_REMOVED		0x001b
  12.627 ++struct mgmt_ev_device_removed {
  12.628 ++	struct mgmt_addr_info addr;
  12.629 ++} __packed;
  12.630 ++
  12.631 ++#define MGMT_EV_NEW_CONN_PARAM		0x001c
  12.632 ++struct mgmt_ev_new_conn_param {
  12.633 ++	struct mgmt_addr_info addr;
  12.634 ++	uint8_t store_hint;
  12.635 ++	uint16_t min_interval;
  12.636 ++	uint16_t max_interval;
  12.637 ++	uint16_t latency;
  12.638 ++	uint16_t timeout;
  12.639 ++} __packed;
  12.640 ++
  12.641 ++#define MGMT_EV_UNCONF_INDEX_ADDED	0x001d
  12.642 ++
  12.643 ++#define MGMT_EV_UNCONF_INDEX_REMOVED	0x001e
  12.644 ++
  12.645 ++#define MGMT_EV_NEW_CONFIG_OPTIONS	0x001f
  12.646 ++
  12.647 ++static const char *mgmt_op[] = {
  12.648 ++	"<0x0000>",
  12.649 ++	"Read Version",
  12.650 ++	"Read Commands",
  12.651 ++	"Read Index List",
  12.652 ++	"Read Controller Info",
  12.653 ++	"Set Powered",
  12.654 ++	"Set Discoverable",
  12.655 ++	"Set Connectable",
  12.656 ++	"Set Fast Connectable",		/* 0x0008 */
  12.657 ++	"Set Bondable",
  12.658 ++	"Set Link Security",
  12.659 ++	"Set Secure Simple Pairing",
  12.660 ++	"Set High Speed",
  12.661 ++	"Set Low Energy",
  12.662 ++	"Set Dev Class",
  12.663 ++	"Set Local Name",
  12.664 ++	"Add UUID",			/* 0x0010 */
  12.665 ++	"Remove UUID",
  12.666 ++	"Load Link Keys",
  12.667 ++	"Load Long Term Keys",
  12.668 ++	"Disconnect",
  12.669 ++	"Get Connections",
  12.670 ++	"PIN Code Reply",
  12.671 ++	"PIN Code Neg Reply",
  12.672 ++	"Set IO Capability",		/* 0x0018 */
  12.673 ++	"Pair Device",
  12.674 ++	"Cancel Pair Device",
  12.675 ++	"Unpair Device",
  12.676 ++	"User Confirm Reply",
  12.677 ++	"User Confirm Neg Reply",
  12.678 ++	"User Passkey Reply",
  12.679 ++	"User Passkey Neg Reply",
  12.680 ++	"Read Local OOB Data",		/* 0x0020 */
  12.681 ++	"Add Remote OOB Data",
  12.682 ++	"Remove Remove OOB Data",
  12.683 ++	"Start Discovery",
  12.684 ++	"Stop Discovery",
  12.685 ++	"Confirm Name",
  12.686 ++	"Block Device",
  12.687 ++	"Unblock Device",
  12.688 ++	"Set Device ID",
  12.689 ++	"Set Advertising",
  12.690 ++	"Set BR/EDR",
  12.691 ++	"Set Static Address",
  12.692 ++	"Set Scan Parameters",
  12.693 ++	"Set Secure Connections",
  12.694 ++	"Set Debug Keys",
  12.695 ++	"Set Privacy",
  12.696 ++	"Load Identity Resolving Keys",
  12.697 ++	"Get Connection Information",
  12.698 ++	"Get Clock Information",
  12.699 ++	"Add Device",
  12.700 ++	"Remove Device",
  12.701 ++	"Load Connection Parameters",
  12.702 ++	"Read Unconfigured Index List",
  12.703 ++	"Read Controller Configuration Information",
  12.704 ++	"Set External Configuration",
  12.705 ++	"Set Public Address",
  12.706 ++};
  12.707 ++
  12.708 ++static const char *mgmt_ev[] = {
  12.709 ++	"<0x0000>",
  12.710 ++	"Command Complete",
  12.711 ++	"Command Status",
  12.712 ++	"Controller Error",
  12.713 ++	"Index Added",
  12.714 ++	"Index Removed",
  12.715 ++	"New Settings",
  12.716 ++	"Class of Device Changed",
  12.717 ++	"Local Name Changed",		/* 0x0008 */
  12.718 ++	"New Link Key",
  12.719 ++	"New Long Term Key",
  12.720 ++	"Device Connected",
  12.721 ++	"Device Disconnected",
  12.722 ++	"Connect Failed",
  12.723 ++	"PIN Code Request",
  12.724 ++	"User Confirm Request",
  12.725 ++	"User Passkey Request",		/* 0x0010 */
  12.726 ++	"Authentication Failed",
  12.727 ++	"Device Found",
  12.728 ++	"Discovering",
  12.729 ++	"Device Blocked",
  12.730 ++	"Device Unblocked",
  12.731 ++	"Device Unpaired",
  12.732 ++	"Passkey Notify",
  12.733 ++	"New Identity Resolving Key",
  12.734 ++	"New Signature Resolving Key",
  12.735 ++	"Device Added",
  12.736 ++	"Device Removed",
  12.737 ++	"New Connection Parameter",
  12.738 ++	"Unconfigured Index Added",
  12.739 ++	"Unconfigured Index Removed",
  12.740 ++	"New Configuration Options",
  12.741 ++};
  12.742 ++
  12.743 ++static const char *mgmt_status[] = {
  12.744 ++	"Success",
  12.745 ++	"Unknown Command",
  12.746 ++	"Not Connected",
  12.747 ++	"Failed",
  12.748 ++	"Connect Failed",
  12.749 ++	"Authentication Failed",
  12.750 ++	"Not Paired",
  12.751 ++	"No Resources",
  12.752 ++	"Timeout",
  12.753 ++	"Already Connected",
  12.754 ++	"Busy",
  12.755 ++	"Rejected",
  12.756 ++	"Not Supported",
  12.757 ++	"Invalid Parameters",
  12.758 ++	"Disconnected",
  12.759 ++	"Not Powered",
  12.760 ++	"Cancelled",
  12.761 ++	"Invalid Index",
  12.762 ++	"Blocked through rfkill",
  12.763 ++};
  12.764 ++
  12.765 ++#ifndef NELEM
  12.766 ++#define NELEM(x) (sizeof(x) / sizeof((x)[0]))
  12.767 ++#endif
  12.768 ++
  12.769 ++static inline const char *mgmt_opstr(uint16_t op)
  12.770 ++{
  12.771 ++	if (op >= NELEM(mgmt_op))
  12.772 ++		return "<unknown opcode>";
  12.773 ++	return mgmt_op[op];
  12.774 ++}
  12.775 ++
  12.776 ++static inline const char *mgmt_evstr(uint16_t ev)
  12.777 ++{
  12.778 ++	if (ev >= NELEM(mgmt_ev))
  12.779 ++		return "<unknown event>";
  12.780 ++	return mgmt_ev[ev];
  12.781 ++}
  12.782 ++
  12.783 ++static inline const char *mgmt_errstr(uint8_t status)
  12.784 ++{
  12.785 ++	if (status >= NELEM(mgmt_status))
  12.786 ++		return "<unknown status>";
  12.787 ++	return mgmt_status[status];
  12.788 ++}
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/libpcap/stuff/patches/series	Sat Jun 17 01:38:14 2017 +0300
    13.3 @@ -0,0 +1,1 @@
    13.4 +libpcap-1.8.1-enable_bluetooth-1.patch
    14.1 --- a/libsoup-dev/receipt	Fri Jun 16 15:39:43 2017 +0300
    14.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.3 @@ -1,20 +0,0 @@
    14.4 -# SliTaz package receipt.
    14.5 -
    14.6 -PACKAGE="libsoup-dev"
    14.7 -VERSION="2.54.1"
    14.8 -CATEGORY="development"
    14.9 -SHORT_DESC="HTTP client/server library for GNOME (development files)"
   14.10 -MAINTAINER="pankso@slitaz.org"
   14.11 -LICENSE="LGPL2"
   14.12 -WEB_SITE="https://wiki.gnome.org/Projects/libsoup"
   14.13 -HOST_ARCH="i486 arm"
   14.14 -
   14.15 -WANTED="libsoup"
   14.16 -DEPENDS="libsoup glib-dev glibc-dev libffi-dev liblzma-dev libxml2-dev \
   14.17 -pcre-dev sqlite-dev zlib-dev"
   14.18 -
   14.19 -# Rules to gen a SliTaz package suitable for Tazpkg.
   14.20 -genpkg_rules()
   14.21 -{
   14.22 -	cook_copy_files *.h *.la *.pc *.typelib *.gir *.vapi *.deps
   14.23 -}
    15.1 --- a/libsoup-gnome/receipt	Fri Jun 16 15:39:43 2017 +0300
    15.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.3 @@ -1,19 +0,0 @@
    15.4 -# SliTaz package receipt.
    15.5 -
    15.6 -PACKAGE="libsoup-gnome"
    15.7 -VERSION="2.54.1"
    15.8 -CATEGORY="x-window"
    15.9 -SHORT_DESC="HTTP clien/server library for GNOME (GNOME specific library)"
   15.10 -MAINTAINER="al.bobylev@gmail.com"
   15.11 -LICENSE="LGPL2"
   15.12 -WEB_SITE="https://wiki.gnome.org/Projects/libsoup"
   15.13 -HOST_ARCH="i486 arm"
   15.14 -
   15.15 -WANTED="libsoup"
   15.16 -DEPENDS="glib libffi liblzma libsoup libsqlite libxml2 pcre zlib"
   15.17 -
   15.18 -# Rules to gen a SliTaz package suitable for Tazpkg.
   15.19 -genpkg_rules()
   15.20 -{
   15.21 -	cook_copy_files libsoup-gnome*.so*
   15.22 -}
    16.1 --- a/libsoup/receipt	Fri Jun 16 15:39:43 2017 +0300
    16.2 +++ b/libsoup/receipt	Sat Jun 17 01:38:14 2017 +0300
    16.3 @@ -1,7 +1,7 @@
    16.4 -# SliTaz package receipt.
    16.5 +# SliTaz package receipt v2.
    16.6  
    16.7  PACKAGE="libsoup"
    16.8 -VERSION="2.54.1"
    16.9 +VERSION="2.56.0"
   16.10  CATEGORY="network"
   16.11  SHORT_DESC="HTTP client/server library for GNOME"
   16.12  MAINTAINER="pankso@slitaz.org"
   16.13 @@ -12,19 +12,12 @@
   16.14  TARBALL="$PACKAGE-$VERSION.tar.xz"
   16.15  WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
   16.16  
   16.17 -DEPENDS="glib glibc-base libffi libxml2 pcre zlib"
   16.18 -BUILD_DEPENDS_arm="glib-networking-dev glib-dev \
   16.19 -libxml2-dev libgcrypt-dev libtasn1-dev gnutls-dev zlib-dev \
   16.20 -libgnome-keyring-dev sqlite-dev dbus-dev"
   16.21 -BUILD_DEPENDS="glib-dev libxml2-dev sqlite-dev intltool gtk-doc \
   16.22 +BUILD_DEPENDS="glib-dev libxml2-dev sqlite3-dev intltool gtk-doc \
   16.23  gobject-introspection-dev vala glib-networking-dev"
   16.24 +BUILD_DEPENDS_arm="glib-networking-dev glib-dev libxml2-dev libgcrypt-dev \
   16.25 +libtasn1-dev gnutls-dev zlib-dev libgnome-keyring-dev sqlite3-dev dbus-dev"
   16.26  SPLIT="libsoup-gnome libsoup-dev"
   16.27  
   16.28 -# Handle cross compilation.
   16.29 -case "$ARCH" in
   16.30 -	arm) BUILD_DEPENDS=$BUILD_DEPENDS_arm ;;
   16.31 -esac
   16.32 -
   16.33  # Rules to configure and make the package.
   16.34  compile_rules()
   16.35  {
   16.36 @@ -37,5 +30,23 @@
   16.37  # Rules to gen a SliTaz package suitable for Tazpkg.
   16.38  genpkg_rules()
   16.39  {
   16.40 -	cook_copy_files libsoup-2*.so*
   16.41 +	case $PACKAGE in
   16.42 +		libsoup)
   16.43 +			copy libsoup-2*.so*
   16.44 +			DEPENDS="glib glibc-base libffi liblzma libsqlite3 libxml2 pcre \
   16.45 +			util-linux-blkid util-linux-mount util-linux-uuid zlib"
   16.46 +			;;
   16.47 +		libsoup-gnome)
   16.48 +			copy libsoup-gnome*.so*
   16.49 +			CAT="x-window|GNOME specific library"
   16.50 +			DEPENDS="libsoup glib libffi liblzma libsqlite3 libxml2 pcre \
   16.51 +			util-linux-blkid util-linux-mount util-linux-uuid zlib"
   16.52 +			;;
   16.53 +		*-dev)
   16.54 +			copy @dev
   16.55 +			DEPENDS="libsoup libsoup-gnome glib-dev glibc-dev libffi-dev \
   16.56 +			liblzma-dev libxml2-dev pcre-dev sqlite3-dev util-linux-blkid-dev \
   16.57 +			util-linux-mount-dev util-linux-uuid-dev zlib-dev"
   16.58 +			;;
   16.59 +	esac
   16.60  }