diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-02-19 17:17:41 +0100 | 
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-03-30 14:01:05 +0200 | 
| commit | dba3c1d3fbf563aab505aebeed0ece7480e895a4 (patch) | |
| tree | 1ef1da8589492639cfc9116c3a707e4ffc65ac8b /bgpd/bgp_flowspec_private.h | |
| parent | a8d72b61eb87cf0aea03d4075247eb5290666c8d (diff) | |
bgpd: support for show bgp ipv4 flowspec
The show bgp ipv4 flowspec routine is made available, displays the
flowspec rules contained in the BGP FIB database, as well as the actions
to be done on those rules. Two routines are available:
show bgp ipv4 flowspec
show bgp ipv4 flowspec detail
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_flowspec_private.h')
| -rw-r--r-- | bgpd/bgp_flowspec_private.h | 15 | 
1 files changed, 15 insertions, 0 deletions
diff --git a/bgpd/bgp_flowspec_private.h b/bgpd/bgp_flowspec_private.h index 4f086a9f7b..dede4e03d3 100644 --- a/bgpd/bgp_flowspec_private.h +++ b/bgpd/bgp_flowspec_private.h @@ -26,4 +26,19 @@  #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 +  #endif /* _FRR_BGP_FLOWSPEC_PRIVATE_H */  | 
