From owner-svn-src-stable-9@freebsd.org Tue Feb 12 16:28:31 2019 Return-Path: Delivered-To: svn-src-stable-9@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7642014EBDCB for ; Tue, 12 Feb 2019 16:28:31 +0000 (UTC) (envelope-from kathleen.brown@webtechiezone.com) Received: from IND01-BO1-obe.outbound.protection.outlook.com (mail-eopbgr1390080.outbound.protection.outlook.com [40.107.139.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EEF556CE84 for ; Tue, 12 Feb 2019 16:28:29 +0000 (UTC) (envelope-from kathleen.brown@webtechiezone.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NETORGFT4690007.onmicrosoft.com; s=selector1-webtechiezone-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+Fz9q5QycSq9/Rs+gj2U8R4kKJ+Uqh87Qw/fPiIYH1M=; b=igxbjrq462pNjODpYHDEjZPgz0Jy+1NiFksKa/aQvmHRhQIHS9S5ncrxNI+0IRRNsESGA9ka4xWtVM4WsdIMut8o0/FAC1zak89QzF122doSOcrStPXM5YOcwxoCvapF4/JGU7JTbj989sdnZSpg+cEpJMm75PET10WbUPFiVa8= Received: from BM1PR01MB2563.INDPRD01.PROD.OUTLOOK.COM (20.178.173.139) by BM1PR01MB2913.INDPRD01.PROD.OUTLOOK.COM (20.178.173.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.19; Tue, 12 Feb 2019 16:28:27 +0000 Received: from BM1PR01MB2563.INDPRD01.PROD.OUTLOOK.COM ([fe80::a4fa:3f25:29a6:10a8]) by BM1PR01MB2563.INDPRD01.PROD.OUTLOOK.COM ([fe80::a4fa:3f25:29a6:10a8%4]) with mapi id 15.20.1601.023; Tue, 12 Feb 2019 16:28:27 +0000 From: Kathleen Brown To: "svn-src-stable-9@freebsd.org" Subject: Ubuntu Users Contact List Thread-Topic: Ubuntu Users Contact List Thread-Index: AdTC751XZyVlVJBoTEOfI+OCI4wqng== Date: Tue, 12 Feb 2019 16:26:03 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [223.226.83.97] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BM1PR01MB2913; 6:3w9V6vc5P4CoHIjJba16eZCom9SEZb2RNitUL8za97r4B5SzEAT7qWgwyVfpoCso1OqK/QZppe+s5723Mx2frgZQYzukokhl4TULUkdV2wp9nXOhCffTfABAKoKRaL1dBqx1+ujVXrW1CUB+UijO7tB83qhaLyba8hKIOBND/KUAjDZNsp00QuD1p7XYHaWJoWPD2VHktWl/Y3BpkTBsb+cg655z6O70d6cNYQiUnEraYg997o+/B9UB6ctYbNg362/aKYxNWzjbyrFXtIP/Nr++JlJoSskZLvJX0LSqNQP7ZRqjz1RZSNOFByMLWGy172V6ARZBbCaByCspappyVBBfI9CRq+1UjhS+qr1E7sNjtkAazKOllFUTH4BP3Nnb6AsNlTiU903z3zS7yv1YLUI5Zx+XKW5MrxbvYUXKfJTDaorrJ+uQHpKTTma5z1f6+NCc7MJq4envcVCEsIMfew==; 5:QvTeWlLrwBA9NpijEr0EhTLbIDeyzAyE3qCUhjqx6+kXHIx8p4ELAUhjAbH/dqbIVTIdT6YoW7jwbPT0PNs4ndSvKrpp2xxEWVWm/BwcMIFQbs7iK2NS6EtA7Pyv0f+4QIoHIPT361CyToPIYCv/30zQGUpc5UqfW94yOtZj24jnZBMW0IfU+nyXHf+4WBPFoKciXHHoKu8dABj/1jjMsw==; 7:iizVP8Fv3k6wAIU1E2N/Ck6q9gkTYJBCXt6ExdhCrgafAYy6bEONwjD3uu0jyE+Zhv+GH3uZs5CP+jJdzj0QUCquLG5qDUWKqECLVCFuL6n2WsdQJHctAtvAjRFU2XmdyZHaWPYwIZrlwaGBhkEdIA== x-ms-office365-filtering-correlation-id: a4c7daa6-5d69-4146-1042-08d691071dd6 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(7021145)(8989299)(4534185)(7022145)(4603075)(7168020)(4627221)(201702281549075)(8990200)(7048125)(7024125)(7027125)(7023125)(5600110)(711020)(4605077)(2017052603328)(7153060)(7193020); SRVR:BM1PR01MB2913; x-ms-traffictypediagnostic: BM1PR01MB2913: x-microsoft-antispam-prvs: x-forefront-prvs: 0946DC87A1 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39850400004)(396003)(366004)(376002)(346002)(136003)(189003)(199004)(223583001)(74316002)(26005)(25786009)(6666004)(55236004)(53936002)(54896002)(81156014)(4744005)(6436002)(5640700003)(6506007)(71200400001)(71190400001)(102836004)(256004)(6306002)(105586002)(2351001)(106356001)(97736004)(8676002)(81166006)(14454004)(9686003)(2501003)(8936002)(6916009)(4743002)(55016002)(7736002)(7696005)(486006)(476003)(2906002)(44832011)(68736007)(86362001)(99286004)(9326002)(508600001)(316002)(790700001)(6116002)(626008)(186003)(3846002)(66066001)(33656002)(3480700005)(26710200004); DIR:OUT; SFP:1101; SCL:1; SRVR:BM1PR01MB2913; H:BM1PR01MB2563.INDPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: webtechiezone.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: W47g1ReWjTdZG0iJhlIb+dgFXv3Ag4Ob1tGVJXSqmteiaK6j+FBMS7C1Y5Ot69Svd+FF6vuYfh2scehr7rFLj0JcdYd0Ng147rzOrCg264oKy3EVZi6S1/2ZjH3xyfsuGp6lBb1RorbOPwn6deC+Vre4UcZcX/Teer6Sya+lgwkwC7LeZD7B7hJCccXWP6UNi60DGRGaMiSOGs0BYHpSuIAemp5qPdEb+cr8cR+543TZZAo/tZgszU2WKGsl2wMkDDFT61YTHofz0m3xZbQOWCDNNFwcunqSg5fAfwWmDGpWMSFhglYMcTJdeiv9sBvUePuC9KTAAbBCG8TkLNduD7uhjdUHyNUmh9yPyLnOkskATKo9sawvf3CQNgRGg+PKPh9t5eyV1fUYOcHm7rG/pLb4oFtbnjurZeIL1qURs3A= MIME-Version: 1.0 X-OriginatorOrg: webtechiezone.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4c7daa6-5d69-4146-1042-08d691071dd6 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Feb 2019 16:26:03.2977 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9ad75634-5c26-4a4f-8a2b-b7ad772adca5 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: BM1PR01MB2913 X-Rspamd-Queue-Id: EEF556CE84 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=NETORGFT4690007.onmicrosoft.com header.s=selector1-webtechiezone-com header.b=igxbjrq4; spf=pass (mx1.freebsd.org: domain of kathleen.brown@webtechiezone.com designates 40.107.139.80 as permitted sender) smtp.mailfrom=kathleen.brown@webtechiezone.com X-Spamd-Result: default: False [-3.95 / 15.00]; ARC_NA(0.00)[]; SUBJECT_ENDS_SPACES(0.50)[]; R_DKIM_ALLOW(-0.20)[NETORGFT4690007.onmicrosoft.com:s=selector1-webtechiezone-com]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[webtechiezone.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; MX_GOOD(-0.01)[cached: webtechiezone-com.mail.protection.outlook.com]; DKIM_TRACE(0.00)[NETORGFT4690007.onmicrosoft.com:+]; RCVD_IN_DNSWL_NONE(0.00)[80.139.107.40.list.dnswl.org : 127.0.3.0]; NEURAL_HAM_SHORT(-0.90)[-0.902,0]; TO_DN_EQ_ADDR_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.64.0.0/10, country:US]; IP_SCORE(-1.04)[ipnet: 40.64.0.0/10(-2.84), asn: 8075(-2.30), country: US(-0.07)] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2019 16:28:31 -0000 Hello, Hope you're having a great day! I just wanted to know if you're looking to acquire Ubuntu Users Contact Lis= t for your marketing efforts? Information Field: Names, Title, Email, Phone, Company Name, Company URL, C= ompany physical address, SIC Code, Industry and Company Size (Revenue and E= mployee). Kindly review and let me know of your target interest so that I can get bac= k to you with the exact counts and sample file. Do let me know if you have any questions for me. Regards, Kathleen Brown Database Executive If you do not wish to receive these emails. Please respond Exit. From owner-svn-src-stable-9@freebsd.org Fri Feb 15 09:25:53 2019 Return-Path: Delivered-To: svn-src-stable-9@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 71EE914D18C5; Fri, 15 Feb 2019 09:25:53 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0DD2D877CF; Fri, 15 Feb 2019 09:25:53 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D6B371CA32; Fri, 15 Feb 2019 09:25:52 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x1F9PqgS091850; Fri, 15 Feb 2019 09:25:52 GMT (envelope-from hselasky@FreeBSD.org) Received: (from hselasky@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x1F9Pqbr091849; Fri, 15 Feb 2019 09:25:52 GMT (envelope-from hselasky@FreeBSD.org) Message-Id: <201902150925.x1F9Pqbr091849@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: hselasky set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky Date: Fri, 15 Feb 2019 09:25:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r344147 - stable/9/usr.sbin/bluetooth/sdpd X-SVN-Group: stable-9 X-SVN-Commit-Author: hselasky X-SVN-Commit-Paths: stable/9/usr.sbin/bluetooth/sdpd X-SVN-Commit-Revision: 344147 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 0DD2D877CF X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; NEURAL_HAM_SHORT(-0.96)[-0.961,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Feb 2019 09:25:53 -0000 Author: hselasky Date: Fri Feb 15 09:25:52 2019 New Revision: 344147 URL: https://svnweb.freebsd.org/changeset/base/344147 Log: MFC r343905: Improve Bluetooth device discovery support for Android and Microsoft devices. Tested using the virtual_bt_speaker(8) tool from the virtual_oss(8) project at github.com. PR: 210089 Sponsored by: Mellanox Technologies Modified: stable/9/usr.sbin/bluetooth/sdpd/ssar.c Directory Properties: stable/9/usr.sbin/ (props changed) stable/9/usr.sbin/bluetooth/sdpd/ (props changed) Modified: stable/9/usr.sbin/bluetooth/sdpd/ssar.c ============================================================================== --- stable/9/usr.sbin/bluetooth/sdpd/ssar.c Fri Feb 15 09:22:23 2019 (r344146) +++ stable/9/usr.sbin/bluetooth/sdpd/ssar.c Fri Feb 15 09:25:52 2019 (r344147) @@ -44,6 +44,131 @@ int32_t server_prepare_attr_list(provider_p const prov uint8_t *rsp, uint8_t const * const rsp_end); /* + * Scan an attribute for matching UUID. + */ +static int +server_search_uuid_sub(uint8_t *buf, uint8_t const * const eob, const uint128_t *uuid) +{ + int128_t duuid; + uint32_t value; + uint8_t type; + + while (buf < eob) { + + SDP_GET8(type, buf); + + switch (type) { + case SDP_DATA_UUID16: + if (buf + 2 > eob) + continue; + SDP_GET16(value, buf); + + memcpy(&duuid, &uuid_base, sizeof(duuid)); + duuid.b[2] = value >> 8 & 0xff; + duuid.b[3] = value & 0xff; + + if (memcmp(&duuid, uuid, sizeof(duuid)) == 0) + return (0); + break; + case SDP_DATA_UUID32: + if (buf + 4 > eob) + continue; + SDP_GET32(value, buf); + memcpy(&duuid, &uuid_base, sizeof(duuid)); + duuid.b[0] = value >> 24 & 0xff; + duuid.b[1] = value >> 16 & 0xff; + duuid.b[2] = value >> 8 & 0xff; + duuid.b[3] = value & 0xff; + + if (memcmp(&duuid, uuid, sizeof(duuid)) == 0) + return (0); + break; + case SDP_DATA_UUID128: + if (buf + 16 > eob) + continue; + SDP_GET_UUID128(&duuid, buf); + + if (memcmp(&duuid, uuid, sizeof(duuid)) == 0) + return (0); + break; + case SDP_DATA_UINT8: + case SDP_DATA_INT8: + case SDP_DATA_SEQ8: + buf++; + break; + case SDP_DATA_UINT16: + case SDP_DATA_INT16: + case SDP_DATA_SEQ16: + buf += 2; + break; + case SDP_DATA_UINT32: + case SDP_DATA_INT32: + case SDP_DATA_SEQ32: + buf += 4; + break; + case SDP_DATA_UINT64: + case SDP_DATA_INT64: + buf += 8; + break; + case SDP_DATA_UINT128: + case SDP_DATA_INT128: + buf += 16; + break; + case SDP_DATA_STR8: + if (buf + 1 > eob) + continue; + SDP_GET8(value, buf); + buf += value; + break; + case SDP_DATA_STR16: + if (buf + 2 > eob) + continue; + SDP_GET16(value, buf); + if (value > (eob - buf)) + return (1); + buf += value; + break; + case SDP_DATA_STR32: + if (buf + 4 > eob) + continue; + SDP_GET32(value, buf); + if (value > (eob - buf)) + return (1); + buf += value; + break; + case SDP_DATA_BOOL: + buf += 1; + break; + default: + return (1); + } + } + return (1); +} + +/* + * Search a provider for matching UUID in its attributes. + */ +static int +server_search_uuid(provider_p const provider, const uint128_t *uuid) +{ + uint8_t buffer[256]; + const attr_t *attr; + int len; + + for (attr = provider->profile->attrs; attr->create != NULL; attr++) { + + len = attr->create(buffer, buffer + sizeof(buffer), + (const uint8_t *)provider->profile, sizeof(*provider->profile)); + if (len < 0) + continue; + if (server_search_uuid_sub(buffer, buffer + len, uuid) == 0) + return (0); + } + return (1); +} + +/* * Prepare SDP Service Search Attribute Response */ @@ -222,7 +347,8 @@ server_prepare_service_search_attribute_response(serve puuid.b[3] = provider->profile->uuid; if (memcmp(&uuid, &puuid, sizeof(uuid)) != 0 && - memcmp(&uuid, &uuid_public_browse_group, sizeof(uuid)) != 0) + memcmp(&uuid, &uuid_public_browse_group, sizeof(uuid)) != 0 && + server_search_uuid(provider, &uuid) != 0) continue; cs = server_prepare_attr_list(provider,