1335640Shselasky/*
2335640Shselasky * Copyright (c) 2002 - 2005 NetGroup, Politecnico di Torino (Italy)
3335640Shselasky * Copyright (c) 2005 - 2009 CACE Technologies, Inc. Davis (California)
4335640Shselasky * All rights reserved.
5335640Shselasky *
6335640Shselasky * Redistribution and use in source and binary forms, with or without
7335640Shselasky * modification, are permitted provided that the following conditions
8335640Shselasky * are met:
9335640Shselasky *
10335640Shselasky * 1. Redistributions of source code must retain the above copyright
11335640Shselasky * notice, this list of conditions and the following disclaimer.
12335640Shselasky * 2. Redistributions in binary form must reproduce the above copyright
13335640Shselasky * notice, this list of conditions and the following disclaimer in the
14335640Shselasky * documentation and/or other materials provided with the distribution.
15335640Shselasky * 3. Neither the name of the Politecnico di Torino nor the names of its
16335640Shselasky * contributors may be used to endorse or promote products derived from
17335640Shselasky * this software without specific prior written permission.
18335640Shselasky *
19335640Shselasky * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20335640Shselasky * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21335640Shselasky * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22335640Shselasky * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23335640Shselasky * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24335640Shselasky * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25335640Shselasky * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26335640Shselasky * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27335640Shselasky * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28335640Shselasky * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29335640Shselasky * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30335640Shselasky */
31335640Shselasky#ifndef pcap_types_h
32335640Shselasky#define pcap_types_h
33335640Shselasky
34335640Shselasky/*
35335640Shselasky * Get u_int defined, by hook or by crook.
36335640Shselasky */
37335640Shselasky#ifdef _WIN32
38335640Shselasky
39335640Shselasky  /*
40335640Shselasky   * This defines u_int.
41335640Shselasky   */
42335640Shselasky  #include <winsock2.h>
43335640Shselasky#else /* _WIN32 */
44335640Shselasky  /*
45335640Shselasky   * This defines u_int, among other types.
46335640Shselasky   */
47335640Shselasky  #include <sys/types.h>
48335640Shselasky#endif
49335640Shselasky
50335640Shselasky#endif /* pcap_types_h */
51