1*b00ab754SHans Petter Selasky /* 2*b00ab754SHans Petter Selasky * Copyright (c) 2002 - 2005 NetGroup, Politecnico di Torino (Italy) 3*b00ab754SHans Petter Selasky * Copyright (c) 2005 - 2009 CACE Technologies, Inc. Davis (California) 4*b00ab754SHans Petter Selasky * All rights reserved. 5*b00ab754SHans Petter Selasky * 6*b00ab754SHans Petter Selasky * Redistribution and use in source and binary forms, with or without 7*b00ab754SHans Petter Selasky * modification, are permitted provided that the following conditions 8*b00ab754SHans Petter Selasky * are met: 9*b00ab754SHans Petter Selasky * 10*b00ab754SHans Petter Selasky * 1. Redistributions of source code must retain the above copyright 11*b00ab754SHans Petter Selasky * notice, this list of conditions and the following disclaimer. 12*b00ab754SHans Petter Selasky * 2. Redistributions in binary form must reproduce the above copyright 13*b00ab754SHans Petter Selasky * notice, this list of conditions and the following disclaimer in the 14*b00ab754SHans Petter Selasky * documentation and/or other materials provided with the distribution. 15*b00ab754SHans Petter Selasky * 3. Neither the name of the Politecnico di Torino nor the names of its 16*b00ab754SHans Petter Selasky * contributors may be used to endorse or promote products derived from 17*b00ab754SHans Petter Selasky * this software without specific prior written permission. 18*b00ab754SHans Petter Selasky * 19*b00ab754SHans Petter Selasky * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20*b00ab754SHans Petter Selasky * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21*b00ab754SHans Petter Selasky * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22*b00ab754SHans Petter Selasky * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23*b00ab754SHans Petter Selasky * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24*b00ab754SHans Petter Selasky * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25*b00ab754SHans Petter Selasky * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26*b00ab754SHans Petter Selasky * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27*b00ab754SHans Petter Selasky * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28*b00ab754SHans Petter Selasky * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29*b00ab754SHans Petter Selasky * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30*b00ab754SHans Petter Selasky */ 31*b00ab754SHans Petter Selasky #ifndef pcap_types_h 32*b00ab754SHans Petter Selasky #define pcap_types_h 33*b00ab754SHans Petter Selasky 34*b00ab754SHans Petter Selasky /* 35*b00ab754SHans Petter Selasky * Get u_int defined, by hook or by crook. 36*b00ab754SHans Petter Selasky */ 37*b00ab754SHans Petter Selasky #ifdef _WIN32 38*b00ab754SHans Petter Selasky /* 39*b00ab754SHans Petter Selasky * This defines u_int. 40*b00ab754SHans Petter Selasky */ 41*b00ab754SHans Petter Selasky #include <winsock2.h> 42*b00ab754SHans Petter Selasky #else /* _WIN32 */ 43*b00ab754SHans Petter Selasky /* 44*b00ab754SHans Petter Selasky * This defines u_int, among other types. 45*b00ab754SHans Petter Selasky */ 46*b00ab754SHans Petter Selasky #include <sys/types.h> 47*b00ab754SHans Petter Selasky #endif 48*b00ab754SHans Petter Selasky 49*b00ab754SHans Petter Selasky #endif /* pcap_types_h */ 50