xorp

test_common.hh

00001 // -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*-
00002 // vim:set sts=4 ts=8 sw=4:
00003 
00004 // Copyright (c) 2001-2009 XORP, Inc.
00005 //
00006 // This program is free software; you can redistribute it and/or modify
00007 // it under the terms of the GNU General Public License, Version 2, June
00008 // 1991 as published by the Free Software Foundation. Redistribution
00009 // and/or modification of this program under the terms of any other
00010 // version of the GNU General Public License is not permitted.
00011 // 
00012 // This program is distributed in the hope that it will be useful, but
00013 // WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For more details,
00015 // see the GNU General Public License, Version 2, a copy of which can be
00016 // found in the XORP LICENSE.gpl file.
00017 // 
00018 // XORP Inc, 2953 Bunker Hill Lane, Suite 204, Santa Clara, CA 95054, USA;
00019 // http://xorp.net
00020 
00021 // $XORP: xorp/contrib/olsr/test_common.hh,v 1.3 2008/10/02 21:56:36 bms Exp $
00022 
00023 #ifndef __OLSR_TEST_COMMON_HH__
00024 #define __OLSR_TEST_COMMON_HH__
00025 
00029 enum TLV {
00030     TLV_VERSION = 1,      // The first entry in a file 4 byte version number.
00031     TLV_SYSTEM_INFO = 2,  // A string defining the creation system.
00032     TLV_OLSR_VERSION = 3, // The OLSR version that the database came from.
00033     TLV_N1 = 4,       // A one-hop neighbor entry.
00034     TLV_N2 = 5,       // A two-hop neighbor entry.
00035     TLV_TC = 6,       // A topology control entry.
00036     TLV_MID = 7,      // A Multiple Interface entry.
00037 
00038     TLV_START = TLV_VERSION, // Lower bound.
00039     TLV_END = TLV_MID        // Upper bound.
00040 };
00041 const uint32_t TLV_CURRENT_VERSION = 1; // Current version number
00042 
00043 #endif // __OLSR_TEST_COMMON_HH__
 All Classes Namespaces Functions Variables Typedefs Enumerations