1681ed54cSXin LI /* 2681ed54cSXin LI * Copyright (c) 2014 Michal Labedzki for Tieto Corporation 3681ed54cSXin LI * All rights reserved. 4681ed54cSXin LI * 5681ed54cSXin LI * Redistribution and use in source and binary forms, with or without 6681ed54cSXin LI * modification, are permitted provided that the following conditions 7681ed54cSXin LI * are met: 8681ed54cSXin LI * 9681ed54cSXin LI * 1. Redistributions of source code must retain the above copyright 10681ed54cSXin LI * notice, this list of conditions and the following disclaimer. 11681ed54cSXin LI * 2. Redistributions in binary form must reproduce the above copyright 12681ed54cSXin LI * notice, this list of conditions and the following disclaimer in the 13681ed54cSXin LI * documentation and/or other materials provided with the distribution. 14681ed54cSXin LI * 3. The name of the author may not be used to endorse or promote 15681ed54cSXin LI * products derived from this software without specific prior written 16681ed54cSXin LI * permission. 17681ed54cSXin LI * 18681ed54cSXin LI * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19681ed54cSXin LI * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20681ed54cSXin LI * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21681ed54cSXin LI * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22681ed54cSXin LI * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23681ed54cSXin LI * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24681ed54cSXin LI * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25681ed54cSXin LI * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26681ed54cSXin LI * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27681ed54cSXin LI * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28681ed54cSXin LI * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29681ed54cSXin LI */ 30681ed54cSXin LI 31*b00ab754SHans Petter Selasky int bt_monitor_findalldevs(pcap_if_list_t *devlistp, char *err_str); 32681ed54cSXin LI pcap_t *bt_monitor_create(const char *device, char *ebuf, int *is_ours); 33