Blame pcap-types.h

Packit 209cc3
/*
Packit 209cc3
 * Copyright (c) 2002 - 2005 NetGroup, Politecnico di Torino (Italy)
Packit 209cc3
 * Copyright (c) 2005 - 2009 CACE Technologies, Inc. Davis (California)
Packit 209cc3
 * All rights reserved.
Packit 209cc3
 *
Packit 209cc3
 * Redistribution and use in source and binary forms, with or without
Packit 209cc3
 * modification, are permitted provided that the following conditions
Packit 209cc3
 * are met:
Packit 209cc3
 *
Packit 209cc3
 * 1. Redistributions of source code must retain the above copyright
Packit 209cc3
 * notice, this list of conditions and the following disclaimer.
Packit 209cc3
 * 2. Redistributions in binary form must reproduce the above copyright
Packit 209cc3
 * notice, this list of conditions and the following disclaimer in the
Packit 209cc3
 * documentation and/or other materials provided with the distribution.
Packit 209cc3
 * 3. Neither the name of the Politecnico di Torino nor the names of its
Packit 209cc3
 * contributors may be used to endorse or promote products derived from
Packit 209cc3
 * this software without specific prior written permission.
Packit 209cc3
 *
Packit 209cc3
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Packit 209cc3
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Packit 209cc3
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Packit 209cc3
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
Packit 209cc3
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
Packit 209cc3
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Packit 209cc3
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Packit 209cc3
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Packit 209cc3
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Packit 209cc3
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Packit 209cc3
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit 209cc3
 */
Packit 209cc3
#ifndef pcap_types_h
Packit 209cc3
#define pcap_types_h
Packit 209cc3
Packit 209cc3
/*
Packit 209cc3
 * Get u_int defined, by hook or by crook.
Packit 209cc3
 */
Packit 209cc3
#ifdef _WIN32
Packit 209cc3
Packit 209cc3
  /*
Packit 209cc3
   * This defines u_int.
Packit 209cc3
   */
Packit 209cc3
  #include <winsock2.h>
Packit 209cc3
#else /* _WIN32 */
Packit 209cc3
  /*
Packit 209cc3
   * This defines u_int, among other types.
Packit 209cc3
   */
Packit 209cc3
  #include <sys/types.h>
Packit 209cc3
#endif
Packit 209cc3
Packit 209cc3
#endif /* pcap_types_h */