1d1e87331SXin LI /* 2d1e87331SXin LI * Copyright (c) 2011 Jakub Zawadzki 3d1e87331SXin LI * All rights reserved. 4d1e87331SXin LI * 5d1e87331SXin LI * Redistribution and use in source and binary forms, with or without 6d1e87331SXin LI * modification, are permitted provided that the following conditions 7d1e87331SXin LI * are met: 8d1e87331SXin LI * 9d1e87331SXin LI * 1. Redistributions of source code must retain the above copyright 10d1e87331SXin LI * notice, this list of conditions and the following disclaimer. 11d1e87331SXin LI * 2. Redistributions in binary form must reproduce the above copyright 12d1e87331SXin LI * notice, this list of conditions and the following disclaimer in the 13d1e87331SXin LI * documentation and/or other materials provided with the distribution. 14d1e87331SXin LI * 3. The name of the author may not be used to endorse or promote 15d1e87331SXin LI * products derived from this software without specific prior written 16d1e87331SXin LI * permission. 17d1e87331SXin LI * 18d1e87331SXin LI * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19d1e87331SXin LI * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20d1e87331SXin LI * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21d1e87331SXin LI * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22d1e87331SXin LI * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23d1e87331SXin LI * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24d1e87331SXin LI * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25d1e87331SXin LI * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26d1e87331SXin LI * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27d1e87331SXin LI * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28d1e87331SXin LI * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29d1e87331SXin LI */ 30d1e87331SXin LI 31d1e87331SXin LI /* 32d1e87331SXin LI * Prototypes for netlink-related functions 33d1e87331SXin LI */ 34*b00ab754SHans Petter Selasky int netfilter_findalldevs(pcap_if_list_t *devlistp, char *err_str); 35edc89b24SXin LI pcap_t *netfilter_create(const char *device, char *ebuf, int *is_ours); 36