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