1*3b604290Schristos /* $NetBSD: pcap-bt-monitor-linux.h,v 1.3 2018/09/03 15:26:43 christos Exp $ */ 2d9186219Schristos 374e9dc92Schristos /* 474e9dc92Schristos * Copyright (c) 2014 Michal Labedzki for Tieto Corporation 574e9dc92Schristos * All rights reserved. 674e9dc92Schristos * 774e9dc92Schristos * Redistribution and use in source and binary forms, with or without 874e9dc92Schristos * modification, are permitted provided that the following conditions 974e9dc92Schristos * are met: 1074e9dc92Schristos * 1174e9dc92Schristos * 1. Redistributions of source code must retain the above copyright 1274e9dc92Schristos * notice, this list of conditions and the following disclaimer. 1374e9dc92Schristos * 2. Redistributions in binary form must reproduce the above copyright 1474e9dc92Schristos * notice, this list of conditions and the following disclaimer in the 1574e9dc92Schristos * documentation and/or other materials provided with the distribution. 1674e9dc92Schristos * 3. The name of the author may not be used to endorse or promote 1774e9dc92Schristos * products derived from this software without specific prior written 1874e9dc92Schristos * permission. 1974e9dc92Schristos * 2074e9dc92Schristos * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 2174e9dc92Schristos * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 2274e9dc92Schristos * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 2374e9dc92Schristos * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2474e9dc92Schristos * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2574e9dc92Schristos * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2674e9dc92Schristos * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2774e9dc92Schristos * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2874e9dc92Schristos * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2974e9dc92Schristos * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 3074e9dc92Schristos * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3174e9dc92Schristos */ 3274e9dc92Schristos 33*3b604290Schristos int bt_monitor_findalldevs(pcap_if_list_t *devlistp, char *err_str); 3474e9dc92Schristos pcap_t *bt_monitor_create(const char *device, char *ebuf, int *is_ours); 35