]> git.proxmox.com Git - mirror_frr.git/blob - bgpd/bgp_flowspec_private.h
*: auto-convert to SPDX License IDs
[mirror_frr.git] / bgpd / bgp_flowspec_private.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* BGP Flowspec header . private structs and defines
3 * Copyright (C) 2018 6WIND
4 */
5
6 #ifndef _FRR_BGP_FLOWSPEC_PRIVATE_H
7 #define _FRR_BGP_FLOWSPEC_PRIVATE_H
8
9 #define FLOWSPEC_NLRI_SIZELIMIT 240
10 #define FLOWSPEC_NLRI_SIZELIMIT_EXTENDED 4095
11
12 /* Flowspec raffic action bit*/
13 #define FLOWSPEC_TRAFFIC_ACTION_TERMINAL 1
14 #define FLOWSPEC_TRAFFIC_ACTION_SAMPLE 0
15 #define FLOWSPEC_TRAFFIC_ACTION_DISTRIBUTE 1
16
17 /* Flow Spec Component Types */
18 #define NUM_OF_FLOWSPEC_MATCH_TYPES 12
19 #define FLOWSPEC_DEST_PREFIX 1
20 #define FLOWSPEC_SRC_PREFIX 2
21 #define FLOWSPEC_IP_PROTOCOL 3
22 #define FLOWSPEC_PORT 4
23 #define FLOWSPEC_DEST_PORT 5
24 #define FLOWSPEC_SRC_PORT 6
25 #define FLOWSPEC_ICMP_TYPE 7
26 #define FLOWSPEC_ICMP_CODE 8
27 #define FLOWSPEC_TCP_FLAGS 9
28 #define FLOWSPEC_PKT_LEN 10
29 #define FLOWSPEC_DSCP 11
30 #define FLOWSPEC_FRAGMENT 12
31 #define FLOWSPEC_FLOW_LABEL 13 /* For IPv6 only */
32
33 #endif /* _FRR_BGP_FLOWSPEC_PRIVATE_H */