]>
Commit | Line | Data |
---|---|---|
7c40bf39 | 1 | /* BGP Flowspec header . private structs and defines |
2 | * Copyright (C) 2018 6WIND | |
3 | * | |
4 | * FRRouting is free software; you can redistribute it and/or modify it | |
5 | * under the terms of the GNU General Public License as published by the | |
6 | * Free Software Foundation; either version 2, or (at your option) any | |
7 | * later version. | |
8 | * | |
9 | * FRRouting is distributed in the hope that it will be useful, but | |
10 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
12 | * General Public License for more details. | |
13 | * | |
14 | * You should have received a copy of the GNU General Public License along | |
15 | * with this program; see the file COPYING; if not, write to the Free Software | |
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
17 | */ | |
18 | ||
19 | #ifndef _FRR_BGP_FLOWSPEC_PRIVATE_H | |
20 | #define _FRR_BGP_FLOWSPEC_PRIVATE_H | |
21 | ||
22 | #define FLOWSPEC_NLRI_SIZELIMIT 240 | |
3255e756 | 23 | #define FLOWSPEC_NLRI_SIZELIMIT_EXTENDED 4095 |
7c40bf39 | 24 | |
a8d72b61 PG |
25 | /* Flowspec raffic action bit*/ |
26 | #define FLOWSPEC_TRAFFIC_ACTION_TERMINAL 1 | |
27 | #define FLOWSPEC_TRAFFIC_ACTION_SAMPLE 0 | |
28 | #define FLOWSPEC_TRAFFIC_ACTION_DISTRIBUTE 1 | |
29 | ||
dba3c1d3 PG |
30 | /* Flow Spec Component Types */ |
31 | #define NUM_OF_FLOWSPEC_MATCH_TYPES 12 | |
32 | #define FLOWSPEC_DEST_PREFIX 1 | |
33 | #define FLOWSPEC_SRC_PREFIX 2 | |
34 | #define FLOWSPEC_IP_PROTOCOL 3 | |
35 | #define FLOWSPEC_PORT 4 | |
36 | #define FLOWSPEC_DEST_PORT 5 | |
37 | #define FLOWSPEC_SRC_PORT 6 | |
38 | #define FLOWSPEC_ICMP_TYPE 7 | |
39 | #define FLOWSPEC_ICMP_CODE 8 | |
40 | #define FLOWSPEC_TCP_FLAGS 9 | |
41 | #define FLOWSPEC_PKT_LEN 10 | |
42 | #define FLOWSPEC_DSCP 11 | |
43 | #define FLOWSPEC_FRAGMENT 12 | |
44 | ||
7c40bf39 | 45 | #endif /* _FRR_BGP_FLOWSPEC_PRIVATE_H */ |