18, 16, 10, -1, 16, 18, 17, -1,
      19, 17, 18, -1, 20, 14, 17, -1,
      14, 20, 28, -1, 29, 28, 20, -1,
      17, 19, 20, -1, 21, 20, 19, -1,
      20, 21, 29, -1, 22, 29, 21, -1,
      10, 11, 18, -1, 23, 18, 11, -1,
      18, 23, 19, -1, 24, 19, 23, -1,
      19, 24, 21, -1, 26, 21, 24, -1,
      21, 26, 22, -1, 27, 22, 26, -1,
      11, 25, 23, -1, 23, 25, 24, -1,
      24, 25, 26, -1, 27, 27, 26, -1,
      26, 25, 27, -1, 35, 27, 25, -1,
      29, 28, 29, -1, 28, 29, 38, -1,
      39, 38, 29, -1, 30, 29, 22, -1,
      29, 30, 39, -1, 31, 39, 30, -1,
      22, 27, 30, -1, 32, 30, 27, -1,
      30, 32, 31, -1, 33, 31, 32, -1,
      34, 32, 27, -1, 27, 35, 34, -1,
      32, 34, 33, -1, 36, 33, 34, -1,
      34, 35, 36, -1, 37, 36, 35, -1,
      39, 38, 39, -1, 40, 38, 39, -1,
      41, 38, 40, -1, 38, 41, 42, -1,
      43, 42, 41, -1, 44, 39, 31, -1,
      39, 44, 40, -1, 45, 40, 44, -1,
      40, 45, 41, -1, 46, 41, 45, -1,
      41, 46, 43, -1, 54, 43, 46, -1,
      31, 33, 44, -1, 47, 44, 33, -1,
      44, 47, 45, -1, 50, 45, 47, -1,
      45, 50, 46, -1, 48, 46, 50, -1,
      46, 48, 54, -1, 33, 36, 47, -1,
      49, 47, 36, -1, 47, 49, 50, -1,
      36, 37, 49, -1, 51, 49, 37, -1,
      49, 51, 50, -1, 52, 50, 51, -1,
      50, 52, 48, -1, 48, 52, 54, -1,
      56, 54, 52, -1, 53, 42, 43, -1,
      43, 54, 53, -1, 55, 53, 54, -1,
      54, 56, 55, -1, 57, 55, 56, -1,
      58, 57, 56, -1, 61, 59, 60, -1,
      59, 62, 61, -1, 67, 61, 62, -1,
      63, 67, 62, -1, 62, 64, 63, -1,
      65, 64, 63, -1, 60, 61, 66, -1,
      61, 67, 66, -1, 68, 66, 67, -1,
      66, 74, 68, -1, 69, 68, 74, -1,
      67, 63, 69, -1, 70, 69, 63, -1,
      63, 71, 65, -1, 72, 71, 65, -1,
      71, 72, 70, -1, 84, 70, 72, -1,
      75, 73, 74, -1, 76, 73, 75, -1,
      74, 69, 75, -1, 77, 75, 69, -1,
      75, 77, 76, -1, 78, 76, 77, -1,
      79, 73, 76, -1, 73, 79, 87, -1,
      88, 87, 79, -1, 76, 78, 79, -1,
      80, 79, 78, -1, 79, 80, 88, -1,
      81, 88, 80, -1, 69, 70, 77, -1,
      82, 77, 70, -1, 77, 82, 78, -1,
      83, 78, 82, -1, 78, 83, 80, -1,
      85, 80, 83, -1, 80, 85, 81, -1,
      86, 81, 85, -1, 70, 84, 82, -1,
      82, 84, 83, -1, 83, 84, 85, -1,
      86, 86, 85, -1, 85, 84, 86, -1,
      95, 86, 84, -1, 88, 87, 88, -1,
      89, 87, 88, -1, 90, 88, 81, -1,
      88, 90, 89, -1, 91, 89, 90, -1,
      81, 86, 90, -1, 92, 90, 86, -1,
      90, 92, 91, -1, 93, 91, 92, -1,
      94, 92, 86, -1, 86, 95, 94, -1,
      92, 94, 93, -1, 96, 93, 94, -1,
      94, 95, 96, -1, 97, 96, 95, -1,
      87, 89, 98, -1, 99, 98, 89, -1,
      100, 98, 99, -1, 101, 98, 100, -1,
      98, 101, 102, -1, 103, 102, 101, -1,
      89, 91, 99, -1, 104, 99, 91, -1,
      99, 104, 100, -1, 105, 100, 104, -1,
      100, 105, 101, -1, 106, 101, 105, -1,
      101, 106, 103, -1, 114, 103, 106, -1,
      91, 93, 104, -1, 107, 104, 93, -1,
      104, 107, 105, -1, 110, 105, 107, -1,
      105, 110, 106, -1, 108, 106, 110, -1,
      106, 108, 114, -1, 93, 96, 107, -1,
      109, 107, 96, -1, 107, 109, 110, -1,
      96, 97, 109, -1, 111/*++

Copyright (c) 1995-1999 Microsoft Corporation

Module Name:

    ipxconst.h

Abstract:

    This module contains the common constants and macros used
    by the IPX Routing Protocols

Author:

    Stefan Solomon  07/10/1995

Revision History:


--*/

