#ident "$Id: ixe_ip.h,v 1.1 1995/03/16 17:05:14 garyp Exp $"
/*****************************************************************************
 * Copyright (c) 1988-95 Digi International Inc., All Rights Reserved
 * 
 * This  software  contains  proprietary  and  confidential   information   of
 * Digi International  Inc.   By  accepting  transfer  of this copy, Recipient
 * agrees to retain this software in  confidence,  to  prevent  disclosure  to
 * others,  and  to make no  use of this software other than that for which it
 * was delivered.  This is an unpublished copyright work  Digi   International
 * Inc.    Except   as   permitted   by  federal  law,  17 USC 117, copying is
 * strictly prohibited.
 * 
 * Digi  International  Inc.  CONFIDENTIAL  -   (Digi    International    Inc.
 * Confidential  when   combined   with   the   aggregated  modules  for  this
 * product) OBJECT CODE ONLY SOURCE MATERIALS
 * 
 * (C) COPYRIGHT Digi International Inc. 1995
 * 
 * All Rights Reserved
 * 
 * US   Government   Users   Restricted   Rights   -   Use,   duplication   or
 * disclosure  restricted by GSA ADP Schedule Contract with Digi International
 * Inc.
 * 
 *****************************************************************************/


/******************************************************************
 *
 *  SpiderX25 IXE Module
 *
 *  Copyright 1991 Spider Systems Limited
 *
 *  IXE_IP.H
 *
 *  Specific definitions for the SpiderX25 IXE module
 *
 *  This file contains definitions of the format of an Internet
 *  Protocol packet as defined in the SpiderTCP IP module.
 *
 *  NB  If the Internet Protocol specification changes at any time
 *      in the future (!) this file must be updated accordingly.
 *
 ******************************************************************/

/*
 *	 /projects/common/PBRAIN/SCCS/pbrainF/dev/sys/ixe/0/s.ixe_ip.h
 *	@(#)ixe_ip.h	1.6
 *
 *	Last delta created	14:33:59 3/18/92
 *	This file extracted	12:38:52 2/16/93
 *
 */


/******************************************************************
 * definitions for ARPA internet level protocols
 ******************************************************************/

/*
 * internet version 4 header
 */
typedef struct inet_hdr
{
	unsigned char	ih_ihl;		/* Header length         */
	char	ih_tos;			/* Type of Service (Ha!) */
	unsigned short	ih_len;		/* Data length           */
	short	ih_id;			/* gram id               */
	short	ih_frg;			/* Fragment flag         */
	unsigned char	ih_ttl;		/* Time to Die           */
        unsigned char	ih_pro;		/* Protocol              */
	unsigned short	ih_chk;		/* Check sum (1's compl) */
	long	ih_source;		/* Home address          */
	long	ih_dest;		/* Holiday address       */
} INET_HDR;

#define OFFSET     017777       /* mask to get fragment offset     */

#define 	DEST_UNR        3       /* destination unreachable:      */
#define         NET_UNR         0       /*     net unreachable           */
#define         HOST_UNR        1       /*     host      "               */

