1335640Shselasky/* 2335640Shselasky * Copyright (c) 2008 CACE Technologies, Davis (California) 3335640Shselasky * All rights reserved. 4335640Shselasky * 5335640Shselasky * Redistribution and use in source and binary forms, with or without 6335640Shselasky * modification, are permitted provided that the following conditions 7335640Shselasky * are met: 8335640Shselasky * 9335640Shselasky * 1. Redistributions of source code must retain the above copyright 10335640Shselasky * notice, this list of conditions and the following disclaimer. 11335640Shselasky * 2. Redistributions in binary form must reproduce the above copyright 12335640Shselasky * notice, this list of conditions and the following disclaimer in the 13335640Shselasky * documentation and/or other materials provided with the distribution. 14335640Shselasky * 3. Neither the name of CACE Technologies nor the names of its 15335640Shselasky * contributors may be used to endorse or promote products derived from 16335640Shselasky * this software without specific prior written permission. 17335640Shselasky * 18335640Shselasky * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19335640Shselasky * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20335640Shselasky * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21335640Shselasky * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22335640Shselasky * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23335640Shselasky * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24335640Shselasky * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25335640Shselasky * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26335640Shselasky * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27335640Shselasky * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28335640Shselasky * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29335640Shselasky * 30335640Shselasky */ 31335640Shselasky 32335640Shselasky#ifndef __PCAP_TC_H__ 33335640Shselasky#define __PCAP_TC_H__ 34335640Shselasky 35335640Shselasky/* 36335640Shselasky * needed because gcc headers do not have C_ASSERT 37335640Shselasky */ 38335640Shselasky#ifndef C_ASSERT 39335640Shselasky#define C_ASSERT(a) 40335640Shselasky#endif 41335640Shselasky 42335640Shselasky#include <TcApi.h> 43335640Shselasky 44335640Shselasky/* 45335640Shselasky * functions used effectively by the pcap library 46335640Shselasky */ 47335640Shselasky 48335640Shselaskypcap_t * 49335640ShselaskyTcCreate(const char *device, char *ebuf, int *is_ours); 50335640Shselasky 51335640Shselaskyint 52335640ShselaskyTcFindAllDevs(pcap_if_list_t *devlistp, char *errbuf); 53335640Shselasky 54335640Shselasky#endif 55