Blame include/win32/in_systm.h

Packit 03b34a
/*
Packit 03b34a
 * Copyright (c) 1982, 1986, 1993
Packit 03b34a
 *	The Regents of the University of California.  All rights reserved.
Packit 03b34a
 *
Packit 03b34a
 * Redistribution and use in source and binary forms, with or without
Packit 03b34a
 * modification, are permitted provided that the following conditions
Packit 03b34a
 * are met:
Packit 03b34a
 * 1. Redistributions of source code must retain the above copyright
Packit 03b34a
 *    notice, this list of conditions and the following disclaimer.
Packit 03b34a
 * 2. Redistributions in binary form must reproduce the above copyright
Packit 03b34a
 *    notice, this list of conditions and the following disclaimer in the
Packit 03b34a
 *    documentation and/or other materials provided with the distribution.
Packit 03b34a
 * 3. All advertising materials mentioning features or use of this software
Packit 03b34a
 *    must display the following acknowledgement:
Packit 03b34a
 *	This product includes software developed by the University of
Packit 03b34a
 *	California, Berkeley and its contributors.
Packit 03b34a
 * 4. Neither the name of the University nor the names of its contributors
Packit 03b34a
 *    may be used to endorse or promote products derived from this software
Packit 03b34a
 *    without specific prior written permission.
Packit 03b34a
 *
Packit 03b34a
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
Packit 03b34a
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Packit 03b34a
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
Packit 03b34a
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
Packit 03b34a
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Packit 03b34a
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
Packit 03b34a
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
Packit 03b34a
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
Packit 03b34a
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
Packit 03b34a
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
Packit 03b34a
 * SUCH DAMAGE.
Packit 03b34a
 *
Packit 03b34a
 *	@(#)in_systm.h	8.1 (Berkeley) 6/10/93
Packit 03b34a
 * $FreeBSD: src/sys/netinet/in_systm.h,v 1.9 1999/12/29 04:41:00 peter Exp $
Packit 03b34a
 */
Packit 03b34a
Packit 03b34a
#ifdef _WIN32
Packit 03b34a
#ifndef _NETINET_IN_SYSTM_H_
Packit 03b34a
#define _NETINET_IN_SYSTM_H_
Packit 03b34a
Packit 03b34a
typedef unsigned char  u_int8_t;
Packit 03b34a
typedef unsigned short u_int16_t;
Packit 03b34a
typedef unsigned int   u_int32_t;
Packit 03b34a
typedef unsigned __int64 u_int64_t;
Packit 03b34a
Packit 03b34a
typedef __int64 int64_t;
Packit 03b34a
typedef int64_t rlim_t;
Packit 03b34a
Packit 03b34a
Packit 03b34a
typedef u_int32_t in_addr_t;
Packit 03b34a
typedef u_int32_t in_port_t;
Packit 03b34a
Packit 03b34a
/*
Packit 03b34a
 * Miscellaneous internetwork
Packit 03b34a
 * definitions for kernel.
Packit 03b34a
 */
Packit 03b34a
Packit 03b34a
/*
Packit 03b34a
 * Network types.
Packit 03b34a
 *
Packit 03b34a
 * Internally the system keeps counters in the headers with the bytes
Packit 03b34a
 * swapped so that VAX instructions will work on them.  It reverses
Packit 03b34a
 * the bytes before transmission at each protocol level.  The n_ types
Packit 03b34a
 * represent the types with the bytes in ``high-ender'' order.
Packit 03b34a
 */
Packit 03b34a
typedef u_int16_t n_short;		/* short as received from the net */
Packit 03b34a
typedef u_int32_t n_long;		/* long as received from the net */
Packit 03b34a
Packit 03b34a
typedef	u_int32_t n_time;		/* ms since 00:00 GMT, byte rev */
Packit 03b34a
Packit 03b34a
#ifdef _KERNEL
Packit 03b34a
n_time	 iptime __P((void));
Packit 03b34a
#endif
Packit 03b34a
Packit 03b34a
#endif
Packit 03b34a
Packit 03b34a
#endif