]> git.proxmox.com Git - mirror_frr.git/blame - bgpd/bgp_flowspec_private.h
Merge pull request #3370 from pguibert6WIND/default_vrf_initialization
[mirror_frr.git] / bgpd / bgp_flowspec_private.h
CommitLineData
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
23
a8d72b61
PG
24/* Flowspec raffic action bit*/
25#define FLOWSPEC_TRAFFIC_ACTION_TERMINAL 1
26#define FLOWSPEC_TRAFFIC_ACTION_SAMPLE 0
27#define FLOWSPEC_TRAFFIC_ACTION_DISTRIBUTE 1
28
dba3c1d3
PG
29/* Flow Spec Component Types */
30#define NUM_OF_FLOWSPEC_MATCH_TYPES 12
31#define FLOWSPEC_DEST_PREFIX 1
32#define FLOWSPEC_SRC_PREFIX 2
33#define FLOWSPEC_IP_PROTOCOL 3
34#define FLOWSPEC_PORT 4
35#define FLOWSPEC_DEST_PORT 5
36#define FLOWSPEC_SRC_PORT 6
37#define FLOWSPEC_ICMP_TYPE 7
38#define FLOWSPEC_ICMP_CODE 8
39#define FLOWSPEC_TCP_FLAGS 9
40#define FLOWSPEC_PKT_LEN 10
41#define FLOWSPEC_DSCP 11
42#define FLOWSPEC_FRAGMENT 12
43
7c40bf39 44#endif /* _FRR_BGP_FLOWSPEC_PRIVATE_H */