pcap-netfilter-linux.h revision 230832
11539Srgrimes/* 21539Srgrimes * Copyright (c) 2011 Jakub Zawadzki 31539Srgrimes * All rights reserved. 41539Srgrimes * 51539Srgrimes * Redistribution and use in source and binary forms, with or without 61539Srgrimes * modification, are permitted provided that the following conditions 71539Srgrimes * are met: 81539Srgrimes * 91539Srgrimes * 1. Redistributions of source code must retain the above copyright 101539Srgrimes * notice, this list of conditions and the following disclaimer. 111539Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 121539Srgrimes * notice, this list of conditions and the following disclaimer in the 131539Srgrimes * documentation and/or other materials provided with the distribution. 141539Srgrimes * 3. The name of the author may not be used to endorse or promote 151539Srgrimes * products derived from this software without specific prior written 161539Srgrimes * permission. 171539Srgrimes * 181539Srgrimes * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 191539Srgrimes * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 201539Srgrimes * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 211539Srgrimes * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 221539Srgrimes * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 231539Srgrimes * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 241539Srgrimes * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 251539Srgrimes * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 261539Srgrimes * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 271539Srgrimes * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 281539Srgrimes * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 291539Srgrimes */ 301539Srgrimes 311539Srgrimes/* 321539Srgrimes * Prototypes for netlink-related functions 331539Srgrimes */ 341539Srgrimesint netfilter_platform_finddevs(pcap_if_t **alldevsp, char *err_str); 351539Srgrimespcap_t *nflog_create(const char *device, char *ebuf); 3623655Speter