pcap-netfilter-linux.h revision 251129
1166886Srrs/* 2166886Srrs * Copyright (c) 2011 Jakub Zawadzki 3166886Srrs * All rights reserved. 4166886Srrs * 5166886Srrs * Redistribution and use in source and binary forms, with or without 6166886Srrs * modification, are permitted provided that the following conditions 7166886Srrs * are met: 8166886Srrs * 9166886Srrs * 1. Redistributions of source code must retain the above copyright 10166886Srrs * notice, this list of conditions and the following disclaimer. 11166886Srrs * 2. Redistributions in binary form must reproduce the above copyright 12251067Semaste * notice, this list of conditions and the following disclaimer in the 13166886Srrs * documentation and/or other materials provided with the distribution. 14166886Srrs * 3. The name of the author may not be used to endorse or promote 15166886Srrs * products derived from this software without specific prior written 16166886Srrs * permission. 17166886Srrs * 18166886Srrs * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19166886Srrs * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20166886Srrs * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21166886Srrs * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22166886Srrs * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23166886Srrs * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24166886Srrs * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25166886Srrs * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26166886Srrs * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27166886Srrs * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28166886Srrs * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29166886Srrs */ 30172253Sgabor 31166886Srrs/* 32166886Srrs * Prototypes for netlink-related functions 33166886Srrs */ 34166886Srrsint netfilter_findalldevs(pcap_if_t **alldevsp, char *err_str); 35172253Sgaborpcap_t *netfilter_create(const char *device, char *ebuf, int *is_ours); 36166886Srrs