#ifndef _IPXCONST_
#define _IPXCONST_

#if _MSC_VER > 1000
#pragma once
#endif

#include <winapifamily.h>

#pragma region Desktop Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)

//
// Administrative States Definitions
//
// Note: these states correspond to the MIB admin states of ENABLED and DISABLED

#define ADMIN_STATE_DISABLED		    1
#define ADMIN_STATE_ENABLED		    2

// additional admin states used for netbios delivery.
//
// Note: these states correspond to the MIB states of:
//
// ENABLED_ONLY_FOR_NETBIOS_STATIC_ROUTING and
// ENABLED_ONLY_FOR_OPER_STATE_UP

#define ADMIN_STATE_ENABLED_ONLY_FOR_NETBIOS_STATIC_ROUTING	3
#define ADMIN_STATE_ENABLED_ONLY_FOR_OPER_STATE_UP		4

//
// Interface Operational States Definitions
//
// Note 1: applies to the IPX, RIP and SAP operational states
// Note 2: these states correspond to the MIB operational states of
//	   UP, DOWN and SLEEPING
//

#define OPER_STATE_DOWN			   1 // not operational
#define OPER_STATE_UP			   2 // operational & can pass packets
#define OPER_STATE_SLEEPING		   3 // operational but has to connect to pass packets

//
// Additional operational states in starting/stopping the router
//

#define OPER_STATE_STARTING		    4
#define OPER_STATE_STOPPING		    5

//
// Definitions and default values for the RIP and SAP Interface Info
//

// UpdateMode definitions
//

#define IPX_STANDARD_UPDATE		1 // Periodic update, every UpdateInterval
#define IPX_NO_UPDATE			2 // No update, used for static routes config
#define IPX_AUTO_STATIC_UPDATE		3 // AutoStatic triggered update

// PacketType definitions
//

#define IPX_STANDARD_PACKET_TYPE		1
#define IPX_RELIABLE_DELIVERY_PACKET_TYPE	2

// Pace definitions

#define IPX_PACE_DEFVAL 	18 // This corresponds to a 55 ms interpacketgap

// UpdateInterval definitions

#define IPX_UPDATE_INTERVAL_DEFVAL  60

//*********************************************************
//							  *
//		 IPX Route Entry Definitions		  *
//							  *
//*********************************************************

//
// IPX route entry defs for RTM mapping
//

#define   R_Interface		       RR_InterfaceID
#define   R_Protocol		       RR_RoutingProtocol

#define   R_Network		       RR_Network.N_NetNumber
#define   R_TickCount		       RR_FamilySpecificData.FSD_TickCount
#define   R_HopCount		       RR_FamilySpecificData.FSD_HopCount
#define   R_NextHopMacAddress	       RR_NextHopAddress.NHA_Mac

#define   R_Flags		       RR_FamilySpecificData.FSD_Flags

//
// Some particular interface indices values
//

#define MAX_INTERFACE_INDEX		0xFFFFFFFE
#define GLOBAL_INTERFACE_INDEX		0xFFFFFFFF

//
// Flags definitions
//

#define GLOBAL_WAN_ROUTE		0x00000001
#define DO_NOT_ADVERTISE_ROUTE		0x00000002


#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
#pragma endregion

#endif
