1 /* 2 * Copyright (c) 2001 Mark Fullmer and The Ohio State University 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * 14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 */ 27 28 /* 29 * $Id: //depot/argus/argus-3.0/clients/include/cflowd.h#5 $ 30 * $DateTime: 2006/02/23 13:25:52 $ 31 * $Change: 627 $ 32 */ 33 34 /* Adapted from cflowd */ 35 36 #define CF_ROUTERMASK 0x00000001 37 #define CF_SRCIPADDRMASK 0x00000002 38 #define CF_DSTIPADDRMASK 0x00000004 39 #define CF_INPUTIFINDEXMASK 0x00000008 40 #define CF_OUTPUTIFINDEXMASK 0x00000010 41 #define CF_SRCPORTMASK 0x00000020 42 #define CF_DSTPORTMASK 0x00000040 43 #define CF_PKTSMASK 0x00000080 44 #define CF_BYTESMASK 0x00000100 45 #define CF_IPNEXTHOPMASK 0x00000200 46 #define CF_STARTTIMEMASK 0x00000400 47 #define CF_ENDTIMEMASK 0x00000800 48 #define CF_PROTOCOLMASK 0x00001000 49 #define CF_TOSMASK 0x00002000 50 #define CF_SRCASMASK 0x00004000 51 #define CF_DSTASMASK 0x00008000 52 #define CF_SRCMASKLENMASK 0x00010000 53 #define CF_DSTMASKLENMASK 0x00020000 54 #define CF_TCPFLAGSMASK 0x00040000 55 #define CF_INPUTENCAPMASK 0x00080000 56 #define CF_OUTPUTENCAPMASK 0x00100000 57 #define CF_PEERNEXTHOPMASK 0x00200000 58 #define CF_ENGINETYPEMASK 0x00400000 59 #define CF_ENGINEIDMASK 0x00800000 60 61 #define CF_INDEX_V1_MASK 0x00043FFF 62 #define CF_INDEX_V5_MASK 0x00C7FFFF 63 #define CF_INDEX_V6_MASK 0x00FFFFFF 64 #define CF_INDEX_V7_MASK 0x00C7FFFF 65 #define CF_INDEX_V8_1_MASK 0x00C0CD99 66 #define CF_INDEX_V8_2_MASK 0x00C00DE1 67 #define CF_INDEX_V8_3_MASK 0x00C14D8B 68 #define CF_INDEX_V8_4_MASK 0x00C28D95 69 #define CF_INDEX_V8_5_MASK 0x00C3CD9F 70 #define CF_INDEX_V8_6_MASK 0x00C02D95 71 #define CF_INDEX_V8_7_MASK 0x00C02D9F 72 #define CF_INDEX_V8_8_MASK 0x00C02DFF 73 #define CF_INDEX_V8_9_MASK 0x00C0ED99 74 #define CF_INDEX_V8_10_MASK 0x00C02DE1 75 #define CF_INDEX_V8_11_MASK 0x00C16D8B 76 #define CF_INDEX_V8_12_MASK 0x00C2AD95 77 #define CF_INDEX_V8_13_MASK 0x00C3ED9F 78 #define CF_INDEX_V8_14_MASK 0x00C32DFF 79 80