]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
7c40bf39 | 2 | /* BGP Flowspec header . private structs and defines |
3 | * Copyright (C) 2018 6WIND | |
7c40bf39 | 4 | */ |
5 | ||
6 | #ifndef _FRR_BGP_FLOWSPEC_PRIVATE_H | |
7 | #define _FRR_BGP_FLOWSPEC_PRIVATE_H | |
8 | ||
9 | #define FLOWSPEC_NLRI_SIZELIMIT 240 | |
3255e756 | 10 | #define FLOWSPEC_NLRI_SIZELIMIT_EXTENDED 4095 |
7c40bf39 | 11 | |
a8d72b61 PG |
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 | ||
dba3c1d3 PG |
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 | |
40881800 | 31 | #define FLOWSPEC_FLOW_LABEL 13 /* For IPv6 only */ |
dba3c1d3 | 32 | |
7c40bf39 | 33 | #endif /* _FRR_BGP_FLOWSPEC_PRIVATE_H */ |