summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_flowspec_private.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 13:16:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 13:16:35 +0000
commite2bbf175a2184bd76f6c54ccf8456babeb1a46fc (patch)
treef0b76550d6e6f500ada964a3a4ee933a45e5a6f1 /bgpd/bgp_flowspec_private.h
parentInitial commit. (diff)
downloadfrr-e2bbf175a2184bd76f6c54ccf8456babeb1a46fc.tar.xz
frr-e2bbf175a2184bd76f6c54ccf8456babeb1a46fc.zip
Adding upstream version 9.1.upstream/9.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'bgpd/bgp_flowspec_private.h')
-rw-r--r--bgpd/bgp_flowspec_private.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/bgpd/bgp_flowspec_private.h b/bgpd/bgp_flowspec_private.h
new file mode 100644
index 0000000..049cb6d
--- /dev/null
+++ b/bgpd/bgp_flowspec_private.h
@@ -0,0 +1,33 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/* BGP Flowspec header . private structs and defines
+ * Copyright (C) 2018 6WIND
+ */
+
+#ifndef _FRR_BGP_FLOWSPEC_PRIVATE_H
+#define _FRR_BGP_FLOWSPEC_PRIVATE_H
+
+#define FLOWSPEC_NLRI_SIZELIMIT 240
+#define FLOWSPEC_NLRI_SIZELIMIT_EXTENDED 4095
+
+/* Flowspec raffic action bit*/
+#define FLOWSPEC_TRAFFIC_ACTION_TERMINAL 1
+#define FLOWSPEC_TRAFFIC_ACTION_SAMPLE 0
+#define FLOWSPEC_TRAFFIC_ACTION_DISTRIBUTE 1
+
+/* Flow Spec Component Types */
+#define NUM_OF_FLOWSPEC_MATCH_TYPES 12
+#define FLOWSPEC_DEST_PREFIX 1
+#define FLOWSPEC_SRC_PREFIX 2
+#define FLOWSPEC_IP_PROTOCOL 3
+#define FLOWSPEC_PORT 4
+#define FLOWSPEC_DEST_PORT 5
+#define FLOWSPEC_SRC_PORT 6
+#define FLOWSPEC_ICMP_TYPE 7
+#define FLOWSPEC_ICMP_CODE 8
+#define FLOWSPEC_TCP_FLAGS 9
+#define FLOWSPEC_PKT_LEN 10
+#define FLOWSPEC_DSCP 11
+#define FLOWSPEC_FRAGMENT 12
+#define FLOWSPEC_FLOW_LABEL 13 /* For IPv6 only */
+
+#endif /* _FRR_BGP_FLOWSPEC_PRIVATE_H */